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)

TheComputerGuy 09-28-2001 12:38 AM

Nice Hack FireFly works great

YourHostSucks 09-28-2001 01:24 AM

Well I tried to add this to PHP include, then use it on the forums

PHP Code:

$sp1 = include("http://blahblah.com/cgi-bin/blah/clickcount.cgi?URL=http://blahblah.com"); 

then place $sp1 where I wanted their number of click to show up..
Well this only placed the number of clicks above the logo , and return the number "1" were the correct number was sup.. to be..

I just* got vBulletin and have not had time to read all the information on it, nor do I understand how it works at all (heh)

But I woud have figure you add that to phpinclude and then use it..


anyone have any ideas? :)

ForzaGrifo 09-28-2001 01:56 AM

Quote:

Originally posted by FireFly
ForzaGrifo:
Can you please paste the complete error message here?
This function is used on almost all files, you really shouldn't have a problem with it.
Is this the only place you get this error?


Everyone seems to have no problem but I'm having tons of problem!

Here's the error message when I tried to add a forum in vb's cpanel:

Fatal error: Call to undefined function: makeinputcode() in /home/everyone/public_html/forum/admin/forum.php on line 123

Line 123 is this line:

?makeinputcode("Sponsor name","sponsorname");

In the cpanel I would see the add forum screen but after the "Sponsor(only supported by categories)" header, it gets cut off and the rest of the input fields are not shown.

And I'm getting this error when I try to show my forums:

Parse error: parse error in /home/everyone/public_html/forum/index.php on line 365


Line 365 in my index.php is this:

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


Which doesn't make any sense. It seems it's not regconizing the fact that I have added the new fields in the forum tables, and I'm sure that I have added them to the table.
Please help!!!:(

Admin 09-28-2001 12:44 PM

MarkB:

PHP Code:

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


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.

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

SirSteve 09-28-2001 01:52 PM

makeinputcode("Sponsor banner file<br>(your default images folder is added, no need in that)","sponsorimg");

Shouldn't that be "sponsoring" ?

Also, I would like all my sponsor images in a subfolder under images. Can you help me with this?

YourHostSucks 09-28-2001 01:57 PM

Quote:

Also, I would like all my sponsor images in a subfolder under images. Can you help me with this?

when you enter the path to the image just enter:

/images/sponsors/blahblah.gif

or what folder you create and sponsors image name...

Admin 09-28-2001 01:58 PM

[QUOTE]Originally posted by SirSteve
makeinputcode("Sponsor banner file<br>(your default images folder is added, no need in that)","sponsorimg");

Shouldn't that be "sponsoring" ?

Also, I would like all my sponsor images in a subfolder under images. Can you help me with this?

Admin 09-28-2001 02:00 PM

[QUOTE]Originally posted by YourHostSucks
when you enter the path to the image just enter:

/images/sponsors/blahblah.gif

or what folder you create and sponsors image name...

YourHostSucks 09-28-2001 02:08 PM

doh, yea i have mine setup in the /sponsor folder..

and /sponsors/blah.jpg

just a brain fart -=/

SirSteve 09-28-2001 02:18 PM

Quote:

Originally posted by FireFly

No, sponsorimg = sponsor image. :)

I seen that afterwards. :)

Thanks.


All times are GMT. The time now is 10: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.01411 seconds
  • Memory Usage 1,744KB
  • 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