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)

Audionuts 09-20-2002 08:31 PM

Quote:

Originally posted by cklaszlo
I installed it and it works great! One thing we use this Hack:

http://www.vbulletin.com/forum/showt...ht=split+forum

and when we insert the sponsor ad into the forums for some reason they merge back together thus voiding xiphoid's hack.

Any help?

Thanks

just do the same thig you did to your forumhome_forumbit_level1_nopost (xiphoid's hack)
to your forumhome_forumbit_level1_nopost_sponsor
and you will get the break back...

cklaszlo 09-20-2002 08:51 PM

Thanks!!! Worked like a charm.

Audionuts 09-20-2002 08:58 PM

glad i could help :)

pitt2424 10-02-2002 11:34 AM

will this hack work on version 2.2.8

grooveh 10-03-2002 04:37 PM

I am using a modded version of vBIndex, so I do not have this code in my index.php:

Quote:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\

any idea where I'd put the following code then?

Quote:

if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";");
}

TIA for any help.

Rand M 10-17-2002 09:56 PM

Thank you for the great hack!

Installed on 2.2.8 and working without problem.

Thanks
Rand

pcoskat 10-24-2002 04:34 PM

are there any screen shots of the admin functions for this hack?

I guess what I'm wondering is: How easy is it to add the sponsor information & images?

Thx!

XrayHead 11-24-2002 08:32 PM

Very nice, think i will install this hack.

Lee

XrayHead 12-05-2002 01:47 PM

Ok i installed and have changed the template big time !!

See what you think,

Template here.............................................. ..


Lee

jeffj 12-06-2002 12:00 AM

this hack uses the 'sponsorimg' field in order to display the rest of the fields. I do not use the sponsorimg field (don't like to display sponsors logos). If you install it and don't include an image for the sponsor, don't expect it to work, but the hack of the hack is easy...just a heads up...

just change this line:

if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {

to

if ($forum['sponsorurl'] && $forum['cancontainthreads']==0 && $depth==1) {

(assuming you included a link to the sponsor's site)

:)


All times are GMT. The time now is 05:35 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.01369 seconds
  • Memory Usage 1,735KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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