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)

Silviu 06-19-2008 07:11 PM

Quote:

Originally Posted by karim004 (Post 1553635)
yes silviu , works with all vb conditions

Well, the thing is that I'm trying to use the postbit_legacy ad location to show one ad code in a particular section and another for the rest of the forum (the ads are displayed as the last post in a thread).

So my code looks like this:

HTML Code:

<if condition="$forumid == 22">
<div align="left">
{first ad script}
</div>
<else />
{second ad script}
</if>

But the conditional doesn't work, and both ads are displayed everywhere :(

Later edit: I also tried <if condition="$thread['forumid'] == 22">, but it doesn't work either.

karim004 06-19-2008 07:33 PM

Quote:

Originally Posted by Silviu (Post 1553879)
Well, the thing is that I'm trying to use the postbit_legacy ad location to show one ad code in a particular section and another for the rest of the forum (the ads are displayed as the last post in a thread).

So my code looks like this:

HTML Code:

<if condition="$forumid == 22">
<div align="left">
{first ad script}
</div>
<else />
{second ad script}
</if>

But the conditional doesn't work, and both ads are displayed everywhere :(

Later edit: I also tried <if condition="$thread['forumid'] == 22">, but it doesn't work either.

you must edit ad_postbit_below if you want use the condition in postbit&postbit_legacy
just put the code in template ad_postbit_below betwen
<if condition="$thread['forumid'] == 22"> and </if>

Silviu 06-20-2008 03:58 AM

Quote:

Originally Posted by karim004 (Post 1553904)
you must edit ad_postbit_below if you want use the condition in postbit&postbit_legacy
just put the code in template ad_postbit_below betwen
<if condition="$thread['forumid'] == 22"> and </if>

So the end result would be:

HTML Code:

<td class="alt1" align="center">
<if condition="$thread['forumid'] == 22">
<div align="left">
{first ad script}
</div>
<else />
                $postbit_ad
</if>
</td>

?

Keyser S?ze 06-20-2008 05:06 AM

for postbit & postbit_legacy you have the ability to set more permissions like :

could you also make it to have it set after random post?

:Judge: 06-20-2008 08:07 AM

Thank you very much karim004 for sharing this add-on. Your hard work and generosity is most appreciated!

I do have a question on selecting an advert unique to a page much like Silviu here..

Quote:

Originally Posted by Silviu (Post 1553879)
Well, the thing is that I'm trying to use the ad location to show one ad code in a particular section and another for the rest of the forum.

It would be realy nice to use a unique advert in the navbar between vBA Index, Arcade and classifieds. Is there an easy way to use a condition for a page?

Another idea is the option to exclud forum areas like private staff areas would be nice to. Again that's just an idea not a request. :)

srkrocks 06-21-2008 11:11 AM

Installed..Thanks!

Juel 06-21-2008 12:11 PM

Hi all, i just installed this on my v3.7 and it dosent work at all..
Why are the instructions for this so poor?
All i get is a error:
theslide has no properties
[Break on this error] if (theslide[1]!="")
In forum line 384.

what is this? and no matter what i click to on, no adds appeare..

Adam21 06-22-2008 06:31 AM

Uninstalling this mod will delete several default templates you have.BE AWARE!!!

Juel 06-22-2008 01:56 PM

I just get a error in my forum.. No adds at all just an error... i have followed the howto for the 3.7 version..

JirQUEST 06-22-2008 04:46 PM

I am having issues with the header and footer ads. They don't show at all. Tried whatever has been suggested in this thread to no avail.


All times are GMT. The time now is 11:02 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.01426 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_html_printable
  • (4)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