PDA

View Full Version : Blink PM icon with userinfo


Sebastian
02-01-2005, 10:00 PM
Blink PM icon with userinfo

---------------------
Installation

- easy
- queries 0/1 (details below)
- file edits 1
- template edits 1

Reason for this hack:
I find the PM system lacked some additional information on the navbar the 0 X Unread, Total X isn't enough, as i wanted to know who sent the PM and how many they sent.

How it works:
When you get a PM the "Private Messages: x Unread, Total x." disappears and is replaced with a little blinking icon, if the user that sent the PM is a mod the icon will blink a teal color, if its a normal user, it will blink yellow. along with this you can view who sent the message, and if multiple people sent you PMs it will show their names.. If they sent you more than one, it will tell you that too. It will also take you directly to the PM without having to go to your inbox first.. After you've read all your PMs (or you dont have any) the "Private Messages: x Unread, Total x." returns to normal.

Queries: i know a lot of people are worried when it comes to adding hacks (especially me) because of additional queries.. this hack is sort of different. It only executes 1 query IF the user has unread PMs.. if they have no new PMs then 0 queries.

I've included two blinking gifs, you can use your own, put them in your images misc directory.

Read the txt file for installtion which takes 30 seconds.
I plan to expand this addons, but depends how many find it usefull, so click install plz.

yoyoyoyo
02-02-2005, 07:25 PM
very cool!

edit- installed in about 30 seconds and it works as advertised!

Quad139
02-02-2005, 07:28 PM
Cool

nexialys
02-02-2005, 08:07 PM
* nexialys looks further to receive these pm.. ;)

Harley77
02-02-2005, 08:16 PM
Very cool, *clicks install*.

One question though, How would you get this to work on a portal page like vBAdvanced? The PM section dissapears as I goto the front page.

yoyoyoyo
02-02-2005, 08:27 PM
wowzers.. now with the 1) audible PM message hack, and 2) this hack, and 3) the blinking "PRIVATE MESSAGE" message like they have here... my PM system is like the 4th of july when I get a PM :)

Phalynx
02-02-2005, 08:46 PM
Works great, thanks!

OrangeFlea
02-02-2005, 09:16 PM
I'm still using 3.0.3. Will I have to make any modifications?

nexialys
02-02-2005, 09:18 PM
it's a 3.0+ hack, everything work the same for all versions...

Polo
02-02-2005, 09:26 PM
nice :) thanks for sharing

Floris
02-02-2005, 11:19 PM
You can do this using template conditionals, no need to hack code.

Sebastian
02-02-2005, 11:30 PM
You can do this using template conditionals, no need to hack code.

then do it, i'd like to see you accomplish this.
sure you can use a conditional to blink an image, but there is no way you are going to be able to get the users, the ids to the PM, the unique PM count, etc..

Kahoona
02-03-2005, 12:07 AM
I get this SQL Error:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM pmtext AS pmtext
LEFT JOIN pm AS pm USING(pmtextid)
LEFT JOIN user ON (user.userid=pmtext.fromuserid)
WHERE pm.userid=1 AND messageread=0
GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC

mysql error: Table 'andy.pmtext' doesn't exist

mysql error number: 1146

Sebastian
02-03-2005, 12:50 AM
@ Kahoona: redownload the zip. i forgot to add TABLE_PREFIX to the query.

kall
02-03-2005, 12:51 AM
I get this SQL Error:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM pmtext AS pmtext
LEFT JOIN pm AS pm USING(pmtextid)
LEFT JOIN user ON (user.userid=pmtext.fromuserid)
WHERE pm.userid=1 AND messageread=0
GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC

mysql error: Table 'andy.pmtext' doesn't exist

mysql error number: 1146
And the attachment won't download!

Kahoona
02-03-2005, 01:24 AM
It still does not work lol.

yoyoyoyo
02-03-2005, 01:40 AM
@ Kahoona: redownload the zip. i forgot to add TABLE_PREFIX to the query.Huh? It installed earlier for me fine and works great. Should I re-edit the hack with the newly updated code?

Sebastian
02-03-2005, 02:03 AM
Huh? It installed earlier for me fine and works great. Should I re-edit the hack with the newly updated code?

no you dont have to.
all i did was change:

FROM pmtext

to:

FROM " . TABLE_PREFIX . "pmtext

TABLE_PREFIX is only needed if you add a prefix on your tables when you installed vb, otherwise its not needed.

Kahoona, do your tables have a prefix or not?

