PDA

View Full Version : openx with vb4


helmica
01-03-2010, 06:16 PM
hi all,
how to add openx ads inside vb4?

regards

saad

TheHeartSmasher
01-04-2010, 01:48 PM
Copy the code that openx gives you and input it into any template you want manually or add it to one of the pre-positioned areas in the advertising section in the admincp. Don't forget to do it like this:


<vb:literal>
AD CODE GOES HERE
</vb:literal>

helmica
01-06-2010, 11:12 AM
i put the openx code like this and not work please help

<vb:literal>
<?
if (@include(getenv('DOCUMENT_ROOT').'/open/phpadsnew.inc.php')) { if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('zone:1329', 0, '', '_top', '0', $phpAds_context); echo $phpAds_raw['html']; }
?>
</vb:literal>

MOGmartin
01-06-2010, 04:04 PM
i put the openx code like this and not work please help

<vb:literal>
<?
if (@include(getenv('DOCUMENT_ROOT').'/open/phpadsnew.inc.php')) { if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('zone:1329', 0, '', '_top', '0', $phpAds_context); echo $phpAds_raw['html']; }
?>
</vb:literal>

you need to put the advert code in the vb:literal tags, nothing else...

ragtek
01-06-2010, 04:26 PM
If you want to use the php code, you have to create a plugin, register the variable to the templates, where you want to show it and to put it into the templates

obmob
01-06-2010, 04:36 PM
use the script, at least i used it like that and worked fine :p

helmica
01-20-2010, 05:26 AM
If you want to use the php code, you have to create a plugin, register the variable to the templates, where you want to show it and to put it into the templates
hi
thank for your reply to me

how to register the variable to the templates?

thanks in advance for your help

ragtek
01-20-2010, 11:30 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=228078" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=228078</a>

helmica
01-26-2010, 01:08 PM
https://vborg.vbsupport.ru/showthread.php?t=228078
hi
thanks for your reply to me
i am not very good on that story
can you explain to step by step, how to add openx ads on vb4?

i hope you continue help me

regards

helmica

obmob
01-27-2010, 06:20 PM
Hmm... how about a replacement variable?

Get your script code and add it to the replacement variable, then use that varibale and add it in your style. :)

Bouncer222
01-27-2010, 11:55 PM
This might be kinda unrelated... but I downloaded openx once and installed it and all.. but to tell you the truth, I am really confused on openx's real purpose... I have ALREADY read all about it on their site...

Anyone care to share a better description of what it is for? I know its for ads.. but what exactly is it's job?

Thanks.

obmob
01-28-2010, 03:11 AM
It is to manage ads, but also to share the service with other persons, you can have multiple adverstisers, different campaings. It is quite complex, but it is really useful once you find out how it works :p