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)

esck 04-10-2007 10:40 PM

Quote:

Originally Posted by 4newbies (Post 1224421)
Does yours show a plain white screen like my site does when I have this mod enabled?

I'm on a mac, using safari, and this is what I get

Code:

Safari can?t open the page ?http://foro.esk.com.mx/?. The error was: ?bad server response? (NSURLErrorDomain:-1011) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.

Capper5016 04-10-2007 10:43 PM

Quote:

Originally Posted by Capper5016 (Post 1224389)
I have swf and gif files, how can I add them to the ad rotation? How do I add links to them?

bump

nanaimobar 04-11-2007 01:39 AM

I used the remote invocation code generated by openads but removed all references to zones in the invocation code. I used both WordPad and Notepad for changing the code, not MSWord, and they both worked fine.

Removed: document.write ("&what=zone:4");
from around the middle of invocation code.

Also removed: what=zone:4
from last line of invocation code.

Your zone numbers will be different than mine.

I copied and pasted changed invocation code into the rotating ad section of the header/footer part of vB Ad Management. I separated the code so that a regular banner and a leaderboard would rotate.

I also used <center> and </center> at top and bottom of invocation code on the banners. I might change this to left later instead of center.

You can see them working here.

Thanks RedTyger. You sure made my life much easier. Two thumbs and two big toes up.

giovannicosta 04-11-2007 12:37 PM

Quote:

Originally Posted by giovannicosta (Post 1224065)
0

I have my own question:
My header template has this:

Code:

<!-- logo -->
<a name="top"></a>
<!-- main table --><table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="maintable">
<tr>
        <td><!-- content table --><table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td class="header-row"><table border="0" cellspacing="0" cellpadding="0" class="header-table" width="100%">
        <tr>
                <td align="$stylevar[right]" width="9"><img src="$stylevar[imgdir_misc]/logo_left.gif" width="9" height="92" border="0" alt="" /></td>
                <td align="$stylevar[left]" class="header-table-row"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" height="92" alt="$vboptions[bbtitle]" /></a></td>
                <td align="$stylevar[right]" valign="bottom" width="100%" style="padding: 5px" nowrap="nowrap" class="header-table-row">

                <if condition="$show['member']">
                <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>
                <else />
                <!-- 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 -->
                </if>       

                </td>
                <td width="9" align="$stylevar[right]" class="header-table-row"><img src="$stylevar[imgdir_misc]/logo_right.gif" width="9" height="92" border="0" alt="" /></td>
        </tr>
        </table></td>
</tr>
<!-- /logo -->

<!-- nav buttons bar -->
<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<tr>
        <td style="border: none; padding: 0;"><table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
                <td width="9" align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/nav_top_left.gif" width="9" height="2" border="0" alt="" /></td>
                <td width="100%" class="navbar-top-row"><img src="$vboptions[cleargifurl]" width="1" height="2" border="0" alt="" /></td>
                <td width="9" align="left" valign="bottom"><img src="$stylevar[imgdir_misc]/nav_top_right.gif" width="9" height="2" border="0" alt="" /></td>
        </tr>
        </table></td>
</tr>
<tr>
        <td class="navbar-row" align="center"><table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" class="navbar-row-table">
        <tr align="center" class="vbmenu_dark">
                <td width="9" align="right" style="padding: 0;"><img src="$stylevar[imgdir_misc]/nav_left.gif" width="9" height="21" border="0" alt="" /></td>
                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>
                <if condition="$show['registerbutton']">
                        <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
                </if>
                <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
                <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
                <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
                <if condition="$show['popups']">               
                        <if condition="$show['searchbuttons']">
                                <if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                                <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
                        </if>
                        <if condition="$show['member']">
                                <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>               
                        </if>
                <else />               
                        <if condition="$show['searchbuttons']">
                                <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
                                <if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                        </if>
                        <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
                        <if condition="$show['member']">                       
                                <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>                       
                        </if>                       
                </if>
                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
                </if>
                <td width="9" align="left" style="padding: 0;"><img src="$stylevar[imgdir_misc]/nav_right.gif" width="9" height="21" border="0" alt="" /></td>
        </tr>
        </table></td>
</tr>

<!-- content table -->
$spacer_open

$_phpinclude_output

There is no: &nbsp to replace with $header_advertisement, where should i put it?


Bumparoonie

RedTyger 04-11-2007 05:15 PM

Quote:

Originally Posted by 4newbies (Post 1224364)
This is the first and only mod I have installed on my forum. Maybe there is something you might be able to see in the source code that is out of place perhaps?

http://www.4newbiesforum.com/

Any other suggestion to try?

Are you sure the files have been uploaded to the right location? Now I think I do remember someone with this problem and it was the cause. For you, they should be at http://www.4newbiesforum.com/include...ent/(file).php.

Quote:

Originally Posted by giovannicosta (Post 1224925)
Bumparoonie

Well it's a custom theme so I don't know where it should go. It can go anywhere so the worst you'll have to do is move it if you don't like where it shows up. Just give it a go.

IsMaR 04-11-2007 08:24 PM

Suggestion: feature geographically limit showing the ads, for example, only show to US, there is no reason to show ads to someone in Canada if they cant do it...

Neal-UK 04-11-2007 08:57 PM

An excellent hack. Is there anyway I can edit the footer advertisement from "vB Ad Management by =RedTyger=" to just "Ad Management by =RedTyger="?

Many thanks.

cajunboy2208 04-11-2007 09:49 PM

What is up with the footer? Sometimes it is one link, sometimes 2. But right now, it is displaying it 6 times!

cajunboy2208 04-11-2007 09:51 PM

Quote:

Originally Posted by Neal-UK (Post 1225331)
An excellent hack. Is there anyway I can edit the footer advertisement from "vB Ad Management by =RedTyger=" to just "Ad Management by =RedTyger="?

Many thanks.

Do you really want to take off the Vb? Or are you looking for the directions in how to take it off completely? hahaha. Nice try. Either way, I highly doubt you will get the info.

morrow 04-11-2007 10:09 PM

I apologize if this has already been asked, I did search the thread before asking but couldn't find it...

2 things actually...

First, what is this used for exactly? "To name a custom adcode block"...etc... I don't get it.

Second, This looks like an all or nothing type of modification. For example... Say I have a forum for sporting goods with forums setup such as:

baseball
football
basketball

and I want to have google ads for baseball target the baseball forum, football to the football forum, etc... This mod appears that baseball adsense ads would also appear in the football and basketball forums.

I'd like to be able to target certain adsense channels to their cooresponding sports so I don't have baseball ad's showing up in the basketball forums.

Hope I explained that the right way.

Thanks for the hard work. I will surely donate once I get the mod working the way I like.

THanks again


All times are GMT. The time now is 01:31 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.02475 seconds
  • Memory Usage 1,811KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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