Page 1 of 1

How to add space after plugin in Bulletproof?

Posted: Sat Oct 27, 2007 12:18 pm
by dashboy
I have a blog here... but after using the bulletproof theme. The tags and related tags after my entry are not seperated by any space. Is there a way to add a break after 'defined tags for this entry' and 'related entries by tags'?

For instance, this entry here... http://www.dashken.net/index.php?/archi ... ipity.html

I've looked into the freetag plugin, but can't find anywhere that I can add a break.

Hope someone can help. Thanks in advance. :D

Posted: Sat Oct 27, 2007 12:39 pm
by dashboy
Ok, I actually feel stupid now. I always found the solution after I posted a thread here.

I added a <br /> in the front of... in serendipity_event_freetag.php

Code: Select all

        $return = '[b]<br />[/b]<div class="serendipity_freeTag_related">' . PLUGIN_EVENT_FREETAG_RELATED_ENTRIES . '<br />';
But one thing I'd like to know. Is there any plan to create a folder in all plugins for custom edited file? What I meant is, like in 'menalto gallery', you can edit a file and put it in a folder like pluginname/a instead of pluginname/ and when the engine detected there's a file in pluginname/a, it will use this file instead of the file in pluginname/.

This is so that when user upgraded the plugin, the custom setting is not overwrite accidentally and user still can copy his/her custom code into the new upgraded file.

I don't know if this make sense at all.

What I'm afraid is if I add a break in this serendipity_event_freetag.php. When the author of this plugin upgrade to a newer version, I'd accidentally overwritten this break that I added in. This is just a small thing, but what if I edited the plugin a bit more? :?

Posted: Sun Oct 28, 2007 11:34 pm
by yellowled
dashboy wrote:I added a <br /> in the front of... in serendipity_event_freetag.php
That's one way of doing this, but as you suspected yourself already:
dashboy wrote:When the author of this plugin upgrade to a newer version, I'd accidentally overwritten this break that I added in.
That's exacty what's going to happen. The better solution is to create this space using CSS.

Code: Select all

.serendipity_entryFooter .serendipity_freeTag {
    padding-top: 1em;
}

.serendipity_entryFooter .serendipity_freeTag_related {
    padding-top: 1em;
}
Add this to your blue_style.css. However, this will probably be overwritten by a BP update, so you might want to create a user colorset by copying blue_style.css to i.e. dashboys_style.css and adding the code above to it.

YL

Posted: Sat Nov 17, 2007 2:06 am
by dashboy
Thanks! Works great.

I'm still amazed that you guys can come up with this CSS solutions so fast. :D

Posted: Sat Nov 17, 2007 6:04 pm
by yellowled
dashboy wrote:Thanks! Works great.

I'm still amazed that you guys can come up with this CSS solutions so fast. :D
You're welcome. Actually, it's not that amazing - we just have a couple of months/years of experience and practice, that's all :wink:

YL