The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Trying to figure out correct syntax
I've got an old phpAds setup that has always worked well so I've stuck with it throughtout phpAds progression to OpenAds and now to OpenX. Anyhow, I've never tried to put an ad into the postbit but I'd now like to do so for guests -- and for more information I use the legacy postbit.
Generally, I just throw $phpAds_raw[html] where I want the ad to show up and move on. However, I threw it into the postbit_legacy template and it just comes up blank. In using the search engine, I've found that you need to use $GLOBALS[] when using postbit_legacy, however, I cannot seem to figure out the correct syntax to get the ad to appear. $GLOBALS[phpAds_raw] returns "Array" but it needs to have that [html] on the end in order to serve the ad. Is there a way to double bracket? Does anyone have any insight on this? |
#2
|
|||
|
|||
PHP Code:
|
#3
|
|||
|
|||
Tried it... it just returns Array[html]
--------------- Added [DATE]1204910490[/DATE] at [TIME]1204910490[/TIME] --------------- Disregard... I've figured it out. I created a new plugin at postbit_display_complete and entered global $phpAds_raw4; into it. Doing so allowed me to use my standard $phpAds_raw4[html] verbage in the template. |
#4
|
|||
|
|||
Oh whoops you could try:
PHP Code:
|
#5
|
||||
|
||||
In templates, you can only use one level of addressing arrays. To get around it, you need to use braces (which Opserty has posted as a fix).
|
#6
|
||||
|
||||
I cant get this to work. Im using this in a plugin
PHP Code:
|
#7
|
|||
|
|||
It could be do with the script, you should test the output separately as well.
Try: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|