![]() |
i get this error when i put the $variable = topsites_stats(); after the code from function.txt
error: Quote:
|
oh, i think i know what the problem is
in the function, after function topsites_stats() { put: global $DB_site; should work then (i havent tested any of this) |
ok i no longer get an error but now on my forum home where i put the variable for site title of which ever is rank #1 i get this:
Quote:
|
$topsites_array[#][siteid]
$topsites_array[#][site_url] $topsites_array[#][site_title] $topsites_array[#][site_webmaster] $topsites_array[#][site_description] $topsites_array[#][today_in] $topsites_array[#][today_out] $topsites_array[#][today_unique] $topsites_array[#][today_hits] $topsites_array[#][total_in] $topsites_array[#][total_out] $topsites_array[#][total_hits] $topsites_array[#][total_unique] $topsites_array[#][average_unique] $topsites_array[#][average_out] $topsites_array[#][average_hits] $topsites_array[#][average_in] make sure your typing it right in your templates: from $variable = topsites_stats(); the the title of the first should be $variable[1][site_title] |
this is wut i put in my forumhome template:
$variable[1][site_title] |
why dont you just try doing this...remove the function, remove the line, and put this where you originally had the line:
PHP Code:
|
hmm, i keep getting ARRAY[site_title]
|
hmm ill install this somewhere and see how it works. watch for me to edit this post with my findings
EDIT: i just tried both the function method and the straight method. both worked perfectly.....show me the code you have in your template (a larger portion of it) |
Database error in vBulletin Control Panel 2.3.3:
Invalid SQL: UPDATE topsites_options SET display='2',active='1','require'='1',hitson='1',bu tton s='http://forums.sgwdc.com/images/sgwdc/topsite/',arrows='http://forum.sgwdc.com/images/sgwdc/topsite',perpage='10',totalbuttons='10',da ytime='1',htmlallowed='<b><u><i>',bheight='31',bwi dth='88', 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='1',button s='http://forums.sgwdc.com/ima mysql error number: 1064 Date: Sunday 04th of January 2004 02:40:54 PM Script: http://forums.sgwdc.com//admin/topsites_admin.php Referer: http://forums.sgwdc.com/admin/topsit...ction=options& After i edited.. =x please help |
sorry, i gave you the wrong quotes for the require section...
(maybe i should change the column for that...its caused too many issues :-p) anyway, change (what you have) 'require'= to `require`= (the backwards apostraphe..not sure what its called) also, when your done, if you give me your link ill add it to the first post ^_^ |
All times are GMT. The time now is 09:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|