vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Banner Rotator (https://vborg.vbsupport.ru/showthread.php?t=169266)

cagbaazee 03-20-2008 06:58 AM

I hv install and everything is working fine but one problem is time, how to make it appear after 30 sec or so. do any one know about it.

Satoshikai 03-22-2008 12:11 AM

ok ok. I just installed it on my vB 3.6.8 works great, no problems. But I do want to know something real quick.

I want the banner (when clicked on) to take you to the forum index BUT NOT open a new tab or window. I want it in the same page. What should I do for that and is it possible?

uReside.com 04-01-2008 04:55 PM

Quote:

Originally Posted by cagbaazee (Post 1469369)
Go to your AdminCP > vBulletin Options > Banner Rotator

There will be a field for allowed file types, just add "image/pjpeg" there (dont forget the comma).


The selected file type is not allowed. image/x-png

I know |png| and |images/png| is in there am i missing something trying to upload a .png file.

ginnser 04-02-2008 03:13 PM

great mod

Just like another user I want my forum logo on the left and then the banners on the same line but centered

here is my 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 href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>
</tr>
</table>
<!-- /logo -->

can anyone suggest where i need to alter the code?

have a look at it at the moment, you can see the logo and banner are both on the left !

www.dbplaza.hk

Thanks

Britmovie 04-04-2008 07:59 PM

Quote:

The selected file type is not allowed. image/x-png
get the above rel error message when i try to up png, jpg, gif banners? using betaPowered by vBulletin? Version 3.7.0 Beta 5?

Chevy II 04-07-2008 08:40 PM

Installed and works great, for me... However, I have one user that says that none of the banners are being displayed... Only a blank area, has anyone else heard a user with this issue?

Thanks!

veb 04-16-2008 10:07 AM

that's probably because they have something that disables banners and stuff... thinks they are adware.

I'm atm trying to get this to work on 3.6.7

EDIT: Works great! Thanks man, keep up the good work :) *hits install*
EDIT: I have a suggestion, a counter to keep track of how many times a banner has been clicked, and is displayed in the EDIT screen in the Admin control panel?

atlambros83 04-18-2008 08:54 AM

marked as installed and nominated. works great for me on 3.6.8 pl2. thanks!

.....is there any way to change it so that when the banner is clicked it doesn't open a new window and just refreshes to the forum index? (im using it to display different styles of forum banners on my page rather than for advertisements)

veb 04-19-2008 02:55 AM

Quote:

Originally Posted by atlambros83 (Post 1493596)
marked as installed and nominated. works great for me on 3.6.8 pl2. thanks!


.....is there any way to change it so that when the banner is clicked it doesn't open a new window and just refreshes to the forum index? (im using it to display different styles of forum banners on my page rather than for advertisements)

Edit the style. :)

From:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>

To:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>">$banner</a></center>

(Notice I took away the "Target" part?)

tmiland 04-19-2008 07:19 AM

Hi all, i need some help, i wanted to show the banners below the navbar, with a border around it like this:

PHP Code:

<!-- banner -->
<if 
condition="$ban">
<
table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<
tr>
<
td class="alt1" width="100%">
<
div align="left"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></div>
</
td>
</
tr>
</
table>
<
br />
</if>
<!-- / 
banner --> 

So, what i need to know is what to add to the if condition
to make the border not show when the banner isnt showing: if condition="whatdoiputhere"

Hope you know what i mean :D

*edit*
i figured it out!
if condition="$ban" :D

baymortgage99 04-20-2008 05:21 AM

Ive been looking for a hack that allowed me to have a rotating banner

Excellent !

Britmovie 04-20-2008 12:50 PM

Quote:

There will be a field for allowed file types, just add "image/gif" there (dont forget the comma).
This was the reason why i was unable to upload the files.

I have put image/png and now I can upload pings, but when i added gif as in 'image/png,gif' I could not upload gifs. I also tried image/png,image/gif so what format should it be.

macc 04-20-2008 04:01 PM

Hello!

in IE 7 is ok but in Firefox banners is not in center , much outside - right side !

