The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I'll repeat... Please use the html/php tags. It is very difficult to read code when you don't use those. They are right here in the Quick Reply box - very easy to use. I don't care about your original code, I just want to see the code in your plugin. And, again, I'll repeat that you should be putting the *variable* name into a template. You CANNOT use php in a template, which means you CANNOT do an echo statement. You need to simply put the variable in there - and I would NOT name it php (I don't know that that variable named is reserved, but it sounds like it should be).
|
#12
|
|||
|
|||
Quote:
i thought you were not suppose to use php or html in the plugins?. again, i simply use vb 3.8.1 and set up a plugin called currency using vbulletin and global_start as the hook i guess and inserted this code below only: PHP Code:
HTML Code:
<td align="$stylevar[right]" id="header_right_cell"> <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if> </td> <td> <center> 1 USD = PHP $php </center> </tr> </table> </fieldset> --------------- Added [DATE]1242104548[/DATE] at [TIME]1242104548[/TIME] --------------- its working now. lol. not sure what was wrong before but in the future, is there a better hook to use than global_start or does it matter? or should you create your own hook? how hard is that? |
#13
|
||||
|
||||
When I was talking about the php/html tags, I'm talking about the tags on this site (that you used to surround your code in your last post). Thank you - it's much easier to read.
This is the line I think you may want to rename your variable in: PHP Code:
HTML Code:
<td> <center> 1 USD = PHP $php </center> </tr> </table> Are you only trying to show this on the forumhome (index.php) page? I would pick a plugin that is just on that page, if so - forumhome_start maybe. |
#14
|
|||
|
|||
You should rename $php to something like $currency_php or similar. As Lynne suggested, $php is confusing because PHP is also the language you're coding in.
As far as hook location goes, I'd go with forumhome_start (as Lynne also suggested) or if you need it on every page, global_complete. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|