yinyang
02-03-2005, 06:30 AM
most excellent.

installed in 1 minute and works like a charm.

MrNase
02-03-2005, 01:22 PM
most excellent.

installed in 1 minute and works like a charm.

Same for me, thank you for that hack :)

Kahoona
02-03-2005, 01:49 PM
no you dont have to.
all i did was change:

FROM pmtext

to:

FROM " . TABLE_PREFIX . "pmtext

TABLE_PREFIX is only needed if you add a prefix on your tables when you installed vb, otherwise its not needed.

Kahoona, do your tables have a prefix or not?
Yes I do have a prefix.

Mellow
02-03-2005, 02:31 PM
I installed it and it worked on all my pages but not on my vbadvanded cmps portal page. I have a global.php require in my index.php, both my root and my forums but if there are any PMs that line disappears.... No PMs and it looks normal.. again, only on the portal page.... any thoughts?

Socomjunky.com
02-03-2005, 05:08 PM
i tired to install it and i got the same database error i had to un-install it

bobjackson
02-03-2005, 11:58 PM
i tired to install it and i got the same database error i had to un-install it
there are a couple of missing TABLE_PREFIX's...

the sql script needed an additional two prefix's (in bold below):


$getmessages = $DB_site->query("
SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM " . TABLE_PREFIX . "pmtext AS pmtext
LEFT JOIN " . TABLE_PREFIX . "pm AS pm USING(pmtextid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid=pmtext.fromuserid)
WHERE pm.userid=$bbuserinfo[userid] AND messageread=0
GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC
");

Sebastian
02-04-2005, 03:26 AM
doh, i forgot about the left joins.. i updated the zip,.. those that got the sql error and have table prefix on vb are the only ones that should get the updated version.

thanx.

yinyang
02-04-2005, 08:29 PM
is there a way to make it show up also on the VBACmps (vb advanced) page?

Sebastian
02-04-2005, 09:42 PM
what attachment are you talking about? the hack file?

boo.3
02-04-2005, 10:28 PM
/me clicks install

JMH11788
02-08-2005, 12:23 AM
Just installed it...Thanks!

DRJ
02-08-2005, 02:59 AM
I get this error. Any idea on what the problem is?

Database error in vBulletin 3.0.6:

Invalid SQL:
SELECTpmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid,pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROMvb3_pmtext AS pmtext
LEFT JOIN vb3_pm AS pm USING(pmtextid)
LEFT JOIN vb3_user ON(user.userid=pmtext.fromuserid)
WHERE pm.userid=135 AND messageread=0
GROUP BY pmtext.fromusername ORDER BYuser.usergroupid ASC

mysql error: Unknown table 'user' in field list

mysql error number: 1109

Allan
02-08-2005, 04:06 PM
Very nice :)

Rhoads
02-08-2005, 08:34 PM
My users always login on the portal, my question is ?, how can I use this with the vbadvanded portal.

Kihon Kata
02-09-2005, 02:19 AM
Can I get someone to help me with my code? I think mycode is modded already and this is why I'm not sure where to put thishacked code. THanks in advance!

My PM area code:
<if condition="$bbuserinfo['userid']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<!--$vbphrase[log_out]]-->
<strong>$vbphrase[welcome_x]