some help ?

reg

macc

atlambros83 04-20-2008 04:05 PM

Quote:

Originally Posted by veb (Post 1494248)
Edit the style. :)

From:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>

To:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>">$banner</a></center>

(Notice I took away the "Target" part?)

ahhh....much better. thank you. :)

yaoren 04-27-2008 05:28 PM

I uploaded a banner but couldn't see the image on my actual forum. Also is there any way to have it so you can upload a banner to a particular skin?

cerbdawg 04-28-2008 03:38 AM

I've installed this on my testing server (using 3.6.8) and it works according to spec (so far).

My question!

Is there a way to make this banner function "only" on the forumhome?

Rather than using this as the site banner, I am using it as a "Sponsors" banner Ad Manager.

Any thoughts?
------------------------------------------------------------
Ignore this post. I came up with my own very ghetto solution (encapsulated the header modification in an If statement to check the forumid).

Still, if anyone gets a more elegant solution - I'm all ears!

old7888 04-30-2008 02:27 AM

Everything is installed properly but I do not see a banner, I have v3.7
Is there something I am missing?

karrerax 05-04-2008 08:03 PM

Clicks INstall

This pluguins is wonderful!! Thanks

DawnsWebDesigns 05-05-2008 12:20 AM

Quote:

Originally Posted by Stile2 (Post 1435390)
This is how I added banners to my forum. Works great!! I ended up with my original header with an ad banner right next to it. Both are centered, and both are links to separate sites. My original header links to my forum home page and the ad banner links to page that I told it to when I added the banner. Hope that makes sense.

Code:

<td align="$stylevar[left]"><center><a href="http://www.iemas.us/index.php"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>
        </td>

BTW, I really like how I can tell the banner which forums to show up in.
Good job on this mod.

Thanks
Keith

Thanks for this. But with the default theme the logo's centered left. How can I get the banners to go right? Or if I simply lose the logo how could I add some space between the banners & the top of the forum?

Also with my main theme the headers left. How do I add space between it & the banners to make them go right. http://x.dawnswebdesigns.com if you want to see what I'm talking about.

Thanks for any help.

Also to be helpful to others the creator of this mod may want to add to the instructions: create a folder under images called brotator & chmod it to 777. And although the settings have added pnglgifletc. you must add image/ before every single one before they'll work. And since it already has image/jpeg you'll have to delete one else have 2.

Otherwise thanks very much. I've been looking for this a while...glad I finally found it. ;)

wickedstangs 05-06-2008 04:45 AM

very nice mod..

fourat 05-06-2008 07:43 AM

thank you nominated
can you show me an example ?
can i use the banner rotator in any zone i select it like Navbar or Forumdisplay ?

stonner 05-06-2008 08:32 AM

Is it also possible to add different codes of afflinate-partners, or adsense etc.?

maclean_cherry 05-06-2008 11:04 AM

Installed into VB 3.7 and received this error

Database error in vBulletin 3.7.0:

Invalid SQL:

SELECT force_read_thread.force_read_threadid AS threadid
FROM force_read_thread AS force_read_thread
LEFT JOIN force_read_read AS force_read_read ON (force_read_thread.force_read_threadid = force_read_read.force_read_threadid AND force_read_read.force_read_userid = '1')
WHERE force_read_read.force_read_userid IS NULL
AND force_read_thread.force_read_usergroupid IN (0,6)
AND (force_read_thread.expire_date = 0 OR force_read_thread.expire_date > '1210075108')
AND
(
force_read_thread.force_read_forumid IN ()
OR force_read_thread.force_read_forumid = 0 AND (force_read_thread.force_read_location = 0 OR force_read_thread.force_read_location & 64)
);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
OR force_read_thread.force_read_forumid = 0 AND (force_read_thread.forc' at line 9
Error Number : 1064
Request Date : Tuesday, May 6th 2008 @ 09:58:28 PM
Error Date : Tuesday, May 6th 2008 @ 09:58:28 PM
Script : http://www.canberracruises.com/forum/
Referrer :
IP Address : 59.167.45.38
Username : maclean_cherry
Classname : vB_Database
MySQL Version : 4.1.22-standard-log

zatzy 05-06-2008 03:28 PM

Nice and useful mod. What I wish for is to see how many times each banner has been showed and clicked and to be able to set at time between when the banner is to be shown.

That would make the hack excellent :)

