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)

Subah 07-20-2008 09:36 PM

Is ther any way to make it auto template edit ?

FalkinPro 07-21-2008 03:58 AM

Call me a n00b but I can't find the edit box in admin panel that corresponds to $ad_headerLogo.

The only box under "Advertisement System (Header & Footer) is "Header Advertisement Code" but that only displays code for $ad_headerEnd. Where is the box that corresponds to $ad_headerLogo?

EDIT: If I am correct the edit template box is under "Advertisement System (Settings & Slideshow) which means slideshow has to run through $ad_headerlogo? (ie is there no way to turn of slideshow and simply run several banners in rotation under headerlogo)?

Second question, I want to make $ad_headerEnd (or other locations) to 468 x 60 px instead of 729 x 90 px. How do I go about doing this?

UaECasher 07-21-2008 04:47 AM

Hello, I have installed every thing and added the codes to templates but when i add the Ad code it don't appear on my forums (here is my forums link Casherz Forums)

If any one can help please reply

Thank you

angusv 07-21-2008 05:11 PM

Hi,

I am trying to edit the header code and can't find:

Code:

<td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>

or:

Code:

<if condition="$show['dst_correction']">
All I have is:

Code:

<meta http-equiv="Page-Exit" content="BlendTrans(Duration=0)" />
<meta http-equiv="Page-Enter" content="BlendTrans(Duration=0)" />

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

Any help would be greatly appreciated!

karim004 07-21-2008 05:48 PM

Quote:

Originally Posted by FalkinPro (Post 1580330)

Second question, I want to make $ad_headerEnd (or other locations) to 468 x 60 px instead of 729 x 90 px. How do I go about doing this?

style manager , your style , edit templates , ad location , ad_headerEnd
and change 729 to 468 and 90 to 60
Quote:

Originally Posted by UaECasher (Post 1580343)
Hello, I have installed every thing and added the codes to templates but when i add the Ad code it don't appear on my forums (here is my forums link Casherz Forums)

If any one can help please reply

Thank you

check pm

imedic 07-21-2008 09:21 PM

I have install and edit the templates but I have 3 problems:

1. Header banner is lower then the logo taking more space (see here) Banner is " width="612" height="75" because it does not enter otherwise in line with the logo. I would like to be in line with the logo.

Header is:
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
       
<td align="$stylevar[left]"><center><div align="right"><if condition="$ad_headerLogo"><center>$ad_headerLogo</center><else />&nbsp;</if></center>

<td align="$stylevar[right]">
        &nbsp;
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_headerEnd

2. The banner in footer (sponsored links is working) does not want to show up (I have tested with the same banner as the top)
EDIT: It shows but after 1-2 min waiting, in all browsers. (it is a svf file)
Footer is:
Code:

$ad_footerStart
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

$spacer_close
<!-- /content area table -->

<form action="$vboptions[forumhome].php" method="get">

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
        <if condition="$show['quickchooser']">
                <td class="tfoot">
                        <select name="styleid" onchange="switch_id(this, 'style')">
                                <optgroup label="$vbphrase[quick_style_chooser]">
                                        $quickchooserbits
                                </optgroup>
                        </select>
                </td>
        </if>
        <if condition="$show['languagechooser']">
                <td class="tfoot">
                        <select name="langid" onchange="switch_id(this, 'lang')">
                                <optgroup label="$vbphrase[quick_language_chooser]">
                                        $languagechooserbits
                                </optgroup>
                        </select>
                </td>
        </if>
        <td class="tfoot" align="$stylevar[right]" width="100%">
                <div class="smallfont">
                        <strong>
                                <if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if>
                                <if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
                                <if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
                                <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
                                <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
                                <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
                                <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
                        </strong>
                </div>
        </td>
</tr>
</table>

<br />

<div align="center">
        <div class="smallfont" align="center">
        <!-- Do not remove this copyright notice -->
        $vbphrase[powered_by_vbulletin]
        <!-- Do not remove this copyright notice -->
        </div>

        <div class="smallfont" align="center">
        <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
        $cronimage
        <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

        $vboptions[copyrighttext]
        </div>
</div>
<!--/Start Trafic.ro/-->
<script type="text/javascript">t_rid="eugenol";</script>
<script type="text/javascript" src="http://storage.trafic.ro/js/trafic.js"
></script><noscript><a href="http://www.trafic.ro/top/?rid=eugenol"
 target="_blank"><img border="0" alt="trafic ranking"
 src="http://log.trafic.ro/cgi-bin/pl.dll?rid=eugenol"/></a>
