vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Adsense Integration as second post - StarBuG optimized blending (https://vborg.vbsupport.ru/showthread.php?t=249052)

StarBuG 10-26-2010 07:11 PM

Of course it did

vB Conditions are easy once you understand them ;)

FReeSTER 10-27-2010 10:48 AM

Quote:

Originally Posted by StarBuG (Post 2114580)
just remove AND $show['member']

Thank you mate, great mod and the best support.

Any ideas how can I do to add this mod to show per every 5 posts instead of the second post only?

SİMAR 01-09-2011 09:59 PM

Thanks super man

Winter Sonata 01-16-2011 09:25 PM

As always, that works like a charm

cakeforums 07-20-2011 10:30 PM

installed works great... thank you

BlueCheri 07-21-2011 07:19 AM

Interesting, tagged.

needtheend 10-24-2011 08:42 PM

working on 4.1.7

thompson 12-21-2011 07:35 AM

thanks for that.

is there a chance to get it centered ?

pvelkov 03-13-2012 06:53 PM

Just modified my 4.1.10. I've improved the design of the "post" so it looks like a real one - with Google's avatar, a user called "Google AdSense" with rank "Ads from Google". It even has registration date and location :)

If anybody's interested - send me a PM, because most probably I won't follow this thread.

pvelkov 03-18-2012 11:16 AM

1 Attachment(s)
I think it's easier to publish the code here then answer each PM individually.

As an attachment you can find a screenshot of the platform where I made the modification.

You can see working example (in Bulgarian, unfortunately) on this page.

The installation process remains the same, except of the code:


Code:

<vb:if condition="$post['isfirstshown'] AND $show['guest']">
<ul>
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->

    <div class="posthead">
        <span class="postdate old"><span class="date"><a href="register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></span><span class="nodecontrols">#0</span>
    </div>

    <div class="postdetails">
        <div class="userinfo">
            <div class="username_container">
             
                <div class="popupmenu memberaction">
                    <a class="username online popupctrl" href="register.php" title="Register now and stop seeing ads!"><strong>Google AdSense</strong>&nbsp;</a>
                </div>

                <img class="inlineimg onlinestatus" src="images/statusicon_custom/user-online.png" alt="Google is online" border="0" title="Google is online">
            </div>

            <span class="usertitle">Advertising from Google</span>

            <a class="postuseravatar" title="Google is online"><img src="images/google.png"  alt="Advertising from Google" title="Advertising from Google" /></a>

            <hr>
            <dl class="userinfo_extra">
        <dt>Joined in</dt>
        <dd>Dec 2007</dd>
        <dt>Address</dt>
        <dd>Google.com</dd>
        </dl>
           
        </div>
        <div class="postbody">
          <br />
          &nbsp;&nbsp;<!- Your Google Adsense Code with any size -->
        <div class="cleardiv"></div>
        </div>
    </div>
        <div class="postfoot">
            <div class="textcontrols floatcontainer">
                <span class="postcontrols">&nbsp;</span>
            </div>
        </div>
    <hr />
</li>
</ul>
</vb:if>


The code in red you may change/adapt to your needs.


Good luck!


All times are GMT. The time now is 07:42 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.01091 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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