CoryHawk 05-08-2008 04:36 AM

Can anyone assist?

When I updated to 3.7 gold I had to update my style like everyone else.

Now my issues is the banner is not where is used to be.

The rotation works... however I can't get it to the right spot.

You will notice it is off as it should be right beside the user info/login box and indented from the left about 5 spaces. http://forums.prisonofficer.org/


Anyone help me narrow down how to get it back it its correct spot?

CoryHawk 05-09-2008 12:10 AM

Anyone? Been fooling with it all day.. still stumpped.

mikkitine 05-10-2008 06:49 PM

Seriously? Are there any instructions to operate this mod?

animate 05-11-2008 09:55 AM

if i define a other url for each banner it does not work, it linked always to forumhome,(forum.php) and i need it for index.php , i have changed the style to the defined line on the description.

have anyone the same problem?

thanks

animate 05-11-2008 01:52 PM

ok problem was SEO that has overwrite the a href tag to standard forum.php

Scooterpig 05-15-2008 04:52 AM

Good mod but need to know how to get banner over to right and also if we can have how many times banner been clicked please.

Shill360 05-15-2008 07:14 AM

After messing around I have worked out how to put the banner on the right on the same line as the site logo.

Here is the code.
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]"></td> <td align="$stylevar[right]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a>
</td>
</tr>
</table>
<!-- /logo -->


Hornstar 05-15-2008 07:58 AM

Is it possible to add multiple banners, and have only certain banners show in certain skins?

eg, I add 10 banners. in skin 1. they all show randomly, in skin 2. only 2 of them will be shown randomly, and in skin 3. only 1 banner will be shown.

This would be really useful :)

Thanks.

Skyrider 05-29-2008 10:28 AM

I'm having problems with this addon/plugin. The "forum selection" is not working properly. I've set a banner to show in a specific section, and when I go there it doesn't change at all. If I go to a thread of specific sub-section of the forums, then it changes. Can you update / fix this please?

Finster 05-31-2008 04:27 AM

There are provisions for putting in the url destination to the banner the banners do not hyperlink so clicking on it goes nowhere.

The previous version worked fine.

Resolution?

TaBsiCore 06-01-2008 06:39 PM

Quote:

Originally Posted by hornstar1337 (Post 1520238)
Is it possible to add multiple banners, and have only certain banners show in certain skins?

eg, I add 10 banners. in skin 1. they all show randomly, in skin 2. only 2 of them will be shown randomly, and in skin 3. only 1 banner will be shown.

This would be really useful :)

Thanks.

I'm looking for the same feature. It would be great if you could add it to this product.

RobParker 06-02-2008 08:48 AM

I need to add some style information to the banner code

I need to add
Code:

style="float:left;margin-top:15px;"
to the IMG tag for the banner. Is there an easy way to do this?

Gersfan 06-02-2008 05:30 PM

When i click the banner it opens a new window/tab rather than _blank..how do i set this?

Thanks,

baker011 06-03-2008 12:42 PM

I have installed this mod and marked as installed, so firstly thanks for that! However, as more of a feature request I would love to be able to track how many clicks each banner has received as we need to report on how successful a particular campaign has been. Do you have any plans to include stat tracking in future versions?

Finster 06-03-2008 07:09 PM

Well, the banners still don't hyperlink. Do they hyperlink for you guys? The old banner rotator hyperlinked just fine, although it is easier in this mod to post the url destination of where one is to be taken if one clicks on the link, but if it doesn't take anyone anywhere, it would be nice if this intended feature actually worked.

HP10T 06-05-2008 06:37 PM

I can't locate <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>

in my header template file :(


All times are GMT. The time now is 02:31 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.01416 seconds
  • Memory Usage 1,841KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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