PDA

View Full Version : Add Footer to forumhome_forumbit_level2_post


Steve123
01-11-2003, 04:14 AM
Does anyone know if this hack it out? or does anyone know how to make it..

I want after the end of template

forumhome_forumbit_level2_post,

I want it to call another template like forumhome_forumbit_level2_post_footer so i can add a footer to the forumbit..

Is this possible and how?

/Steve

Steve123
01-11-2003, 10:07 PM
Anyone plz :D

Xenon
01-12-2003, 12:12 PM
open index.php

find:
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");

below add:
if($depth==2 and $temext=='_post') {eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level2_post_footer")."\";");}

Dean C
01-12-2003, 02:00 PM
Useful piece of code :p

*Adds to favorites*

Steve123
01-12-2003, 10:11 PM
Thanks Heaps.

Steve123
01-12-2003, 10:38 PM
That dont work..

1st error is a typo

tmpext = tempext


When i add

if ( $depth==2 and $tempext==_nopost ) { eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level2_post_footer")."\";"); }

It adds a footer after every forumhome_forumbit_level2_post, when i only want it to add it after the last forumhome_forumbit_level2_post...

Any ideas?

Steve123
01-12-2003, 10:52 PM
Oh..

Nevermind i figured it out.. Easy really.. heh

After
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
Add eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level2_post_footer")."\";");

Xenon
01-13-2003, 02:44 PM
glad i could help :)