vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Advertisement System V2.6 Aka Ad Management (https://vborg.vbsupport.ru/showthread.php?t=179083)

Simon Lloyd 12-15-2008 08:53 AM

If there's a header template you can use the header edit, if you are not sure post your header template code here and i will try to give you a reply that works!

Eneswar 12-15-2008 03:28 PM

my header is this:

Code:

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td height="122" class="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="300"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></td>
        <td width="600"><div class="afterlogo"><a href="banner link"><img border="0" src="http://www.awakeningofchaos.com/wrath_of_the_lich_king_aoc.gif"/></a></div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" class="nv">
<div class="nvlink" align="center">
<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]" >$vbphrase[user_cp]</a></if>
<if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow" >$vbphrase[register]</a></if>
$template_hook[navbar_buttons_left]
<a href="faq.php$session[sessionurl_q]" accesskey="5" >$vbphrase[faq]</a>
<if condition="$vboptions['enablememberlist']"><a href="memberlist.php$session[sessionurl_q]" >$vbphrase[members_list]</a></if>
<if condition="$show['popups']"><if condition="$show['member']">
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2" >$vbphrase[new_posts_nav]</a><else />
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2" >$vbphrase[todays_posts]</a></if>
<a id="navbar_search" 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",true); </script></if></if>
<a href="arcade.php?$session[sessionurl_q]">Arcade</a>
<a href="http://www.awakeningofchaos.com/forums/photoplog/index.php$session[sessionurl_q]">Gallery</a>
<a href="http://www.awakeningofchaos.com/raids$session[sessionurl_q]">Raid Site</a>
<a href="http://www.awakeningofchaos.com/videos$session[sessionurl_q]">Video Site</a>
<a href="calendar.php$session[sessionurl_q]" >$vbphrase[calendar]</a>
<if condition="$show['member']"><a id="usercptools" href="$show[nojs_link]#usercptools" >$vbphrase[quick_links]</a><script type="text/javascript"> vbmenu_register("usercptools",true);</script>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')" >$vbphrase[log_out]</a></if>
</div>
</td>
  </tr>
</table>

$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


On a side note, doesnt vbulleting has its own built in ad management thing?
Thank you for helping.

soundbarrierpro 12-15-2008 05:43 PM

Quote:

Originally Posted by Eneswar (Post 1685941)
my header is this:

Code:

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td height="122" class="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="300"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></td>
        <td width="600"><div class="afterlogo"><a href="banner link"><img border="0" src="http://www.awakeningofchaos.com/wrath_of_the_lich_king_aoc.gif"/></a></div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" class="nv">
<div class="nvlink" align="center">
<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]" >$vbphrase[user_cp]</a></if>
<if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow" >$vbphrase[register]</a></if>
$template_hook[navbar_buttons_left]
<a href="faq.php$session[sessionurl_q]" accesskey="5" >$vbphrase[faq]</a>
<if condition="$vboptions['enablememberlist']"><a href="memberlist.php$session[sessionurl_q]" >$vbphrase[members_list]</a></if>
<if condition="$show['popups']"><if condition="$show['member']">
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2" >$vbphrase[new_posts_nav]</a><else />
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2" >$vbphrase[todays_posts]</a></if>
<a id="navbar_search" 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",true); </script></if></if>
<a href="arcade.php?$session[sessionurl_q]">Arcade</a>
<a href="http://www.awakeningofchaos.com/forums/photoplog/index.php$session[sessionurl_q]">Gallery</a>
<a href="http://www.awakeningofchaos.com/raids$session[sessionurl_q]">Raid Site</a>
<a href="http://www.awakeningofchaos.com/videos$session[sessionurl_q]">Video Site</a>
<a href="calendar.php$session[sessionurl_q]" >$vbphrase[calendar]</a>
<if condition="$show['member']"><a id="usercptools" href="$show[nojs_link]#usercptools" >$vbphrase[quick_links]</a><script type="text/javascript"> vbmenu_register("usercptools",true);</script>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')" >$vbphrase[log_out]</a></if>
</div>
</td>
  </tr>
</table>

$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


On a side note, doesnt vbulleting has its own built in ad management thing?
Thank you for helping.

I've seen similar postings in the forum but nobody's ever answered it. I never saw anything in the ACP which would identify it being so.

Simon Lloyd 12-15-2008 07:51 PM

Try this then:
Code:

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<td align="$stylevar[right]"><center><if condition="$ad_headerLogo"><center>$ad_headerLogo</center><else />&nbsp;</if></center>
  <tr>
    <td height="122" class="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="300"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></td>
        <td width="600"><div class="afterlogo"><a href="banner link"><img border="0" src="http://www.awakeningofchaos.com/wrath_of_the_lich_king_aoc.gif"/></a></div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" class="nv">
<div class="nvlink" align="center">
<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]" >$vbphrase[user_cp]</a></if>
<if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow" >$vbphrase[register]</a></if>
$template_hook[navbar_buttons_left]
<a href="faq.php$session[sessionurl_q]" accesskey="5" >$vbphrase[faq]</a>
<if condition="$vboptions['enablememberlist']"><a href="memberlist.php$session[sessionurl_q]" >$vbphrase[members_list]</a></if>
<if condition="$show['popups']"><if condition="$show['member']">
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2" >$vbphrase[new_posts_nav]</a><else />
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2" >$vbphrase[todays_posts]</a></if>
<a id="navbar_search" 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",true); </script></if></if>
<a href="arcade.php?$session[sessionurl_q]">Arcade</a>
<a href="http://www.awakeningofchaos.com/forums/photoplog/index.php$session[sessionurl_q]">Gallery</a>
<a href="http://www.awakeningofchaos.com/raids$session[sessionurl_q]">Raid Site</a>
<a href="http://www.awakeningofchaos.com/videos$session[sessionurl_q]">Video Site</a>
<a href="calendar.php$session[sessionurl_q]" >$vbphrase[calendar]</a>
<if condition="$show['member']"><a id="usercptools" href="$show[nojs_link]#usercptools" >$vbphrase[quick_links]</a><script type="text/javascript"> vbmenu_register("usercptools",true);</script>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')" >$vbphrase[log_out]</a></if>
</div>
</td>
  </tr>
</table>

$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


Eneswar 12-16-2008 11:25 AM

Thank you Simon Lloyd that worked great :)

Simon Lloyd 12-16-2008 04:40 PM

Glad to be of help!

redlabour 12-18-2008 06:02 AM

Why did i have to make Templateedits with your Hack???

There are allready Hooks. Please use them in your next Update.

Seerkan 12-18-2008 05:27 PM

hi to all!!!

following the install instructiontions for edit the templates i see:

Add: $ad_xxx ($ad_navbarBelow for example)

But when i went to the templates, there is already this:
$ad_location[ad_navbarBelow]

So, must i delete $ad_location[ad_navbarBelow] ?

Wich is the diference bettwen $ad_xxx and $ad_location[ad_xxx]

thanks and greetings from spain

redlabour 12-18-2008 05:35 PM

Quote:

Originally Posted by Seerkan (Post 1688128)

Wich is the diference bettwen $ad_xxx and $ad_location[ad_xxx]

Read my last Posting above yours. As long as he is not using the Hooks you have to enter them manually.

Simon Lloyd 12-19-2008 11:18 AM

This mod was probably in the process of being written prior to 3.7.4 where there were no ad locations, redlabour, there is nothing to stop you editing all 35 pages of script and changing the ad location markers!, come on!, stop complaining as this is a free modification which took many many hours to create....and you even get free support!


All times are GMT. The time now is 10:12 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.04443 seconds
  • Memory Usage 1,783KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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