Малко форум проблемчета

Player_pz

Registered
Някои знае ли откъде мога да си сменя банера на phpbb форум ?
Как мога да изведа на произволна страница -датата и последния коментар на някоя тема ...
благодаря предварително :)
 
Банера на phpbb форум :
Папка:
Templates ~> subSilver ~> images ~> logo_phpBB.gif
Подменяш го със твоята картинка.

А за последни теми - виж това
http://web-tourist.net/forum/viewtopic.php?t=435
 
бях го направил това с папката вече да подменям логото ама несе получи нещо :? , а на мен не ми трябват последните теми :(
все пак благодаря :)
 
Кое точно не ти се получи ? По същият начин ли се казва картинката ... същата ли е папката, да не влизаш в друг стил... ;)

А какво ти трябва ? Последното мнение или последните мнения ... Кво ? :)
 
ами ..като го направя това ми се показва една двойно по-голяма картинка , която неможе да се види - има само един X в горния ляв ъгъл :)
----------
значи , трябва ми след като направя една тема в моя форум - съобщението , заглавието на темата , датата на която съм я постнал темата и , последния коментар да се ИЗВЕЖДАТ в друга страница - избрана от мен ...какви кодове трябва да напиша в произволната страница ? :)
 
Пробвай пак. И виж как ти се казва картинката пак ...
-----
Виж това :

Код:
<?php 

############# 
## Edit Below 
############# 
// от кой форум да се взимат новините, по подразбиране 1-вия ;) 

$forum = '1'; 

// колко новини да се извеждат 

$limit = '5'; 

// как да се извеждат новините 
// full or blank ('') 
$show = 'full'; 

// как да показва датата на новината 
// short or long 
$date_time = 'long'; 

// как да показва линка към новината 
// topic or phpbb 
$topic_link = 'topic'; 

// коментар или прочит на новината 
// topic or reply 
$comment = 'topic'; 

// пътя до директорията на форума 
// Usually ./forum/ or ./phpBB/ or ./forums/ 
$phpbb_root_path = './'; 

############################################# 
## No Editing unless you know what your doing 
############################################# 
if ( !defined('IN_PHPBB') ) 
{ 
  define('IN_PHPBB', true); 
  include($phpbb_root_path  . 'extension.inc'); 
  include($phpbb_root_path  . 'common.'.$phpEx); 
  include($phpbb_root_path  . 'config.'.$phpEx); 
} 

if ($show == '' || $show == 'full') 
{ 
   // Select the topic information from the correct forum and set it to $grab_topics 
   $grab_topics = $db->sql_query("SELECT * FROM `{$table_prefix}topics` WHERE `forum_id` = '{$forum}' ORDER BY `topic_id` DESC LIMIT {$limit}"); 
} 

else if ($show == 'topic') 
{ 
   $grab_topics = $db->sql_query("SELECT * FROM `{$table_prefix}topics` WHERE `forum_id` = '{$forum}' AND `topic_id` = '{$_GET['t']}' ORDER BY `topic_id` DESC"); 
} 
    
// Grab the information using an array and set it to $echo_topic 
while ($echo_topic = $db->sql_fetchrow($grab_topics)) 
{ 
   // Select the post information from the correct forum and set it to $grab_posts 
   $grab_posts = $db->sql_query("SELECT * FROM `{$table_prefix}posts` WHERE `forum_id` = '{$forum}' AND `topic_id` = '{$echo_topic['topic_id']}' LIMIT 1"); 
    
   // Grab the information using an array and set it to $echo_post 
   while ($echo_post = $db->sql_fetchrow($grab_posts)) 
   { 
      // Now get the post_text using the post_id were looking at and sort it info $grab_posts_text 
      $grab_posts_text = $db->sql_query("SELECT * FROM `{$table_prefix}posts_text` WHERE `post_id` = '{$echo_post['post_id']}'"); 
        
      // Grab the information using an array and set it to $echo_text 
      while($echo_text = $db->sql_fetchrow($grab_posts_text)) 
      { 
         // Find the user the posted 
         $find_user = $db->sql_query("SELECT * FROM `{$table_prefix}users` WHERE `user_id` = '{$echo_post['poster_id']}'"); 
          
         // Sort this users info into array for the post 
         while ($echo_user = $db->sql_fetchrow($find_user)) 
         { 
                
            // Get rid of all those annoying characters from bbcode 
            $echo_text = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $echo_text);    
              
            // BBCode 
            $echo_text = str_replace("[b]","<strong>",$echo_text); 
            $echo_text = str_replace("[/b]","</strong>",$echo_text); 
                
            $echo_text = str_replace("[i]","<em>",$echo_text); 
            $echo_text = str_replace("[/i]","</em>",$echo_text); 
                
            $echo_text = str_replace("[u]","<u>",$echo_text); 
            $echo_text = str_replace("[/u]","</u>",$echo_text); 
                
            $echo_text = preg_replace('/\[quote="(.*)\"](.*)\[\/quote\]/Usi','<div style=\"Verdana: 7px\">$2</div>',$echo_text); 
              
            $echo_text = str_replace("[quote]","<strong>Quote</strong><em>",$echo_text); 
            $echo_text = str_replace("[/quote]","</em>",$echo_text); 
                
            $echo_text = str_replace("[code]","<strong>Code</strong><em>",$echo_text); 
            $echo_text = str_replace("
","</em>",$echo_text);

$echo_text = preg_replace('/\[list\](.*)\[\/list\]/si',"<div style=\"Verdana: 7px\">$1</div>",$echo_text);
$echo_text = preg_replace('/\
 

Back
Горе