Theme question

Skinning and designing Serendipity (CSS, HTML, Smarty)
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Theme question

Post by carlitocabana »

Hello S9y folks,
I currently use the outdated Bblog and want to switch over to S9y.
I got some questions hoping anyone could answer them.

1) Is it possible with S9y to post a New Post only in a Category and not show this post on the home(front)page?

2) I really really like the theme/template of www.hamachi.cc. I wanted to know if I can realize this with S9y? Maybe anyone knows which template they used or someone that can help me with achieving this?

I would be very thankfull.

Best Regards,
CC
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

welcome to s9y!
1) Is it possible with S9y to post a New Post only in a Category and not show this post on the home(front)page?
This is very easy todo. Just choose "Hide from article overview / frontpage" while editing an article.
2) I really really like the theme/template of www.hamachi.cc. I wanted to know if I can realize this with S9y? Maybe anyone knows which template they used or someone that can help me with achieving this?
I think this template isn't that hard to port. There are some similar themes wich could be edited to look like the hamachi theme.

Greetings, Lordcoffee
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Yes the new entries can be added to a category and also not show in the overview page. I believe the 'extended entries' plugin needs to be installed and then you simply click a checkbox to hide the entry from the frontpage.

As for your template, this is easily done, and if you know html then converting one of the existing serendipity templates would be easy. Just post your questions here and we'll help you.
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

Thanks for the quick replies.

Is there a way to remove the "tick button" and "xml" button next to a category? And finally is there a way to remove the GO button under the categories?

Also I got John Doe's personal blog AND My little place on the web... ON TOP of my Blog how can I remove there 2 ?

As I mentioned I really want the theme that www.hamachi.cc got. Is there anyone that wants to help me with this or give me a clue how start?

Best Regards to all
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

carlitocabana wrote:Is there a way to remove the "tick button" and "xml" button next to a category?
Just see the Config Plugins section, and there the configuration of the Categories plugin.
carlitocabana wrote:And finally is there a way to remove the GO button under the categories?
I've done it by editing the source of the plugin, bbut I think there's a more easy way. Hang on for that. :)
carlitocabana wrote:Also I got John Doe's personal blog AND My little place on the web... ON TOP of my Blog how can I remove there 2 ?
You should have had an option to edit that during the installation! But you can still edit them in your Configuration.
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

Thanx for the replies again everything is solved now so far :) so i'm going to use s9y perm now!
But I got a last question under the Categories I made I got a link "All categories" but I dont want this to be shown how can this be hidden?

Also I use the Theme "s9y Thin" for now but I don't really like the way of posting. I mean when I post a new post I get the following result

First the Date (in a bar and bold text)
Then the Entry name (in smaller letters than date)

I want it different:
First the Entry name in a bar and bold text
and then the date in smaller text
How can I achieve this or is this code editting?

Thanks again :) and regards to all of you guys
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:First the Entry name in a bar and bold text and then the date in smaller text How can I achieve this or is this code editting?
It is, but you should not be afraid to do that :) Let's see ... so you basically want to swap date and entry name, right?

Okay, so first of all, copy the file entries.tpl from the directory /templates/default/ to /templates/s9y_thin/. This is the code we need to change in /templates/s9y_thin/entries.tpl:

Code: Select all

    <div class="serendipity_Entry_Date">
        {if $dategroup.is_sticky}
        <h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
        {else}
        <h3 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h3>
        {/if}

        {foreach from=$dategroup.entries item="entry"}
        <h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h4>
Replace this by:

Code: Select all

    <div class="serendipity_Entry_Date">
        <h3 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h3>
        
        {foreach from=$dategroup.entries item="entry"}
        {if $dategroup.is_sticky}
        <h4 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
        {else}
        <h4 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h3>
        {/if}
If this already looks good, great. If not, we'll probably have to edit your style.css just a little.

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

Hrm, wait a minute ... that produces some weird error in my test blog. Let me figure that one out before you use it, sorry about that.

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

