vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Pulling info from one template to another (https://vborg.vbsupport.ru/showthread.php?t=157861)

salata 09-14-2007 09:45 PM

Pulling info from one template to another
 
I recently designed my memberlist layout with the help of numerous threads, and am pretty happy with the end result. Now what i want to do is make my WOL page to look exactly the same.

Now my understanding of it all is that memberlist template pulls info from the Users Registered
and WOL page pulls info from Users online

Now my question is. Can't i take what information that is being pulled (WOL) and place in it in the memberlist template? so the end result would be users online being displayed in my memberlist layout.

If not, can someone be kind enough to explain how i could achieve my goal.

Dismounted 09-15-2007 04:17 AM

You'd have to copy a chunk of PHP from the end of index.php and place it into a hook.

salata 09-15-2007 05:51 AM

would someone be kind enough to tell me what chunk of index.php i need to copy. I looked the file over and saw instances in the middle and near the ending of the file (well instances of where i thought the pull of information of users online).

Dismounted 09-15-2007 11:12 AM

Last time I looked, it was the code at the end of index.php. Also, look at the comments, as most vBulletin files are heavily commented.


All times are GMT. The time now is 02:25 AM.

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.01133 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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