vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Innovative Ads After First Post (Or any post!) (https://vborg.vbsupport.ru/showthread.php?t=249274)

TheLastSuperman 03-19-2014 12:29 AM

Quote:

Originally Posted by Teascu Dorin (Post 2173046)
This product is great but it seems is appearing for registered users and me as administrator also. Shouldn't be seen only by visitors /unregistered?

Thank you!

Quote:

Originally Posted by MYU (Post 2487567)
Same here, members do not see it but the mods/admin still do. I've tried my own code which works for other ad placements, it still shows for mods/admins?

Really good mod but it's starting to do my head in now. :(

The mod uses a template, in that template you define the <vb:if codes>

Here is the template:
Code:

<vb:comment>Start of Innovative Ads After First Post</vb:comment>
<vb:if condition="$show['guest'] OR $show['member']">
<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
        <div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="register.php">Register to remove these Ads!</a></span>
</div>
        <div class="postdetails" style="height:320px;">
<div style="margin-top:20px;"></div>
<div id="innovativeadspan">
<div id="innovativeadleft">
<vb:comment> Left Ad Code Below this Commented out line </vb:comment>
Left Ad Image/Code 1 needs to be placed here, no larger than 260 pixels in height.
<vb:comment> Left Ad Code Above this Commented out line </vb:comment>
</div>
<div id="innovativeadright">
<vb:comment> Right Ad Code Below this Commented out line </vb:comment>
Right Ad Image/Code 2 needs to be placed here, no larger than 260 pixels in height.
<vb:comment> Right Ad Code Above this Commented out line </vb:comment>
</div>
</div>
        </div>
</li>
</vb:if>
</vb:if>
<vb:comment>End of Ads After First Post</vb:comment>

What would you modify to make a change? This line:
Code:

<vb:if condition="$show['guest'] OR $show['member']">
To show it only to guests make it this:
Code:

<vb:if condition="$show['guest']">
:cool:

venomx 03-24-2014 06:02 AM

Getting ready to set up a vB site again. Would be great if this would only show if there was more than 2 posts in a thread..

I use to know how to do this... Guess I am going to have to learn all over again.

ramesh_umk3 03-24-2014 02:13 PM

for now you can refer this reply https://vborg.vbsupport.ru/showpost....8&postcount=74

venomx 03-24-2014 06:40 PM

Thanks!

cungchuctanxuan 08-02-2014 03:56 PM

Hi,
How do I change the background color?

markoroots 01-20-2015 02:45 PM

Hi SuperMan :) can you make a great thing for us all???
Superman never say no :) especially the last one. :D ;)
If you make a graphic interface to integrate the use of this plugin from the Admincp and add the possibility to decide where to add the banners, after the first post, after the second or the third, or each 3 posts more better...
I think you make one of the best mod on vb.org ;)

Know that be making this, will be a really great mod. ;)

Thanks for reading and blesses for you, others more if you do these implementations for us. :)

;)

Randhal007 01-24-2015 03:33 PM

Interesting mods
but I'm having problems when using on my site

markoroots 01-24-2015 04:59 PM

Is there a possibility to count clicks and impressions?

markoroots 02-11-2015 10:07 PM

Hi there, please how can I add only one banner of 728x90 in the box?
Thanks in advance.

markoroots 02-19-2015 09:00 AM

Quote:

Originally Posted by markoroots (Post 2537084)
Hi there, please how can I add only one banner of 728x90 in the box?
Thanks in advance.

Sorry...
I have found the answer in this thread. ;)

Only one thing...
I add this code like was explained:

<vb:comment>Start of Innovative Ads After First Post</vb:comment>
<vb:if condition="$post[postcount] == 1 OR $post[postcount] % 11 == 0">

<div class="postbit">
<h3 style="color: rgb(189, 189, 189); font-weight: bold;" class="posthead">&nbsp;&nbsp;Sponsored Links</h3>

<div align="center" style="padding:3px;" class="postbody">
<!-- Begin CigClick Network Code -->
<div style="text-align:center">
<script language="javascript"><!--//
var server_client_id = 1189;
var server_ad_channel = 1;
var server_publisher_channels = "";
var server_media_types = "hybrid";
var server_integrate_media_types = 0;
var server_ad_width = 728;
var server_ad_height = 90;
var server_ad_style = "728x90_as";
var server_code_version = "4";
var server_ad_color_border = "7E8AA2";
var server_ad_color_background = "F7FAE0";
var server_ad_color_headline = "7E8AA2";
var server_ad_color_body = "000000";
var server_ad_color_url = "666EBA";
var server_ad_random = 1;
//--></script>
<script type="text/javascript" src="http://adsby.cigclick.com/ads/display_ads.php">
</script>
<!-- End CigClick Network Code -->

</div>

</vb:if>
<vb:comment>End of Ads After First Post</vb:comment>


but in this way all the posts after the first are all visualized in a wrong way,
so I think that I make wrong something in the code.

Can someone help me please?

Thanks in advance.


All times are GMT. The time now is 10:29 AM.

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.01287 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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