vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   A question for the great and allmighty god-like SaintDog... (https://vborg.vbsupport.ru/showthread.php?t=83834)

BlueVoltage 07-15-2002 02:25 PM

A question for the great and allmighty god-like SaintDog...
 
Can you please explain exactly how you added the forum stats under the nav bar?

http://www.bluevoltage.com/question.gif

BlueVoltage

dmjof 07-15-2002 03:31 PM

I think in the header cell, under the "<!--toplinks-->" part, put like, "<tr>"
and then "<td> etc." and make it a certain width then make the background image that size and put it in and then put the "Members: code" in there.

BlueVoltage 07-15-2002 04:00 PM

can someone give me a code example?

dmjof 07-15-2002 04:47 PM

<!-- toplinks -->
<a href="usercp.php?s=$session[sessionhash]"><img src="images/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>
<a href="register.php?s=$session[sessionhash]&action=signup"><img src="images/top_register.gif" alt="Registration is free!" border="0"></a>
<a href="calendar.php?s=$session[sessionhash]"><img src="images/top_calendar.gif" alt="Calendar" border="0"></a>
<a href="memberlist.php?s=$session[sessionhash]"><img src="images/top_members.gif" alt="Find other members" border="0"></a>
<a href="misc.php?s=$session[sessionhash]&action=faq"><img src="images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
<a href="search.php?s=$session[sessionhash]"><img src="images/top_search.gif" alt="Search" border="0"></a>
<a href="index.php?s=$session[sessionhash]"><img src="images/top_home.gif" alt="Home" border="0"></a>
<!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img src="images/top_logout.gif" alt="Logout" border="0"></a> -->
&nbsp;
<!-- /toplinks -->

Then after it put:

</td></tr>
<tr>
<td background="images/yourbackgroundimage.gif" width="blah" height="blah">
TEXT/CODE HERE
</tr></td>

Then leave the rest of the code. That should work, haven't tried it though so not sure.

BlueVoltage 07-15-2002 05:04 PM

I know how to insert text into a table, I just want to know how to insert
members threads posts

like on this page^

dmjof 07-15-2002 06:51 PM

Members: $numbermembers Threads: $totalthreads Posts: $totalposts

SaintDog 07-15-2002 06:54 PM

All that you need to do is take the variables from the forumhome template and cut and paste basically. You open your forumhome template, find the stats section, and move it to the header.

I would post full instructions here, but for what has been done here, it requires a small bit of code hacking (of index.php). If you will look at vBulletin.org and find FireFly's hack that allows you to move the number of members online to the header, you will find out how I did this as well.

I would release it but there is no sense in releasing basically the same hack twice ;).


All times are GMT. The time now is 08:19 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.01766 seconds
  • Memory Usage 1,720KB
  • 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
  • (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