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)

minty_fresh 11-21-2008 12:25 AM

Ok i have a small issue i hope someone can help me out on this. Iam running a style on my forum and i cannot locate

Quote:

<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
To edit. It dosnt seem to be in the header section of the template. The style iam using seems to be using 2 images (One on the left which i can click and one on the right that i cant)
Any advice?

Here's what i have found in my header on my style

Quote:

<td><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="images/lily/lily_logo.gif" alt="$vboptions[bbtitle]" width="446" height="140" border="0" id="lily_logo" /></a></td>
and the other image is
Quote:

</td>
<td class="headerR">&nbsp;</td>
Id like these to both rotate randomly with a selected few on refresh, is this possibly with this mod?

yamahapaul 11-22-2008 05:15 AM

Can this be used to simply rotate the header/ logo in the default position as shown on my forum here-

http://www.midlandsheritage.co.uk/

if so can anyone advise please?? :o

xcesivvs 11-22-2008 09:38 AM

<a href="http://forum.cruznstreeterz.com/forumdisplay.php?f=8" target="_blank">http://forum.cruznstreeterz.com/forumdisplay.php?f=8</a>

Having a bit of trouble with the top banner on this skin. Carbon Fibre..

The Banner i want to install is 150mm tall.... but i ant get the menu bar to lower... can anyone help out please

thanks

Warren

minty_fresh 11-24-2008 12:03 AM

bumpidy bump? ^_^

HabbStar 12-07-2008 04:23 PM

Does anyone know how i can use separate banners on different themes?

HabbStar 12-07-2008 06:08 PM

Bump.. surely somebody must know

wmlvb 12-08-2008 12:31 AM

Hi this code I ma suppose to replace in my header is not there

Code:

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

wmlvb 12-08-2008 01:59 AM

Quote:

Originally Posted by wmlvb (Post 1680640)
Hi this code I ma suppose to replace in my header is not there

Code:

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


I got the menu to show up! I had the xml in wrong file!

bigevil 12-08-2008 02:15 AM

Just tried this with 3.6.9 and it works just fine.

AllenMead 12-21-2008 09:40 PM

I've been installing, and all seems nearly good. I've installed into the header but am getting the "target blank" above the banner.. any ideas how i can sort this?

AllenMead 12-22-2008 07:24 PM

All sorted now.

Reycer 12-26-2008 06:43 PM

question: It says that I CAN upload Jpeg images, but when I try to all I am getting is that this: The selected file type is not allowed. image/jpeg

mongothetrucker 01-04-2009 03:38 PM

install was easy, but now I get this...

Quote:

The selected file type is not allowed. image/pjpeg

wmlvb 01-04-2009 04:28 PM

Quote:

Originally Posted by mongothetrucker (Post 1701424)
install was easy, but now I get this...

I can't believe I actually can answer a question. :D I know this answer because I had the same problem. You need to go to the setting of Banner rotators and then in the setting for type of extensions allowed you need to add image/jpeg to the list.

make sure you use the separators they request. it looks like a "l" but not.

I hope that helps!!

mongothetrucker 01-04-2009 04:31 PM

it is on the list already.

mongothetrucker 01-04-2009 04:38 PM

it seems like it's not understanding the file. I try to add a jpg and it says this

Quote:

The selected file type is not allowed. image/pjpeg
wtf is a pjpeg?

I try to add a PNG and it says this

Quote:

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

mongothetrucker 01-04-2009 05:07 PM

fixed.

bydosangel 01-05-2009 03:31 PM

Now that's what i call a Perfect Thing...
Thanks for the good mod, But u know, It missing a Tiny small thing, witch is how many clicks the users clicked on the Adv..

Thanks Again

ErnestA 01-06-2009 01:37 AM

Finally... Easy to install, rotates banners and can assign to each category, simple interface. The rest of the banner mods could learn something from this one.

Installed in vBulletin 3.7.4 PL1 with no issues. The only problem I had was the error: "There was an error while moving your file". Just had to create the brotator subfolder under the vbulletin images folder (images/brotator).

One small note, I noticed that the Vbulletin Logo at the top of my screen is gone now. Is there anyway to have the logo and banner?

Lionsloser07 01-07-2009 10:42 PM

How come it isn't working with IE?

ErnestA 01-08-2009 02:51 AM

I'm using it with IE7 and it works just fine.

ErnestA 01-09-2009 08:24 PM

Track Banner Usage!

I've read a few posts from people with the same issue that I have. This product would be perfect if you could track which banners are displayed and how often. If you're charging for advertising, this is almost a requirement.
Well, being a programmer myself, I decided to figure out a very simple way to track it. Now, you'll have to query the database manually yourself to get the statistics, if I get adventurous down the road I might add that. But for now, at least the database will track the banners that get displayed and when.

This information is provided AS IS with no warranty or liability at all. Use it at your own risk!

First of all, open a connection to your database (I assume Mysql). Use the following create table statement. If you don't have command line access, you may want to try integrating this create table statement with the product.xml file.

We're going to create a new table to track banners. So issue the following command at the Mysql command prompt:
CREATE TABLE brotatorlog (bid smallint(20) unsigned, name varchar(255), bannerdate TIMESTAMP);

Next, go into the admincp of vbulletin, go to "Plugins & Products" and click on "Plugin Manager"
Click on the link to edit banner rotator. In the plugin PHP code window, scroll all the way to the bottom of the window.

The last statement in this window should be:
$defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'>";
}

Don't delete or modify any of the existing code. Insert the following code AFTER the above line.


