vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB.Sponsors - Forum and Category Sponsorship with Statistics (https://vborg.vbsupport.ru/showthread.php?t=103327)

djmini 12-29-2005 03:18 AM

Ok...

No Screen shots...

but I can explain the settings.

Enable Sponsor YES
Sponsor Name TMMZ
Use Sponsor Banner NO
Sponsor Banner
Sponsor URL http://www.teammightyminiz.com


_________________

So, that is set..

then when clicking on the "sponsored by TMMZ" text in the newly sponsored froum

Quote:

Not Found



The requested URL /forum/vB.Sponsors/link.php was not found on this server.
the hyperlink = http://www.teammightyminiz.com/forum.../link.php?f=12

BTW it doesn't matter what sponsor name or url I add in the cp, it always hotlinks it ... http://www.teammightyminiz.com/forum.../link.php?f=12

Everytime.

Deviation 12-29-2005 10:54 AM

Quote:

Originally Posted by djmini
Ok...
the hyperlink = http://www.teammightyminiz.com/forum.../link.php?f=12

BTW it doesn't matter what sponsor name or url I add in the cp, it always hotlinks it ... http://www.teammightyminiz.com/forum.../link.php?f=12

So http://www.teammightyminiz.com/forum is your site, correct?

From what I can tell, the directory /vB.Sponsors doesn't exist on that server. You did upload the items in the zip file to the server, correct? Also be sure the case is EXACTLY the same. Linux/Unix servers are sensitive to case (e.g. - vB is not equal to vb). So to recap, the vB.Sponsors directory should be uploaded to http://www.teammightyminiz.com/forum/vB.Sponsors/ .

If your testing it one specific forum, it will always be that forum's id (from vBulletin). It won't change the link the users click on. Only the site they are redirected to. The only time the "f=" part changes is when its a different forum/category.

djmini 12-29-2005 06:01 PM

ugh

I dunno

Warning: chdir(): No such file or directory (errno 2) in /var/www/html/forum/vB.Sponsors/link.php on line 27

Warning: main(./global.php): failed to open stream: No such file or directory in /var/www/html/forum/vB.Sponsors/link.php on line 29

Fatal error: main(): Failed opening required './global.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/forum/vB.Sponsors/link.php on line 29

Deviation 12-29-2005 09:33 PM

Quote:

Originally Posted by djmini
ugh

I dunno

Warning: chdir(): No such file or directory (errno 2) in /var/www/html/forum/vB.Sponsors/link.php on line 27

Warning: main(./global.php): failed to open stream: No such file or directory in /var/www/html/forum/vB.Sponsors/link.php on line 29

Fatal error: main(): Failed opening required './global.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/forum/vB.Sponsors/link.php on line 29

The path you entered on line 27 isn't correct. It should point to the root of your forum. Example:
chdir('/var/www/html/forum/');

The trailing slash is important.

Getting closer. Don't give up yet. ;)

Deviation 12-29-2005 10:37 PM

Quote:

Originally Posted by Zilvia
This is the code I get from PHPMyAdmin after entering the query. The other error was from mysql.com when I looked up error #1064. Thanks!

MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE Zilvia2K3_forum ADD (sponsor_banner_enabled INT(6) U

Didn't forget about you.;)

I just got MySQL 5.0 installed. The only issue I ran into was that I didn't specify a default value for some of the values. I've updated the zip file.

Try this (replace prefix with your table prefix):
First, drop the columns:
Code:

ALTER TABLE `PREFIX_forum` DROP `sponsor_enabled` ,
DROP `sponsor_banner_enabled` ,
DROP `sponsor_name` ,
DROP `sponsor_banner` ,
DROP `sponsor_url` ;

Now manually add the tables back:
Code:

ALTER TABLE `PREFIX_forum` ADD (sponsor_enabled INT(6) UNSIGNED NOT NULL DEFAULT '0');
ALTER TABLE `PREFIX_forum` ADD (sponsor_banner_enabled INT(6) UNSIGNED NOT NULL DEFAULT '0');
ALTER TABLE `PREFIX_forum` ADD (sponsor_name VARCHAR(250) NOT NULL DEFAULT '');
ALTER TABLE `PREFIX_forum` ADD (sponsor_banner VARCHAR(250) NOT NULL DEFAULT '');
ALTER TABLE `PREFIX_forum` ADD (sponsor_url VARCHAR(250) NOT NULL DEFAULT '');

Let me know if this works for you.

djmini 12-30-2005 01:40 AM

Hmmm I just can't figure it out.

I get this
The requested URL /forum/vB.Sponsors/link.php was not found on this server.

Is this normal???

/var/www/html/forum/

Is that ^ wrong?

What should it read if it is wrong?

So out of my element, but still seeking the answers.

Deviation 12-30-2005 11:07 AM

djmini,
I've attached a file called settings-check.php. Upload this to the vB.Sponsors directory on your server. Run the file. It will show you what the forum directory should be. Enter this on line 27 of link.php. Remember to delete the file from your server when you're done with it.

This file is now included in the zip package to help with the installation.

djmini 12-30-2005 04:45 PM

Awesome, that worked fine.

/var/www/html/forum/vB.Sponsors
was the one.

Thank You!

djmini 12-30-2005 04:49 PM

shoot spoke too soon... it worked Once...

now the error is

Database error in vBulletin 3.5.2:

Invalid SQL:
INSERT INTO `vBSponsors` ( `id` , `sponsor_name` , `forum`, `date` ) VALUES ( '', 'TEST', 'TMMZ Archives', '1135973173');

MySQL Error : Duplicate entry '0' for key 1
Error Number : 1062
Date : Friday, December 30th 2005 @ 03:06:13 PM
Script : http://www.teammightyminiz.com/forum.../link.php?f=12
Referrer : http://www.teammightyminiz.com/forum/
IP Address : XXXXXXXXX
Username : XXXXX
Classname : vb_database

Deviation 12-30-2005 05:27 PM

Quote:

Originally Posted by djmini
shoot spoke too soon... it worked Once...

You have an older version. That bug has been fixed.;)

Uninstall via product manager, download the latest version, upload new files (overwriting old ones) and reinstall via product manager. Make sure you edit the link.php again (since it will be overwritten).


All times are GMT. The time now is 01:45 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.01212 seconds
  • Memory Usage 1,751KB
  • 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_code_printable
  • (5)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