Topic: extern.php and css

Hi have used extern.php to get some active topics and some stuff. How do I change the css-file? (Want to add some padding to the text).

<div id="left"> 
    <div class="block">
        <h2 class="block2"><span>Whos Online?</span></h2>
                <div class="box">
                    <pun_online>
                </div>
    </div>

    <div class="block">
            <h2><span>Menu</span></h2>
                <div class="box">
                    <pun_sidelinks>            
                </div>
    
            </div>
            
    <div class="block">
        <h2><span>Latest news</span></h2>
                <div class="box">
                    <pun_include "active_topics.php">
                </div>
    </div>
    
    <div class="block">
        <h2><span>Active topics</span></h2>
                <div class="box">
                    <pun_include "active_posts.php">
                </div>
    </div>
            
</div>

http://upl.yao.se/?a=2f728.JPG

Re: extern.php and css

no one knows this?

Re: extern.php and css

Try...

    <div class="block">
        <h2><span>Latest news</span></h2>
                <div class="box">
<div class="inbox">
                    <pun_include "active_topics.php">
</div>
                </div>
    </div>

Added a 'inbox' div. Should sort it for you.

Re: extern.php and css

thx alot.

Re: extern.php and css

what file do u add this to?
header.php?

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: extern.php and css

quaker wrote:

what file do u add this to?
header.php?

Judging by the <pun_include> tag, probably main.tpl

Looking for a certain modification for your forum? Please take a look here before posting.

Re: extern.php and css

but you cant do php in the main.tpl file..

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: extern.php and css

i want ths on my pages how do i add it?

9

Re: extern.php and css

you could get the files to read form a php file instead of a .tpl and rename main.tpl to like main.php or something like that couldnt you? You would jsut have to edit all the files that read from main.tpl?

Re: extern.php and css

quaker wrote:

but you cant do php in the main.tpl file..

And <pun_include> is PHP?

(no)

See the FAQ - 3.4 - Is it possible to include my own PHP scripts in the templates?

Tubby wrote:

you could get the files to read form a php file instead of a .tpl and rename main.tpl to like main.php or something like that couldnt you? You would jsut have to edit all the files that read from main.tpl?

Not necessary, see above.

(Sorry if I sound like a bit of a jerk at the moment; I'm sick and thus I'm not in a particularly great mood)

Looking for a certain modification for your forum? Please take a look here before posting.