if (!$ban['bid']) {
}
else
{
$db->query("INSERT INTO brotatorlog (bid, name) VALUES (".$ban['bid'].",'".$ban['name']."')");
}



Display a few banners then go into your mysql database and issue the following query:

select * from brotatorlog;

You should see something like this (excuse the poor formatting):

+------+-----------------------+---------------------+
| bid | name | bannerdate |
+------+-----------------------+---------------------+
| 1 | mybannera.jpg | 2009-01-08 18:14:32 |
| 2 | mybanner1.gif | 2009-01-08 18:16:37 |
+------+-----------------------+---------------------+

using the bid field, you can cross reference it back to the original brotator table with an SQL join query. Remember to periodically purge that table.

Enjoy.

Ernest.:D

cagbaazee 01-11-2009 02:55 PM

will it works with version 3.8

jkcerda 01-14-2009 01:26 PM

getting an error that I did not get previously

Warning: move_uploaded_file(./images/brotator/FobNationBanner.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in [path]/admincp/brotator.php on line 65

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpYuMkT9' to './images/brotator/FobNationBanner.gif' in [path]/admincp/brotator.php on line 65

Any help will be appreciated

hope I am in the right area.

mmblz 01-14-2009 04:52 PM

I would be cool if this could let you set a different banner depending on the date...

ErnestA 01-17-2009 02:11 PM

Quote:

Originally Posted by cagbaazee (Post 1708647)
will it works with version 3.8

I'm running it in 3.8 and it it seems to be OK (even with the hack I made to it).

ErnestA 01-17-2009 02:13 PM

I haven't seen a post from the guy maintaining this mod for a while and he hasn't been online since Aug 2008. Is this mod dead? Because I really like it and would like to see it improved. If the original author doesn't want to maintain it any longer I'd consder taking it over.

ErnestA 01-17-2009 02:18 PM

Quote:

Originally Posted by jkcerda (Post 1712077)
getting an error that I did not get previously



Warning: move_uploaded_file(./images/brotator/FobNationBanner.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in [path]/admincp/brotator.php on line 65

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpYuMkT9' to './images/brotator/FobNationBanner.gif' in [path]/admincp/brotator.php on line 65


Any help will be appreciated

hope I am in the right area.


You have not mentioned much about your setup. Is it being hosted or is it your own server? Do you have root access? When you created the images/brotator sub directory did you chown it to your webuser (ex: apache)?

Is your PHP install running in SAFE mode? Because that could be the problem as well.
If your system is running selinux, check your audit.log file to see if httpd is being denied write access.

Post some real details about your setup and I'll try to help you out.

jkcerda 01-20-2009 09:51 PM

Quote:

Originally Posted by ErnestA (Post 1715783)
You have not mentioned much about your setup. Is it being hosted or is it your own server? Do you have root access? When you created the images/brotator sub directory did you chown it to your webuser (ex: apache)?

Is your PHP install running in SAFE mode? Because that could be the problem as well.
If your system is running selinux, check your audit.log file to see if httpd is being denied write access.

Post some real details about your setup and I'll try to help you out.

Fixed the issue, I have access to the server, its being hosted, now I need to find out hoew to get different images to show instead of the same on

Graphictr 01-22-2009 12:33 PM

Thanks

Xencored 01-25-2009 08:46 PM

Hi thanks for this great addon
but is there anyway to get it so when clicked it Dont open in a new window/Tab ?

sebil 01-30-2009 01:26 PM

working perfectly..
but when i click on the banner an another page is opening.. i want it to set as.. my forumhome page url.. working in the same window..

is therea nyway

davew 02-04-2009 11:01 AM

Worked perfectly first time!

Thank you , great mod - Installed and Nominated..

Cheers,
Dave

ZXeno 02-04-2009 02:44 PM

This is a great mod and I've used it for quite a while now. But I do have a question:

I currently have a set of horizontal ad banners setup across the top of the page. We are looking to get a separate set of banners set up on the left-hand side of the page for commissioned sales banners. Is there any way to do a different grouping of banner rotations so that only a certain group of banners can be rotated?

For reference: http://lsxnation.net We are wanting a separate set of banners below COTM.

bposner 02-07-2009 10:06 AM

I have the banner program working, how/where can I change it's location?
Thanks

bposner 02-07-2009 04:36 PM

Now I'm getting an error about image/pjpg??? the file I'm uploading is a .jpg, whay is it telling me pjpg?

Thank you for time

longgsm 02-11-2009 02:48 AM

Not only rotation banner but also single/Continous banner anywhere with many other banner?

Thanks and best regards!

jonbaker 02-16-2009 01:46 AM

i would like to see more than one banner code, like a previous poster, $banner1, $banner2... etc

also, how do we use SWF files???

vbplusme 02-20-2009 04:38 AM

Quote:

Originally Posted by jonbaker (Post 1745503)
also, how do we use SWF files???

Add a block like this to your banner manager in vboptions.

Code:

<a href="http://www.yourdomain.com/forums/yourlink/ rel="no follow"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="468" height="60" id="header" align="middle">
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="movie" value="http://www.yourdomain.com/images/swf/banner.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <embed src="http://www.yourdomain.com/images/swf/banner.swf" quality="high" bgcolor="#ffffff" width="468" height="60" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></a>


Reycer 03-01-2009 08:39 PM

I have this already (had it for a while and love it), but I want to be able to use it on my VBAdvanced page. How do I go about putting the code as a module so that it shows up?

I tried copying the

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

into the module template, but it's not working. hmm...... any thoughts.


All times are GMT. The time now is 02: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.01329 seconds
  • Memory Usage 1,832KB
  • 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
  • (12)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