PDA

View Full Version : A question for the great and allmighty god-like SaintDog...


BlueVoltage
07-15-2002, 03:25 PM
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, 04: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, 05:00 PM
can someone give me a code example?

dmjof
07-15-2002, 05: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, 06: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, 07:51 PM
Members: $numbermembers Threads: $totalthreads Posts: $totalposts

SaintDog
07-15-2002, 07: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 ;).