<phrase1="$pmbox[lastvisitdate]"2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]
<if condition="$show['pmstats']">
$vbphrase[private_messages] (http://private.php?$session%5Bsessionurl%5D): $vbphrase[unread_nav] $bbuserinfo[pmunread]$bbuserinfo[pmunread], $vbphrase[total] $bbuserinfo[pmtotal].

Cheertobi
02-09-2005, 10:40 AM
I get this error. Any idea on what the problem is?

Database error in vBulletin 3.0.6:

Invalid SQL:
SELECTpmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid,pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROMvb3_pmtext AS pmtext
LEFT JOIN vb3_pm AS pm USING(pmtextid)
LEFT JOIN vb3_user ON(user.userid=pmtext.fromuserid)
WHERE pm.userid=135 AND messageread=0
GROUP BY pmtext.fromusername ORDER BYuser.usergroupid ASC

mysql error: Unknown table 'user' in field list

mysql error number: 1109
Yap, same error here ;(

Tobi

Cheertobi
02-09-2005, 10:52 AM
Hi,

got it work with this query:

SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, " . TABLE_PREFIX . "user.userid, " . TABLE_PREFIX . "user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM " . TABLE_PREFIX . "pmtext AS pmtext
LEFT JOIN " . TABLE_PREFIX . "pm AS pm USING(pmtextid)
LEFT JOIN " . TABLE_PREFIX . "user ON (" . TABLE_PREFIX . "user.userid=pmtext.fromuserid)
WHERE pm.userid=$bbuserinfo[userid] AND messageread=0
GROUP BY pmtext.fromusername ORDER BY " . TABLE_PREFIX . "_user.usergroupid ASC

How got I the "2 Minutes ago" thing working? I just got "New PM from xyz, Today!".

Regards,

Tobi

JMH11788
02-11-2005, 11:06 PM
My users always login on the portal, my question is ?, how can I use this with the vbadvanded portal.
I need the same question answered... :ermm: ...

T3MEDIA
02-11-2005, 11:31 PM
agreed. I have a site that uses vbindex.
I assume you plop the code in vbindex and mod the vbindex templates?
just need a confirm

T3MEDIA
02-12-2005, 12:50 AM
Very nice :)
Problem. I have a few girls on a form and one girl had 30 PM's this spread across her screen. I assumed it would show like maybe 1 or 2 max.

Is there a way to show 1 to 3 users max and have the flashing note icon clickable to the normal private.php file?

I am going out to a club so I guess you guys can huck that up...
thanks.

gothicuser
02-12-2005, 03:13 AM
Many thanks, works nicely.
One slight hiccup though, when there is no PM for the member all displays normally in vBAdvanced portal, but when there IS a PM that whole section disappears from the nav panel (but as I say works perfectly in the forums.)
Nothing to worry about, i'll figure it all out when my brain returns from it's winter holidays!!

uae
02-13-2005, 03:24 AM
Nice, clicked installed :)

Wasim
02-13-2005, 04:19 AM
nice

Protoman
02-14-2005, 02:58 AM
I also have the vbAdvanced issue. I wrote code that changed the link to /forumURL/private.php when you are on the homepage but it still didn't work.. I'm pretty new to writing php.

Protoman
02-14-2005, 03:53 AM
I wrote a quick fix that seems to work for me.. but I'm not responsible if it screws up your forum!!

It just repeats the default command and shows "Private Messages: x Unread, x Read"
in your navbar template find:

<br />
<if condition="$bbuserinfo['pmunread']">$privatemessages<else />
<if condition="$show['pmstats']"><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></if>

Replace With:

<br />
<if condition="THIS_SCRIPT == 'adv_index' OR defined('VBA_SCRIPT')"><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><else />
<if condition="$bbuserinfo['pmunread']">$privatemessages<else />
<if condition="$show['pmstats']"><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></if></if>




waiting patiently for a real fix :ermm:

T3MEDIA
02-14-2005, 09:21 PM
Problem. I have a few girls on a form and one girl had 30 PM's this spread across her screen. I assumed it would show like maybe 1 or 2 max.

Is there a way to show 1 to 3 users max and have the flashing note icon clickable to the normal private.php file?

I am going out to a club so I guess you guys can huck that up...
thanks.
anything to help me on this?

T3MEDIA
02-15-2005, 12:39 AM
I wrote somethin up real quick.. I don't know if it works.. I need to get to my home pc and test it first.. just posting it here as my scratchpad :banana: I'll edit this if it works...

");

// Set the PM Counter to start at 0
if (!isset($messageCount))
{
session_register("messageCount");
$messageCount = 0;
}


while ($privatemessage = $DB_site->fetch_array($getmessages) AND $messageCount < 3)
was this for me?
If so I just replace what was asked in the hack I assume

Protoman
02-15-2005, 01:00 AM
not for anybody, it's not done.

Sebastian
02-15-2005, 01:34 AM
@ T3MEDIA

Replace

ORDER BY user.usergroupid ASC
with
ORDER BY user.usergroupid ASC LIMIT 0,3

that will limit the PMs shown to the first 3, after they see the first 3, the next 3 will be shown.

The hack will be updated with some enhancements soon.

Protoman
02-15-2005, 02:04 AM
that's a bit easier than my version :D like I've said.. I've only been writing php for uhh 2 days.. i did get mine working btw

thx for the easy fix

Kihon Kata
02-16-2005, 02:02 AM
Anyone take a look at the code?

Can I get someone to help me withmy code? I think mycode is modded already and this is why I'm not surewhere to put thishacked code. THanks in advance!

My PM area code:
<if condition="$bbuserinfo['userid']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<!--$vbphrase[log_out]]-->
<strong>$vbphrase[welcome_x]

