The Arcive of vBulletin Modifications Site. |
|
dumb phpinclude error Details »»
|
||||||||||||||||||||||||||
Well, i'm trying to make a quick registration hack (yeah, i know, it's probably been already made), and i see get an error when i put this in my phpinclude:
PHP Code:
Quote:
Thanks in advance! -Cyber Show Your Support
|
||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
You're not escaping any of the quotes.
|
|
#3
|
||||
|
||||
|
or in easier words:
change PHP Code:
PHP Code:
|
|
#4
|
|||
|
|||
|
THanks, i'll try that and give you an update.
|
|
#5
|
|||
|
|||
|
okay, the error seems to be fixed, but the variable won't show. I put in $quickreg in a portal-block thing, and all that shows up is $quickreg, not all the stuff. I have it as any html block. Any idea what i do?
If it's something like make a new template for the portal-home block, how would i do that and what would i do exactly? |
|
#6
|
|||
|
|||
|
Make sure you're logged out. Also use $bbuserinfo['usergroupid'], not $bbuserinfo[usergroupid] which is deprecated.
|
|
#7
|
|||
|
|||
|
Quote:
Edit: Tried it and it didn't fix anything. my url is http://www.blindedstorms.com , the block is in the lower left. |
|
#8
|
|||
|
|||
|
in the php make sure you eval the template...
ie: PHP Code:
regards, g-force2k2 |
|
#9
|
|||
|
|||
|
You don't have to eval it, especially because there are no replacements or variables in it from what I can see.
|
|
#10
|
|||
|
|||
|
I guess i could try the eval thing, but what would the template name be? I'm just putting the variable in a box on the left side of the portal.
|
![]() |
|
|