The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
.. I need help about Non VB Pages.. lol
Ookay..So I know thier is a lot of posts about this..but noone seems to be helping.
I need to be able to post : Number of People REGISTERED on the Forums and then the Number of Threads and the number of posts.. Not TOP ten Posts..or anything offered in VB External.. any help? |
#2
|
||||
|
||||
well first u'll need to include global.php. if you are not going to include global.php because u want it completely separate from vb then u make this 100x then it could be. anyways once in u include/require global.php just put this code in:
PHP Code:
for member number and newest members use this code: PHP Code:
|
#3
|
||||
|
||||
Omg Thanks Dude..Like times ten and I apprecite your time
arg.. okay IM getting this error.. Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/.navy/loathor/squaresyndicate.com/forums/global.php on line 18 Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/local/lib/php') in /home/.navy/loathor/squaresyndicate.com/forums/global.php on line 18 what is up? PHP Code:
PHP Code:
|
#4
|
||||
|
||||
Um anyone want to help me in why I get this error? I didnt know this was going to be soo ++++ing difficult!
|
#5
|
|||
|
|||
You should always first change to the directory containing your forum (in 3.0.x):
PHP Code:
|
#6
|
||||
|
||||
Quote:
|
#7
|
|||
|
|||
Difficult to answer, without seeing all your script.
|
#8
|
||||
|
||||
Code:
<table width="145" cellpadding="0" cellspacing="0" border="0"> <tr> <td background="images/forum_tip.gif" height="18"> <img src="images/savepoint.gif"> </td> </tr> <tr> <td background="images/link_middle.gif"> <?php chdir('./forums'); require_once('./global.php'); ?> <?php require_once('./includes/functions_forumlist.php'); cache_ordered_forums(1, 0, 0); if (is_array($forumcache)) { foreach ($forumcache AS $forum) { $nthreads += $forum['threadcount']; $nposts += $forum['replycount']; $totalthreads = vb_number_format($nthreads); $totalposts = vb_number_format($nposts); } } ?> <font face="tahoma" color="FFFFFF" size="1"> <center> </center> </td> </tr> <td> <img src="images/link_bottom_tip.gif" height="18"> </td> </tr> </table> This is were I put it in.. and its just a blank box.. http://www.squaresyndicate.com <-- look thier if you want the hole code..but you cant see the PHP obviously.. woah woah woah woah woah... Know Im getting: Unable to add cookies, header already sent. File: /home/.navy/loathor/squaresyndicate.com/index.php Line: 1 wtf?????W?WW??W?? PHP Code:
|
#9
|
||||
|
||||
Include global.php prior to any output.
|
#10
|
||||
|
||||
Alrighty.. Ive Included <-- Global..not just Rquired it..and Im still getting a blank table.. with the code Above.. this is the code on top:
PHP Code:
Code:
<table width="145" cellpadding="0" cellspacing="0" border="0"> <tr> <td background="images/forum_tip.gif" height="18"> <img src="images/savepoint.gif"> </td> </tr> <tr> <td background="images/link_middle.gif"> <?php require_once('./includes/functions_forumlist.php'); cache_ordered_forums(1, 0, 0); if (is_array($forumcache)) { foreach ($forumcache AS $forum) { $nthreads += $forum['threadcount']; $nposts += $forum['replycount']; $totalthreads = vb_number_format($nthreads); $totalposts = vb_number_format($nposts); } } ?> <font face="tahoma" color="FFFFFF" size="1"> <center> </center> </td> </tr> <td> <img src="images/link_bottom_tip.gif" height="18"> </td> </tr> </table> MY GOD white screen same error.. " Header Already Sent.." anyone help? bumpbump can anyone else help!? why em I getting this error? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|