vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Add a banner image to each forum (vb3.6) (https://vborg.vbsupport.ru/showthread.php?t=132716)

Zachariah 11-28-2006 11:49 PM

Quote:

Originally Posted by Jonathan Young (Post 1127621)
Hi i updated, then uninstall ed because i had a problem with my images displaying multiple times. I also reinstalled, images still show multiple times website www.bgleague.com/forum

Ok the reason you seen 2 sets of images:

*** How to Upgrade:

*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD no longer need the code below:

Find:
$navbar

below remove:

Quote:

<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>
This script has a few options. By default install it will attempt to place itself
in FORUMDISPLAY, SHOWTHREAD under location "$navbar" in the templates. If for some
reason your banner does not show up you edit and place $add_banner within the templates.

ShackMaster 11-28-2006 11:52 PM

Code:

$search_text = '$navbar';
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace($search_text,
$search_text.fetch_template('add_banner'), $vbulletin->templatecache['FORUMDISPLAY']);

Is this the code that is supposed to be on my forumdisplay after loading the .xml? Cause that code is nowhere to be found.

ShackMaster 11-28-2006 11:57 PM

I tried placing $add_banner in forumdisplay, but it still doesn't work.

Zachariah 11-29-2006 12:26 AM

Quote:

Originally Posted by ShackMaster (Post 1127695)
I tried placing $add_banner in forumdisplay, but it still doesn't work.

The code above is used in the script to "search" the Forumdisplay template for $navbar and try to place the banner template "add_banner" under.


Do you have $navbar in your Forumdisply template ?
- If so this should show up after you edit a forum and add the needed image, target link, or custom HTML code.

If there is no $navbar in your Forumdisplay then you need to add $add_banner in your template.

I have 2 banners now -

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

Code:

<body>
$header
$add_banner
$navbar

The one the hack places and the same thing above the $navbar because I edited the template.

What have you placed in the AdminCP in the space for the image in the forum you edited ?

Barakat 11-29-2006 01:00 AM

installed . thanks

Jonathan Young 11-29-2006 01:24 AM

Okay, works fine now. Only thing that seems weird is that everything in the forum edit is in a longer form. By that i mean like 3 words a line, then down like a list, then it shows the field, but it doesn't seem to affect the added image part. If you need a screen shot, i can send one if requested.

sensimilla 11-29-2006 04:57 AM

Great share Zachariah thanks again

abramelin 11-29-2006 06:30 AM

lovely mod but doesnt this bad for seo?

firstrebel 11-29-2006 02:57 PM

Quote:

Originally Posted by ShackMaster (Post 1127423)
I'm not able to get this to work, either with a single banner or with the script for random banners.


Instead of placing the $add_banner in Forumdisplay and Showthread, could it be added in the Navbar template?

Try THIS

Bob

computer1 11-29-2006 04:04 PM

Thx for this hack this I like :)

but howe can I put in more and one banners let say if I have 8 banners
some I wont to put in howe shuld I do that ????
so all the banners rotate


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