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)

DieselMinded 11-12-2008 06:46 PM

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 ,

Zachariah 11-13-2008 12:07 PM

I have it running on VB 3.8
- demo of banner on forum and threads in forum.

DieselMinded 11-13-2008 04:44 PM

can you tell us how to cache the add_banner template

Zachariah 11-14-2008 11:25 AM

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';
}


DieselMinded 11-17-2008 02:50 PM

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

Chadi 12-06-2008 10:25 PM

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.

magnaromagna 12-16-2008 04:47 PM

Quote:

Originally Posted by stuartn (Post 1493823)
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

longgsm 03-14-2009 04:05 AM

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!

longgsm 03-19-2009 12:09 AM

Quote:

Originally Posted by longgsm (Post 1767642)
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> 


Lead Bomber 10-24-2009 04:31 PM

Works in VB 3.8.4 Patch Level 1

Thanks!


All times are GMT. The time now is 12:58 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.01274 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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