![]() |
dumb phpinclude error
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 |
You're not escaping any of the quotes.
|
or in easier words:
change PHP Code:
PHP Code:
|
THanks, i'll try that and give you an update.
|
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? |
Make sure you're logged out. Also use $bbuserinfo['usergroupid'], not $bbuserinfo[usergroupid] which is deprecated.
|
Quote:
Edit: Tried it and it didn't fix anything. my url is http://www.blindedstorms.com , the block is in the lower left. |
in the php make sure you eval the template...
ie: PHP Code:
regards, g-force2k2 |
You don't have to eval it, especially because there are no replacements or variables in it from what I can see.
|
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.
|
I wouldn't do it, eval'ing templates in phpinclude add queries.
|
@filbie: not the eval produces the query, it's the gettemplate.
if you want to use a template from within phpinclude you should add it to $templatecache in global.php |
That's what I meant by adding a query (i.e., eval'ing a template) :)
|
Quote:
and whats phpinclude :rolleyes: its the most effective way that i can see... i don't think its working because he's using single quotes... instead he should escape all of the double quotes imo... g-force2k2 |
Knock yourself out: http://www.vbulletintemplates.com/mo...?threadid=3271
|
All times are GMT. The time now is 02:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|