Page 2 of 4
Posted: Fri Jan 19, 2007 1:25 pm
by yellowled
carlitocabana wrote: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?
Sure, although I'm still not sure what exactly you want to remove, so I'll just tell you how to remove the entry footer completely: Search your entries.tpl for "<div class='serendipity_entryFooter'>" (Line 37 in my editor). Delete this line and the following lines until:
Delete those two lines also, but
not the following "</div>" (the one on line 71 in my editor).
As I said, this removes the complete entry footer including the number of trackbacks and comments. If you want to keep those, that's a bit more complicated to explain, so I'll wait for you to confirm this
carlitocabana wrote: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?
Sure, just delete
Code: Select all
{if $footer_info}
({$footer_info})
{/if}
from your entries.tpl. However, this only removes the text, not the links to the next and previous pages. Again, if you want to remove that also (which is not a good idea in my humble opinion), just say the word.
YL
Posted: Fri Jan 19, 2007 2:09 pm
by carlitocabana
Thanks for the quick and again the right reply everything is working like charm
Removing the whole "Posted by xxx in Category at 16:16 | Edit entry" text beneath a entry?" is what i want for now so no more change

a little thing is that the bottom line of the text box is nearly at the text is there a way to set a 1px or 2px enter between last line of entry text and the bottom line of the textbox and how?
Also removing the whole text and not the link at the far bottom (Page 1 of 1, totaling 2 entries) is exactly what i wanted so again working perfect
BTW is there a way to get a black thin line around my blog box?
This was (almost) everything like i wanted and my blog looks awesome now

Thank you very much YellowLed for helping me completely out here.
Only thing is that I got the Category name in my Blogname on top of the page when im in a category

and i want to remove this, is this a s9y setting/config or a php file code that need to be removed?
Posted: Fri Jan 19, 2007 2:58 pm
by yellowled
carlitocabana wrote:a little thing is that the bottom line of the text box is nearly at the text is there a way to set a 1px or 2px enter between last line of entry text and the bottom line of the textbox and how?
Search your style.css for .serendipity_entry and add the line
(I'd suggest inserting it right below the "padding-top" line.)
carlitocabana wrote:BTW is there a way to get a black thin line around my blog box?
Yes, but there's any easy way that doesn't look perfect and a complicated way that ... well, is complicated
The easy way (edit your style.css to look like this):
Code: Select all
#mainpane {
margin: auto;
width: 750px;
background-color: #FFFFFF;
border-left: 1px solid #000;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
}
and
Code: Select all
#serendipity_banner {
margin: auto;
width: 750px;
height: 72px;
background-color: #99CC66;
border-top: 1px solid #000;
border-left: 1px solid #000;
border-right: 1px solid #000;
}
Unfortunately, this doesn't look perfect, at least not in Firefox 1.5.0.7/Linux. On the other hand, the other method for this would need another .tpl file, which could mess up the whole template. Personally, I think this is too much of a fuss for a little black border ...
carlitocabana wrote:Thank you very much YellowLed for helping me completely out here.
You're welcome.
YL
Posted: Fri Jan 19, 2007 3:49 pm
by carlitocabana
OK very nice textbox with text now and nice space between textbox line and the text
I see the black line works great around the mainpane but if i do it around the banner the line's dont attach i get something like:
|
|
it looks like 1px difference there is no way to get:
|
|
well if it's too much fuss i forget the black line. Maybe i can make a banner picture with the black line

thanks again and i think my blog style is finished now