YellowLed thanks for the reply.
Did exactly what you told me to do but no luck.
It's ALMOST what I wanted but some things are mixed up.
I have 2 entries and now entry 1 is nameless and entry 2 has the name of entry. Also the grey banner is attached to the textbox so no more space/enter between title entry and text.

hope you understand what i mean otherwise i can post screenies :)

Thanks for helping me out here
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:I have 2 entries and now entry 1 is nameless and entry 2 has the name of entry. Also the grey banner is attached to the textbox so no more space/enter between title entry and text.

hope you understand what i mean otherwise i can post screenies :)
Nope, I guess I'm seeing pretty much the same thing in my test blog right now :) Got that one figured out already. The code has to be like this:

Code: Select all

    <div class="serendipity_Entry_Date">
        {foreach from=$dategroup.entries item="entry"}
        <h3 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h3>
        {if $dategroup.is_sticky}
        <h4 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h4>
        {else}
        <h4 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h4>
        {/if}
That should do the trick.

Now, edit your /templates/s9y_thin/style.css: you have to "switch" .serendipity_title and .serendipity_date. The easiest way to do that is to search for .serendipity_title and change it to .serendipity_date (just that, not the styles for that class!) and then search for .serendipity_date and change it to .serendipity_title (make sure your editor finds the "original" .serendipity_date and not the one you just changed, and don't forget to save your changes :wink:). That should look pretty much the way you want it to look like.

However, if you update s9y (I'm not sure whether s9y_thin is bundled with s9y r not) or the s9y_thin template (using spartacus), these changes might be overwritten, so you should probably create your own theme folder for this. But don't do this now, we can do that after we're done customizing your template :)

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

YellowLed Thank you very very much this is exactly how i wanted it to look. I make a backup of the files for newer versions indeed. Good idea.

Do you think it's possible to move the menu on the right to the left?
And if it's possible do you think I can make a menu on the left with a box like the www.hamachi.cc site/menu on the left?

When i mouse over the Title i get a hoover can this be disabled? I think simply remove the HOOVER entries in the CSS file?

In the menu I've got first "Quick Search" under there i got "Archives" under there i got "Categories" can I change the follows I mean how can i get Categories on top under there Archives and at last Quick Search?

Again i'm vvery thankfull for helping me out so far and i'm hoping that i'm not asking too much of your time.

Regards to you
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:YellowCard (good band btw :-) Thank you very very much this is exactly how i wanted it to look. I make a backup of the files for newer versions indeed. Good idea.
You're welcome, but I have to insist on being called YellowLed :)

If you want to back up "your" template, just copy the directory /templates/s9y_thin/ with its complete content to i.e. /templates/s9y_thin_edited/ or something. In that new folder, edit the file info.txt, i.e. like this:
Name: s9y Thin (edited)
Author: Kaustubh Srikanth, edited by carlitocabana
Date: 12/15/2004
That way, you'll have it backed up and you'll be able to distinguish both templates in the Style manager.
carlitocabana wrote:Do you think it's possible to move the menu on the right to the left?
I suppose what you mean by "menu" is the right sidebar? You can simply move all sidebar plugins to the left sidebar using drag'n'drop (unless you use a s9y < v1.1) in the plugin management ("Configure Plugins") in your admin area.
carlitocabana wrote:And if it's possible do you think I can make a menu on the left with a box like the www.hamachi.cc site/menu on the left?
Should be pretty easy using the HTML Nugget Plugin. Let's get to that later :)
carlitocabana wrote:When i mouse over the Title i get a hoover can this be disabled? I think simply remove the HOOVER entries in the CSS file?
Yes, but it's probably not that simple :) We're talking about:

Code: Select all

.serendipity_title a:hover {
   color: #FF0000;
}
You could easily change this by putting teh color in comment like this:

Code: Select all

.serendipity_title a:hover {
/*   color: #FF0000; */
}
However, the overall a:hover will still be applied to the hovered title link, but I really don't have the time to look at that now, sorry.
carlitocabana wrote:In the menu I've got first "Quick Search" under there i got "Archives" under there i got "Categories" can I change the follows I mean how can i get Categories on top under there Archives and at last Quick Search?
Again, go to Admin -> Configure Plugins. You can (unless you're using s9y < v1.1, in which case you'll probably want to update anyway :)) simply drag'n'drop the plugins to change their order. However, certain changes in the order could affect the way the plugins work, but as far as I remember, that's only true for event plugins, not sidebar plugins.
carlitocabana wrote:Again i'm vvery thankfull for helping me out so far and i'm hoping that i'm not asking too much of your time.
Ah, time. Gotta go :wink: You're welcome, and if I don't find the time to help, other people in here probably will. Just remember to be patient, sometimes it takes some time for a new reply, because almost everyone here is busy doing other things (what was that word starting with a "w" again?). Plus, the s9y community is from different parts of the world, and thus from different timezones.

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

YellowLED ;-) i saw i spelled your name wrongly and changed it but you were to quick with your reply :-)

