Author Topic: [addon] DREAMBOARD V 2.1  (Read 485437 times)

0 Members and 1 Guest are viewing this topic.

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #255 on: January 30, 2006, 11:10:07 PM »
The first part of the code must be wrong, it looks like all an string....

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #256 on: January 30, 2006, 11:11:32 PM »
@trez:

It would seems your website has different results than crcbad's web site (which is what I don't get). Yours seems to work pretty fine with the codes right ?

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #257 on: January 30, 2006, 11:13:23 PM »
yes, it works after making the change i've posted - topicstarter avatar image is still missing, but it isnt so important - thanks again

PS: The FIRST post youve made, had as a result the same errormessages he gets, so i suggest him to made the changes on a FRESH showthread.php - that way it works, for me

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #258 on: January 30, 2006, 11:14:18 PM »
@trez:

It would seems your website has different results than crcbad's web site (which is what I don't get). Yours seems to work pretty fine with the codes right ?


I had that results previously, the reason, is that Trez doesn't modified anything about the changes you wrote a few minutes ago I THINK.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #259 on: January 30, 2006, 11:15:09 PM »
Quote

yes, it works after making the change i've posted - topicstarter avatar image is still missing, but it isnt so important - thanks again


Well ... actually it is important ... would you mind PMing me the codes you implemented ? I will take a look at it and could finally resolve this mystery. Thanks. ;)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #260 on: January 30, 2006, 11:17:24 PM »
sure, thats my showthread.php

[code]

<?php
/**************************************************************************************
<!--                                                                                  -->
<!--                DREAMBOARD  V.2.1  Created By                                     -->
<!--          M A N T R A D I G I T A L   M u l t i m e d i a                            -->
<!--              2 0 0 5    http://www.mantradigital.com                               -->
<!--        This script is part of DREAMBOARD  a addon for                       -->
<!--    4images - A Web Based Image Gallery Management System          -->
<!--             Web: http://www.4homepages.de                                        -->
<!--                                                                                   -->
<!--                                                                                     -->
 ***************************************************************************************/

$main_template = 'board';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
define('GET_USER_ONLINE', 1);
include(ROOT_PATH.'global.php');
include(ROOT_PATH.'board_con.php');
require(ROOT_PATH.'includes/sessions.php');


if (isset($HTTP_GET_VARS['template']) || isset($HTTP_POST_VARS['template'])) {
  $template = (isset($HTTP_GET_VARS['template'])) ? stripslashes(trim($HTTP_GET_VARS['template'])) : stripslashes(trim($HTTP_POST_VARS['template']));
  if (!file_exists(TEMPLATE_PATH."/".$template.".".$site_template->template_extension)) {
    $template = "";
  }
  else {
    $main_template = $template;
  }
}
else {
  $template = "";
}
include(ROOT_PATH.'includes/page_header.php');

if (!empty($template)) {
  $clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].str_replace("_", " ", ucfirst($template));
  $site_template->register_vars("clickstream", $clickstream);
  $site_template->print_template($site_template->parse_template($main_template));
  include(ROOT_PATH.'includes/page_footer.php');
}
$vocimage="".$boardconfig['cov']."<div align=\"center\"><a href=\"http://www.mantradigital.com\" target=\"_blank\"><img src=\"".TEMPLATE_PATH."/board_images/dreamlogo.gif\" border=\"0\"></a></div>";
     $forums = mysql_query ("SELECT board_id,board_catid,board_name,board_moderator_id,auth_view FROM ".BOARD_TABLE." WHERE board_id ='$bid' ");
     while ($row = mysql_fetch_array($forums)) {
         $board_id = $row['board_id'];
         $board_catid = $row['board_catid'];
         $board_name = $row['board_name'];
       $board_moderator_id = $row['board_moderator_id'];
       $auth_view = $row['auth_view'];
     }

//-----------------------------------------------------
//--- CHECK STATUS BOARD --------------------------------
//-----------------------------------------------------
if ($boardconfig['board_disable']){
$msg = format_boardtext($boardconfig['status_desc'], 0, 0, 0, 0, 1);
$showtopic ="";
$iconmsg="<img src=\"".TEMPLATE_PATH."/board_images/danger.gif\"  border=\"0\"> ";
$txt_clickstream = $boardconfig['status_desc'];

} elseif ( $user_info['user_level'] < $auth_view ){
    $iconmsg="<img src=\"".TEMPLATE_PATH."/board_images/danger.gif\"  border=\"0\"> ";
    $msg = $lang['board_register'];
   $txt_clickstream = "".$lang['board_badrequest']."";
    $content ="";
    $redirectpage="<meta http-equiv=refresh content=\"11; url=board.php \">";

}else {
 
//--- END CHECK STATUS BOARD --------------------------------
   if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) {
           $lang_alowpost="".$lang['lang_notpost']."";
           $lang_alowrep ="<b>". $lang['lang_canrep']."</b>";
           $lang_alowedit="".$lang['lang_notedit']."";
           $lang_alowdel="".$lang['lang_notdel']."";
             }else {
         $lang_alowpost ="". $lang['lang_canpost']."";
           $lang_alowrep ="". $lang['lang_canrep']."";
           $lang_alowedit ="". $lang['lang_canedit']."";
           $lang_alowdel ="". $lang['lang_candel']."";
          }
