vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Need $newposts to be known in $fivelinks template (https://vborg.vbsupport.ru/showthread.php?t=1304)

06-22-2000 12:32 AM

How can I make $newposts accessable within the fivelinks template?

06-22-2000 02:56 AM

I would just hard code the link in there ie http://www.yourdomain.com/forum/sear...?action=getnew

06-22-2000 03:07 AM

Because it's determined at runtime whether action=getnew or action=getdaily should be shown....So i definitely need to the variable be known into the template...

06-22-2000 07:04 AM

Mas*Mind:

Why not just put $fivelinks  $newposts and then delete the other $newposts reference in the template.

Then if you want to use an image over the text just edit
the newposts template.

Parker

[Edited by Parker Clack on 06-22-2000 at 04:04 PM]

06-22-2000 07:30 AM

I thought about that, but I want it to be part of fivelinks; Because then you have to change just one template if you want to change that part....If you have to insert it every time you insert fivelinks you'll end up w/ several templates if you want to change it (bad explained, hope you'll get it :D)

I know this won't be difficult, just wanted to know if anyone can tell me how before I go to the whole script...

06-22-2000 03:05 PM

LOL, whoops.

Well, thats easy.

Open global.php, and search for eval("\$fivelinks = \"".gettemplate("fivelinks")."\";");

Underneath it, add:
eval("\$fivelinks .= \"".gettemplate("newposts")."\";");

Thats it. Hope that helps.

[Edited by Krucifyx on 06-23-2000 at 02:57 AM]

06-22-2000 05:01 PM

Quote:

Originally posted by Krucifyx
Then add it to the fivelinks template.
The whole point of this thread was how to make $newposts expand when used in $fivelinks.


All times are GMT. The time now is 10:30 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.01029 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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