Log in

View Full Version : Flag PM's


trafix
01-25-2005, 10:00 PM
This hack came about as i was goint through my PM's at vborg. Recently i have been recieving a large number of PM's and some of them had important instructions from other members requesting HELP ......

BUT .... do you think i could find the right PM that contained the info that i wanted ..... NO

So i sat down again and did something about it :)

1 file edit
3 templates to edit
1 db table alteration


Please Click INSTALL :)

trafix
01-26-2005, 03:28 AM
P.S. it will work within your folders as well

Andreas
01-26-2005, 03:29 AM
vborg isn't a big problem as the amout of PMs one can keep is rather limited.
But on my own board ... I got like 4.000 PMs saved. LOL.

Would love to see a search function :)

But this might help too, nice idea!

docvader
01-26-2005, 03:36 AM
Trafix, another hack? My girlfriend hates you.

:)

In your install instructions:open pm_messagelist

Find the 2 instances of
************************

colspan="4"

***********
change to
***********

colspan="4"

************************
save pm_messagelist template

Thought you might want to know.

Does this hack just allow people to assign a "priority" flag to their PM's???? I'm not sure I follow this yet.

trafix
01-26-2005, 03:37 AM
open pm_messagelist

Find the 2 instances of
************************

colspan="4"

***********
change to
***********

colspan="5"

ooops ... ill fix the readme

trafix
01-26-2005, 03:38 AM
yep just like you would flag an email in outlook express etc

yoyoyoyo
01-26-2005, 03:56 AM
COOL! I thought you were working on a pay project, though.. where did you find time for this? I thought you were a little too quiet today LMAO

Thanks much- you must code in your sleep, or while having sex or at the dinner table :D

trafix
01-26-2005, 04:02 AM
COOL! I thought you were working on a pay project, though.. where did you find time for this? I thought you were a little too quiet today LMAO

Thanks much- you must code in your sleep, or while having sex or at the dinner table :D
lol .... i didnt get around to the paid job yet ... i had some other clients screaming down my neck for their site updates ... lol .... does coding wile having sex mean lots of "11111"'s and "000000"'s

Floris
01-26-2005, 08:07 AM
COOL! I thought you were working on a pay project, though.. where did you find time for this? I thought you were a little too quiet today LMAO

Thanks much- you must code in your sleep, or while having sex or at the dinner table :D
That explains why he was so excited on #vBnl a bit earlier - good job again trafix, I have a few more small requests for you to code, see you on irc.vbulletin.nl soon :)

Oblivion Knight
01-26-2005, 09:32 AM
I assume this allows you to flag multiple PM's?

Nice work trafix.. :)

The Realist
01-26-2005, 12:38 PM
This man is on a roll. I think he's after a VB org job myself :)

trafix
01-26-2005, 06:11 PM
I assume this allows you to flag multiple PM's?

Nice work trafix.. :)
@Oblivion Knight Yep, you can flag any PM in any folder :)

@The Realist nah ... but a HOTM would be nice ;)

The Realist
01-26-2005, 06:18 PM
HOTM is putty in your hands M8 :)

@Oblivion Knight Yep, you can flag any PM in any folder :)

@The Realist nah ... but a HOTM would be nice ;)

nexialys
01-26-2005, 06:51 PM
BUG: the query is ALTER TABLE `pmtext` ADD `pmflag` TINYINT DEFAULT '0' NOT NULL ;
but the php is: $DB_site->query("
UPDATE " . TABLE_PREFIX . "pm
SET pmflag = 1
WHERE pmid = $pmid
");... wrong table (PM or PMTEXT) ...
EDIT:
also: first open pm_messagelist templatehave to be open pm_messagelistbit template

trafix
01-26-2005, 06:55 PM
Damn ... yes its gotta go in "pm" i thought the query was right :(

Thnx for picking up on that one nexialys ... ill fix the zip

trafix
01-26-2005, 07:07 PM
If you have already run the query as per the original instructions you will have to run these 2 to fix my stuffup.

This will remove the wrong field

ALTER TABLE `pmtext` DROP `pmflag` ;


ALTER TABLE `pm` ADD `pmflag` TINYINT DEFAULT '0' NOT NULL ;

Lionel
03-23-2005, 05:24 AM
Can you make it so you can't delete flag messages unless you unflag them, this to prevent accidents?

xtreme-mobile
03-23-2005, 12:58 PM
how do you install this hack their r no instructions

twoseven
03-23-2005, 01:25 PM
the readme.tet or .tet.bak

Lionel
03-23-2005, 01:27 PM
rename readme.tet into readme.txt

xtreme-mobile
03-23-2005, 01:27 PM
agh right

cheers lionel, it woulodnt open up when i clicked it ill try renameing it

thanks

xtreme-mobile
03-23-2005, 01:37 PM
ive run the query and edited the private.php file but when i try to edit my pm_messagelist template the text i need to find doesnt exist??

it says not found? any ideas?

cheer

Lionel
03-23-2005, 01:43 PM
This thread isn't too long read the first page. It's worth it. This is a nice little useful hack.

xtreme-mobile
03-23-2005, 01:49 PM
yeh have read the first page mate :)

but i cant find this in template pm_messagelist

<tr>
<td class="alt1"><img src="$stylevar[imgdir_statusicon]/pm_$pm[statusicon].gif" alt="" border="0" /></td>

if i cant find it can i just not use this hack then?

Lionel
03-23-2005, 01:52 PM
try the pm_messagelistbit

xtreme-mobile
03-23-2005, 01:58 PM
ok ive worked it out, the instructions are back to front, the stuff you need to edit in pm_messagelist is actually in pm_messagelistbit and vice versa

looks goo btw

any way to change the icons to what ever ones we want?

Lionel
03-23-2005, 01:59 PM
If you want to be nice to your members you could adjust the messagelist template to show the icons legend.

xtreme-mobile
03-23-2005, 02:14 PM
hey i like that lionel :)

how would i do that :confused:

ive just changed my flagged message icons also :)

see screen shot :)

great hack clicks install

Lionel
03-23-2005, 02:20 PM
in pm_messagelist template after <tr>
<td><img src="$stylevar[imgdir_statusicon]/pm_forwarded.gif" alt="$vbphrase[forwarded_message]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forwarded_message]</td>
</tr>


add (replace with your image name)
<tr>
<td><img src="$stylevar[imgdir_statusicon]/user_offline.gif" alt="Message not Flagged" border="0" /></td>
<td class="smallfont">&nbsp; Message not Flagged</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/user_online.gif" alt="Message Flagged" border="0" /></td>
<td class="smallfont">&nbsp; Message Flagged</td>
</tr>

xtreme-mobile
03-23-2005, 02:23 PM
k ill try now :)

xtreme-mobile
03-23-2005, 02:35 PM
works a charm :)

thanks mate

yoyoyoyo
07-15-2005, 12:06 AM
The instructions as written did not work for 3.0.7 due to a few changes in the affected templates, so I re-wrote the instructions and updated them to work with 3.0.7, and also added Lionel's fix to add the status icon legend to the Private Message page.

It should work as advertised now :D

MThornback
07-30-2005, 01:34 AM
Thanks for this....it will make my life so much easier :p

yoyoyoyo
08-20-2005, 05:58 PM
oops- I forgot to include the file edits in the zip, since I assumed they were carried over from Trafix's install, but to make it easier for everyone to start off fresh the file has been updated to include them as well. so it has all of the info needed from start to finsih. sorry about that.

Lionel
10-23-2006, 01:08 AM
Incredible. This works with 3.60 as a product. Just a couple of changes in the code.

yoyoyoyo
12-04-2006, 07:05 AM
Incredible. This works with 3.60 as a product. Just a couple of changes in the code.
can you please post the new code/product here?

Lionel
12-04-2006, 07:33 AM
can you please post the new code/product here?

here you go. I have a product named miscellaneous where I dump all my minihacks. You might want to change the name into something else before importing.

You still need to do the template changes and it is also assumed that your table was altered as per original text file.

You need to figure out the html for the templates. Mine has other hacks. If you have problems, post and I'll try to help.

I also removed TABLE_PREFIX in my version. So you would need to add it to xml

yoyoyoyo
12-04-2006, 05:03 PM
thanks much