I got a quick probably simple question when i click on a category to see it's content I get the Category name on the top of my blog (in the header let's say) How can this be disabled?

And is there a way to remove the "Posted by xxx in Category at 16:16 | Edit entry" text beneath a entry?

A little problem with your Adjustments YellowLED :-(
When I post 2 entries on the same date the Name of the entry and the banner are stuck to the bottom of the post above it. When i change the date of the post to a day before there is space/a enter between the 2 entries.

Further backing it up is really a good idea and changing the txt file is also excellent idea for reference when installing a new s9y version.

Cool I didn't expect I could easily drap and drop the menu and the Categorie, Archives etc... I didn't expect that to be that simple. Now I got the menu on the right thanks \o/

The hoover thing is a good idea to /* it for now and maybe change it later on.

I understand everyone is always busy :-) and has to work hehe that's why i'm very thankfull you are helping me out here.

For now thanks and if you got spare time or some left you can help me out. so far thanks Yellowled :-)
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:I got a quick probably simple question when i click on a category to see it's content I get the Category name on the top of my blog (in the header let's say) How can this be disabled?
No idea, sorry.
carlitocabana wrote:And is there a way to remove the "Posted by xxx in Category at 16:16 | Edit entry" text beneath a entry?
Do you want to remove it completely? Including the number of comments and trackbacks?
carlitocabana wrote:When I post 2 entries on the same date the Name of the entry and the banner are stuck to the bottom of the post above it. When i change the date of the post to a day before there is space/a enter between the 2 entries.
Hm. Actually, I think that's pretty neat :) It sort of "groups" articles by date. Let's see ... okay, got it, at least I think so.

Change lines 4-6 of the (new) entries.tpl to look like this:

Code: Select all

    {foreach from=$entries item="dategroup"}
        {foreach from=$dategroup.entries item="entry"}
        <div class="serendipity_Entry_Date">
and lines 174-176 to look like this:

Code: Select all

        </div>
        {/foreach}
    {foreachelse}
That should do the trick. Don't shoot me if it doesn't, I'm not responsible for anything I post after 1 a.m. (in my timezone, and it's 1:30 at the time of writing this) :wink:

Hope this works out the way you wanted it.

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

YellowLed

Mmm this really annoys me everything is going fine with your great help YellowLed but now when i click on a category I get the Category name on the top of my blog (in the header/where the blog name is) Maybe anyone knows how i can remove this?

Maybe you can tell me what i have to do to delete the whole "Posted by xxx in Category at 16:16 | Edit entry" text beneath a entry? And maybe if I know how to do this i can remove only the post by or the categorie :)

And is there a way to remove the text "(Page 1 of 1, totaling 2 entries)" at the far bottom of a page on the blog?

And \o/ it worked now there is a nice space between entries this is exactly what i wanted thanks YellowLed and perhaps its nicer to stick enries of 1 date together but i got the source now so when i want it to change i now know how to do this :-)

Only the Category name in top of my header/blog name is annoying me :-( Further Super-B thank you soooooooo veeeeeery much.

Regards
Post Reply