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 08-30-2001 09:52 AM

Ok...

TWTCommish 08-30-2001 02:36 PM

Sure ya do. I saw it on TV! All people in Alaska wear big brown fluffy coats, live in igloos, have dark tan skin, and eat Eskimo Pie. :D TV told me so...

Where did James/John go?

mjames 08-30-2001 02:42 PM

Quote:

Originally posted by TWTCommish
Sure ya do. I saw it on TV! All people in Alaska wear big brown fluffy coats, live in igloos, have dark tan skin, and eat Eskimo Pie. :D TV told me so...

Where did James/John go?

My guess? Somewhere out in the Bahamas burning their millions of dollars from vBulletin. :)

BradC 08-30-2001 02:49 PM

Quote:

Originally posted by mjames

My guess? Somewhere out in the Bahamas burning their millions of dollars from vBulletin. :)

yah with all that money.... I don't think they will be coming back soon... what was that island tubedogg wanted... maybe they purchased it, and are there.. :)

BradC 08-30-2001 02:51 PM

Quote:

Originally posted by Lordmusic
Don't dis Alaska. I LIVE IN ALASKA. Me = Alaskan Pimp.

Anyways Alaska is cool, and for your info, we don't live in friggin igloos.

Wasn't there a tv show on called something like "Northern Exposure" that was about living and.. umm I working in Alaska.. or was that for somewhere else :)

Ohh... I guess we get the image.. of people living in igloo's... surfing the web and buying stuff off of yahoo.. :)

FreshFroot 08-30-2001 03:58 PM

Great hack...muchas gracias!

Admin 08-30-2001 04:22 PM

[QUOTE]Originally posted by FreshFroot
Great hack...muchas gracias!

amykhar 08-30-2001 04:43 PM

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="{imagesfolder}/$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

Admin 08-30-2001 04:51 PM

Good job! :)

eva2000 08-30-2001 07:39 PM

nice extension.. waits for 2.0.4 first :D


All times are GMT. The time now is 07:59 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.01198 seconds
  • Memory Usage 1,742KB
  • 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
  • (3)pagenav_pagelink
  • (1)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