<phrase1="$pmbox[lastvisitdate]"2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]
<if condition="$show['pmstats']">
$vbphrase[private_messages] (http://private.php?$session%5Bsessionurl%5D): $vbphrase[unread_nav] $bbuserinfo[pmunread]$bbuserinfo[pmunread], $vbphrase[total] $bbuserinfo[pmtotal].

Sebastian
02-16-2005, 10:26 PM
@ TonysDesigns, try this (untested).

find:

<if condition="$show['pmstats']">

replace with:

<if condition="$bbuserinfo['pmunread']">$privatemessages<else />
<if condition="$show['pmstats']">
$vbphrase[private_messages]: $vbphrase[unread_nav] $bbuserinfo[pmunread]$bbuserinfo[pmunread], $vbphrase[total] $bbuserinfo[pmtotal].</if>

T3MEDIA
02-16-2005, 10:56 PM
@ T3MEDIA

Replace

ORDER BY user.usergroupid ASC
with
ORDER BY user.usergroupid ASC LIMIT 0,3

that will limit the PMs shown to the first 3, after they see the first 3, the next 3 will be shown.

The hack will be updated with some enhancements soon.
THANK YOU!!!!

mholtum
02-17-2005, 06:52 AM
I am running the patched vb patched 3.0.5 with vbadvanced 1.0.1 CMPS. This mod works wonderfully in the forums but not on my portal. Any Ideas?

mholtum
02-17-2005, 02:29 PM
*BUMP* Anyone? Please.

Protoman
02-18-2005, 12:21 AM
back on page 3 I posted a fix to have atleast something there https://vborg.vbsupport.ru/showpost.php?p=611544&postcount=43

Skaterscafe.com
02-20-2005, 06:41 PM
Hummm, in NAVBAR I can't find:

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>

Protoman
02-21-2005, 02:39 AM
not sure how to help ya .. look for a php comment <!-- that says something about PM info.

Reece D
03-01-2005, 10:38 AM
*installed* thanks

Delphiprogrammi
03-01-2005, 02:25 PM
hi,

installed in a minute first got a databasecrash but i learned to read the whole thread before i ask for help ;) the solution was posted on a previous page somewhere anyway thanks Sebastion by the way did you took that icon from icq ? ;)

* Delphiprogrammi clicks install

Onkel_Tom
03-01-2005, 10:06 PM
very easy installation and works great !
thank your for that mod.

kall
03-04-2005, 06:11 PM
How about making the flashing gif be hotlinked as well?

org
03-05-2005, 01:24 PM
One of the main deficits eliminated. Good job!
Installed.

T3MEDIA
03-05-2005, 08:41 PM
How about making the flashing gif be hotlinked as well?
I was thinking that too.

lefthome
03-09-2005, 11:01 AM
I want to install, but I am upgrading to vb-bulletin 3.07 this weekend. Does this hack, vice nice program, work in version 3.07?

Shackbase
03-20-2005, 05:10 PM
www.talkshack.com - i did all it asked for.. and nothing.. :( what did I do wrong.. ?

Thanks,

--Tone

Nordinho
03-20-2005, 07:19 PM
www.talkshack.com - i did all it asked for.. and nothing.. :( what did I do wrong.. ?

Thanks,

--Tone
Has anyone got this working on the cmps index page??

bobjackson
03-20-2005, 07:59 PM
Has anyone got this working on the cmps index page??

ya, i'm using this with cmps.

i made a couple of changes and used a phrase. (changes in bold)

i've been running this for awhile now with no issues.

// blinking PM & details hack...
if ($bbuserinfo['pmunread'] > 0)
{
$getmessages = $DB_site->query("
SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM " . TABLE_PREFIX . "pmtext AS pmtext
LEFT JOIN " . TABLE_PREFIX . "pm AS pm USING(pmtextid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid=pmtext.fromuserid)
WHERE pm.userid=$bbuserinfo[userid] AND messageread=0
GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC
");

while ($privatemessage = $DB_site->fetch_array($getmessages))
{
$usertotal = $privatemessage['fromusertotal'];
if ($usertotal == 1)
{
$privatemessagebit .= ', <a href="/forums/private.php?'.$session['sessionurl'].'do=showpm&pmid=' . $privatemessage['pmid'] . '">' . $privatemessage['fromusername'] . '</a> - ' . vbdate($vboptions['dateformat'], $privatemessage['dateline'], true);
}
else
{
$privatemessagebit .= ', <a href="/forums/private.php?'.$session['sessionurl'].'do=showpm&pmid=' . $privatemessage['pmid'] . '">' . $privatemessage['fromusername'] . '</a>(' . $privatemessage['fromusertotal'] . ')';
}

$from_group = 'imsg.gif';
if (in_array($privatemessage['usergroupid'], array(5,6,7)))
{
$from_group = 'imsg2.gif';
}
}

$privatemessagebits = substr($privatemessagebit , 1);

$privatemessages = '<img style="vertical-align: middle;" border="0" src="'.$stylevar['imgdir_misc'].'/' . $from_group . '" alt="You have a PM!" /> from ' . $privatemessagebits;
$vbphrase['blinkpm'] = construct_phrase($privatemessages, $privatemessages);
}

and then the updated template change for the phrase:
<br />
<if condition="$bbuserinfo['pmunread']"><phrase>$vbphrase[blinkpm]</phrase><else />
<if condition="$show['pmstats']"><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></if>


hope that helps.

biggkay
03-20-2005, 09:23 PM
Works nice in my forums, but it would be even better if it would work in vBadvanced CMPS.

Shackbase
03-20-2005, 10:23 PM
im a vb noobie - whats the cmps?

--Tone

biggkay
03-21-2005, 03:33 AM
<a href="https://vborg.vbsupport.ru/showthread.php?threadid=65797" target="_blank">https://vborg.vbsupport.ru/showt...threadid=65797</a>

Shackbase
03-21-2005, 03:35 AM
Thank you BiggKay... much appreciated... Looks like a HUGE mod.

Would that nullify my style that I currently use or would it 'merge' into it?

www.talkshack.com

--Tone

intrigue
03-21-2005, 11:18 AM
So simple
so effective
so good
thanks
.matt

Nordinho
03-21-2005, 02:45 PM
ya, i'm using this with cmps.

i made a couple of changes and used a phrase. (changes in bold)

i've been running this for awhile now with no issues.

// blinking PM & details hack...
if ($bbuserinfo['pmunread'] > 0)
{
$getmessages = $DB_site->query("
SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
COUNT(pmtext.fromuserid) AS fromusertotal FROM " . TABLE_PREFIX . "pmtext AS pmtext
LEFT JOIN " . TABLE_PREFIX . "pm AS pm USING(pmtextid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid=pmtext.fromuserid)
WHERE pm.userid=$bbuserinfo[userid] AND messageread=0
GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC
");

while ($privatemessage = $DB_site->fetch_array($getmessages))
{
$usertotal = $privatemessage['fromusertotal'];
if ($usertotal == 1)
{
$privatemessagebit .= ', <a href="/forums/private.php?'.$session['sessionurl'].'do=showpm&pmid=' . $privatemessage['pmid'] . '">' . $privatemessage['fromusername'] . '</a> - ' . vbdate($vboptions['dateformat'], $privatemessage['dateline'], true);
}
else
{
$privatemessagebit .= ', <a href="/forums/private.php?'.$session['sessionurl'].'do=showpm&pmid=' . $privatemessage['pmid'] . '">' . $privatemessage['fromusername'] . '</a>(' . $privatemessage['fromusertotal'] . ')';
}

$from_group = 'imsg.gif';
if (in_array($privatemessage['usergroupid'], array(5,6,7)))
{
$from_group = 'imsg2.gif';
}
}

$privatemessagebits = substr($privatemessagebit , 1);

$privatemessages = '<img style="vertical-align: middle;" border="0" src="'.$stylevar['imgdir_misc'].'/' . $from_group . '" alt="You have a PM!" /> from ' . $privatemessagebits;
$vbphrase['blinkpm'] = construct_phrase($privatemessages, $privatemessages);
}

and then the updated template change for the phrase:
<br />
<if condition="$bbuserinfo['pmunread']"><phrase>$vbphrase[blinkpm]</phrase><else />
<if condition="$show['pmstats']"><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></if>


hope that helps.

thanks a lot for this fix Bob!!

trulylowcarb
04-03-2005, 06:21 AM
It will also take you directly to the PM without having to go to your inbox first.. it says in the description, but that isan't working for me, and must not be for the two people who commented that it would be nice to hot-link the gif .... Are we all missing something? How does it link to the message?

trulylowcarb
04-03-2005, 06:35 AM
Oh DUH, it is linked to the sender's user name only, so I just ASSumed that was a link to their profile!

With that last fix for CMPS, and the addition of , click to view added just after $privatemessage['fromusername'] . ' this is working pefectly, and my users will be able to figure it out, too - THANKS!

Kaishi
05-01-2005, 01:07 AM
i tried that fix for cmps, but it didn't work for some reason, it's still not showing up.

edit: nvm, i fixed it lol.

:Judge:
05-25-2005, 03:21 AM
I know this is going to be asking a lot but here is my lousy two cents. I love this idea and when I first installed it I thought it was great, easy and very useful.

After you start getting a handful of PMs it gets messy, I did see and use the limit mod a couple of pages back and that was cool but whats the point of more listings when your already in your PM box after replying the first message. So how could the link be just set up some like (next to blink) "New PM" linked just to your well inbox. Total of PMs next to "New PM" would be super.

Linking the image to your in box is also a good idea, that would be nice too.

The image color depending on member or staff is a great idea, could this be kept while just linking to in box without senders name?

I know this is alot and if i could do it I would thought if I put the idea out there maybe one of you pro coders could bust it out within mins.

mustang_lex
06-06-2005, 06:23 PM
Wicked, worked without a hitch and its a very very cool tool to have.

mustang_lex
06-06-2005, 06:40 PM
What I did Judge and may not apply to you , but I made the flashing email icon linkable to the members inbox (main PM center) with "alt" text saying "Go To The Inbox. This is so the member has the ability to either read the specific PM from the sender or enter his/her inbox.

This is what i edited.

Open /global.php

Find the all ready hacked code from the main hack

$privatemessages = '<img style="vertical-align: baseline;" border="0" src="'.$stylevar['imgdir_misc'].'/' . $from_group . '" width="16" height="15" alt="" /> from ' . $privatemessagebits;
}

and replace with

$privatemessages = '<a href="private.php?"><img alt="Go To Your Inbox" style="vertical-align: baseline;" border="0" src="'.$stylevar['imgdir_misc'].'/' .

$from_group . '" width="16" height="15" alt="" /></a> from ' . $privatemessagebits;
}

Simple yet effective. I hope this helps. :squareeyed:

Drago912
08-09-2005, 10:38 PM
What I did Judge and may not apply to you , but I made the flashing email icon linkable to the members inbox (main PM center) with "alt" text saying "Go To The Inbox. This is so the member has the ability to either read the specific PM from the sender or enter his/her inbox.

This is what i edited.

Open /global.php

Find the all ready hacked code from the main hack



and replace with



Simple yet effective. I hope this helps. :squareeyed:

Great hack, works nicely......question, can this be setup on a portal page? I noticed when Im on the portal page at top right where it says "private messages is blank with no icon or anything........when you go to the forum main page you see the flashing icon......once the pm is read and the icon is gone the portal page also goes back to normal?

Just wanna get this working from the cmps portal page............any ideas?

csidlernet
08-19-2005, 10:02 AM
Nice man, thanks!

Shak
09-01-2005, 07:33 AM
worx like a charm

DarkDraco07
09-22-2005, 12:02 PM
um, mine still wont show .. seems nothing changed on my page ><

DarkDraco07
09-22-2005, 12:21 PM
nevermind, if this doesnt work for you and you have welcome panel installed, youll have to fix this yourself

stan111
09-23-2005, 06:26 AM
thanks, got it installed
and it works perfectly
thanks a lot

HHU
10-03-2005, 11:50 PM
@ T3MEDIA

Replace

ORDER BY user.usergroupid ASC
with
ORDER BY user.usergroupid ASC LIMIT 0,3

that will limit the PMs shown to the first 3, after they see the first 3, the next 3 will be shown.

The hack will be updated with some enhancements soon.

Where is this located... which file? Thanks...

Fuzzy Logic
11-09-2005, 10:46 PM
This is great, and works fine for me, thanks... :D Except...

I have one small problem - I have ibproarcade installed, and for some reason, on the arcade page, when there are PMs in the inbox, it's just blank underneath where it says "You last visited: Today at 00:23".

It works great on all pages apart from the arcade.

If someone could please tell me what I need to do to get it working there, I'd really be appreciative, thanks. :D

I can provide screenshots or links if required.

Fuzzy Logic
11-15-2005, 12:10 PM
*Bump*

Can anybody help me with this, please? :)

Fuzzy Logic
01-19-2006, 01:04 PM
*Bumpety Bump Bump* :D

Anyone, please...?

paul41598
04-27-2006, 11:23 AM
Can someone do this for 3.5 series?