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)

Stile2 02-03-2008 05:54 AM

Works Perfectly!! thanks

CypherSTL 02-03-2008 08:39 AM

What if you dont have the code in your header?

- Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find:
Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
replace it to:
Code:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>

My Header does not contain the code to look for, so not sure what to replace.

andrefedalto 02-03-2008 08:58 AM

Quote:

Originally Posted by CypherSTL (Post 1435196)
What if you dont have the code in your header?

- Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find:
Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
replace it to:
Code:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>

My Header does not contain the code to look for, so not sure what to replace.

You have to find the code for your current header logo, and replace it with the code from brotator.

Reecey 02-03-2008 09:22 AM

i try to add image and get this error :

Warning: move_uploaded_file(./images/banners/jobs.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /admincp/brotator.php on line 62

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpDGSgso' to './images/banners/jobs.gif' in /admincp/brotator.php on line 62

pow6713 02-03-2008 10:24 AM

Code:

<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner $banner</a></center>
I add a " $banner " to header and it still works...

And is it possible to locate more than one banner ...

2 or more lines and 2 - 4 - 6 banners and we are going to have more banners on our forums ...

and maybe we can add google addsense ... :D

is it possible ?

andrefedalto 02-03-2008 10:32 AM

Quote:

Originally Posted by Reecey (Post 1435215)
i try to add image and get this error :

Warning: move_uploaded_file(./images/banners/jobs.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /admincp/brotator.php on line 62

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpDGSgso' to './images/banners/jobs.gif' in /admincp/brotator.php on line 62

be sure you have a folder called "banners" inside your forum images folder.

Quote:

Originally Posted by pow6713 (Post 1435236)
Code:

<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner $banner</a></center>
I add a " $banner " to header and it still works...

And is it possible to locate more than one banner ...

2 or more lines and 2 - 4 - 6 banners and we are going to have more banners on our forums ...

and maybe we can add google addsense ... :D

is it possible ?

If you add just $banner you will miss the linking function :)
You can put the banner anywhere you want, but it'll show the same banner in all places, to change u gotta refresh the page. Maybe with a little tweak you can add the option to get more then one banner from the database.

No, google adsense is not supported :(

Reecey 02-03-2008 12:43 PM

yeh it is but it dont work still :(

Stile2 02-03-2008 03:32 PM

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

andrefedalto 02-03-2008 10:26 PM

Quote:

Originally Posted by Reecey (Post 1435313)
yeh it is but it dont work still :(

Please try uninstalling the entire modification and reinstalling from the beggining. If that doesnt work, please provide more information, like server configuration.

uReside.com 02-04-2008 03:45 PM

I'm getting the error 65 error

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

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phppPu2IT' to './images/brotator/templogo1.jpg' in /admincp/brotator.php on line 65

I needed to change permissions on the folder.


All times are GMT. The time now is 11:25 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.01200 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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