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

0 Members and 1 Guest are viewing this topic.

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #225 on: January 27, 2006, 08:29:23 PM »
great, thanks :)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #226 on: January 30, 2006, 05:51:14 PM »
Its possible create a option for user create a "ignore/block " lists of users (stalkers,perv's) make this possible block that user to send PMS,Images Comments ,Board to that user ?

Make possible ADD/Remove , when the user wish , make the user (blocked) be notified of it .

I mean between users, user still on site, but can be block to talk from some user 

The ideia its user be avaliable to block another(s) users, without be banned from site

 :?:

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #227 on: January 30, 2006, 06:34:00 PM »
HI everybody,  I have noticed a new problem that i dont know were ist coming from.

sometimes aufter a replay ( not everytime ) this error come ups

Fatal error: Cannot redeclare class email in /var/www/web7/html/4images/includes/email.php on line 28

doessomeon know what that is . i have bin looking for days.  the strang thing is that it doesnt come every time.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #228 on: January 30, 2006, 06:36:23 PM »
@Flatermann:

From which file does this error comes from exacly ?

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #229 on: January 30, 2006, 06:47:23 PM »
wenn users replay in forum. the error come.  could it be that thear is an error in Eglys Email@reply code ??

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #230 on: January 30, 2006, 08:59:29 PM »
TheOracle how goes the fix for the avatar in the dreamboard? ;)

When you finish off, we'll all love you :P

Offline TheOracle

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

wenn users replay in forum. the error come.  could it be that thear is an error in Eglys Email@reply code ??


Please provide the URL "or" the filename with the action query on where this error happends.

Thanks.

@crcbad:

I'm close to a solution actually. In fact, I believe it is the same one as the userpic I found earlier. ;)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #232 on: January 30, 2006, 09:54:02 PM »
Ok, so, let's try this.

In your showthread.php file,

find :

Quote

$posts = mysql_query ("SELECT user_posts,user_id,user_name,user_level,user_signature
         FROM ".USERS_TABLE."  WHERE user_id ='$thrstarter_id' ");
         while ($user = mysql_fetch_array($posts)) {
             $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'],


replace with :

Code: [Select]

$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."' AND ".get_user_table_field("", "user_level")." >= '".USER."';

$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&".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>";


(Note: This replacement disregards ALL previous modifications you made before - also regarding my discovery for the userpic within the Dreamboard MOD. Meaning, if you did implement the userpic MOD, from page 3 of this topic, make sure to make the replacement in order to match "both" features. ;)

Then, find :

Quote

$site_template->register_vars(array(
          "content" => $showtopic,
          "msg" => $msg,
          "iconmsg" => $iconmsg,
          "head_title" => $head_title,
          "lang_info" => $lang['board_langinfo']


replace with :

Code: [Select]

$site_template->register_vars(array(
          "content" => $showtopic,
          "msg" => $msg,
          "avatar_image" => $user_avatar,
          "iconmsg" => $iconmsg,
          "head_title" => $head_title,
          "lang_info" => $lang['board_langinfo']


Then, find :

Quote

$head_title ="<font size=\"4\">$thrtopic</font>";


right below, you should see :

Quote

$site_template->register_vars(array(
  "content" => $showtopic,
  "lang_alowpost" =>$lang_alowpost,
  "lang_alowrep" =>$lang_alowrep,
  "lang_alowedit" =>$lang_alowedit,
  "lang_alowdel" =>$lang_alowdel,
  "msg" => $msg,
  "iconmsg" => $iconmsg,
  "head_title" => $head_title,
  "lang_info" => $lang['board_langinfo']
));


replace with :

Code: [Select]

$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']
));


Then, find :

Quote

$reptext = format_boardtext($row['reptext'], $boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);


Then, above, you should see :

Quote

$posts = mysql_query ("SELECT user_posts,user_id,user_level,user_signature
                FROM ".USERS_TABLE." WHERE user_id ='$repuser_id'");
                while ($user = mysql_fetch_array($posts)) {
                $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);


replace with :

Code: [Select]

$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."' AND ".get_user_table_field("", "user_level")." >= '".USER."';

$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>";


There, this should complete the installation of the avatar MOD. If not, then I'm taking a brake on this one anyway. ;)

At least, waiting for inputs.

P.S : Forgot to mention that, from your HTML showthread template, you can now add the : {avatar_image} tag within. ;)

Note: Codings edited.

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #233 on: January 30, 2006, 10:15:24 PM »
TheOracle I know you would post something ;)

Bad news, doesn't seem to work, error have arrived, you can see in http://www.eruben.biz/Galeria/showthread.php?bid=6&threadid=4

Dunno what could be :)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #234 on: January 30, 2006, 10:18:34 PM »
Makes sense. I just corrected the above codings. Please try again and my apologize for these errors. ;)

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #235 on: January 30, 2006, 10:24:47 PM »
No need to apologize, WE have to apologize since you're trying to make a mod compatible with an addon :)

No errors returned now, but avatar is not showed, in the link above I gave you, there are 3 post, the topic starte doesn't have avatar, thats ok, second post is from me, and there, there is an avatar is not shown.

I can't give more details, sorry :(

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #236 on: January 30, 2006, 10:26:49 PM »
Tell me ... is your avatar folder like :

Quote

templates/avatars/youravatar.gif


from your gallery ?

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #237 on: January 30, 2006, 10:29:01 PM »
Tell me ... is your avatar folder like :

Quote

templates/avatars/youravatar.gif


from your gallery ?

Nope, the path is /templates/7dana/avatars and it works like example in the comments...

In one of your firstly post, the image shows itself ok, but not in the correct post.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #238 on: January 30, 2006, 10:31:31 PM »
Quote

Nope, the path is /templates/7dana/avatars and it works like example in the comments...


Right. I meant :

Quote

templates/<your_template>/avatars/youravatar.gif


Quote

In your first post the image shows itself ok, but not in the correct post.


Would you mind to explain which post actually ? The one I made today or the one from last time ? Please post the precise topic link so I can see. ;)

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #239 on: January 30, 2006, 10:35:05 PM »
Yes, the avatars are in templates/<my_template>/avatars/myavatar.gif

I meant, when you said that you would do a fix, that only the image showed in the topic-starter...

But dont worry, just tell me what you want me to do like an indian rabbit :P

I don't think that the problem are the images.... but you tell me what I have to do.

One more thing!! the comment_bit.php isn't similar what you want to do in showthread.php? I say it from the ignorence....