Author Topic: [addon] DREAMBOARD V 2.1  (Read 519973 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 #210 on: January 27, 2006, 04:22:32 AM »
TheOracle is loosing it. :cry:

I just saw something interesting in v@no's topic for the avatar. I have just edited my post above (again). Hope this works this time. :|

congratulations :D It works, but the next problem is still unsolved -> how to shot the avatars ot the answers?
You're close  8)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #211 on: January 27, 2006, 04:27:30 AM »
Yep, it ain't 22h30 pm for nothing (at least from my end) so - I guess - the :idea: is back.

In the same file, find :

Quote

$posts = mysql_query ("SELECT user_posts,user_id,user_name,user_level,
       user_joindate,user_signature


replace with :

Code: [Select]

$posts = mysql_query ("SELECT user_posts,user_id,user_name,user_level,
user_joindate,user_signature,user_avatar


This is the reason why you saw an empty image at first. It is good to acquire an image field but ONLY when we select it first.  :mrgreen:

Keep me posted on this. ;)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #212 on: January 27, 2006, 04:34:05 AM »
i've replaced it, but it remains the same

 :arrow:hope you understand me, the changes i've made in the last posts, affects only the user, who starts the topic - answers in the same topic remain the same *userpic and no avatar image*

PS: Thanks for your support, it's now 05:30AM in Bulgaria, i've worked the past 12 hours and my  :idea: isn't working anymore under these circumstances ;)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #213 on: January 27, 2006, 04:41:34 AM »
Quote

:arrow:hope you understand me, the changes i've made in the last posts, affects only the user, who starts the topic - answers in the same topic remain the same *userpic and no avatar image*


Is that so ... ? Ok, find :

Quote

$posts = mysql_query ("SELECT user_posts,user_id,user_name,user_level,
       user_joindate,user_signature,user_avatar
       FROM ".USERS_TABLE."  WHERE user_id ='$thrstarter_id' ");


change to :

Code: [Select]

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


Then, where I told you to change this part :

Quote

$user_avatar = $user_info['user_avatar'];
$user_avatar_current = ($config['avatar_use'] && @file_exists(TEMPLATE_PATH."/avatars/".$user_avatar)) ? "<img src=\"".TEMPLATE_PATH."/avatars/".$user_avatar."\">" : get_gallery_image("blank.gif");


I take it back. Change back to :

Quote

$user_avatar_current = ($config['avatar_use'] && @file_exists(TEMPLATE_PATH."/avatars/".$user['user_avatar'])) ? "<img src=\"".TEMPLATE_PATH."/avatars/".$user['user_avatar']."\">" : get_gallery_image("blank.gif");


If there still no difference. I will install these two MODs myself. ;)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #214 on: January 27, 2006, 04:57:44 AM »
 :?

Code: [Select]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /www/ggrec.com/www/root/zapomnime2/showthread.php on line 127
maybe we have to change the string...
Code: [Select]
$user_avatar = $user_info['user_avatar'];
$user_avatar_current = ($config['avatar_use'] && @file_exists(TEMPLATE_PATH."/avatars/".$user_avatar)) ? "<img src=\"".TEMPLATE_PATH."/avatars/".$user_avatar."\">" : get_gallery_image("blank.gif");
... in some other php file of the mod?

PS: the user-level of the admin is being decreaased to "normal" in the forum after apply-ing this

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #215 on: January 27, 2006, 05:00:54 AM »
No, actually - it's a slight mistake where the SQL statement was. I have just edited it above.

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #216 on: January 27, 2006, 05:06:04 AM »
No, actually - it's a slight mistake where the SQL statement was. I have just edited it above.

Code: [Select]
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/ggrec.com/www/root/zapomnime2/showthread.php on line 126

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #217 on: January 27, 2006, 05:08:32 AM »
Unfortunitely, it isn't going too well. At least, I have re-edited the block above in order to get rid of the error message. ;)

If no one else gives a definite response on this, tomorrow I will try these two MODs myself on a test folder and see if I could fit this in and, if I do find anything, I will post the results here.

Sorry for not posting an official response for tonight - it's so late.  :|

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #218 on: January 27, 2006, 05:12:16 AM »
Good! Look forward to hear from you soon and again - thanks for your time  :)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #219 on: January 27, 2006, 05:12:56 AM »
Quote

and again 0 thanks for your time


Ok .  ..

[ Post edited above ]

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #220 on: January 27, 2006, 06:03:23 PM »
have someone fix it already ?

Boardreply (using quote)

Quote
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/blacktra/public_html/boardreply.php on line 102

 :?:

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #221 on: January 27, 2006, 06:13:36 PM »
@stoleti:

Ok. I have just used the search to see if there was anything that could come up on this one but nothing related to your problem. Perhaps this has not been reported at all in the past.

Let's try this. In your board_reply.php file,

find :

Code: [Select]

$reply = mysql_query ("SELECT reptopic,reptext,repuser, repthrid
FROM ".BOARD_TREP_TABLE." WHERE repid='$replyid' AND repthrid='$threadid' AND repforid='$bid'");
         while ($row = mysql_fetch_array($reply)) {
            $thrid = $row['repthrid'];
$reptopic = $row['reptopic'];
            $reptext = $row['reptext'];
$repuser = $row['repuser'];
$headline = $reptopic;
$message = ' [quote=[b]' . $repuser . ' wrote :[/b]]' . $reptext . '[/quote]';
$subject_form = $headline;
            $reply = $message;
}


replace with :

Code: [Select]

$reply = "

SELECT reptopic,reptext,repuser, repthrid
FROM ".BOARD_TREP_TABLE."
WHERE repid='".$replyid."' AND repthrid='".$threadid."' AND repforid='".$bid."'

";

$result = $site_db->query($reply);
         while ($row = $site_db->fetch_array($result)) {
            $thrid = $row['repthrid'];
$reptopic = $row['reptopic'];
            $reptext = $row['reptext'];
$repuser = $row['repuser'];
$headline = $reptopic;
$message = ' [quote=[b]' . $repuser . ' wrote :[/b]]' . $reptext . '[/quote]';
$subject_form = $headline;
            $reply = $message;
}


This should get rid of the error message. ;)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #222 on: January 27, 2006, 08:10:31 PM »
Oracle, have you found a solution for the avatar?

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #223 on: January 27, 2006, 08:16:35 PM »
yea the error its gone  8) (disapeared)

if people permit my suggestion, i think this board need a search form (system) would be very useful , and faster for user , to find what they want, and for another side this make users not post more then 1x the same subject on forum(topic)  8)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #224 on: January 27, 2006, 08:19:04 PM »
Quote

yea the error its gone  Cool (disapeared)


Outstanding. ;)

Quote

if people permit my suggestion, i think this board need a search form (system) would be very useful , and faster for user , to find what they want, and for another side this make users not post more then 1x the same subject on forum(topic)


And how. 8)

Quote

Oracle, have you found a solution for the avatar?


I'm currently installing it now trez. I was busy with another user, outside forum related, and I just finished his project a couple of mins ago. ;)

More update to come on this later today - I haven't forgot. In fact, I look forward to implement this since this seem to have been requested a lot lately around here. ;)