vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

Jaiixx 05-02-2007 07:31 PM

Okay that sounds good to me. Thanks for your help and the information. I appreciate it.

exes_slayer 05-03-2007 08:55 AM

as i saw above, it works with adsense also
how does the user implement his adcode? he enters pub-xxxxxxxx or does he need to enter the full adsense code?

RedTyger 05-03-2007 11:47 AM

It's up to you how much you want to share. When you're entering the adsense code into the admin panel you replace part of it with #shared# (or your own specified code). #shared# is what will be replaced with the user's custom code.

So let's say your admin code is:

Hello there, my name is #shared#.

If your user's custom adcode is Ralph then the output will be Hello there, my name is Ralph.

Or you could set your admin code as:

Hello there, #shared#.

If your user's custom adcode is Ralph then the output will be Hello there, Ralph. Or your user's custom adcode could be my name is Ralph and the output will again be Hello there, my name is Ralph.

It's up to you how much you want to open up to user's to specify, but to keep things on the straight and narrow I'd generally recommend that you share the minimum amount of code possible.

The Librarian 05-03-2007 04:00 PM

Quote:

Originally Posted by RedTyger (Post 1239735)
The Librarian, files are attached. Untested, but it should work.

Thanks RedTyger.... I've downloaded and installed this, but I'm not seeing where I'm to put the code $navbar_advertisement.

I tried putting it under the Navbar code but that puts the ad between the navbar and the top of the forums just as before - except that this time it put it to the far left, rather than the center.

What I really want is the code inside the Navbar to the far right next to the username. If this isn't possible I can live with it below, but I need it centered. Is there some easy code I can add that will center it? The code $footer_advertisement centers automatically.

I'm sorry to be so terribly picky... but I like my library to look just right. My members count on it being a nice, neat-looking place, kwim?

It's here if you want to see it: http://www.thehomeschoollibrary.com

Right now I've got the footer ads showing up both in the footer and below the navbar. I'm just using that $footer_advertisement code twice. But I really want to have two different ads there, if possible. The goal is to put Adsense in the footer eventually.

Thanks again...and I guess I need to make another donation, don't I! :)

RedTyger 05-03-2007 04:08 PM

You can put $navbar_advertisement in any template anywhere you like, it is a global advertisement.

If you want to style/position it, edit the navbar_advertisement template to your taste. If you want it centered, change <div> to <div style="text-align:center;">

To put it in your navbar to the right (this is untested, but it's roughly the right approach if not quite correct) look in your navbar template for the following code and note the change I made which are highlighted in bold.

Code:

                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                        <if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
                </div>
                </td>
<td class="alt2" valign="top" nowrap="nowrap">
$navbar_advertisement
</td>

               
        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
<td class="alt2" valign="top" nowrap="nowrap">
$navbar_advertisement
</td>

A donation is not necessary, support is free. :)

DieselMinded 05-03-2007 04:53 PM

Need a hand :)

I have the Ads Running Above the Whats Going On Box ...

http://www.dieselbombers.com/attachm...8&d=1178210965

Thing is when ever The Window is Shrunk they go to 2 lines of ads instead of a single row , and it displays different on different screen sizes also , I set it up to be even with the forum on my computer but it always moved the last ad (mine) to below the rest , I had to make it to where i have 1/4 inch open on either side of my computer screen (when the window is maximized) just so it don't effect others .

This is my lay out ...

HTML Code:

<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/test.gif" width=20 height=108 border=1></a>

<a href="http://www.warn.com" target="_blank" class="banner"><img src="bannerads/warnad.gif" width=100height=108 border=1></a>


<a href="http://www.iceboxmanufacturing.com/" target="_blank" class="banner"><img src="bannerads/icebxl.gif" width=100height=108 border=1></a>


<a href="http://www.mrbobsdistributing.com/siliconehoses.html" target="_blank" class="banner"><img src="bannerads/mrbobsad.gif" width=100height=108 border=1></a>