perhaps you know a simple solution for the black line?
greetings and regards YellowLed you're a great guy and thank you for your time.
Posted: Mon Jan 22, 2007 5:05 pm
by carlitocabana
1)
To remove the Category in the header i did the following:
in the s9y_thin css file under:
a.homelink1,
a.homelink1:hover {
background-color: #6699CC;
I added the line:
display:none;
===============================================
2)
BTW anyone know how the category ALL CATEGORIES can be removed?
===============================================
3)
And if I click on a new entry to read it at the bottom i see:
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as (Linear | Threaded)
No comments
(Allow comments to this entry)
The author does not allow comments to this entry
How can these/above items be removed at the bottom of the text??
===============================================
4)
Is it possible to create a category and set a link to my homapage??
Thanks and Regards,
Posted: Tue Jan 30, 2007 11:33 pm
by Halaster
I figured since I am posting a question similar to his I would just add to this thread instead of starting an entirely new one.
I am working on embedding serendipity into a current
webpageI have set up. I have got everything working pretty much, but can not figure out a way to post just specific information. Are there any php functions such as ob_get_contents() that can pull just the post text, or just the post title, instead of the entire thing. Currently when I have it embedded it gives me the following appearance:
Date
Post title. Posted by
Halaster Date.
Comments (0)
Tracebacks (0)
Post Title/Link
Body of the post
<<Previous page (Page 1 of 1, totaling 1 entries) Next Page>>
What I need to be able to do is just call the bost body, or just the post title. If that is not possible I need to be able to at least move the entire "posted by" section from the top to the bottom, or remove it all together.
I tried what you suggested to the poster of this thread, but modifying the entries.tpl file appears to have no effect for me when embedding. In fact I can completely remove the file and no changes are present. What are the files I need the change to effect what is sent to an embedded page. The only thing I could figure out was that removing {$ENTRIES} from the content.tpl file will remove everything.
I am also having a small layout problem, but I cannot figure out if it is my own css or Serendipity. Currently if I just call the echo $serendipity_contents in an already setup section it will completely destroy the layout and cause the entire left colum of the page to move to the bottom. The only way I have currently got it working is placing the echo inside of a <h2> and making it a header. But this makes it a bit messed up, with quadruple spacing and such.
Posted: Wed Jan 31, 2007 2:14 am
by Halaster
Looks like I figured my own problem out, mostly.
My main issue was that I was modifying the file inside of the default template, and the page was set to carl_contest. The only thing I have left to figure out is css design related. I was thinking that when I set it to embed it would use my css layout file. I did not realize that the tpl file was still calling for div classes that are not included in my own file, which is causing quite a mess. I am going to try to see if I can sort this out and make it look correct.
Update: Done. Now that I have this all up and going and realize what my mistake was I have to give props to the designers of this.

It is fantastic. I am not using it for anything complicated, but it seamlessly integrated right into my page.

If anyone is interested to see it finished it is right
here. Just a World of Warcraft Guild page.
Posted: Wed Jan 31, 2007 11:06 am
by yellowled
carlitocabana wrote:2) BTW anyone know how the category ALL CATEGORIES can be removed?
1. Configure Plugins -> Sidebar Plugins -> Categories -> Set "Enable Smarty Templates" to "Yes" -> Save
2. Copy templates/default/plugin_categories.tpl to your template directory
3. Edit the copied plugin_categories.tpl like this:
Code: Select all
<!-- <div class="category_link_all"><a href="{$form_url}?frontpage" title="{$CONST.ALL_CATEGORIES}">{$CONST.ALL_CATEGORIES}</a></div>-->
That should do the trick (the line of code is supposed to be on one line without any line breaks).
carlitocabana wrote:3) And if I click on a new entry to read it at the bottom i see: [...] How can these/above items be removed at the bottom of the text??
Delete everything from "<div class="serendipity_comments serendipity_section_trackbacks">" to this code section (including this code section):
Code: Select all
<div class="serendipity_section_commentform">
<div class="serendipity_commentsTitle">{$CONST.ADD_COMMENT}</div>
{$COMMENTFORM}
</div>
{/if}
</div>
from your entries.tpl, that should do the trick.
carlitocabana wrote:4) Is it possible to create a category and set a link to my homapage??
No. If you want to have a link to your homepage in the sidebar, the easiest way is probably to use the HTML Nugget plugin.
YL
Posted: Tue Feb 06, 2007 11:02 am
by carlitocabana
OK thanks for all the info again YellowLed
I got a question about about removing the comments etc (when inside a entry)
You said to delete:
" Delete everything from "<div class="serendipity_comments serendipity_section_trackbacks">" to this code section (including this code section):
Code:
<div class="serendipity_section_commentform">
<div class="serendipity_commentsTitle">{$CONST.ADD_COMMENT}</div>
{$COMMENTFORM}
</div>
{/if}
</div>
from your entries.tpl, that should do the trick."
Could you perhaps tell me the line nr's which have to be deleted so I don't delete too much?
And to create a category or link (in the sidebar) to my homapage is done by using the HTML Nugget plugin. Is this straightforward or difficult I;m going to try it so i keep you informed.
Thanks a million again.
Posted: Tue Feb 06, 2007 11:50 am
by yellowled
carlitocabana wrote:Could you perhaps tell me the line nr's which have to be deleted so I don't delete too much?
Sure, but beware that these might not match exactly since I don't have an overview how much you have changed in your entries.tpl, so the line numbers may be different.
In my version of s9y_thin's entries.tpl, these would be lines 106 ("<div class="serendipity_comments serendipity_section_trackbacks">") to 170 ("</div>").
carlitocabana wrote:And to create a category or link (in the sidebar) to my homapage is done by using the HTML Nugget plugin. Is this straightforward or difficult
Should be a piece of cake if you have some experience installing plugins and know some HTML.
YL
Posted: Tue Feb 06, 2007 2:36 pm
by carlitocabana
OK np that the lines didn't match i had a clear vision now what to delete and it works like a charm as everything you suggest YellowLed

thanks.
The HTML nugget is not a real succes. I get a new, let's call it a section heading. I rather liked it below or between my sections/categories but in a way i like this way too to seperate things a bit. But in the nugget i can give it a name that shows as heading and a comment that will be under the heading name in smaller font but how do i make a link to a external link? i only see Edit now as link
Posted: Tue Feb 06, 2007 3:16 pm
by yellowled
carlitocabana wrote:The HTML nugget is not a real succes. I get a new, let's call it a section heading. I rather liked it below or between my sections/categories but in a way i like this way too to seperate things a bit. But in the nugget i can give it a name that shows as heading and a comment that will be under the heading name in smaller font but how do i make a link to a external link? i only see Edit now as link
Are you using the right plugin? I was talking about the
sidebar plugin "HTML Nugget" (Sidebar Plugins -> Frontend: Views). Once that one is installed (you can have multiple HTML Nuggets of course), you get to the configuration screen, where can enter a title ("Link to my homepage" comes to mind) and the content for the nugget, which should be something like
Code: Select all
<a href="http://YOUR_URL" title="Link to my homepage">To my Homepage</a>
That's basically it. BTW, and sorry if I already asked this, could you supply an URL to your blog so we can have a look at it "live"? It's much easier to help you that way.
YL
Posted: Tue Feb 06, 2007 3:53 pm
by carlitocabana
Hehe ok I had the correct html nugget plugin and it's working already like a charm so thanks again (didnt knew how to make the link so sorry my bad)
Offcourse I could put a link to my weblog
Please pay no attention to the ugly header cause i'm designing a better and a newer one
Thanks YellowLed my blog is finished now I really appreciate you were helping me out with this php coding

Thanks a million and a beer for you c[ ]
PS. anyone know how to set at the bottom of all pages
© 2007 carlitocabana all rights reserved | Design: carlitocabana & YellowLed
Posted: Tue Feb 06, 2007 7:19 pm
by yellowled
carlitocabana wrote:Offcourse I could put a link to my weblog
Please pay no attention to the ugly header cause i'm designing a better and a newer one

Uhm ... I have to say, I already like it

Hard to imagine that this once was s9y_thin, you've done a very nice job here. Make sure to show it in the Showcase forum once you're ...
carlitocabana wrote:Thanks YellowLed my blog is finished now I really appreciate you were helping me out with this php coding

Thanks a million and a beer for you c[ ]
You're welcome, but we all have said before that our blog was finished
carlitocabana wrote:PS. anyone know how to set at the bottom of all pages
© 2007 carlitocabana all rights reserved | Design: carlitocabana & YellowLed
Yes, but it will take some time, because once again I am (everybody now!) not at my workstation@home right now
I'll probably be back later to fix this last thing.
YL
Posted: Wed Feb 07, 2007 2:48 pm
by carlitocabana
\o/

YellowLed is not at his workstation@home right now

\o/
OK i'll cue for your help then
