The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#72
|
|||
|
|||
I installed the hack and I have tried everything, but I can't get past this error. I can't find the problem anywhere.
Parse error: parse error in /home/teamacid/public_html/topposters.php3 on line 45 This is my topposters.php, all my files are .PHP3 so I changed this to .PHP3- Could this be the problem? <?php3 //..........Top X Posters v0.0.4..........\\ //......by Kevin (kevin@tubescan.com)......\\ // For vBulletin version 2, beta 3 // (c) 2001 Jelsoft Enterprises, Ltd. // vBulletin.com thread: http://www.vbulletin.com/forum/showt...threadid=12067 ///////////// CHANGE LOG ///////////// // // New in version 0.0.4 // -- Fixed alternating colors so they are horizontal, not vertical // -- Changed $path to $url and $path2 to $path to make variables easier // -- Added a seperate header row color // // New in version 0.0.3 // -- Added option to exclude admins from list of posters // // New in version 0.0.2 // -- Fixed a small bug with the path. // // New in version 0.0.1 // -- Released! // /////////// END CHANGE LOG /////////// //////// CONFIG EXPLANATION ////////// // // a] $maxposters > This is the number of posters you want to show. // b] $hc > The head row color. // c] $bc1 and $bc2 > These are the first and second alternating color. // d] $text and $link > Set the colors of the main text and the color of the links. Make sure this color is visible on both alternating colors. // e] $font > This is the font(s) to use for display. You can set specific fonts (e.g. Verdana, Arial, etc.) or general font-families (e.g. sans-serif, serif). // f] $fontsize > Set a point size for your font. Size 8 is about equivelant to <font size=1>. Anything below about 6 will basically be undreadable, so be careful. // g] $url > This is the URL to your board directory. This is not the path to config.php! Do not put a trailing slash, either. // h] $path > This *is* the path to your config.php file. This should include the /admin part. NO TRAILING SLASH! (May need a leading slash) // i] $admins > Set this to "1" to show admins on the list of top posters. Set this to "0" to NOT show admins on the list. // ////// END CONFIG EXPLANATION //////// /////////////// CONFIG /////////////// // $maxposters = "5"; // change this to the number of posters you want to show. for a top 10 listing, set it to 10, etc. $hc = "#999999"; // change to head row color. $bc1 = "#696969"; // change to first alternating color. $bc2 = "#5C5C5C"; // change to second alternating color. $text = "#FFFFFF"; // change to text color. $link = "#EEEEEE"; // change to link color. $font = "Verdana,Helvetica,sans-serif"; // change to fonts you want. use serif or sans-serif for general, or use specific fonts names. $fontsize = "8pt"; // change to font size you want. 8 is about the minimum; go up from there. 1 will not even show up. $url = "http://www.teamacid.org/forum/index.php3"; // path to your board files. (e.g. index.php, member.php, etc.) may need a starting slash. *do not* put an ending slash on! $path = "./admin"; // path to your config.php file. may need a starting slash. *do not* put an ending slash on! $admins = "1"; // change this to "0" to leave admins off the list of top posters. // ///////////// END CONFIG ///////////// require("$path/config.php3"); $db=mysql_connect($servername,$dbusername,$dbpassw ord) or die("Unable to connect to database"); mysql_select_db($dbname) or die("Unable to select database $dbname"); if ($admins == "1") { $exq = mysql_query("SELECT usergroupid FROM usergroup WHERE cancontrolpanel='1'"); $exr = mysql_result($exq,0,0); $exn = "WHERE usergroupid<>$exr"; } echo("<table border=0 cellpadding=4 cellspacing=0><tr><td align=\"center\" bgcolor=\"$hc\"><b style=\"color: $text; font-family: $font; font-size: $fontsize\"><i>Username</i></b></td><td align=\"center\" bgcolor=\"$hc\"><b style=\"color: $text; font-family: $font; font-size: $fontsize\"><i>Posts</i></b></td></tr>"); $postsresult = mysql_query("SELECT username,posts,userid FROM user $exn ORDER BY posts desc LIMIT 0,$maxposters") or die("Unable to complete query"); while ($topposters = mysql_fetch_array($postsresult)): if (($counter++ % 2) != 0) { $bc=$bc1; } else { $bc=$bc2; } echo("<tr><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text; font-family: $font; font-size: $fontsize\"><a href=\"$path/member.php3?&action=getinfo&userid=$topposters[userid]\" style=\"color: $link\">$topposters[username]</a></td><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text; font-family: $font; font-size: $fontsize\">$topposters[posts]</td></tr>"); endwhile; echo("</table>"); ?> |
#73
|
|||
|
|||
Well before you post it might help to findout what is line 45?
It looks like you don't have // around words so it is screwed up near the beginning. the <? <?php <?php3 I believe they all do the same thing, supposedly <?php3 was to let a programmer know that it was written in php3 code. |
#74
|
||||
|
||||
I've tried every combination I could think of to get the name link to work. Here's what I have in that section:
$url = "http://www.collegeteacher.org/forums"; $path = "./admin"; And it makes the name link to http://www.collegeteacher.org/admin/...info&userid=24 . I have tried using "./forums/admin", but then I get: Fatal error: Failed opening required './forums/admin/config.php' (include_path='.:/usr/local/lib/php') in /home/kilburn/public_html/forums/topposters.php on line 59 Any ideas: Debby Kilburn http://www.collegeteacher.org/ |
#75
|
|||
|
|||
Do what I did
make a new variable called url2 = "http://www.yourdomain.com/forumdirectory"; then look in the url part below for $url and add the 2 after it and it will work fine. |
#76
|
|||
|
|||
Pie'oh'pah's solution works great check out http://www.snakepages.com/forum
also for people getting a link to admin/member.php?blablabla find the line: Quote:
Quote:
|
#77
|
|||
|
|||
Quote:
Did you place the entire contents of tubedoggs hack into your index,php? What parts did you put in? Thanks Sarge |
#78
|
||||
|
||||
Any way to get this modified so it wouldn't display MODS either, just like it doesn't for admins? I'd really appreciate it.
|
#79
|
|||
|
|||
Could somebody PLEASE upload the topposters.php file as a text file so that I can use it please. For some reason when i try to open a php file my pc associates it with a programmes photo parade.
Tis doing my nut in but I can get round it if somebody could just post the code as a normal text file Thanks in advance |
#80
|
||||
|
||||
soceris,
rename the php file to .txt on your machine. Amy |
#81
|
|||
|
|||
sorry to be a pain but i've tries every method under the sun to do that already.
Its doing my nut as i really want this hack installed. help!!!!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|