vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add Footer to forumhome_forumbit_level2_post (https://vborg.vbsupport.ru/showthread.php?t=47593)

Steve123 01-11-2003 04:14 AM

Add Footer to forumhome_forumbit_level2_post
 
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:
PHP Code:

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

below add:
PHP Code:

if($depth==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

PHP Code:

        if ( $depth==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
PHP Code:

 $forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms); 

Add
PHP Code:

       eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level2_post_footer")."\";"); 


Xenon 01-13-2003 02:44 PM

glad i could help :)


All times are GMT. The time now is 10:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01015 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete