Joined: Oct 2000
Posts: 34
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
Joined: Mar 2001
Posts: 644
Member
Member
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
Joined: Dec 2000
Posts: 1,471
Thx, a very nice one!
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
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...
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
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
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
Joined: Aug 2000
Posts: 1,609
::Slaps Forehead:: <-- I'm with Stoopid. Thanks Josh! And thanks for the great mod BMH!!
Joined: Oct 2000
Posts: 34
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:
<br /></td><br /></tr><br />$tbclose<br /><br /></form><br />UBBTPRINT;<br />/* UBBTREMARK */ ?><br /> Change to this:
<br /></td><br /></tr><br /><tr><br /><td colspan="6" align="left" class="lighttable"><br />Legend: <br /><img src="{$config['imageurl']}/newpmmsg.gif" alt="New Message"><br />New PM <br /> <br /><img src="{$config['imageurl']}/readpmmsg.gif" alt="Message has been viewed"><br />Message has been viewed<br /> <br /><img src="{$config['imageurl']}/replypmmsg.gif" alt="Replied Message"><br />Replied Message<br /> <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:
<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
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
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
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
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
Joined: Dec 2000
Posts: 1,471
Joined: Oct 2000
Posts: 34
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
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
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
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.
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.
Posts:
254
Joined: January 2000
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139Sep 21st, 2024
Currently Online
Topics Created
Posts Made
Users Online
Birthdays