The Arcive of vBulletin Modifications Site. |
|
Details »»
|
||||||||||||||||||||||||||
hi, i installed this hack, everthing went fine until i press preview e-mail and i get this:
Quote:
Show Your Support
|
||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
In commbull.php
Search for SUBSTRING(birthday,6) The string there probably reads... $DB_Site->query("SELECT userid,username,birthday FROM user WHERE SUBSTRING(birthday,6)>='11-29' AND SUBSTRING(birthday,6)<='12-13' ORDER BY SUBSTRING(birthday,6) LIMIT 0,10"); It should be $DB_Site->query("SELECT userid,username,birthday FROM user WHERE ".SUBSTRING(birthday,6).">='11-29' AND ".SUBSTRING(birthday,6)."<='12-13' ORDER BY ".SUBSTRING(birthday,6)." LIMIT 0,10"); Mind you, I've never seen this script, but that's what appears to be the problem and solution to me. |
|
#3
|
|||
|
|||
|
i changed that m8, and now it displays this
Fatal error: Call to a member function on a non-object in /home/sites/site4/web/forums/admin/commbull.php on line 722 which is the line i just changed ? but its not as bad an error as i was getting lol |
|
#4
|
||||
|
||||
|
Is
global $DB_site; in there somewhere? |
|
#5
|
|||
|
|||
|
[QUOTE]Originally posted by Palmer ofShinra
In commbull.php Search for SUBSTRING(birthday,6) The string there probably reads... $DB_Site->query("SELECT userid,username,birthday FROM user WHERE SUBSTRING(birthday,6)>='11-29' AND SUBSTRING(birthday,6)<='12-13' ORDER BY SUBSTRING(birthday,6) LIMIT 0,10"); It should be $DB_Site->query("SELECT userid,username,birthday FROM user WHERE ".SUBSTRING(birthday,6).">='11-29' AND ".SUBSTRING(birthday,6)."<='12-13' ORDER BY ".SUBSTRING(birthday,6)." LIMIT 0,10"); Mind you, I've never seen this script, but that's what appears to be the problem and solution to me. |
![]() |
|
|