vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Advertisement Box Under Forums (https://vborg.vbsupport.ru/showthread.php?t=130013)

Win2k3xp 10-25-2006 10:00 PM

Advertisement Box Under Forums
 
This Mod Will Ad a advertisement box under the forums.
There is a live preview Here just above the whos online box or ive attached a screenshot.

Install
In Template FORUMHOME search for:
Code:

$forumhome_markread_script
Under This Add:
Code:

<!-- Adverts: -->
      <table width="100%" height="100" border="0" align="center" cellpadding="6" cellspacing="1" class="tborder">
        <thead>
          <tr>
            <td height="20" colspan="2" align="center" class="thead">Advertisements
          </tr>
        </thead>
     
        <tbody>
          <tr>
            <td colspan="2" align="center" class="alt2"> 

INSERT AD CODE HERE

</td>
          </tr>
        </tbody>
     
 
      </table>
      <br />
<!-- Adverts: -->

Where it says INSERT AD CODE HERE place the add code or image there

Remember Click https://vborg.vbsupport.ru/

Win2k3xp 10-26-2006 02:08 PM

Reserved!

Zowners 10-26-2006 10:33 PM

very nice simple mod!

Hornstar 10-27-2006 04:39 AM

Thanks simple but effective.

Win2k3xp 10-27-2006 07:34 AM

Thanks Guys! :laugh:

dnclub.org 10-27-2006 08:02 PM

installed !

smoknz28 10-29-2006 07:23 PM

Installed....thanks for sharing. ;)

tekstylez 11-03-2006 08:06 PM

can this be conditioned to certain usergroups?

Win2k3xp 11-04-2006 04:30 PM

To display adds to certain user groups use this code

Code:

<if condition="!is_member_of($bbuserinfo, 6,7,7)">
<!-- Adverts: -->
      <table width="100%" height="100" border="0" align="center" cellpadding="6" cellspacing="1" class="tborder">
        <thead>
          <tr>
            <td height="20" colspan="2" align="center" class="thead">Advertisements
          </tr>
        </thead>
     
        <tbody>
          <tr>
            <td colspan="2" align="center" class="alt2"> 

INSERT AD CODE HERE

</td>
          </tr>
        </tbody>
     
 
      </table>
      <br />
<!-- Adverts: -->
</if>

Replace the numbers in BOLD with the usergroups you DO NOT want to see the ads

kollam003 05-25-2007 10:17 AM

thanks installed

rooban12 05-29-2007 09:53 AM

not working for my forum
www.lovetack.com

LjubavnaZona 08-05-2007 01:28 AM

I love it :)

Perfect. Installed.

Alibi 08-10-2007 11:37 AM

installed and works great Thanks!

bigraph 08-10-2007 10:50 PM

reserved, thx!

momo2 08-28-2007 06:17 PM

very nice but is there any way to get rid of the Gap betwen the what's going on there is a like half of inch empty space I like it to be closer so it will look better..

FallenMorgan 09-01-2007 06:40 PM

Yeah, it looks better than trying to edit templates with the CSS knowledge of a five year old.

thanks

James Argo 09-16-2007 04:41 PM

Quote:

Originally Posted by momo2 (Post 1327534)
very nice but is there any way to get rid of the Gap betwen the what's going on there is a like half of inch empty space I like it to be closer so it will look better..

Just remove
PHP Code:

<br />
<
br /> 

below
PHP Code:

<!-- /main --> 

You can find it below the advert code. You'll get the idea of the use of br code around there.

* James Argo clicked Installed! :up:

James Argo 09-16-2007 04:55 PM

I find it's also easy to put it above the forum.

Find
Code:

<body>
$header
$navbar

And paste the code below it.

BTW, thanks alot Win2k3xp!
This mod rocks! :cool:

;)
Jaymz

jacq008 06-23-2008 07:05 PM

I used the template edit, which is great, but I'm beginner and am not sure what an AD code is. I have tried a few different things (putting the picture in) but it just ended up in writing, not shown as an AD. Can you help?


All times are GMT. The time now is 05:55 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.01126 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete