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)
-   -   vBTopSite (https://vborg.vbsupport.ru/showthread.php?t=59447)

PixelFx 01-20-2004 06:49 AM

I'm having issues trying to get this to work, I read all the posts, but still not sure what to do to get this working.

DEMO:
http://www.orbsydia.com/forum/topsites.php

System Info:

Code:


Database error in vBulletin Control Panel 2.3.3:

Invalid SQL: UPDATE topsites_options SET display='2',active='1',require='1',hitson='1',buttons='http://www.orbsydia.com/forum/images/t100btns',arrows='http://www.orbsydia.com/forum/images/t100rank',perpage='25',totalbuttons='5',daytime='1',htmlallowed='<b><u><i>',bheight='31',bwidth='88',bborder='0',resolve='1',rankby='totalin'
mysql error: 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 'require='1',hitson='1',buttons='http://www.orbsydia.com/forum/i

mysql error number: 1064

Date: Tuesday 20th of January 2004 04:45:24 AM
Script: http://www.orbsydia.com/forum/forum/...ites_admin.php
Referer: http://www.orbsydia.com/forum/admin/...ction=options&
Repair Report: This type of error cannot be automatically repaired.

I created this to try and get it working temorally, however if I goto try and change the options I still get the error above.... temp fix below, however I'm still fairly new to mysql/php.

Code:


UPDATE `topsites_options` SET `active` = '1',
`hitson` = '1',
`perpage` = '25',
`totalbuttons` = '5',
`resolve` = '1',
`rankby` = 'totalin' WHERE `active` = '0' AND `hitson` = '0' AND `perpage` = '10' AND `daytime` = '1' AND `require` = '1' AND `buttons` = 'http://www.orbsydia.com/forum/images/t100btns' AND `totalbuttons` = '10' AND `resolve` = '0' AND `display` = '2' AND `htmlallowed` = '<b><u><i>' AND `bheight` = '31' AND `bwidth` = '88' AND `bborder` = '0' AND `arrows` = 'http://www.orbsydia.com/forum/images/t100rank' AND `rankby` = 'todayunique' LIMIT 1 ;

I've got a cpanel system... When I try to update info in the ACP, options I get the above error :( .. other than that it looks like a sweet system. I tried the suguested topsites_admin.php update for 1064 error, but doesn't seem to help.

Darkwaltz4 01-20-2004 08:57 AM

PixelFX I highly suspect you are having the same error as everyone else (which I shall update the files in the next version to reflect this) but in topsites_admin.php, first revert the line which you changed, and instead change
PHP Code:

require= 

to
PHP Code:

`require`= 

in all instances where it appears, although it should only be once :). You're just running a newer version of MySQL than I was when I first coded this hack. Like I said, I'll be fixing this permanantly when I post up the next version.

PixelFx 01-20-2004 10:14 AM

you know I tried that before and it didn't work on my own, when when I tried it now, it worked :P whats up with that :P lol Thanks for help.

DEMO: http://www.orbsydia.com/forum/topsites.php

works great now, .. if I wasn't half awake I'd make 100 buttons for ranking :P

Assault 03-03-2004 03:52 PM

i am still have'n problems with thjis install

Quote:

Database error in vBulletin Control Panel 2.3.4:

Invalid SQL: UPDATE topsites_options SET display='1',active='1',require='1',hitson='1',butt ons='http://rapwize.com/forums/topsites/images',arrows='www.rapwize.com/topsites',perpage='25',totalbuttons='3',daytime='1 ',htmlallowed='<b><u><i>',bheight='63',bwidth='63' ,bborder='0',resolve='1',rankby='todayunique'
mysql error: 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 'require='1',hitson='1',buttons='http://rapwize.com/forums/topsi

mysql error number: 1064

Date: Wednesday 03rd of March 2004 12:29:28 PM
Script: http://www.rapwize.com/board/forums/...ites_admin.php
Referer: http://www.rapwize.com/forums/admin/...ction=options&

PixelFx 03-03-2004 04:52 PM

This worked well when I had it on vb2, I was wondering if there are any plans to make this for vb3 as well? It's an awesome system...

Darkwaltz4 03-03-2004 07:33 PM

yeah, same old error

change (everywhere you find it, should only be once)

require=

to

`require`=

to PixelFX:
Im in the process of creating a standalone script which will work independantly of vb, and be even better than aardvark for php topsites :-p i want to become the new norm! :-p

vb3 hacking in general has gone slowly for me >.> as i am still relearning where everything is now

Assault 03-05-2004 11:34 AM

i don't see it in the topsites_admin.php file can somebody please help me

Assault 03-05-2004 11:35 AM

and i am getting the same error

Quote:

Database error in vBulletin Control Panel 2.3.4:

Invalid SQL: UPDATE topsites_options SET display='1',active='1',require='1',hitson='0',butt on s='',arrows='',perpage='10',totalbuttons='50',da ytime='1',htmlallowed='<b><u><i>',bheight='0',bwid th='0', bborder='0',resolve='0',rankby='todayunique'
mysql error: 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 'require='1',hitson='0',button s='',arrows='',perpage='10',tota

mysql error number: 1064

Date: Friday 05th of March 2004 08:36:16 AM
Script: http://www.rapwize.com/board/forums/...ites_admin.php
Referer: http://rapwize.com/forums/admin/tops...ction=options&

Darkwaltz4 03-05-2004 12:03 PM

Quote:

Originally Posted by Assault
and i am getting the same error

I know its there and I know its that error:

in topsites_admin.php:
PHP Code:

',require=' 

change to
PHP Code:

',`require`=' 

it appears only once...ill get around to fixing the file eventually >.<

Assault 03-05-2004 01:06 PM

Quote:

Originally Posted by Darkwaltz4
I know its there and I know its that error:

in topsites_admin.php:
PHP Code:

',require=' 

change to
PHP Code:

',`require`=' 

it appears only once...ill get around to fixing the file eventually >.<

thanx it works


All times are GMT. The time now is 02:11 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.01216 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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