vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Advertisement System V2.6 Aka Ad Management (https://vborg.vbsupport.ru/showthread.php?t=179083)

karim004 11-13-2008 01:30 PM

Quote:

Originally Posted by ShiZoPhreN (Post 1664056)
Thanks for this Add-On

Feature-Request:

Excludes ForumIDs

next week

karim004 11-13-2008 01:34 PM

Quote:

Originally Posted by xthecanadianx (Post 1663969)
how do i make it so that the banners in the "sponsors" box rotate?
i do not want them to stack in seperate tables. i like the look of the
sponsors box, but they dont rotate. thanks!

rotation= adcodes separated by |
demo :
Code:

google adsense code
|
yahoo script
|
<a href="link1"><img src="banner1"></a>
|
<a href="link2"><img src="banner2"></a>


karel1985 11-14-2008 11:18 AM

Hi Karim,

i'm still using the admanagment, today i tried to install this one.

Now for the moment i use banners in postbit example:

http://www.pc-helpforum.be/f16/verni...-partner-5559/

the blocks 'ook interessant' shows the banners.

Now i use Openads so my clients can change their banners themselfs. Now this is the code i use in admanagment and it works. But when i add it in this system it doensn't show up, only the last banner (no openads) is shown. The delimiter here was a |

Code:

<!--/* Pc Helpforum Adverteersysteem Javascript Tag v2.4.7 */-->

<script type='text/javascript'><!--//<![CDATA[
  var m3_u = (location.protocol=='https:'?'https://www.pc-helpforum.be/ads2008/www/delivery/ajs.php':'http://www.pc-helpforum.be/ads2008/www/delivery/ajs.php');
  var m3_r = Math.floor(Math.random()*99999999999);
  if (!document.MAX_used) document.MAX_used = ',';
  document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
  document.write ("?campaignid=2&amp;what=bannerid:4&amp;source=www.i-reclame.com&amp;target=_blank&amp;withtext=1");
  document.write ('&amp;cb=' + m3_r);
  if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
  document.write ("&amp;loc=" + escape(window.location));
  if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
  if (document.context) document.write ("&context=" + escape(document.context));
  if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
  document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://www.pc-helpforum.be/ads2008/www/delivery/ck.php?n=a75b0174&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.pc-helpforum.be/ads2008/www/delivery/avw.php?campaignid=2&what=bannerid:4&source=www.i-reclame.com&n=a75b0174' border='0' alt='' /></a></noscript>
|
<a href="http://www.pc-helpforum.be/club" target="_blank"><img src="http://www.pc-helpforum.be/afbeeldingen/promo-club2.jpg" alt="pchclub" width="728" height="90" border="0" /></a>

my 2nd question, does the rotation works with this code above?

thanks,

Karel

karim004 11-14-2008 02:43 PM

Quote:

Originally Posted by karel1985 (Post 1665484)
Hi Karim,

i'm still using the admanagment, today i tried to install this one.

Now for the moment i use banners in postbit example:

http://www.pc-helpforum.be/f16/verni...-partner-5559/

the blocks 'ook interessant' shows the banners.

Now i use Openads so my clients can change their banners themselfs. Now this is the code i use in admanagment and it works. But when i add it in this system it doensn't show up, only the last banner (no openads) is shown. The delimiter here was a |

Code:

<!--/* Pc Helpforum Adverteersysteem Javascript Tag v2.4.7 */-->

<script type='text/javascript'><!--//<![CDATA[
  var m3_u = (location.protocol=='https:'?'https://www.pc-helpforum.be/ads2008/www/delivery/ajs.php':'http://www.pc-helpforum.be/ads2008/www/delivery/ajs.php');
  var m3_r = Math.floor(Math.random()*99999999999);
  if (!document.MAX_used) document.MAX_used = ',';
  document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
  document.write ("?campaignid=2&amp;what=bannerid:4&amp;source=www.i-reclame.com&amp;target=_blank&amp;withtext=1");
  document.write ('&amp;cb=' + m3_r);
  if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
  document.write ("&amp;loc=" + escape(window.location));
  if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
  if (document.context) document.write ("&context=" + escape(document.context));
  if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
  document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://www.pc-helpforum.be/ads2008/www/delivery/ck.php?n=a75b0174&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.pc-helpforum.be/ads2008/www/delivery/avw.php?campaignid=2&what=bannerid:4&source=www.i-reclame.com&n=a75b0174' border='0' alt='' /></a></noscript>
|
<a href="http://www.pc-helpforum.be/club" target="_blank"><img src="http://www.pc-helpforum.be/afbeeldingen/promo-club2.jpg" alt="pchclub" width="728" height="90" border="0" /></a>

my 2nd question, does the rotation works with this code above?

thanks,

Karel

to fix the prb remove
Code:

<!--/* Pc Helpforum Adverteersysteem Javascript Tag v2.4.7 */-->
here is you adcode { and yes the rotation works with any script ! }
Code:

<script type='text/javascript'><!--//<![CDATA[
  var m3_u = (location.protocol=='https:'?'https://www.pc-helpforum.be/ads2008/www/delivery/ajs.php':'http://www.pc-helpforum.be/ads2008/www/delivery/ajs.php');
  var m3_r = Math.floor(Math.random()*99999999999);
  if (!document.MAX_used) document.MAX_used = ',';
  document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
  document.write ("?campaignid=2&amp;what=bannerid:4&amp;source=www.i-reclame.com&amp;target=_blank&amp;withtext=1");
  document.write ('&amp;cb=' + m3_r);
  if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
  document.write ("&amp;loc=" + escape(window.location));
  if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
  if (document.context) document.write ("&context=" + escape(document.context));
  if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
  document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://www.pc-helpforum.be/ads2008/www/delivery/ck.php?n=a75b0174&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.pc-helpforum.be/ads2008/www/delivery/avw.php?campaignid=2&what=bannerid:4&source=www.i-reclame.com&n=a75b0174' border='0' alt='' /></a></noscript>
|

<a href="http://www.pc-helpforum.be/club" target="_blank"><img src="http://www.pc-helpforum.be/afbeeldingen/promo-club2.jpg" alt="pchclub" width="728" height="90" border="0" /></a>

check the attach picture for demo

karel1985 11-14-2008 02:54 PM

Great, i will uninstall that other one and install this one,
I will let you know if it works

Best regards,

Karel

xthecanadianx 11-14-2008 08:37 PM

Quote:

Originally Posted by karim004 (Post 1664864)
rotation= adcodes separated by |
demo :
Code:

google adsense code
|
yahoo script
|
<a href="link1"><img src="banner1"></a>
|
<a href="link2"><img src="banner2"></a>


Sponsors adcode
Paste the code for your sponsors here. This time, instead of separating random sets of advertisement code, your delimiter is used to create a table. Each section of advertisement code between delimiters is one table cell. You can use conditionals and phrases, but not shared adcode.

Examples:
<img src="one.jpg" /> | Two | <img src="three.jpg" /> | <img src="four.jpg" /> | Five | <img src="six.jpg" />

If your sponsors per row setting were 3, this would create a table of two rows.


I tried what you said and it still stacks? ^^^^ How do i change the above? i dont
want the ads in the "Sponsors" box to stack. i would like them to rotote. Thanks! :D

Bilderback 11-15-2008 11:38 PM

Great that someone finally ported this.
I read the first 10 pages before giving up so if someone asked this question already, I apologize.
Is there any reason that you are not utilizing the already default vbulletin ad hook locations?
It just seems a bit redundant to create your own ad variables when placing them at an already existent variable location
Code:

$ad_location[ad_header_end] === $ad_headerEnd
$ad_location[ad_header_logo] === $ad_headerLogo
$ad_location[ad_footer_start] === $ad_footerStart
$ad_location[ad_footer_end] === $ad_footerEnd
$template_hook[postbit_end] === $ad_postbit_below
$ad_location[ad_navbar_below] === $ad_leftcolumn_code
$ad_location[ad_footer_start] === $ad_rightcolumn_code

That would solve all template editing except for 3 being your forumbit and threadbit
but Im sure there may be a hook there also.
So you could simplify this Mod by using the default hook variables or by eval()
to hook each location with your own templates.
example:
PHP Code:

eval('$ad_location[ad_header_end] .= "' fetch_template('ad_headerEnd') . '";'); 

If you need help with template hooks and hook locations for plugins, you can PM me.

jhightman 11-16-2008 04:39 AM

Hi Karim,

what do I edit to change the width of the iframe? Any reason for putting this into an iframe? I am trying to get a file to show in my header but the default width of the iframe is busting my design.

Thanks!

appsfinder 11-16-2008 11:17 AM

cannot get these links to work

Forumbit Threadbit & Full page

please can you help:(

allso how can i ads to the register page

appsfinder 11-16-2008 01:40 PM

Quote:

Originally Posted by Quantnet.org (Post 1599621)
How do I get this to work with VBAdvanced?

i need this too any help?


All times are GMT. The time now is 08:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01854 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete