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)

DiSS Troya 01-12-2002 09:23 PM

appreciate the hack!

Okiewan 01-14-2002 05:11 PM

Anyone ? Purdy Please?



First of all... great hack firefly... nice mods too amykhar!

Got it working great on forum home and forum display... now trying to get it to show-up on threads, ie; if a forum is sponsored, the threads within that forum inherit the sponsor and display it on each thread.

tried building duplicate template called sponsoredby_thread, with the following:

PHP Code:

<a href="$foruminfo[sponsorurl]target="_blank"><img src="{imagesfolder}/$foruminfo[sponsorimg]border="1" alt="This Forum Made Possible by $foruminfo[sponsorname]"></a


Modified showthread per iinstructions found here, calling that new template.

Added "$sponsoredby" in the template showthread...

Seems to be some kind of path issue? Picks up a holdedr for the image (including alt text), but no sponsor image and no link.

Any ideas? Am I doing this all wrong?

Thanks in advance for any assistance and thanks again for the hack. VERY useful.

Okiewan 01-16-2002 01:36 PM

Okay, I'm guessing one of the following:

1) No one cares
2) No one has time
3) It can't be done
4) I'm invisable

It would be cool to at least find out why the "sponsor in threads" question isn't being answered... I'd know rather to give-up on it or not.

?

Admin 01-16-2002 01:39 PM

Try using the $forum array instead of $foruminfo in your sponsoredby_thread template. :)

Okiewan 01-16-2002 01:56 PM

AH HA!
Thanks a lot FireFly... that worked.

Admin 01-16-2002 02:12 PM

[QUOTE]Originally posted by Okiewan
AH HA!
Thanks a lot FireFly... that worked.

Ninth Dimension 01-24-2002 09:34 AM

Cool hack, worked fantasticly first time, thank you.

X-Fan 01-28-2002 11:35 AM

Quote:

Originally posted by FireFly
[B][Currently it only supports categories from level 1, and only on forum index. -if you want more please tell and I'll see what I can do.
Great hack, firefly, especially for my forum which, when it goes live, will be sponsored by an online store.

It would be fantastic if you could make it so that sponsored by graphics can show up on forums as well - perhaps by inheriting the sponsor info from the parent category?

I have no idea how to do that, though, so could you possibly create a new step-by-step hack to do that?

Airwaves 02-04-2002 09:26 AM

working with vb2.2.2 ?

http://www.mobile-forum.com - just upgraded to 2.2.2

I have the bg image from the sitepoint forums sponsor cells and it should go lovely with my colour scheme, how do i have it as the bg image in the sponser cells on my site??

also, how do I get the image to be to the RIGHT instead of the left?

importmix 02-04-2002 02:30 PM

great hack fly!

i also added amy's hack, but it didn't seem to work. i want the same ad from fly's hack to show on the corresponding threads, sub-forums....so on.


All times are GMT. The time now is 10:55 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.01445 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
  • (1)bbcode_php_printable
  • (1)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