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)

SirSteve 09-28-2001 02:21 PM

[QUOTE]Originally posted by FireFly
[B]MarkB:

PHP Code:

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


Does this add the sponsor to threads? If so, can you tell me exactly where this goes?

Admin 09-28-2001 03:36 PM

SirSteve, yes, but you might want to change forumdisplay_sponsoredby to another template.
Add that code (with the new template) in showthread.php right after this:
PHP Code:

getforumrules($forum,$getperms); 

(almost end of file)
Should work. :)

SirSteve 09-28-2001 04:41 PM

Quote:

Originally posted by amykhar

and forumdisplay_sponsoredby was included in the list of required templates.

Finally, I added $sponsoredby to my forumdisplay template.
Everything is clean except the above. I have added the forumsdisplay_sponsoredby template and added $sponsoredby in the forumsdisplay template but nothing is showing up.

ForzaGrifo 09-28-2001 04:55 PM

Quote:

Originally posted by FireFly


ForzaGrifo:
Well, the first error I have NO idea what is all about.
That function is used on ALL admin pages, can't understand what it's producing an error here.

That's what I was saying. The previous calls to makeinputcode() have no problem. When it gets to the makeinputcode() that takes the sponsorname as parameter, error ocurrs. I think it might have got something to do with the fields in the forum table. I've added them in MyPhpAdmin and I'm pretty sure the fields are where they're suppose to be (i.e. after 'cancontainthreads'). It just makes no sense to me why the call to makeinputcode would fail.

Do you know what might have caused makeinputcode() to fail?

Quote:


About the second error:
Can you paste a line or two BEFORE line 365?
Maybe you deleted a ; or }, I dunno. :confused:

No I'm pretty sure I didn't make any syntax error in the code.

[high]* ForzaGrifo Just about to throw his hands up and surrender....
[/high]



:mad:

hondastyle 09-28-2001 07:34 PM

FireFly, you rock... this hack is sweeet !
The install was rather painless and it's extremely easy to use.

Screenshot attached for those wondering what it looks like..

Great job!

Fred 09-29-2001 06:29 AM

Ok - I set it up and works perfect. Thanks man.

TheComputerGuy 09-29-2001 11:43 AM

If you have the MSN hack, and the world time hack it will mess them up...on the index.php

So I thought I would tell ya, and make sure that you are using a backup copy

Admin 09-29-2001 12:08 PM

How will it mess them up, TheComputerGuy?
I don't use those hacks (URLs please? :)), but maybe I can fix it.

shadowbreed 09-29-2001 01:52 PM

I'm using the world time hack and have this one installed without any problems

TheComputerGuy 09-29-2001 09:30 PM

it wiped them out..as in they are no longer present ...I changed it back last night...I will be glad to show u the files...


All times are GMT. The time now is 08:49 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.01482 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
  • (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