vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add "Sponsored by" banners to your forum categories (https://vborg.vbsupport.ru/showthread.php?t=26818)

LuBi 12-06-2001 12:28 AM

Quote:

Originally posted by amykhar
Firefly's first post.

Amy

I did that, and nothing happened. No errors but nothing showed up..

http://www.suprascene.com/supraforums

Lionel 12-18-2001 01:51 PM

Quote:

Originally posted by amykhar
I extended this hack a bit to put a sponsor ad in a particular forum.

and forumdisplay_sponsoredby was included in the list of required templates.
Amy

I tried that, it does not show... Please where do you include the required templates? I placed them twice in forumdisplay.php with all others.

I got it to work on the main page. It is the forumdisplay that does not show. I am using 2.21

Lionel 12-20-2001 04:07 PM

I tried to extend the hack so image shows in forumdisplay but it does not work. The only thing that I am not sure is where to include the template in what list?

amykhar 12-20-2001 05:03 PM

I put mine in the forum display template, right above the $forumslist variable.

Amy

Lionel 12-20-2001 05:17 PM

I meant
forumdisplay_sponsoredby
you said that you placed it in the list of required templates.

Where is that list?

amykhar 12-20-2001 05:25 PM

Ah gotcha!

There is a link to add new templates. Click the link, pick the template set that you want to use it in, and then paste in the code that I supplied.

Amy

Lionel 12-20-2001 05:30 PM

I did all that before. I thought you meant to place it in forumdisplay.php templatesused=

Any way I can't get it to work on forum display. On main page it is fine...

Lionel 12-20-2001 05:47 PM

I got it to work but it is not what I was hoping. Maybe you can help?

Look here and you will see image. Click on main category. This is where I wanted to show it also. Yours shows in Forum 1 which is even great.

amykhar 12-20-2001 06:15 PM

I fixed that on mine as well.

Right now, you placed the code somewhere beneath this

PHP Code:

if ($foruminfo['allowposting']==1

Cut out the code that you added, and paste it right below this instead.

PHP Code:

unset($imodcache); 

Right now, the code is placed only in forums that allow posting. Moving it up a bit gets it on the category pages as well. I don't have the exact code for you because I am no longer running this exact hack.

Amy

hypedave 12-25-2001 05:58 PM

can someone edit my forum.php file. I have tryed and still can get it to work, thanks


All times are GMT. The time now is 06:54 AM.

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.01319 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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