J'aurais juste une petite question à soumettre sur cet exellent mod
Est-il possible d'obliger le membres à utiliser le système d'attributs ?
Merci pour vos réponses.
Modérateur: Equipe


Warning: main(./extension.inc) [function.main]: failed to open stream: No such file or directory in /home.10.20/awocb/www/contrib/db_update.php on line 32
Warning: main() [function.include]: Failed opening './extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home.10.20/awocb/www/contrib/db_update.php on line 32
Warning: main(./common.) [function.main]: failed to open stream: No such file or directory in /home.10.20/awocb/www/contrib/db_update.php on line 33
Warning: main() [function.include]: Failed opening './common.' for inclusion (include_path='.:/usr/local/lib/php') in /home.10.20/awocb/www/contrib/db_update.php on line 33
Fatal error: Unsupported operand types in /home.10.20/awocb/www/contrib/db_update.php on line 45


Parse error: syntax error, unexpected T_ELSE in /mnt/148/sda/9/c/un.max.d.mangas/ordioma/search.php on line 551
//-- mod : quick title edition -------------------------------------------------
//-- add
//-- mod : quick title edition -------------------------------------------------
//-- add
else if ($attribute_id != -1)
{
$sql = 'SELECT p.post_id, t.topic_attribute
FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t
WHERE p.topic_id = t.topic_id';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain matched posts list', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
list($attr_id, $user_id, $time) = explode(',', $row['topic_attribute']);
if ($attr_id == $attribute_id)
{
$search_ids[] = $row['post_id'];
}
}
$total_match_count = count($search_ids);
}
//-- fin mod : quick title edition ---------------------------------------------
// If user is logged in then we'll check to see which (if any) private
// forums they are allowed to view and include them in the search.
//
#
#-----[ FIND ]------------------------------------------
#
//
// If user is logged in then we'll check to see which (if any) private
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : quick title edition -------------------------------------------------
//-- add
else if ($attribute_id != -1)
{
$sql = 'SELECT p.post_id, t.topic_attribute
FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t
WHERE p.topic_id = t.topic_id';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain matched posts list', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
list($attr_id, $user_id, $time) = explode(',', $row['topic_attribute']);
if ($attr_id == $attribute_id)
{
$search_ids[] = $row['post_id'];
}
}
$total_match_count = count($search_ids);
}
//-- fin mod : quick title edition ---------------------------------------------








#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
//
// Start session management
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : quick title edition -------------------------------------------------
//-- add
include($get->url('includes/class_attributes'));
//-- fin mod : quick title edition ---------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
$topic_title = $searchset[$i]['topic_title'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : quick title edition -------------------------------------------------
//-- add
$qte->attr($topic_title, $searchset[$i]['topic_attribute']);
//-- fin mod : quick title edition ---------------------------------------------
Retourner vers Base de données des MODs
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités