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)

Admin 10-24-2001 10:17 AM

Great work Amy! :)

etones 11-02-2001 05:58 AM

Hey, this is a really great hack and I want it, however will it work non 2.2.0??

Please reply, cheers all!

Admin 11-02-2001 11:21 AM

Most chances are that it does, although I haven't had the time to test it yet.

eva2000 11-02-2001 11:26 AM

Quote:

Originally posted by FireFly
Most chances are that it does, although I haven't had the time to test it yet.
well i'm waiting ;) :D

etones 11-02-2001 05:04 PM

Im waiting toooo! :)

etones 11-02-2001 08:02 PM

Tested on 2.2.0 and it works, great one m8!!

Cheers

eva2000 11-02-2001 08:37 PM

Quote:

Originally posted by etones
Tested on 2.2.0 and it works, great one m8!!

Cheers

hey taz where did ya forum go ? 404 error http://www.e-tones.co.uk/forums/index.php ??

Admin 11-03-2001 07:15 AM

[QUOTE]Originally posted by etones
Tested on 2.2.0 and it works, great one m8!!

Cheers

etones 11-03-2001 08:37 AM

Eva, i took it down while testing, its at a secret location :)

message me on ICQ and i'll show you :)

etones 11-03-2001 09:07 AM

I simply cannot get the below to work with version 2.2.0, can anyone help?

Quote:

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

To do this, I added a new template called forumdisplay_sponsoredby and put this in it:

PHP Code:

<br><br><a href="$foruminfo[sponsorurl]target="_blank"><img src="images/$foruminfo[sponsorimg]border="0" alt="Proudly sponsored by $foruminfo[sponsorname]"></a>
<
br

I then edited forumdisplay.php so that

PHP Code:

if ($foruminfo['sponsorimg']) {
  eval(
"\$sponsoredby = \"".gettemplate('forumdisplay_sponsoredby')."\";");
}
else {
  
$sponsoredby '';


was immediately AFTER

PHP Code:

if ($foruminfo['allowposting']==1) {
  eval(
"\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");


and forumdisplay_sponsoredby was included in the list of required templates.

Finally, I added $sponsoredby to my forumdisplay template.

Sorry for the clumsy explanation. It took a bit of putzing around for me to get this to work, but it does. :)

demo:
http://www.eaforums.com/forumdisplay.php?s=&forumid=27


Amy



All times are GMT. The time now is 01:05 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.01335 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_php_printable
  • (3)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