<a href="http://www.trafic.ro">Statistici web</a>
</noscript>
<!--/End Trafic.ro/-->
</form>


$ad_footerEnd


<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
        <input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
        var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
        var utcOffset = new Date().getTimezoneOffset() / 60;
        if (Math.abs(tzOffset + utcOffset) == 1)
        {        // Dst offset is 1 so its changed
                document.forms.dstform.submit();
        }
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
        // Main vBulletin Javascript Initialization
        vBulletin_init();
//-->
</script>

3. Top banner does not show in forum announcements (like after logout) But it shows on registration page where I understand it is suppose not to show.

I use VB 3.7.0 on the site.
Problems appear on IE and Opera. Firefox I have a problem with it and I am not shure how it is.
Any ideas what is wrong... Thanks
PS Nice work ... please consider adding a link below all ads How to remove this add directing to join a specific group. It was in the previous mod and it was usefull.

wyllomoon 07-21-2008 10:21 PM

Been working with phpBB for years, but I'm fairly new to vBulletin. I can't seem to get this working at all. I'm using 3.7.2 and I can't find the right lines of code in the header file of the cutsom or default styles. I've been working at it for days, but I'm getting no where fast.

Could be just me, but I find the instructions for this a little difficult to understand. I do appreciate all the work that's been done on this mod and I understand that all of your time is offered freely, but I think I'm going to have to uninstall for now.

I really just want a simple script for rotating ad banners under my navbar and above my photoplog thumb gallery. Can anyone point me in the right direction?

karim004 07-22-2008 12:32 AM

Quote:

Originally Posted by imedic (Post 1580912)
I have install and edit the templates but I have 3 problems:

1. Header banner is lower then the logo taking more space (see here) Banner is " width="612" height="75" because it does not enter otherwise in line with the logo. I would like to be in line with the logo.

Header is:


2. The banner in footer (sponsored links is working) does not want to show up (I have tested with the same banner as the top)
EDIT: It shows but after 1-2 min waiting, in all browsers. (it is a svf file)
Footer is:


3. Top banner does not show in forum announcements (like after logout) But it shows on registration page where I understand it is suppose not to show.

I use VB 3.7.0 on the site.
Problems appear on IE and Opera. Firefox I have a problem with it and I am not shure how it is.
Any ideas what is wrong... Thanks
PS Nice work ... please consider adding a link below all ads How to remove this add directing to join a specific group. It was in the previous mod and it was usefull.


for header try this
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a> &nbsp; &nbsp; &nbsp; $ad_headerEnd</td>
       


<td align="$stylevar[right]">
        &nbsp;
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

for registration page go to admincp , vbulletin options , Advertisement System (Settings & Slideshow) , Do NOT display advertisements for scripts and enter :
register|search|login

i will include remove advertisements in v2.5 .

karim004 07-22-2008 12:52 AM

Quote:

Originally Posted by wyllomoon (Post 1580948)

I really just want a simple script for rotating ad banners under my navbar and above my photoplog thumb gallery. Can anyone point me in the right direction?

install simple rotation after that go to style manager , your style , navbar
at the end of your template add :
Code:

ad_navbarBelow
template header
after
Code:

$_phpinclude_output
add
Code:

$ad_headerEnd
footer
before
Code:

ad_footer_start
add
Code:

ad_footerStart
before
Code:

ad_footer_end
add
Code:

ad_footerEnd
go now to vbulletin option :
1=Advertisement System (Settings & Slideshow) ,
Enable advertisements system in your forum? yes
2=Advertisement System (Header & Footer)
Enable header advertisements in the main forum? yes
Enable header advertisements in the archives? yes if you want add advert in archieve
* add Header advertisement code If you want to use random rotations, enter your ad codes here separated by |
example :

Code:

<a href="http://www.link1.com" target="_blank"><img src="http://www.link1.com/banner.jpg"></a> |
<a href="http://www.link2.com" target="_blank"><img src="http://www.link1.com/banne2r.jpg"></a>

do samething for navbar & footer

imedic 07-22-2008 06:09 AM

Thx Karim
It did not work either with you suggestion. I have moved $ad_headerEnd to the next td looking like this :

Code:

<td align="$stylevar[right]">
        &nbsp; $ad_headerEnd
        </td>

Works like a charm , hope it didnt mess smting else because my knowledge on coding is very limited (close to ) :D)
Hope it helps others.
Many thanks


All times are GMT. The time now is 03:25 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.01903 seconds
  • Memory Usage 1,804KB
  • 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
  • (15)bbcode_code_printable
  • (4)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