![]() |
Add PM's To The Postcount!
Add PM's To The Postcount!
How can this be done? anyone? |
This wouldnt be to hard but your members would start sending pointless messages to each other and getting it added to their postcount.
|
Anyone?
Can this be done? |
Vincent]I just said it can :rolleyes: If you want it that badly I'll do it later today when I get a new keyboard.
|
Dude I would love that
.. hopefully it will work with 2.21 |
any news?
|
I have done that in my forums. It does not require any template modifications.
Check out this thread for an example: http://www.ls1.com/forums/showthread...hreadid=110647 I have not released this hack. I can release it if anyone is interested. :) |
Neo
ultimate loser Online Registered: May 2304 Local Time: 99.99 ZM Style: Pimp PM Count To Freddie: 435,834,395 |
Vincent]Okay so you want the postcount to be total posts plus total PMs correct? If so then use this.
Open admin/functions.php Find: PHP Code:
PHP Code:
Find: $post[posts] Replace that with: $postspms And you're done, it adds your PM count to your post count. If I'm wrong then sorry =\ |
that doesn't work bro...
|
Invalid SQL: SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=
mysql error: You have an error in your SQL syntax near '' at line 1 mysql error number: 1064 |
yupz, this line:
PHP Code:
|
the only thing i can think of is that userid="$touserinfo[userid]" needs to be userid="$bbuserinfo[userid]"...
but still it doesn't work... exact error for me: Fatal error: Call to a member function on a non-object in functions.php on line 209 everytime thesame ++++ :( :bored: :dead: |
That's weird because that's the exact query used in private.php. Get Zzed to release his hack or something.
|
Okay try:
$pmcount = mysql_query("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid='$touserinfo[userid]'"); If that doesn't work try: $pmcount = mysql_query("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid='$bbuserinfo[userid]'"); If that doesn't work then get Zzed to release his hack. |
Here is the hack: https://vborg.vbsupport.ru/showthrea...threadid=42360
|
Vincent]Okay install that hack and after:
PHP Code:
PHP Code:
|
why doesn't it work when i just put $pmcount[msgs] in the templates? i should get the number of pm's right? but i get nothing! (talking about Zzeg's hack...)
|
All times are GMT. The time now is 04:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|