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)

Zachariah 02-27-2006 12:15 PM

Quote:

Originally Posted by funinthesun
Hi, I've got this installed but since I upgraded to 3.5.3 it's stopped displaying the banners. Any reason why? Thanks.

May have to add the template edits again.
- I plane to kill the template edits with plugins. (next ver.)

jamshed 02-27-2006 02:02 PM

wat abt my question?

Zachariah 02-27-2006 05:00 PM

Quote:

Originally Posted by jamshed
wat abt my question?

Can you view this ?

Demo:
http://www.gzhq.net/forums/forumdisplay.php?f=235

2 google images w/ links
Code:

<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>

Kuimera also had problems - Look @ post 136-155
- Had some problems w/ opera browser.

megnin 03-07-2006 09:57 AM

Hi,
I just finished reading this entire thread and this looks like a great mod. I have very little experience with vB. Just installed v3.5.3 a couple weeks ago and upgraded to 3.5.4 a couple days ago.

I just want to make sure I don't scr*w this up. ;-)

In the control panel, I import banner_image.xml.
Then do I need to make any manual edits to any files before using the new options?

Sorry for the really dumb question, but I really have only a few hours experience with vBulletin. I was excited when the upgrade from 3.5.3 to 3.5.4 worked. :-)

Thanks.

megnin 03-07-2006 10:37 AM

Hi,
I started to "upload plugin" and vBulleting told me it appeared to be a "product" to use the product manager. So I uploaded it with "Manage Products" and it shows up as Add Banner 1.6 under Installed Products.

I went to the forum manager and edited a couple of forums and added "/images/misc/forum1.gif" to the first forum and "/images/misc/forum2.gif" to the second one.

No images appeared in the forums. What did I not do. I'm sure it's something I didn't do correctly or missed.

Thanks again.

kpr 03-07-2006 10:58 PM

Nice hack thanks.

CnB 03-08-2006 04:03 PM

Nice hack just what i need.
few questions though

is it possible to show the banner/image always ? in the header not mather what page your on ?
and is it possible to have more then 1 image, switch image after x seconds ?

cbr929rrerion 03-08-2006 07:10 PM

Quote:

Originally Posted by CnB
Nice hack just what i need.
few questions though

is it possible to show the banner/image always ? in the header not mather what page your on ?
and is it possible to have more then 1 image, switch image after x seconds ?

I have a script that works well to rotate the images, can set the delay as short or long as you like..

Only down fall is it goes in the same order every time, I wish I had a script or something that would put a differant add everytime the page refreashed but this one works ok...

megnin 03-08-2006 08:47 PM

Quote:


Upload the "plug-in" and edit 2 template, It's a snap.

So, in FORUMDISPLAY and SHOWTHRED, I just replace everything below "$navbar", with the code below right?
Quote:

2) Edit and add / replace(old code).

*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD

Find:
$navbar

below add / replace:


<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 />
</if>
</if>
</if>

Zachariah 03-09-2006 02:35 PM

Quote:

Originally Posted by megnin
So, in FORUMDISPLAY and SHOWTHRED, I just replace everything below "$navbar", with the code below right?

No.

The replace was for people who upgraded many ver back.

Find: $navbar

add under:
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 />
</if>
</if>
</if>



All times are GMT. The time now is 08:03 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.03337 seconds
  • Memory Usage 1,744KB
  • 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
  • (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