The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#12
|
|||
|
|||
oops my mistake, I copied it wrong.
It's <?php require("global.php"); ?> |
#13
|
|||
|
|||
ok.. the parse errors seems to be coming from these files
<!-- Change 'admin' to the admin's name --> anything with <!-- blah --> If they are inside the <?php ?> part you should use " // " style comments.. if they are in the html part you can use the <!-- --> style.. I am still testing this |
#14
|
|||
|
|||
nevermind.. I am blind as a bat... but I am working on fixing it
|
#15
|
|||
|
|||
Ok.. I don't know where your contest.php file is located... or anything, but take a look at this attachment.
if the contest.php and global.php are in the same folder (i.e. both in the vb folder) then delete the top require global and the other 2 code lines and replace that with this : <?php require("global.php"); ?> |
#16
|
|||
|
|||
Brad thanks for helping me out.
I do have them both in the same directory. http://www.theparentclub.com/forums/contest.php Not working, but I'm still trying. |
#17
|
|||
|
|||
I can't get it to work
I even copied and pasted the code exactly the way you did it and it gave me an error regarding the chdir. Please help me |
#18
|
|||
|
|||
<?php
chdir($DOCUMENT_ROOT . "/vb"); require("./global.php"); chdir($DOCUMENT_ROOT . "/vb/anotherfolder"); ?> take that and make it into this.. <? require('./global.php'); ?> btw... if it still says /vb and /vb/anotherfolder.. those values have to changed.. but you don't need it if they are in the same directory |
#19
|
|||
|
|||
This is what I have so far (still not working):
<require('./global.php');> <html> <head> <!-- put any include Styles in here --> <!-- This is mine: --> <?php require '/home/theparentclub/www/style.html'; ?> <title>The Parent Club Post Contest</title> </head> <body> <?php $date1 = "UNIX_TIMESTAMP(\"2001-08-01\")"; $date2 = "UNIX_TIMESTAMP(\"2001-08-31\")"; $users = $DB_site->query( "SELECT post.userid, count(post.userid) as count, user.username from " . "post, user WHERE post.dateline >= $date1 and post.dateline <= $date2 " . "and post.userid = user.userid and user.username <> 'admin' group ". "by post.userid order by count DESC"); $admin = $DB_site->query( "SELECT post.userid, count(post.userid) as count, user.username from " . "post, user WHERE post.dateline >= $date1 and post.dateline <= $date2 " . "and post.userid = user.userid and user.username = 'admin' group ". "by post.userid order by count DESC"); ?> <!-- Put your header in here --> <!-- This is mine --> <? include("/home/theparentclub/www/menu.html") ?> <p><a href="./"><img border="0" src="images/bbtitle.gif" width="420" height="85"></a></p> <p align="center"><b><font face="verdana,arial,helvetica" size="2">The TOP THREE USERS who posts the most on-topic posts from August 1st, 2001 to Aug 31st 2001 will receive the following: TO BE ANNOUNCED. For residences in the U.S. and Canada.</font></b></p> <div align="center"> <table border="1" cellpadding="4" cellspacing="4"> <tr> <td bgcolor="#9900CC"><b><font face="verdana,arial,helvetica" color="#FFFFFF" size="3">User</font></b></td> <td bgcolor="#9900CC"><b><font face="verdana,arial,helvetica" size="3"><font color="#FFFFFF">Posts from July 8th to Aug 8th</font></font></b></td> </tr> <tr> <td> <FONT face="verdana,arial,helvetica" size="2"> <br> <?php while ($user = $DB_site->fetch_array($users)) { $username = $user["username"]; echo"$username<br>"; } echo"<br>"; while ($user = $DB_site->fetch_array($admin)) { $username = $user["username"]; echo"$username<br>"; } ?> <br> </font> </td> <td align="center"> <FONT face="verdana,arial,helvetica" size="2"> <br> <?php $DB_site->data_seek(0,$users); while ($user = $DB_site->fetch_array($users)) { $count = $user["count"]; echo"$count<br>"; } echo"<br>"; $DB_site->data_seek(0,$admin); while ($user = $DB_site->fetch_array($admin)) { $count = $user["count"]; echo"$count<br>"; } ?> <br> </font> </td> </tr> </table> </div> <p> </p> <!-- Put any Footer info in here --> <!-- This Is Mine --> <?php include ("/home/theparentclub/www/menu.html"); include("/home/theparentclub/www/meter.html"); ?> </body> </html> |
#20
|
|||
|
|||
I edited it... since you looked
take just the global requirement and put the <? and ?> around it <? require('./global.php'); ?> |
#21
|
|||
|
|||
Now I'm beating my head against the desk.
I made the change and now the page comes up blank. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|