vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Ads in Memberinfo (https://vborg.vbsupport.ru/showthread.php?t=222934)

Kolbi 09-10-2009 10:00 PM

Ads in Memberinfo
 
1 Attachment(s)
Search in the template Memberinfo
Code:

$blocks[stats_mini]
Add after:
Code:

<div id="ads" class="tborder content_block">
        <h4 class="thead block_title">
                <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('ads')"><img id="collapseimg_ads" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_ads']}.gif" alt="" border="0" /></a>
                <a name="ads"></a>
                <span class="block_name">Ads</span>
        </h4>
        <div class="block_content" id="collapseobj_ads" align="center">
        <table cellpadding="0" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
  <tr>
    <td>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
            <tr align="center">
              <td class="alt1">Your Ad Code...</td>
            </tr>
        </table>
    </td>
  </tr>
</table>
</div>
</div>

The attached product is for people who use the TMS.
Product and template edits will be included automatically then. After importing addon please add in the TMS your ad code!

It will look like:
Demo
My CTR is about 1,06% with a 200x200 image.

t6mnt 09-11-2009 10:35 AM

thanks :)

Kolbi 09-11-2009 10:44 AM

No problem...

Please click install :)

matthewhotdude 09-16-2009 04:00 PM

Did it but the add won't show up....it's just blank


Code:

<div id="ads" class="tborder content_block">
        <h4 class="thead block_title">
                <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('ads')"><img id="collapseimg_ads" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_ads']}.gif" alt="" border="0" /></a>
                <a name="ads"></a>
                <span class="block_name">Ads</span>
        </h4>
        <div class="block_content" id="collapseobj_ads" align="center">
        <table cellpadding="0" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
  <tr>
    <td>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
            <tr align="center">
              <td class="alt1"><script type="text/javascript"><!--
google_ad_client = "pub-3010515223597560";
/* 200x200, created 16/09/09 */
google_ad_slot = "9446574801";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
            </tr>
        </table>


Kolbi 09-16-2009 05:37 PM

You have forgot the 2 closing div?s.

Try:
Code:

<div id="ads" class="tborder content_block">
        <h4 class="thead block_title">
                <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('ads')"><img id="collapseimg_ads" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_ads']}.gif" alt="" border="0" /></a>
                <a name="ads"></a>
                <span class="block_name">Ads</span>
        </h4>
        <div class="block_content" id="collapseobj_ads" align="center">
        <table cellpadding="0" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
  <tr>
    <td>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
            <tr align="center">
              <td class="alt1"><script type="text/javascript"><!--
google_ad_client = "pub-3010515223597560";
/* 200x200, created 16/09/09 */
google_ad_slot = "9446574801";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
            </tr>
        </table>
        </div>
</div>


Kolbi 11-08-2009 02:16 PM

My CTR is about 1,06% with a 200x200 image.

jimsflies 11-22-2009 09:40 PM

If I'm not using TMS, does the product do anything? For example set up a place in admincp to change the ad or enable/disable? Assuming the answer is no, I would just need to manually edit the template, correct?

Kolbi 11-23-2009 09:41 AM

Quote:

Originally Posted by jimsflies (Post 1919168)
If I'm not using TMS, does the product do anything? For example set up a place in admincp to change the ad or enable/disable? Assuming the answer is no, I would just need to manually edit the template, correct?

You are right :)

If it is need it can include more function like editing the settings via vB settings.
If it is wished... :)

ShawneyJ 11-23-2009 11:36 AM

still using this one. works for 3.7/3.8
https://vborg.vbsupport.ru/showthrea...ight=paulsonny
but thanks.

jimsflies 11-23-2009 07:02 PM

It would be cool if you could change the ad code from within the admincp and enable/disable the hack. Maybe as an advanced setting enable/disable for various usergroups.

I'm personally not planning to put ads in this spot but rather use it for a place to put announcements and site features. So having a place in admincp to easily change the graphic and associated link would be nice.


All times are GMT. The time now is 08:37 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.01062 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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