The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Horoscope: Why won't it work?
I'm trying to port over the horoscope hack (for my own personal use, not releasing it as I don't have permission), and everything is fine except I can't figure out why it's not reading from the database correctly.
I've got the cron working correctly and the data is sitting there in the database, but zodiac.php just isn't reading it correctly. Here's zodiac.php: PHP Code:
|
#2
|
||||
|
||||
Ugh, what a horrible set of if's
What do you mean by "but zodiac.php just isn't reading it correctly" - what result do you get exactly ? |
#3
|
||||
|
||||
Sorry for being vague LOL, PHP isn't my strong point
The page is supposed to display a list of Zodiac signs, which it does. When I click on one of them, say "Capricorn" (zodiac.php?do=capricorn) it gives me: "There appears to be a problem with the database. The capricorn weekly horoscope can't be retrieved at this time. Please check back later." The data is in the table though, I'm looking at it right now. (screenshot attached) Here's a link to the original zodiac hack. If it matters, this is the install code I'm using for the vBulletin product: PHP Code:
|
#4
|
||||
|
||||
above the line /* Stuff */ add a temp line that says ;
Code:
echo "DO = ".$do; exit; |
#5
|
||||
|
||||
It just says "DO = "
|
#6
|
||||
|
||||
Thought it might;
try this test ; Code:
echo "DO = ".$vbulletin->GPC['do']; exit; |
#7
|
||||
|
||||
Same exact thing, LOL
"DO = " |
#8
|
||||
|
||||
Yeah, i'm sure 3.5 does some processing with the POST & GET variables now as part of loading global.php, but I can't remember exactly what, and I don't have the code in front of me.
You can probably fudge it by moving PHP Code:
PHP Code:
|
#9
|
||||
|
||||
Moving the code like you suggested results in a blank page, so that method won't work I guess
Thank you so much for your help so far though, Paul. It's very much appreciated. |
#10
|
||||
|
||||
Quote:
Anyway, from memory, in the original code posted above, try changing PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|