vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

ovidiuletu 04-01-2010 04:02 PM

Hy,
I have a client who asks the following for his banner:
1. At this point the baner has Atribut ?nofollow? ? he wants to be removed the rel=?nofollow? from the link;

2. My banner has an internal link named: http://www.ciclism.ro/forums/rbs_banner.php?id=3 and he wants a direct link to http://www.veloteca.ro

Can you help me with this?
My website is www.ciclism.ro/forums

y2ksw 04-01-2010 09:04 PM

Quote:

Originally Posted by Bacon Butty (Post 2014012)
Looks great. Is there any chance the placeholder can be placed after the first post in every thread, like;

http://img171.imageshack.us/img171/8165/advertg.jpg

... as detailed here

Put the placeholder in the template: ad_showthread_firstpost ... maybe within a div align center tag ... :)

y2ksw 04-01-2010 09:13 PM

Quote:

Originally Posted by ovidiuletu (Post 2014135)
Hy,
I have a client who asks the following for his banner:
1. At this point the baner has Atribut ?nofollow? ? he wants to be removed the rel=?nofollow? from the link;

2. My banner has an internal link named: http://www.ciclism.ro/forums/rbs_banner.php?id=3 and he wants a direct link to http://www.veloteca.ro

Can you help me with this?
My website is www.ciclism.ro/forums

  1. Change the banner code accordingly to your wishes (plugin hook: global_complete, "Banner Insertion"). Please note that you have to reapply this change after each upgrade. Also, direct links to other sites without nofollow have a direct impact on your Google Site Rank (your page ranking decreases).
  2. Uncheck the Click Tracking option (you can't have enabled click tracking and direct links in the same moment).

Videx 04-02-2010 12:38 AM

Quote:

Originally Posted by y2ksw (Post 2014284)
Put the placeholder in the template: ad_showthread_firstpost ... maybe within a div align center tag ... :)

Cool. For some odd reason, this position doesn't seem to be included in the vb advertising positions (?).

But it doesn't look too bad to put it in AdminCP>Advertising>Add New Ad>Page:Thread>First Post Content>
Quote:

<div style="text-align:center;border:1px solid black"><!--@vbbanners:0@--></div>
I wonder if anyone has filed a bug report that the "After first post" is missing.

y2ksw 04-02-2010 05:13 AM

Quote:

Originally Posted by Videx (Post 2014352)
Cool. For some odd reason, this position doesn't seem to be included in the vb advertising positions (?).

But it doesn't look too bad to put it in AdminCP>Advertising>Add New Ad>Page:Thread>First Post Content>I wonder if anyone has filed a bug report that the "After first post" is missing.

The normal templates are filled and they do work. If not, probably you are encountering a style problem.

Videx 04-02-2010 01:17 PM

1 Attachment(s)
Quote:

Originally Posted by y2ksw (Post 2014457)
The normal templates are filled and they do work. If not, probably you are encountering a style problem.

No, I only have the default style. Maybe I'm just not explaining it correctly. Take a look at the attachments and you'll see that when creating a new ad there are no locations listed within a thread except two. Both fairly useless, imho.

stinger2 04-04-2010 10:15 PM

Quote:

Originally Posted by y2ksw (Post 2013395)
If this is a general rule and you are happy with changing the code a bit, you may add (hook: global_complete, "Banner Insertion"), on the very top:

Code:

if(THIS_SCRIPT == 'adv_index')
{

and, on the very bottom:
Code:

}
This way, the plugin code will run only when the portal pages are shown. However, it also keeps the placeholders unchanged in other pages, which may have undesireable side effects, if they are not in the HTML comment format. True vBAdvanced support would require more coding.

If some more users are interested in an additional feature for vBAdvanced support, this is the time to ask :)

thanks......this is a nice practical solution....

i usually do not modefy the board alot.........first because i forget the modification....second..would be very hard to make upgrades..........hehehe........as if i am going to upgrade to vb 4 with all my modifications.

thanks alot....nice and great hack

Traxion 04-06-2010 07:41 PM

I cant seem to get a banner to show up. I believe I have it installed correctly, made sure I added the correct code to the ad_navbar_below template and I have checked the HTML code and spelling but I cant get anything to show up anywhere. Any ideas?

Update: I kept messing a little more with this and found that it tries to place the default banner where I want it but doesnt show because of a javascript error from the google ads. I can verify this cause it displays on my smartphone but not on my desktop. Now when I try to create an entirely new banner and place in the same exact position I get nothing. Any help would be appreciated. Thanks!

anabolika 04-06-2010 09:28 PM

Hi,

I can't seem to get it to work :( I'm running 4.0.2 , is it tested for this version? I've tried all placeholders in the forum block manager and I still see <!--@vbbanners:0@--> or <!--@vbbanners:0-->

Is there a way to check for errors?

y2ksw 04-07-2010 07:40 AM

Quote:

Originally Posted by Traxion (Post 2017000)
I cant seem to get a banner to show up. I believe I have it installed correctly, made sure I added the correct code to the ad_navbar_below template and I have checked the HTML code and spelling but I cant get anything to show up anywhere. Any ideas?

Update: I kept messing a little more with this and found that it tries to place the default banner where I want it but doesnt show because of a javascript error from the google ads. I can verify this cause it displays on my smartphone but not on my desktop. Now when I try to create an entirely new banner and place in the same exact position I get nothing. Any help would be appreciated. Thanks!

Please try to show a standard image banner and disable the Google ads. Also check if your banner will show up in a normal HTML page :)


All times are GMT. The time now is 06:45 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.03668 seconds
  • Memory Usage 1,756KB
  • 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
  • (8)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