<a href="http://www.dhraonline.com" target="_blank" class="banner"><img src="bannerads/dhraad.gif" width=100height=108 border=1></a>


<a href="http://www.fixinrams.com" target="_blank" class="banner"><img src="bannerads/fixinramsadgears.gif" width=100height=108 border=1></a>


<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/dbad.gif" width=100height=108 border=1></a>


<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/dbad.gif" width=100height=108 border=1></a>


<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/dbad.gif" width=100height=108 border=1></a>


<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/test.gif" width=20 height=108 border=1></a>

With the test.gif being my end caps

Is there a way for me to format it by a % so it always shows even with the forum no matter what screen/window size

Thanks a Bazillion !!

DM

The Librarian 05-03-2007 05:01 PM

Quote:

Originally Posted by RedTyger (Post 1240681)
You can put $navbar_advertisement in any template anywhere you like, it is a global advertisement.

If you want to style/position it, edit the navbar_advertisement template to your taste. If you want it centered, change <div> to <div style="text-align:center;">

To put it in your navbar to the right (this is untested, but it's roughly the right approach if not quite correct) look in your navbar template for the following code and note the change I made which are highlighted in bold.A donation is not necessary, support is free. :)

Ok... we're getting closer... just a bit of tweaking should do it. I've attached a pic of what we have now. It's all the way to the right.... but I want it just to the left of the name, in the light colored part. Any suggestions?

The Librarian 05-03-2007 08:12 PM

Quote:

Originally Posted by The Librarian (Post 1240713)
Ok... we're getting closer... just a bit of tweaking should do it. I've attached a pic of what we have now. It's all the way to the right.... but I want it just to the left of the name, in the light colored part. Any suggestions?

Guess what! I figured out where it goes. Check this location out:
Code:

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
        <td class="alt2" valign="top" nowrap="nowrap">
                $navbar_advertisement
                </td>       

        <if condition="$show['member']">

That puts it in the proper place. :up: :D

I had another mod that I'd downloaded a while back called "Banner Rotator by Redline" or "Banners_in_Navbar." I didn't like the program - it isn't sophisticated enough. But I figured I would check and see where he put the code. I stuck your bit in where he put all of his and it works like a charm. Check out the pic!

Thanks so much RedTyger! I'm very pleased!

RedTyger 05-04-2007 02:12 PM

Quote:

Originally Posted by DiesellMinded (Post 1240710)
<snip!>

No, images should be absolute sizes. Even if they could be set as percentages they would be distorted horribly. If you need more space, include fewer images or put them on another line.

DieselMinded 05-04-2007 09:50 PM

I got it !!! it works Unless the window size goes less than 7 inches wide The ads now shrink and stay in place other than staying there defined sizes and going to a new line

HTML Code:

<a href="http://www.warn.com" target="_blank" class="banner"><img src="bannerads/warnad.gif" width="10%" border=1></a>

<a href="http://www.iceboxmanufacturing.com/" target="_blank" class="banner"><img src="bannerads/icebxl.gif" width="10%" border=1></a>

<a href="http://www.mrbobsdistributing.com/siliconehoses.html" target="_blank" class="banner"><img src="bannerads/mrbobsad.gif" width="10%" border=1></a>

<a href="http://www.dhraonline.com" target="_blank" class="banner"><img src="bannerads/dhraad.gif" width="10%" border=1></a>

<a href="http://www.fixinrams.com" target="_blank" class="banner"><img src="bannerads/fixinramsadgears.gif" width="10%" border=1></a>

<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/dbad.gif" width="10%" border=1></a>

<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/dbad.gif" width="10%" border=1></a>

<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/dbad.gif" width="10%" border=1></a>

<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/dbad.gif" width="10%" border=1></a>



All times are GMT. The time now is 06:38 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.03076 seconds
  • Memory Usage 1,815KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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