vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add a banner image to each forum (vb3.5) (https://vborg.vbsupport.ru/showthread.php?t=94119)

2fast4ya 11-10-2005 06:27 PM

hi, i added everything that was supposed to be added, and followed your instructions word for word... but for some reason my custom style went away... its at the original style... what happened?

Zachariah 11-10-2005 07:09 PM

Quote:

Originally Posted by 2fast4ya
hi, i added everything that was supposed to be added, and followed your instructions word for word... but for some reason my custom style went away... its at the original style... what happened?

Little lost.

is your skins set:

- Default (edited style)
-- Custom
-- Custom

Many times the custom skins need to be edited to show the edits.

cuphongle 11-13-2005 06:21 PM

i installed the products....but dont see the option anywhere

Zachariah 11-13-2005 06:46 PM

Quote:

Originally Posted by cuphongle
i installed the products....but dont see the option anywhere

When making or editing a "forum" look @ the bottem of the page.

https://vborg.vbsupport.ru/attachmen...chmentid=34099

AdminCP => Forums & Moderators => Forum Manager => Edit a Forum / Add New Forum

agiacosa 11-14-2005 05:43 PM

Quote:

Originally Posted by SupermanInNY
Great!
That worked!
I'm curious though,. wouldn't it make more sense to put the Header/Footer heck run from the Forum Manager page? with similar interface as the Per-Forum mod? This is just an observation,. I like the heck (both of them) :).

-Alon.

Hi

Upgraded to 3.5.1 from 3.5 where the mod was working. I had to revert Forumhome and Showthread. I reuploaded the product and did the addition to those two templates.

It isn't working. What do I need to do to get this working in 3.5.1? Thanks.

sim tech 11-14-2005 07:25 PM

Quote:

Originally Posted by Zachariah
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.

EX:
This will show @ random.

image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com


Code:

<script language="javascript" type="text/javascript">
<!--
function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
 
// keep adding items above here...

increment = Math.floor(Math.random() * number);
document.write(banner[increment]);

//-->
</script>

Useage: If you need more banners edit / add another row.
Code:

banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location

I installed the mod on my version 3.51 and it works fine.

But I also was looking for something like this that would display banner ads on the actual forum header & rotate through several different spnsor ads, and your java script worked like a champ! THANK YOU! THANK YOU! THANK YOU!

I just placed it in the header script of the default template.

Zachariah 11-14-2005 07:50 PM

Quote:

Originally Posted by sim tech
I installed the mod on my version 3.51 and it works fine.

But I also was looking for something like this that would display banner ads on the actual forum header & rotate through several different spnsor ads, and your java script worked like a champ! THANK YOU! THANK YOU! THANK YOU!

I just placed it in the header script of the default template.

Great news. Glad it helped out.

:banana:

craiovaforum 11-17-2005 09:54 AM

I was wondering, is there any way to add banners for different forums, like this plugin does but in the header of the forum?
Like in the attachement

RGSMDNR 11-17-2005 11:42 AM

can these banners be hidden to a user group?

Zachariah 11-17-2005 11:55 AM

Quote:

Originally Posted by craiovaforum
I was wondering, is there any way to add banners for different forums, like this plugin does but in the header of the forum?
Like in the attachement

You can add the template edit made to the forumhome to the header, but on forums w/o an image or anywere else will be a blank space where the image should be.

Try this:

header template:

Code:

<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else /><img src="images/banner/default.gif" border="0">
</if>

</if>
</if>
</if>

This will place a default image in place when not in a forum w/ an image.



Now I have also done this added this hack to "Add Extra Header / Footer"

Add Extra Header / Footer
https://vborg.vbsupport.ru/showthrea...threadid=99544

Code:

<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else />$vboptions[fhx2h]
</if>

</if>
</if>
</if>

This only says use the Add Extra Header when there is no image for a forum. There still is a "footer to place", but you may have a need somewere.


All times are GMT. The time now is 05:05 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.02632 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_code_printable
  • (6)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