if ((empty($bid) || $bid < 0) || (empty($threadid) || $threadid < 0) ) {
 $redirectpage="<meta http-equiv=refresh content=\"3; url=board.php\">";
 $msg= "<br><center>".$lang['errorredirect_msg']."</center><br>";
 $txt_clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."board.php")."\">".$boardconfig['board_name']."</a>".$config['category_separator']."".$lang['errorredirect_msg']."";
 $bid = (isset($HTTP_POST_VARS['bid'])) ?  intval($HTTP_POST_VARS['bid']) : "";
 $threadid = (isset($HTTP_POST_VARS['threadid'])) ?  intval($HTTP_POST_VARS['threadid']) : "";
 } else {
   
     mysql_query ("UPDATE ".BOARD_TCONT_TABLE." SET thrviews=thrviews+1 WHERE thrid ='$threadid'");
     mysql_query ("UPDATE ".BOARD_TINDEX_TABLE." SET thrviews=thrviews+1 WHERE thrid ='$threadid'");
    $categories = mysql_query ("SELECT catid,catname FROM ".BOARD_CAT_TABLE." WHERE catid ='$board_catid'");
     while ($row = mysql_fetch_array($categories)) {
         $catid = $row['catid'];
         $catname = $row['catname'];
      
     }
           
     if ($page == 1) {
       $thread_contents = mysql_query ("SELECT thrid,thrforid,thrtopic,thrstarter,thrstarter_id,thrlock,thrlastedate,thrlastecount,
      thrlasteuser,thrviews,thrtext,thrdate,thrposterip
       FROM ".BOARD_TCONT_TABLE."  WHERE thrid ='$threadid' ");
       while ($row = mysql_fetch_array($thread_contents)) {
         $thrid = $row['thrid'];
         $thrforid = $row['thrforid'];
         $thrtopic = $row['thrtopic'];
         $thrstarter = $row['thrstarter'];
       $thrstarter_id = $row['thrstarter_id'];
       $thrlock = $row['thrlock'];
          $thrlastedate = $row['thrlastedate'];
        $thrlastecount = $row['thrlastecount'];
        $thrlasteuser = $row['thrlasteuser'];
       $thrviews = $row['thrviews'];
         $thrtext = format_boardtext($row['thrtext'], $boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);

         $thrdate = $row['thrdate'];
   
         $thrdate =  format_date($boardconfig['date_format']." ".$boardconfig['time_format'], $thrdate);

         $thrposterip = $row['thrposterip'];
      
$posts = "

SELECT ".get_user_table_field("", "user_id"). get_user_table_field(",", "user_name"). get_user_table_field(",", "user_level").", user_signature, user_posts, user_avatar
FROM ".USERS_TABLE."
WHERE ".get_user_table_field("", "user_id")." = ".$thrstarter_id;

$result = $site_db->query($posts);

         while ($user = $site_db->fetch_array($result)) {
             $user_profile_link = (!empty($url_show_profile)) ? str_replace("{user_id}", $user['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user['user_id'];
             $post_count = $user['user_posts'];
             $user_id = $user['user_id'];
    $user_rank = $user['user_level']; REPLACE_EMPTY;
             $signature = format_boardtext ($user['user_signature'],$boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);
             $user_avatar = (empty($user['user_avatar'])) ? $lang['no_image_found'] : "<a href=\"".$site_sess->url($user_profile_link)."\"><img src=\"".TEMPLATE_PATH."/avatars/".$user['use_avatar']."\" width=\"".$width."60\" height=\"60".$height."\" border=\"0\" /></a>";

         
          }  }
       
        if ($thrstarter_id == GUEST ) {
               $author_info = "";
            $profile = " <td align=\"left\" width=\"50%\" class =\"headboard2\"><img src=\"".TEMPLATE_PATH."/board_images/spacer.gif\" border=0 height=\"23\"></td>\n";
            } else {
         $author_info = "".$lang['post'].": $post_count<br>".$lang['registered']." : <br>$date_registered ";
            $profile = " <td align=\"left\" width=\"50%\" class =\"headboard2\"><a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$thrstarter_id)."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/profile_post.gif\" border=0 alt=\"".$lang['profile']."\"></a></td>\n";
           }
       
       
           if ( $thrlastedate == 0) {
               $relasteditdate ="";
            $thrlastecount="";
            $thrlasteuser="";                       
             }  else {
            $thrlasteuser="<span class=\"smalltextbaord2\"> ".$lang['last_edit']."<b>$thrlasteuser</b>";
            $thrlastecount="".$lang['last_edit_count']."<b>$thrlastecount</b></span>";
            $dateinfo=format_date($boardconfig['date_format']." ".$boardconfig['time_format'], $thrlastedate) ;
            $thrlasteditdate =" ".$lang['last_edit_at']." $dateinfo";
                                     }
                              
         $topicip="";
   if ( $thrstarter_id == GUEST ) {
            $rank_user_info = $lang['userlevel_guest'];
       } elseif ( $user_rank== 9 ) {
            $rank_user_info = $lang['userlevel_admin'];
                        
      } elseif ($user_id == $board_moderator_id){                          
              $rank_user_info = $lang['rank_user_mod'];

        } elseif ($post_count <= 100){
              $rank_user_info = $lang['rank_user_newbie'];
      } elseif($post_count >= 200){      
            $rank_user_info = $lang['rank_user_add'];
                                 }
         
         
          if ($thrlock == 1 ) {
            $threadquote="";
            $newreply_button="";

           } else {
               $threadquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qt&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
             $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";
                          }
            if ($user_info['user_id'] == $thrstarter_id && $user_info['user_id'] <> GUEST ){     
               $edit_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?mode=et&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/edit_post.gif\" border=0 alt=\"".$lang['edit_topic']."\"></a>";
           } elseif ($user_info['user_level'] == ADMIN) {     
            $edit_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?mode=et&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/edit_post.gif\" border=0 alt=\"".$lang['edit_topic']."\"></a>";                                           
          } elseif ($thrlock == 1) {             
            $edit_thread = "";                                  
          } else {
            $edit_thread = "";
                                   }
            
//-----------Define permision for this thread-------------------------
                $lock_thread = "";
             $unlock_thread = "";
             $delete_thread = "";
            
            if ($user_info['user_level'] == ADMIN) {
                    if ($thrlock == 1 )
                      {
                 $unlock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=unlockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/unlockthread.gif\" border=0 alt=\"".$lang['unlock_thread']."\"></a>";
                      } else {
                   $lock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=lockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/lockthread.gif\" border=0 alt=\"".$lang['lock_thread']."\"></a>";
                  }
                   $threadquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qt&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
                       $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";
                   $delete_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=deletethread&bid=$board_id&threadid=$threadid")."\" onClick=\"return confirm(' ".$lang['delete_post']."')\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/fo_del_top.gif\" border=0 alt=\"".$lang['delete_thread']."\"></a>";
                         $topicip=" ".$lang['ip_address']." : $thrposterip ";
                  } else if ( $user_info['user_id'] == $board_moderator_id )
                                         {
                  $edit_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?mode=et&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/edit_post.gif\" border=0 alt=\"".$lang['edit_topic']."\"></a>";
                    if ($thrlock == 1 )
                      {
                    $unlock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=unlockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/unlockthread.gif\" border=0 alt=\"".$lang['unlock_thread']."\"></a>";
                      } else {
                   $lock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=lockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/lockthread.gif\" border=0 alt=\"".$lang['lock_thread']."\"></a>";
                  }
                   $threadquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qt&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
                       $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";
                   $delete_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=deletethread&bid=$board_id&threadid=$threadid")."\" onClick=\"return confirm(' ".$lang['delete_post']."')\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/fo_del_top.gif\" border=0 alt=\"".$lang['delete_thread']."\"></a>";
                         $topicip=" ".$lang['ip_address']." : $thrposterip ";                           
                                         }                             
                   $newtopic="<a href=\"".$site_sess->url(ROOT_PATH."boardthread.php?bid=$board_id")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/newtopic.gif\" alt=\"".$lang['new_thread']."\" border=0></a>";

                        if ($boardconfig['alow_sig'] == 1) {
                        $sig = '<br><br>##################<br>'  . $signature ;
                          } else {
                        $sig = "";
                          }



if ($config['userpic']) {

$user_picture = $userpic;

} else {

$user_picture = "";

} ###### End of if statement.


 //--------if the curent board id and topics id doesn't macth they error massage -------------------    
     if (($threadid <> $thrid) || ($board_id <>$thrforid) ) {
          $redirectpage="<meta http-equiv=refresh content=\"3; url=board.php\">";
          $msg= "<br><center>".$lang['errorredirect_msg']."</center><br>";
          $txt_clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."board.php")."\">".$boardconfig['board_name']."</a>".$config['category_separator']."".$lang['errorredirect_msg']."";
          $showtopic ="";
          $clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>";
          $iconmsg="<img src=\"".TEMPLATE_PATH."/board_images/danger.gif\"  border=\"0\"> ";
$site_template->register_vars(array(
          "content" => $showtopic,
          "msg" => $msg,
          "avatar_image" => $user_avatar,
          "iconmsg" => $iconmsg,
          "head_title" => $head_title,
          "lang_info" => $lang['board_langinfo']
 
          ));
          $boardcontent = $site_template->parse_template("boardcontent");
          $site_template->register_vars(array(
          "board" => $boardcontent,
        "redirect"=>$redirectpage,
          "clickstream" => $clickstream
              ));
          $site_template->print_template($site_template->parse_template($main_template));
          include(ROOT_PATH.'includes/page_footer.php');

   }   
} else {
  $newtopic="<a href=\"".$site_sess->url(ROOT_PATH."boardthread.php?bid=$board_id")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/newtopic.gif\" alt=\"".$lang['new_thread']."\" border=0></a>";
  $thread_contents = mysql_query ("SELECT thrid,thrforid,thrtopic,thrstarter,thrlock,thrlastedate,thrlastecount,thrlasteuser,thrviews,thrtext,thrdate,thrposterip
     FROM ".BOARD_TCONT_TABLE."  WHERE thrid ='$threadid' ");
       while ($row = mysql_fetch_array($thread_contents)) {
         $thrid = $row['thrid'];
         $thrforid = $row['thrforid'];
         $thrtopic = $row['thrtopic'];
         $thrstarter = $row['thrstarter'];
       $thrstarter_id = $row['thrstarter_id'];
       $thrlock = $row['thrlock'];
          $thrlastedate = $row['thrlastedate'];
        $thrlastecount = $row['thrlastecount'];
        $thrlasteuser = $row['thrlasteuser'];
       }
      
          if ($thrlock == 1 ) {
            $threadquote="";
            $newreply_button="";

           } else {
               $threadquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qt&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
             $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\"  border=0></a>";
             
                     }
      
            //lock this thread
                $lock_thread = "";
             $unlock_thread = "";
             $delete_thread = "";
            
            if ($user_info['user_level'] == ADMIN) {
                    if ($thrlock == 1 )
                      {
                 $unlock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=unlockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/unlockthread.gif\" border=0 alt=\"".$lang['unlock_thread']."\"></a>";
                      } else {
                   $lock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=lockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/lockthread.gif\" border=0 alt=\"".$lang['lock_thread']."\"></a>";
                  }
                   $threadquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qt&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
                       $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";
                   $delete_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=deletethread&bid=$board_id&threadid=$threadid")."\" onClick=\"return confirm(' ".$lang['delete_post']."')\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/fo_del_top.gif\" border=0 alt=\"".$lang['delete_thread']."\"></a>";
             } else if ( $user_info['user_id'] == $board_moderator_id )
                                         {
                    if ($thrlock == 1 )
                      {
                $unlock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=unlockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/unlockthread.gif\" border=0 alt=\"".$lang['unlock_thread']."\"></a>";
                      } else {
                   $lock_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=lockthread&bid=$board_id&threadid=$threadid")."\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/lockthread.gif\" border=0 alt=\"".$lang['lock_thread']."\"></a>";
                  }
                   $threadquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qt&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
                       $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";
                   $delete_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=deletethread&bid=$board_id&threadid=$threadid")."\" onClick=\"return confirm(' ".$lang['delete_post']."')\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/fo_del_top.gif\" border=0 alt=\"".$lang['delete_thread']."\"></a>";
                                                                        }
               
}
     $txt_clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."board.php")."\">".$boardconfig['board_name']."</a>".$config['category_separator']."<a href=\"".$site_sess->url(ROOT_PATH."board.php?categoryid=$catid")."\">$catname</a>".$config['category_separator']."<a href=\"".$site_sess->url(ROOT_PATH."showboard.php?bid=$board_id")."\">$board_name</a>".$config['category_separator']."$thrtopic";
     $showtopic .="<table border=\"0\" width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" class=backboard  >\n";
     $showtopic .="<tr>\n";
     $showtopic .="<td  valign=\"bottom\" >$newtopic  $newreply_button\n";
     $showtopic .="<table border=\"0\" width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" class=boxlineboard>\n";
     $showtopic .="<tr>\n";
     $showtopic .="<td >\n";
   
    $showtopic .="<table width=\"100%\" border=\"0\"  cellspacing=\"1\" cellpadding=\"0\" class=boxlineboard3>\n";
     $showtopic .=" <tr>\n";
     $showtopic .="<td><table width=\"100%\" border=\"0\" class=rowboard2>\n";
     $showtopic .=" <tr>\n";
     $showtopic .="   <td class=catforum >&nbsp; &nbsp; <b>".$lang['authorboard']."</b></td>\n";
     $showtopic .="  </tr>\n";
     $showtopic .=" </table></td>\n";
     $showtopic .="<td width=\"100%\"><table width=\"100%\" border=\"0\" class=rowboard2>\n";
     $showtopic .=" <tr>\n";
     $showtopic .="  <td class=catforum>&nbsp; &nbsp; <b>".$lang['massage']."</b></td>\n";
     $showtopic .="  </tr>\n";
     $showtopic .=" </table>\n";

   
 
   
     $showtopic .="</td>\n";
     $showtopic .="</tr>\n";
     if ($page == 1) {
     $showtopic .="<tr>\n";
     $showtopic .="<td width=\"0\" valign=\"top\" class=backboard nowrap>\n";
     $showtopic .="<table border=\"0\" width=\"100%\"  cellpadding=\"6\" >\n";
     $showtopic .="<tr>\n";
     $showtopic .="<td ><b>$thrstarter</b><br>$rank_user_info<br>$user_picture<br>$author_info <br>$topicip</td>\n";
     $showtopic .="</tr>\n";
     $showtopic .="</table>\n";
     $showtopic .="</td>\n";
     $showtopic .="<td class=backboard  valign=\"top\">\n";
     $showtopic .="<table border=\"0\" width=\"100%\" cellpadding=\"6\">\n";
     $showtopic .="<tr>\n";
     $showtopic .="<td>".$lang['subject']." $thrtopic</b> $thrlasteuser $thrlasteditdate $thrlastecount</td>\n";
     $showtopic .="</tr>\n";
     $showtopic .="<tr>\n";
     $showtopic .="<td valign=\"top\">$thrtext\n";
   
     $showtopic .=" $sig";
     $showtopic .="</td>\n";
     $showtopic .="</tr>\n";
     $showtopic .="</table>\n";
     $showtopic .="</td>\n";
     $showtopic .="</tr>\n";
     $showtopic .="<tr>\n";
     $showtopic .="<td class =\"headboard2\">\n";
     $showtopic .="<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">\n";
     $showtopic .="<tr>\n";
     $showtopic .="<td align=\"center\" nowrap  >\n";
     $showtopic .="<img src=\"".TEMPLATE_PATH."/board_images/posticon.gif\" alt=\"".$lang['post_date']."\" >&nbsp;$thrdate </td>";
     $showtopic .="</tr>\n";
     $showtopic .="</table>\n";
     $showtopic .="</td>\n";
     $showtopic .="<td class =\"headboard2\">\n";
     $showtopic .="<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"1\">\n";
     $showtopic .="<tr>\n";
   
    $showtopic .="$profile ";
    $showtopic .="<td align=\"right\" width=\"50%\" class =\"headboard2\"> $delete_thread $edit_thread $threadquote $unlock_thread $lock_thread </td>\n";
    $showtopic .="</tr>\n";
    $showtopic .="</table>\n";
    $showtopic .="</td>\n";
    $showtopic .="</tr>\n";
}
       $reply_page = $boardconfig['posts_perpage'] ;
     $thread_rep = mysql_query ("SELECT * FROM ".BOARD_TREP_TABLE." WHERE repthrid ='$threadid'");
     $total_reply = mysql_numrows($thread_rep);

$link_arg = $site_sess->url(ROOT_PATH."showthread.php?bid=$board_id&threadid=$threadid");
$text = "Found:&nbsp;&nbsp; [{$total_reply } ] Reply on {total_pages} pages &nbsp;&nbsp;<strong><font color=\"#FFFFFF\">|</font></strong>&nbsp;&nbsp; Displayed: Reply &nbsp; [{first_page}] to [{last_page}]&nbsp;&nbsp;";

  include(ROOT_PATH.'includes/paging.php');
  $getpaging = new Paging($page, $reply_page, $total_reply , $link_arg, $text);
  $offset = $getpaging->get_offset();
  $site_template->register_vars(array(
    "paging" => $getpaging->get_paging(),
   "paging_stats" => $getpaging->get_paging_stats()
  ));    

      $thread_replies = mysql_query ("SELECT repid,repthrid,repforid,reptopic,repuser,repuser_id,reptext,repdate,repposterip,replastedate,replastecount,replasteuser 
    FROM ".BOARD_TREP_TABLE."
    WHERE repthrid ='$threadid'  ORDER BY repid ASC LIMIT $offset,$reply_page ");
     while ($row = mysql_fetch_array($thread_replies)) {
         $repid = $row['repid'];
         $repthrid = $row['repthrid'];
         $repforid = $row['repforid'];
         $reptopic = $row['reptopic'];
         $repuser = $row['repuser'];
       $repuser_id = $row['repuser_id'];
       $replastedate = $row['replastedate'];
        $replastecount = $row['replastecount'];
       $replasteuser = $row['replasteuser'];

$posts = "

SELECT ".get_user_table_field("", "user_id"). get_user_table_field(",", "user_level").", user_signature, user_posts, user_avatar
FROM ".USERS_TABLE."
WHERE ".get_user_table_field("", "user_id")." = ".$repuser_id;

$result = $site_db->query($posts);

                while ($user = $site_db->fetch_array($result)) {
                $post_count = $user['user_posts'];
                $user_id = $user['user_id'];
                $user_rank = $user['user_level']; REPLACE_EMPTY;
                $signature = format_boardtext($user['user_signature'],$boardconfig['html_board'], $boardconfig['wordwrap_board'],       
                $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);
                $user_avatar = (empty($user['user_avatar'])) ? $lang['no_image_found'] : "<a
                 href=\"".$site_sess->url($user_profile_link)."\"><img src=\"".TEMPLATE_PATH."/avatars/".$user['user_avatar']."\"
                 width=\"".$width."60\" height=\"60".$height."\" border=\"0\" /></a>";

     }     
         $reptext = format_boardtext($row['reptext'], $boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);
         $repdate = $row['repdate'];
         $repdate =  format_date($boardconfig['date_format']." ".$boardconfig['time_format'], $repdate);
         $repposterip = $row['repposterip']; 
                
   if ( $repuser_id == GUEST ) {
            $rank_user_info = $lang['userlevel_guest'];
       } elseif ( $user_rank== 9 ) {
            $rank_user_info = $lang['userlevel_admin'];               
      } elseif ($user_id == $board_moderator_id){                          
              $rank_user_info = $lang['rank_user_mod'];
      } elseif ($repuser_id == GUEST){                          
              $rank_user_info = "";
        } elseif ($post_count <= 100){
              $rank_user_info = $lang['rank_user_newbie'];
      } elseif($post_count >= 200){      
            $rank_user_info = $lang['rank_user_add'];
                                 }
                           
                           
                           
       if ( $replastedate == 0) {
              $relasteditdate ="";
           $replastecount="";
           $replasteuser="";             
        } else {
          $replasteuser="<hr><span class=\"smalltextbaord2\"> ".$lang['last_edit']."<b>$replasteuser</b>";
          $replastecount="".$lang['last_edit_count']."<b>$replastecount</b></span>";
          $dateinfo=format_date($boardconfig['date_format']." ".$boardconfig['time_format'], $replastedate) ;
          $relasteditdate =" ".$lang['last_edit_at']." $dateinfo";
              }
            
                 $thread_contents = mysql_query ("SELECT thrlock FROM ".BOARD_TCONT_TABLE."  WHERE thrid ='$threadid' ");
                    while ($row = mysql_fetch_array($thread_contents)) {
                   $thrlock = $row['thrlock']; }
            
           $edit_post = "";
          $delete_thread = "";
      if ( $user_info['user_level'] == ADMIN) {
           $delete_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=deletereply&amp;bid=$board_id&threadid=$threadid&replyid=$repid&page=$page ")."\"  onClick=\"return confirm(' ".$lang['delete_post']."')\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/fo_del_top.gif\" border=0 alt=\"".$lang['delete_reply']."\"></a> ";
             $edit_post = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?mode=ep&bid=$board_id&threadid=$threadid&replyid=$repid&page=$page")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/edit_post.gif\" border=0 alt=\"".$lang['edit_reply']."\"></a>";       
        } elseif ($sender_name == $repuser) {
           $delete_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=deletereply&amp;bid=$board_id&threadid=$threadid&replyid=$repid")."\"  onClick=\"return confirm('".$lang['delete_post']."')\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/fo_del_top.gif\" border=0 alt=\"".$lang['delete_reply']."\"></a> ";
             $edit_post = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?mode=ep&bid=$board_id&threadid=$threadid&replyid=$repid&page=$page")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/edit_post.gif\" border=0 alt=\"".$lang['edit_reply']."\"></a>";
      } elseif ($user_info['user_id'] == $board_moderator_id) {
          $delete_thread = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?action=deletereply&amp;bid=$board_id&threadid=$threadid&replyid=$repid")."\"  onClick=\"return confirm('".$lang['delete_post']."')\" ><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/fo_del_top.gif\" border=0 alt=\"".$lang['delete_reply']."\"></a> ";
             $edit_post = "<a href=\"".$site_sess->url(ROOT_PATH."boardmod.php?mode=ep&bid=$board_id&threadid=$threadid&replyid=$repid&page=$page")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/edit_post.gif\" border=0 alt=\"".$lang['edit_reply']."\"></a>";
                  }
               
             
          if ($user_info['user_level'] == ADMIN){
             $repip=" ".$lang['ip_address']." : $repposterip ";
             $repquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qr&bid=$board_id&threadid=$threadid&replyid=$repid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
             $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";
           } elseif ($user_info['user_id'] == $board_moderator_id) {
               $repip=" ".$lang['ip_address']." : $repposterip ";
                 $repquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qr&bid=$board_id&threadid=$threadid&replyid=$repid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
               $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";               
         } elseif ($thrlock == 1) {
               $repquote="";
               $newreply_button="";
          } else {
              $repip=" ";
                 $repquote=" <a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qr&bid=$board_id&threadid=$threadid&replyid=$repid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/reply_quote.gif\" border=0 alt=\"".$lang['reply_quote']."\"></a>";
               $newreply_button="<a href=\"".$site_sess->url(ROOT_PATH."boardreply.php?action=qu&bid=$board_id&threadid=$threadid")."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/postreply.gif\" alt=\"".$lang['post_reply']."\" border=0></a>";           
                   }
                  
                  
         if ($repuser_id == GUEST) {
             $datereg="";
             $user_location="";
                 $num_post ="" ;
             } else {
                 $num_post = "".$lang['post'].": $post_count<br>";
             $datereg="".$lang['registered']." :<br> $date_registered<br>";
                           }

         if ($repuser_id == GUEST) {

            $profile = " <td align=\"left\" width=\"1%\" class =\"headboard2\"><img src=\"".TEMPLATE_PATH."/board_images/spacer.gif\" border=0 height=\"23\"></td>\n";
            } else {
            $profile = " <td align=\"left\" width=\"1%\" class =\"headboard2\"><a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$user_id)."\"><img src=\"".TEMPLATE_PATH."/board_images/images_".$config['language_dir']."/profile_post.gif\" border=0 alt=\"".$lang['profile']."\"></a></td>\n";
           }
     
             if ($boardconfig['alow_sig'] == 1 && $repuser_id <> -1) {
                        $sig = '<br><br>***********************<br>'  . $signature ;
                          } else {
                        $sig = "";
                          }

if ($config['userpic']) {

$user_picture = $userpic;

} else {

$user_picture = "";

} ###### End of if statement.
   
   $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
    $showtopic .="<tr>\n";
    $showtopic .="<td width=\"0%\" valign=\"top\" class=\"rowboard$row_bg_number\"cellpadding=\"6\" nowrap>\n";
    $showtopic .="<table border=\"0\" width=\"100%\" cellpadding=\"6\">\n";
    $showtopic .="<tr>\n";
    $showtopic .="<td><b>$repuser</b><br>$rank_user_info<br>$user_avatar<br>$num_post $datereg  $repip</td>\n";
    $showtopic .="</tr>\n";
    $showtopic .="</table>\n";
    $showtopic .="</td>\n";
    $showtopic .="<td class=\"rowboard$row_bg_number\" valign=\"top\">\n";
    $showtopic .="<table border=\"0\" width=\"100%\" cellpadding=\"6\">\n";
    $showtopic .="<tr>\n";
    $showtopic .="<td >".$lang['subject']." : $reptopic  </td>\n";
    $showtopic .="</tr>\n";
    $showtopic .="<tr>\n";
    $showtopic .="<td>$reptext\n";
    $showtopic .="$sig $replasteuser $relasteditdate $replastecount";
    $showtopic .="</td>\n";
    $showtopic .="</tr>\n";
    $showtopic .="</table>\n";
    $showtopic .="</td>\n";
    $showtopic .="</tr>\n";
    $showtopic .="<tr>\n";
    $showtopic .="<td class =\"headboard2\">\n";

    $showtopic .="<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">\n";
    $showtopic .="<tr>\n";
    $showtopic .="<td align=\"center\" nowrap >\n";

    $showtopic .="<img src=\"".TEMPLATE_PATH."/board_images/posticon.gif\" alt=\"".$lang['post_date']."\">&nbsp;$repdate </td>";

    $showtopic .="</tr>\n";
    $showtopic .="</table>\n";

    $showtopic .="</td>\n";
    $showtopic .="<td class=\"$row_bg_number\">\n";

    $showtopic .="<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"1\">\n";
    $showtopic .="<tr>\n";
    $showtopic .="$profile";
    $showtopic .="<td align=\"right\" width=\"50%\" class =\"headboard2\">  $delete_thread $edit_post $repquote &nbsp;&nbsp;</td>\n";
    $showtopic .="</tr>\n";
    $showtopic .="</table>\n";

    $showtopic .="</td>\n";
    $showtopic .="</tr>\n";

       }
    $showtopic .="</table>\n";
    $showtopic .="</td>\n";
    $showtopic .="</tr>\n";
    $showtopic .="</table>\n";

    $showtopic .="<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"6\">\n";
    $showtopic .="<tr>\n";
    $showtopic .="<td width=\"0%\" nowrap><A name=#last></A>\n";
    $showtopic .="$newtopic&nbsp;$newreply_button";
    $showtopic .="</td>\n";
    $showtopic .="<td >\n";
    $showtopic .="<div align=\"right\">$unlock_thread $lock_thread </div>";
    $showtopic .="</td>\n";
    $showtopic .="<td>\n";
    $showtopic .="</tr>\n";
   
    $showtopic .="</table>\n";
   
    $showtopic .="</tr>\n";
    $showtopic .="</table>\n";
          }
       
}
$head_title ="<font size=\"4\">$thrtopic</font>";
$site_template->register_vars(array(
  "content" => $showtopic,
  "lang_alowpost" =>$lang_alowpost,
  "lang_alowrep" =>$lang_alowrep,
  "lang_alowedit" =>$lang_alowedit,
  "lang_alowdel" =>$lang_alowdel,
  "avatar_image" => $user_avatar,
  "msg" => $msg,
  "iconmsg" => $iconmsg,
  "head_title" => $head_title,
  "lang_info" => $lang['board_langinfo']
));

$boardcontent = $site_template->parse_template("boardcontent");
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//------------------------------------------------

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #261 on: January 30, 2006, 11:24:33 PM »
All seems to be fine from the two paragraphs I modified (and just checked your codings above which also seems to be fine) ...  :|

Ok, what about if you create an entire "new" topic. Will it work ?

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #262 on: January 30, 2006, 11:25:33 PM »
Sure TheOracle, just create it and tell the url :P

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #263 on: January 30, 2006, 11:28:32 PM »
@crcbad:

Sorry. The reason why I asked you is because I don't understand russian. ;)

When I switch to english from your site, there are missing components. Would you mind creating the topic then report it ?

In the mean time, the message was for trez. ;)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #264 on: January 30, 2006, 11:28:53 PM »
All seems to be fine from the two paragraphs I modified (and just checked your codings above which also seems to be fine) ...  :|

Ok, what about if you create an entire "new" topic. Will it work ?

no, i've tried it - the topicstarter image is not shown, and here is the problem i think:

Code: [Select]
     $showtopic .="<td ><b>$thrstarter</b><br>$rank_user_info<br>$user_picture<br>$author_info <br>$topicip</td>\n";

this is the FIRST code, there is a second one that looks like this. BUT, when i change in the code above to....

Code: [Select]
     $showtopic .="<td ><b>$thrstarter</b><br>$rank_user_info<br>$user_avatar<br>$author_info <br>$topicip</td>\n";

....what i"ve did in the SECOND code, then there is a broken image in the topicstart. So anything is wrong in that line, or ABOVE this line.

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #265 on: January 30, 2006, 11:29:47 PM »
Ok, Im gonna to create it... One minute...

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #266 on: January 30, 2006, 11:31:41 PM »
for making a new topic use :
for a new answer use :

its bulgarian  8)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #267 on: January 30, 2006, 11:32:59 PM »
Quote

then there is a broken image in the topicstart


I see ... well, could you PM me ? I have a suggestion to make. ;)

Quote

its bulgarian


 :oops:

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #268 on: January 30, 2006, 11:33:26 PM »

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #269 on: January 30, 2006, 11:34:56 PM »
@crcbad:

No, no. You mis-understood. I stated a new topic on "your" forum. A whole new section to see if the avatar appears from the first user. Please delete the new topic you made on this forum immediately.