Encontré este mod:
http://www.phpbbhacks.com/download/267
Pero en las instrucciones de viewtopic.php me piden buscar codigo que no encuentro... alguien me puede ubicar?
[quote]########################################################
## Mod Title: View Random Topic
## Mod Version: 1.0
## Author: Matthijs van de Water <
matthijs@beryllium.net>
## Description: Totally useless feature
## Will direct you to a random topic.
##
## Installation Level: easy
## Installation Time: 5-8 Minutes
## Files To Edit: 4 (viewtopic.php, index.php,
## lang_main.php, index_body.tpl)
########################################################
## KNOWN LIMITATIONS:
## Will output an error if you don't have permission
## to view or read the topic.
## Refreshing will get you another topic
########################################################
#
#-----[ FIND in viewtopic.php ]------------------------------------------
#
if( !isset($topic_id) && !isset($post_id) )
#
#-----[ CHANGE to ]------------------------------------------
#
if( !isset($topic_id) && !isset($post_id) && $HTTP_GET_VARS['view'] != 'random' )
#
#-----[ FIND in viewtopic.php ]------------------------------------------
#
else
{
$topic_id = $row['topic_id'];
}
}
#
#-----[ ADD after ]------------------------------------------
#
else if ( $HTTP_GET_VARS['view'] == 'random' )
{
$sql = "SELECT t.topic_id
FROM " . TOPICS_TABLE . " t
ORDER BY RAND()
LIMIT 1";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain random topic information", '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
else
{
$topic_id = $row['topic_id'];
}
}
#
#-----[ FIND in index.php ]------------------------------------------
#
'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],
#
#-----[ ADD after ]------------------------------------------
#
'L_VIEW_RANDOM_TOPIC' => $lang['View_random_topic'],
'U_VIEW_RANDOM_TOPIC' => append_sid("viewtopic.$phpEx?view=random"),
#
#-----[ FIND in language/lang_english/lang_main.php ]-----------------------
#
$lang['Forums_marked_read'] = "All forums have been marked read";
#
#-----[ ADD after ]------------------------------------------
#
$lang['View_random_topic'] = "View A Random Topic";
#
#-----[ FIND in templates/subSilver/index_body.tpl ]------------------------------------------
#
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
#
#-----[ CHANGE to ]------------------------------------------
#
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a><br />
<a href="{U_VIEW_RANDOM_TOPIC}" class="gensmall">{L_VIEW_RANDOM_TOPIC}</a>
</td>
#
#-----------------------------------------------
# [/quoteicy]
Mi viewtopic.php:
http://www.phpbb-es.com/pastebin/pastebin.php?show=1599
Algun alma que me ayude??