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)

HellRZR 04-18-2012 10:14 PM

Quote:

Originally Posted by pvelkov (Post 2310604)
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!

Very Nice!!! Thanks

J.kay 12-22-2012 04:51 PM

and if i chose to esclude for certain forum id?

AND !in_array($foruminfo['forumid'], array(714,12,14,18))

this not working


All times are GMT. The time now is 03:41 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.01136 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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