Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add a banner image to each forum (vb3.6) Details »»
Add a banner image to each forum (vb3.6)
Version: 1.07, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.4 Rating:
Released: 11-27-2006 Last Update: Never Installs: 176
DB Changes Uses Plugins Template Edits
 
No support by the author.

/* -----------------11/28/2005 10:37AM-----------------
[HowTo] Add a banner option image to each forum w/ Link V.1.7
Tested on vBulletin: 3.6.4

Zachariah - http://www.gzhq.net

Quote:
This is an update of my previous hack:
*** Add a banner image to each forum (VB 3.5x)
https://vborg.vbsupport.ru/showthread.php?t=94119
DEMO
- banner for an on-line game clan/guild.

*** Info:
  • This modification will Add an image banner w/ link Or paste in your own HTML code option per forum.
  • These files can be any image. (png, jpg, gif, ect).
  • This will be located after the $navbar on FORMDISPLAY and SHOWTREAD.
  • This images can be located on the localhost or on a remote server.

Changelog:
------------
1.7
- str_replace used to place hack at $navbar in FORUMDISPLAY, SHOWTHREAD.
- choice to show in thread per forum.
- Place $add_banner in template if str_replace fails to work.
- add_banner template added


1.6
Banner shows up on each thread
adds: 1 more template edit to the install
Requested by: - Ryan McBain

** Note: 1.5 - 1.6 needs only to edit SHOWTHREAD not Reinstall the XML files

1.5
Added HTML option
Added 3.x to VB 3.5 upgrade XML file.

--------------------------------------------------*/

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 11-12-2008, 06:46 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Running on 3.7.4 In debug mode and this is RED on Show Thread and Show Forum Only on Forums / Thread That do not have Your Mod Active on ,
Reply With Quote
  #83  
Old 11-13-2008, 12:07 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have it running on VB 3.8
- demo of banner on forum and threads in forum.
Reply With Quote
  #84  
Old 11-13-2008, 04:44 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you tell us how to cache the add_banner template
Reply With Quote
  #85  
Old 11-14-2008, 11:25 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm there shoulden't be :|
- I'll have to look @ the zip file attached.

I do have a plugin @ hook cache_templates
Code:
if (THIS_SCRIPT == "showthread" OR THIS_SCRIPT == "forumdisplay" )
{
$globaltemplates[] = 'add_banner';
}
Reply With Quote
  #86  
Old 11-17-2008, 02:50 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your Cache templete is as follows on my board

PHP Code:
if ($foruminfo['bannerthread'] == '1' OR $foruminfo['banner'] OR $foruminfo['bannercode']){
$globaltemplates[] = 'add_banner';

i switched it to what you just posted and it appears to be fixed now thanks
Reply With Quote
  #87  
Old 12-06-2008, 10:25 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod does not work with this one:
https://vborg.vbsupport.ru/showthread.php?t=135297

The code that must be used is:

$showrandomquote

It won't pull when placed in the code box. Do you know of any workaround to this?

Thanks.
Reply With Quote
  #88  
Old 12-16-2008, 04:47 PM
magnaromagna magnaromagna is offline
 
Join Date: Oct 2005
Location: Solarolo, Italy
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stuartn View Post
I've been searching through the FORUMDISPLAY and SHOWTHREAD templates for the code that pulls in the template add_banner. Its not under $navbar, so I checked out $navbar thinking it was globally being pulled over but still no luck. Obviously the template add_banner is in, but it get's pulled those two templates is something I'm struggling width.

Any clues - cause my head is hurting.;-)
Nice hacks.

I'd like to put it in another position (not under navbar but near the footer). How can I move it?

Also,
a code to work like to following?

PHP Code:
<if conditionTHIS HACK>
<else />
$header_advertisement
</if> 

Thanks
Reply With Quote
  #89  
Old 03-14-2009, 04:05 AM
longgsm longgsm is offline
 
Join Date: Dec 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have changed code from add_banner template to right template then show Forumdisplay and showthread very good.

But I want to add more banner show ForumHome but not show Forumdisplay and showthread?

Thanks for your help!
Reply With Quote
  #90  
Old 03-19-2009, 12:09 AM
longgsm longgsm is offline
 
Join Date: Dec 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by longgsm View Post
I have changed code from add_banner template to right template then show Forumdisplay and showthread very good.

But I want to add more banner show ForumHome but not show Forumdisplay and showthread?

Thanks for your help!
I have done already.

PHP Code:
<if condition="THIS_SCRIPT=='index'">Show Content </if> 
Reply With Quote
  #91  
Old 10-24-2009, 04:31 PM
Lead Bomber Lead Bomber is offline
 
Join Date: Sep 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works in VB 3.8.4 Patch Level 1

Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09623 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete