Pagina 1 van 1
importal actieve gebruikers
Geplaatst: 06 mei 2006, 00:37
door calimero
ik heb de mod active gebruikers toegevoegd aan im portal maar krijg deze melding
Code: Selecteer alles
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/onzefret/domains/onzefret.nl/public_html/onzefret/blocks/blocks_imp_users_visited.cfg on line 35
Geplaatst: 06 mei 2006, 09:08
door Bee
Geef regel 30 tot 40 van blocks/blocks_imp_users_visited.cfg eens, of maak er een tekstbestand van en plaats hier een linkje.
Geplaatst: 06 mei 2006, 20:13
door calimero
hij gaat maar tot 37 dit is namelijk 37 ?>
maar hier is hetvan 30 tot 37
Code: Selecteer alles
// array( <Field label>, <Field Info>, <Config Name>, <Options>, <Field Values>, <Control Type>, <Block>, <Default Value>);
$block_variables = array(
array('Number of hours to track users', '', 'md_hours_track_users', '', '', '1', 'users_visited', '24'),
array('Scroll delay', 'higher values means slower scroll', 'md_scroll_delay', '', '', '1', 'users_visited', '100'),
array('Display users who did not visit', 'tick to display users who didn't visit the site', 'md_display_not_visit', '', '', '4', 'users_visited', '0')
);
?>
Geplaatst: 06 mei 2006, 20:15
door Paul
Geef de hele file dan eens in een tekstbestand?
Geplaatst: 06 mei 2006, 20:34
door calimero
alles van die mod of alleen dat cfg
http://www.onzefret.nl/block.rar
Geplaatst: 06 mei 2006, 20:36
door Paul
Code: Selecteer alles
array('Display users who did not visit', 'tick to display users who didn't visit the site', 'md_display_not_visit', '', '', '4', 'users_visited', '0')
wordt
Code: Selecteer alles
array('Display users who did not visit', 'tick to display users who didn\'t visit the site', 'md_display_not_visit', '', '', '4', 'users_visited', '0')
Geplaatst: 06 mei 2006, 21:43
door calimero
bedank !!!!
nou krijg ik dit
en ik heb de sql uitgevoerd wwant ik krijg dit als ik het nog een keer doe
Code: Selecteer alles
Fout
SQL-query:
SELECT *
FROM
WHERE CONCAT_WS( "-", 'visit_counter', '0' ) = "visit_counter"
ORDER BY 'visit_counter', '0'
MySQL retourneerde:
#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 'WHERE CONCAT_WS( "-", 'visit_counter', '0' )
= "visit_' at line 3
Code: Selecteer alles
Could not insert data into block variable table
DEBUG MODE
SQL Error : 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 't visit the site', 'md_display_not_visit', '', '', '4', 'users_visited')' at line 2
INSERT INTO phpbb_block_variable (label, sub_label, config_name, field_options, field_values, type, block) VALUES ('Display users who did not visit', 'tick to display users who didn't visit the site', 'md_display_not_visit', '', '', '4', 'users_visited')
Line : 698
File : admin_blocks.php
Geplaatst: 06 mei 2006, 22:14
door cartoontje
Die Query is volgensmij incompleet, omdat er niks bij from staat. Is dit de query die bij de mod zat?
Post eens regel 690 t/m 710 van admin_blocks.php en geef daarin even aan wat regel 698 is!

Geplaatst: 06 mei 2006, 22:47
door calimero
Code: Selecteer alles
(690) --->>$row = $db->sql_fetchrow($result);
if(!$row['existing'])
{
$sql = "INSERT INTO " . BLOCK_VARIABLE_TABLE . " (label, sub_label, config_name, field_options, field_values, type, block)
VALUES ('" . str_replace("\'", "''", $block_variables[$i][0]) . "', '" . str_replace("\'", "''", $block_variables[$i][1]) . "', '" . str_replace("\'", "''", $block_variables[$i][2]) . "', '" . str_replace("\'", "''", $block_variables[$i][3]) . "', '" . $block_variables[$i][4] . "', '" . $block_variables[$i][5] . "', '" . str_replace("\'", "''", $block_variables[$i][6]) . "')";
if(!$result = $db->sql_query($sql))
{
(698) --->> message_die(GENERAL_ERROR, "Could not insert data into block variable table", $lang['Error'], __LINE__, __FILE__, $sql);
}
$sql = "INSERT INTO " . PORTAL_CONFIG_TABLE . " (config_name, config_value)
VALUES ('" . str_replace("\'", "''", $block_variables[$i][2]) . "', '" . str_replace("\'", "''", $block_variables[$i][7]) . "')";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not insert data into portal config table", $lang['Error'], __LINE__, __FILE__, $sql);
}
}
}
}
}
}
fix_weight_blocks($layout);
$message .= "<br /><br />" . sprintf($lang['Click_return_blocksadmin'], "<a href=\"" . append_sid("admin_blocks.$phpEx?mode=blocks&id=$l_id") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
(717)---->> else if( $mode == "delete" )