Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2000
Posts: 34
bmh
Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
HACK NAME: PMStatus Images

DESCRIPTION: Disply the Status of Private Message as Images

IDEA BY: (BMH)

DATE : 09/MAR/03

VERSION: NONE

FILES Altered :
From Script : viewmessages.php
From Language File : generic.php

Database ALTERED : NONE

New Images : 4 Status images

Modification duration : 4 - 8 Min's

DEMO: Screen Shot : http://www.alnadabi.net/statusimage.jpg

[]http://www.alnadabi.net/statusimage.jpg[/]


Thats All , Enjoy
BMH
Attachments
72304-PMStatus-Image.zip (0 Bytes, 86 downloads)

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Hey that's pretty cool. I might take a look at this one. Thanks!

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks for sharing, that is really useful instead of the confusing letters.

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Thx, a very nice one!

Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Great, but I found small bug when I installed it on v6.1.1.
Image files was required to be in the main folder of forum, not in the image folder...

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Sweet! Thanks.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I was able to get the Replied icon to work, but I ran into a problem with my viewmessages.php file. This is the entire contents of that file:

<?
$ubbt_lang['received'] = "Viewing your received messages";
$ubbt_lang['sent'] = "Viewing your sent messages";
?>

I'm using 6.2.3

I tried uploading the viewmessages.php that comes with the 6.2.3 zip, but that just caused an error when trying to view my private messages.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That looks like the viewmessages.php language file, not the script. I think the changes are to the script, and not the language files.

Joined: Oct 2000
Posts: 34
bmh
Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
[]slawekl said:
Great, but I found small bug when I installed it on v6.1.1.
Image files was required to be in the main folder of forum, not in the image folder... [/]


Well , I did test it in 6.2.3, but it should work with 6.x.x if you will change the language veriables to the right link to the images .... it will be easy for u


the only one thing you should consider is when you will view the reciption message , it will change to Read Status and the icon also will change ,,,

ummmm , I think if we can give reciption message another letter when it has been read, we can solve this thing


Thanks every one for good support.

Best Regards,
BMH

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
::Slaps Forehead::

<-- I'm with Stoopid.

Thanks Josh! And thanks for the great mod BMH!!

Sponsored Links
Joined: Oct 2000
Posts: 34
bmh
Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
Hi there ...

as I am using this mod , i found small bug which i couldnt find good solution for it .... unless I have to give other letter for some message status ....

the main problem of this bug is :

when any one reply for a message ... i will arrive to the next user as (Read Receipt Icon) .... I think ther is some conflict between (letter C & letter N) ....

can any one explain the different between thos letters ??


my suggestion is to give the (Read Receipt status) another letter than C Or N .... so we can recognize the right status of each message .....

Need your suggestion for this bug .... and what do you think the best way to solve it ....


Thanks
BMH


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This is great!

I just put this on ultimatenurse.com

I added a "Legend" at the bottom of the viewing messages page:

In viewmessages.tmpl

Find this:
Code
<br /></td><br /></tr><br />$tbclose<br /><br /></form><br />UBBTPRINT;<br />/* UBBTREMARK */ ?><br />




Change to this:

Code
<br /></td><br /></tr><br /><tr><br /><td colspan="6" align="left" class="lighttable"><br />Legend:&nbsp;&nbsp;<br /><img src="{$config['imageurl']}/newpmmsg.gif" alt="New Message"><br />New PM <br />&nbsp;&nbsp;<br /><img src="{$config['imageurl']}/readpmmsg.gif" alt="Message has been viewed"><br />Message has been viewed<br />&nbsp;&nbsp;<br /><img src="{$config['imageurl']}/replypmmsg.gif" alt="Replied Message"><br />Replied Message<br />&nbsp;&nbsp;<br /><img src="{$config['imageurl']}/notificationpmmsg.gif" alt="Read Notification Message"><br />Read Notification Message<br /></td><br /></tr><br />$tbclose<br /><br /></form><br />UBBTPRINT;<br />/* UBBTREMARK */ ?><br />

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I like this so much....

We are using it here.

Thank you.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK -

I found the solution for the read receipt issue and I'm using it here:

Use this code instead:

Code
<br />      if (($read == "N") && ($subject == "Read Receipt")) {<br />         $type = "{$ubbt_lang['TEXT_NEWPM']} {$ubbt_lang['TEXT_NOTIFPM']}";<br />      }<br />      elseif ($read == "N") {<br />         $type = $ubbt_lang['TEXT_NEWPM'];<br />      }<br />      elseif ($read == "R") {<br />         $type = $ubbt_lang['TEXT_REPLIED'];<br />      }<br />      elseif ($read == "C") {<br />         $type = $ubbt_lang['TEXT_NEWPM'];<br />      }<br />      elseif ($subject == "Read Receipt") {<br />         $type = $ubbt_lang['TEXT_NOTIFPM'];<br />      }<br />      else {<br />         $type = $ubbt_lang['TEXT_READ'];<br />      }<br />

Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
Is "Read Receipt" a language dependant thing?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes... but the subject is stored in he database when the message is generated.... so I think it would be native to the sender. If you are on a multi-lingual board it would need to look like this:

if (($read == "N") && (($subject == "Read Receipt") || ($subject == "xxxxxxxx") || ($subject == "yyyyyyyy"))) {



Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
It's native to the recepient so it'll work with the language string as long as the user doesn't change his language preferences. If he does, the status of old message won't be displayed correctly.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369

Ah cool. That makes sense. So if you are in German.. and I am in English. And I send you a message. When I get my read receipt... it'll be in English, even if you are using German... right?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Exactly.
But the wrong icon would be displayed if you decide to switch to Italian, cause you need to learn it for your roundtrip.

The if clause wouldn't match any longer and the normal message icon would appear.

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Exactly.
But the wrong icon would be displayed if you decide to switch to Italian, cause you need to learn it for your roundtrip.

The if clause wouldn't match any longer and the normal message icon would appear.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
But if you did what I posted above.... offering all the translations for "Read Receipt" it should work, right?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471

Joined: Oct 2000
Posts: 34
bmh
Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
Hi JoshPet,
I like your modification, thank you very much

Best Regards
BMH

Joined: Oct 2000
Posts: 34
bmh
Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
Forgot to tell u something

My users send you special regards



Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
bmh might want to update the zip... nice work

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hey, I just tweaked your great idea. It was nothing.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
When I try to add the "Legend" that Josh designed for this mod, I get this error (when trying to view my PMs):

Parse error: parse error in /home/htdocs/users/nross62/nross62/iyarilimon.com/ubbthreads/templates/default/viewmessages.tmpl on line 93

I've copied and pasted twice to make sure I didn't miss anything. Any ideas as to what I'm doing wrong?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Looks like we lost some line breaks when this got edited/uploaded.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)