+ Reply to Thread (include dating software, release, and patch number!)
Page 3 of 3 FirstFirst ... 2 3
Results 21 to 27 of 27

Thread: Inbox, Outbox, Reply problems

  1. #21
    elusuario's Avatar
    Join Date
    Sep 2006
    Posts
    173

    Cool

    Ok, ready, everything seems to work fine, thanks to lodlock, hats off and I know everybody is going to appreciate this a lot.

    As a note, for the changes to work for me I had to change this line at outbox.php for layout and icon to appear correctly.

    At outbox.php:

    The line from lodlock is:

    Code:
    <td rowspan="2" colspan="3" align="center" valign="center"><img src="<? getTemplateIcon('outbox.gif') ?>" /></td>
    I had to change it to:

    Code:
    <td rowspan="2" colspan="2" align="center" valign="center"><img src="<?= getTemplateIcon('outbox.gif') ?>" /></td>
    So, if the layout of outbox.php is appearing wrong and/or the icon image is not appearing, this might fix the problem.

    Thanks again, everybody take care.
    Using modified Dolphin 5.6.0002 hosted at shared server

  2. #22
    Prometheus
    Guest

    Default Update Bug in Code

    This code does not take into consideration if a member gets alot of emails from some crazy and does not want to read them and instead just deletes the emails it will still show on their member page that they have a new message waiting.
    Which, of course, they, the member, can NEVER get rid of because they deleted the message(s)...lol....what a trip.....lol....

    Boy this pissed off alot of members and took a good bit of scripting to set ALL
    messages to read or "0"... And No they were not happy.....lol...

    So.....
    Code:
    change
    
    else $query = "UPDATE `Messages` SET `ib` = '0'"; 
    
    to
    
    else $query = "UPDATE `Messages` SET `ib` = '0'   'New' ='0'";
    Prometheus


    BTW...
    Thanks again for the hack Lodlock.... It does work GREAT.. and Hell...You, me, nobody can think of everything...
    I know there is alot of my code that is FAR from perfect.....LOL....
    It always takes an end loser to find all the things we haven't thought of....
    If it can be broken..they will do it...lol...

  3. #23
    elusuario's Avatar
    Join Date
    Sep 2006
    Posts
    173

    Cool

    First of all, thanks to Prometheus for helping improving this fix.

    Well, I had a problem with the sintax of the suggested solution for this last issue.

    I changed it to:

    Replace:

    Code:
    $query = "UPDATE `Messages` SET `ib` = '0'";
    With:

    Code:
    $query = "UPDATE `Messages` SET `ib` = '0', `New` = '0'";
    Including it here just in case someone face the same syntax problem with the suggested solution above.

    Take care.
    Using modified Dolphin 5.6.0002 hosted at shared server

  4. #24
    mwep
    Guest

    Default

    Wow!! Awesome post, I am going to try this on 5.6.004 to see if it fixes some of our issues as well.

    Do we just follow the steps through this post, or can someone nicely sum it up for us who are on tiny ass monitors.

    Thanks for the work!

  5. #25
    elusuario's Avatar
    Join Date
    Sep 2006
    Posts
    173

    Cool

    If you click the subject of a message at the inbox page you get to the page where you can see the message (messages_inbox.php), at this page there is a delete link that has to be modified to behave like when you are deleting messages at the inbox page.

    The messages lists at the pages for viewing specific messages (messages_inbox.php and messages_outbox.php) have to be modified for it to not list the messages a member have deleted from the inbox or outbox, respectively, without affecting the same lists of messages from the member who is at the other side of the communication.

    To do the above:

    At messages_inbox.php:

    Replace:
    Code:
    $delete_query = "DELETE FROM `Messages` WHERE `ID` = '$mes_id'";
    With:
    Code:
    	$ib_ob_arr = db_arr( "SELECT `ib`, `ob` FROM `Messages` WHERE `ID` = '$mes_id'" );
    	if (!$ib_ob_arr['ob'])
    	{
    		$delete_query_add = "DELETE FROM `Messages`";
    	}
    	else
    	{
    		$delete_query_add = "UPDATE `Messages` SET `ib` = '0', `New` = '0'";
    	}
    	$delete_query = "$delete_query_add WHERE `ID` = '$mes_id'";
    Replace:
    Code:
    $member_to_sender_query = "SELECT `Profiles`.`ID` AS pID, `Profiles`.`NickName`, `Profiles`.`Status`, `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as 'Date', `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview FROM `Messages` LEFT JOIN `Profiles` ON `Messages`.`Recipient` = `Profiles`.`ID` WHERE `Sender` = '" . (int)$memberID . "' AND `Recipient` = '" . (int)$senderID . "' ORDER BY `Date` DESC";
    With:
    Code:
    $member_to_sender_query = "SELECT `Profiles`.`ID` AS pID, `Profiles`.`NickName`, `Profiles`.`Status`, `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as 'Date', `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview, `Messages`.`ob` FROM `Messages` LEFT JOIN `Profiles` ON `Messages`.`Recipient` = `Profiles`.`ID` WHERE `Sender` = '" . (int)$memberID . "' AND `Recipient` = '" . (int)$senderID . "' AND `ob` = '1' ORDER BY `Date` DESC";
    Replace:
    Code:
    $sender_to_member_query = "SELECT `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as 'Date', `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview FROM `Messages` LEFT JOIN `Profiles` ON Messages.Sender = Profiles.ID WHERE `Sender` = '" . (int)$senderID . "' AND `Recipient` = '" . (int)$memberID . "' ORDER BY `Date` DESC";
    With:
    Code:
    $sender_to_member_query = "SELECT `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as 'Date', `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview, `Messages`.`ib` FROM `Messages` LEFT JOIN `Profiles` ON Messages.Sender = Profiles.ID WHERE `Sender` = '" . (int)$senderID . "' AND `Recipient` = '" . (int)$memberID . "' AND `ib` = '1' ORDER BY `Date` DESC";

    At messages_outbox.php:

    Replace:
    Code:
    $member_to_sender_query = "SELECT `Profiles`.`ID` AS pID, `Profiles`.`NickName`, `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as Date, `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview FROM `Messages` LEFT JOIN `Profiles` ON `Messages`.`Recipient` = `Profiles`.`ID` WHERE `Sender` = '$memberID' AND `Recipient` = '$senderID' ORDER BY `Date` DESC";
    With:
    Code:
    $member_to_sender_query = "SELECT `Profiles`.`ID` AS pID, `Profiles`.`NickName`, `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as Date, `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview, `Messages`.`ob` FROM `Messages` LEFT JOIN `Profiles` ON `Messages`.`Recipient` = `Profiles`.`ID` WHERE `Sender` = '$memberID' AND `Recipient` = '$senderID' AND `ob` = '1' ORDER BY `Date` DESC";
    Replace:
    Code:
    $sender_to_member_query = "SELECT `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as Date, `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview FROM `Messages` LEFT JOIN `Profiles` ON Messages.Sender = Profiles.ID WHERE `Sender` = '$senderID' AND `Recipient` = '$memberID' ORDER BY `Date` DESC";
    With:
    Code:
    $sender_to_member_query = "SELECT `Messages`.`ID` AS mID, `New`, DATE_FORMAT( `Date`, '$date_format') as Date, `Subject`, LEFT( `Text`, {$preview_leight} ) AS Preview, `Messages`.`ib` FROM `Messages` LEFT JOIN `Profiles` ON Messages.Sender = Profiles.ID WHERE `Sender` = '$senderID' AND `Recipient` = '$memberID' AND `ib` = '1' ORDER BY `Date` DESC";
    That's all, hope it helps, take care, bye.
    Using modified Dolphin 5.6.0002 hosted at shared server

  6. #26
    spikefaery's Avatar
    Join Date
    Feb 2008
    Posts
    16

    Default Deleting outbox messages

    Anyone know the the code to add deleting of Outbox messages for Dolphin V6.003 + without it affecting another members inbox messages?? I've looked everywhere with no such luck..
    Thankx
    -Spike

  7. #27
    makenoize's Avatar
    Join Date
    Sep 2006
    Posts
    182

    Default

    Im trying to use the solution posted here in this thread on 03-18-2007 to solve a truncate problem when large messages are sent but I actually have 6.0 and code mentioned in the solutions in compose.php does not exist in 6.0.

    can any one refer me to a solution for this for 6.x?

    Thank you

    makenoize
    makenoize uses IQ AE Dating (4.1.0004) and Clean 6.0.1b3. Currently using D7 and hating it - this is no longer fun.......

+ Reply to Thread (include dating software, release, and patch number!)
Page 3 of 3 FirstFirst ... 2 3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. combine inbox and outbox
    By makenoize in forum FAQ & HOWTO
    Replies: 2
    Last Post: 06-15-2007, 02:59 AM
  2. Inbox/Outbox need improvement
    By Smoge in forum Wishlist
    Replies: 4
    Last Post: 03-14-2007, 12:47 AM
  3. time in inbox-outbox
    By raeyo in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 02-19-2007, 01:25 AM
  4. Inbox.php & outbox.php hacks.
    By Prometheus in forum Free Mod Exchange
    Replies: 0
    Last Post: 02-06-2007, 09:14 PM
  5. Problems with Reply
    By Smoge in forum Feedback and Suggestions
    Replies: 1
    Last Post: 08-27-2005, 09:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts