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)

mapleleaffans 06-27-2015 09:54 PM

Nice mod addition, thank you!

markoroots 11-23-2015 09:19 AM

Hi guys,
please is there some one that can tell me what is wrong in this code?
Thanks in advance.

PHP Code:

<vb:comment>Start of Innovative Ads After First Post</vb:comment>
<
vb:if condition="$show['guest'] OR $show['member']">
<
vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 1">
<
li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
    <
div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="http://www.sigarettaelettronicaforum.com/regolamento-rivenditori/regolamento-rivenditori-404/">ADS</a></span>
</
div>
<
vb:literal>
<
div style="text-align:center">
<
span><class="newWindow" target="_blank" href="" title="Vai al sito"><img style="border:0" src="images/banner/Banner1 SEF 728x90.png" alt="Spazio Banner 728x90" /></a></span><span>&nbsp;
</
div>
</
vb:literal>
</
vb:if> 
</
vb:if> 

<
vb:if condition="$show['guest'] OR $show['member']">
<
vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 5">
<
li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
    <
div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="http://www.sigarettaelettronicaforum.com/regolamento-rivenditori/regolamento-rivenditori-404/">ADS</a></span>
</
div>
<
vb:literal>
<
div style="text-align:center">
<
span><class="newWindow" target="_blank" href="" title="Vai al sito"><img style="border:0" src="images/banner/Banner1 SEF 728x90.png" alt="Spazio Banner 728x90" /></a></span><span>&nbsp;
</
div>
</
vb:literal>
</
div>
</
vb:if>
</
vb:if>

<
vb:if condition="$show['guest'] OR $show['member']">
<
vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 9">
<
li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
    <
div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="http://www.sigarettaelettronicaforum.com/regolamento-rivenditori/regolamento-rivenditori-404/">ADS</a></span>
</
div>
<
vb:literal>
<
div style="text-align:center">
<
span><class="newWindow" target="_blank" href="" title="Vai al sito"><img style="border:0" src="images/banner/Banner1 SEF 728x90.png" alt="Spazio Banner 728x90" /></a></span><span>&nbsp;
</
div>
</
vb:literal>
</
div>
</
vb:if>
</
vb:if>



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


markoroots 11-26-2015 09:38 AM

No one? :(

markoroots 12-04-2015 10:12 AM

Solved

Pardeep Bagga 02-07-2017 04:56 AM

This product is not compatible with version 4.2.3 of vBulletin. (Compatible starting with 4.0.0 Beta 3 / Incompatible with 4.2.3 and greater)

eroyka 06-08-2017 11:50 AM

Hello! I'm from Italy...
Help me. With a simple banner the mod run perfectly but whith any google advertising I recive this alert: The following error occurred when attempting to evaluate this template:
Unclosed Curly Brace Expression
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


Can you help me? Thanks!
Roy

eroyka 06-12-2017 10:02 AM

For insert the ads in last post, open the template postbit_legacy_ads_after_firstpost and find:

Code:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
Replace with:

Code:

<vb:if condition="$post['islastshown']">
That's all!
Roy

markoroots 02-06-2020 02:29 PM

Quote:

Originally Posted by Pardeep Bagga (Post 2581988)
This product is not compatible with version 4.2.3 of vBulletin. (Compatible starting with 4.0.0 Beta 3 / Incompatible with 4.2.3 and greater)

Yes it work also with the 4.2.5 version.

Download and open the file product-innovative_ads_after_firstpost-v4

and replace the line number "10" with this code:

PHP Code:

    <dependency dependencytype="vbulletin" minversion="4.2.5" maxversion="4.2.6" /> 

TheLastSuperman please don't forghet what you have promise us some years ago. :) We are still waiting. :)

PHP Code:

[B]What can you expect in the next version?[/B]

    
No template editsAds codes will be entered into the admin control panel area where the mod is currently enabled/disabled. If you have a custom style CSS changes will still be required if you notice any position issues etc

Great Mod. Thanks ;)


All times are GMT. The time now is 03:05 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.01315 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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