View Full Version : Show Newest PM If Unread On Forum Home
Zero Tolerance
10 Jun 2005, 01:02
This is a port of: http://www.vbulletin.org/forum/showthread.php?s=&threadid=77250
Exact same functionality/style, will automatically make the template edit for you using the plugins system (a bit hackish but it worked :p)
Plugins Added: 3
Enjoy,
- Zero Tolerance
King Kovifor
10 Jun 2005, 01:04
Nice Hack... I'd use this if It was my forum that my email is attached to!
Chris M
10 Jun 2005, 01:10
Hate to burst your bubble but it doesn't work - No "forumhome_pmshow" template was created...
Satan
Zero Tolerance
10 Jun 2005, 01:14
Forgot to upload the text file, thanks for pointing that HS :)
- Zero Tolerance
Chris M
10 Jun 2005, 01:15
Invalid attachment specified :alien:
Why me lol...
Satan
Zero Tolerance
10 Jun 2005, 01:16
Working fine for me .. try again?
- Zero Tolerance
Chris M
10 Jun 2005, 01:17
Yeh I got it now ;)
Working like a charm now :p
Satan
Link14716
10 Jun 2005, 01:25
Nice work. :)
/me installs.
eXtremeTim
10 Jun 2005, 07:58
Nice work. Love the hackish template edit. :)
jpt62089
10 Jun 2005, 08:09
/me installs :)
burnist
10 Jun 2005, 12:29
working, nice mod :)
/me licks install
A good idea to eliminate a query or two would be to do the following file modifaction. It basically caches the forumhome_pmshow template eliminating 2 queries if I remember it right.
Open index.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add After:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Enjoy!
Nice plugin btw :)
Link14716
12 Jun 2005, 02:37
A good idea to eliminate a query or two would be to do the following file modifaction. It basically caches the forumhome_pmshow template eliminating 2 queries if I remember it right.
Open index.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add After:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Enjoy!
Nice plugin btw :)
IIRC, you can also plug in some code into fetch_userinfo to cache it.
mholtum
12 Jun 2005, 08:03
/me installs!
Nice work!
burnist
12 Jun 2005, 10:32
IIRC, you can also plug in some code into fetch_userinfo to cache it.
what like,
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I assume this is wrong and would mess something up, but is that the general idea?
eXtremeTim
12 Jun 2005, 21:01
This hack already has the code for the template catch.
Zero Tolerance
12 Jun 2005, 23:22
eXtemeTim is correct, this adds in the code to cache the template, globally however, but i doubt it would make any resource difference at all since the template is rather small.
- Zero Tolerance
fraghappy
17 Jun 2005, 13:33
I only have one suggestion: add a "Reply to PM" link down at the bottom with the other stuff. ;)
Azhrialilu
06 Jul 2005, 10:07
I loved this on 3.0.7 and now I can continue to love it on 3.5 *smiles happily*
burnist
16 Jul 2005, 23:49
been trying this on beta 4 its generating an error in the admin cp on all pages
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in *****\****\****\*****\includes\functions.php(1030) : eval()'d code on line 3
It would appear that this if from the use of the fetch_userinfo hook, but I could be wrong.
please fix it, I liked this plugin ;)
Gizmo5h1t3
08 Aug 2005, 16:40
guys, on the original install, not modified, im getting the same "invalid file specifiewd" message.
can u help at all?
im creeating the template exactly as the info file dictates.
but when i import from .xml file on desktop, i get the error message
will this work with RC3 ?
:)
ultranerds
10 Sep 2005, 13:11
Installed <G> Nice plugin!
is this compatable with vb 3.5 rc 3
worked fine with rc3 :) ty installs*
Vizionz
13 Sep 2005, 08:51
awesome scott another great hack from you dude your work is outstanding
memorex
23 Sep 2005, 15:04
awesome scott another great hack from you dude your work is outstanding
Great hack, I'm having one problem though, Its showing the PM Duplicated on the forumhome. I just want it to show once hehe. I made the template as well as ran the plugin, is that where i went wrong?
Neutral Singh
24 Sep 2005, 10:01
when i checkup with my installed plugins list, i find out that there are not many of yours, that i have failed to install on my forums. TY!!
This is a great hack!
If there would be a link to "Delete this PM", than it would be great-great-great!!!
Protoman
08 Oct 2005, 21:26
doesn't work with gold.
/me installed
Works a treat..Thanks,users were complaining of missing pm's...NO MORE lol
Peace_Hope
12 Oct 2005, 00:44
Thanks, Great work.
michaelbenson
20 Oct 2005, 19:59
Anyway in which we could strip BBCode formatting from the PM preview?
Or actually enabling it?
Xplorer4x4
20 Oct 2005, 20:32
doesn't work with gold.
It works but I seem to have trouble with the old grey pop up box showing up.
Xplorer4x4
01 Nov 2005, 11:28
Database error in vBulletin 3.5.0:
Invalid SQL:
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(filedata) AS hascustom, customavatar.dateline,
customavatar.width, customavatar.height
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid =;
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Error Number : 1064
Date : Tuesday, November 1st 2005 @ 04:40:25 AM
Script : /forums/index.php
Referrer :
IP Address :
Username :
Classname : vb_database
This may be cause in conjuction with PM PReview hack, but either way I have had porblems with this since going Gold.
Just an FYI for later Zero.
Protoman
01 Nov 2005, 23:49
yup, I finally got this mod working. there is an error in the template cache plugin.
there should be an is_array() check otherwise it causes errors in the admin panel
Xplorer4x4
02 Nov 2005, 06:50
yup, I finally got this mod working. there is an error in the template cache plugin.
there should be an is_array() check otherwise it causes errors in the admin panel
As in a parse error or a DB Error? If so can you tell me what to fix?
/me clicks install
this shows two sets of the same pm ? any thoughts ?
i have a few things installed on my index
http://locoforum.com/forums/index.php?
im guessing this is the reason ?
any idea how to fix this
Iceburg22
21 Nov 2005, 14:50
thanks
Thanks you very much ;)
Click Install
hraweb.com
20 Feb 2006, 22:49
i installed this on 3.53 and i now have big problems
when i read pm i get this on top of my banner
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1064) : eval()'d code on line 3
and i can not even go to adminpanel to uninstal this stupid hack becouse all i get is this when i click on admincp
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1064) : eval()'d code on line 3
how can i fix this?
edit manualy with phpmyadmin , what to edit, how to uninstall this
Protoman
21 Feb 2006, 00:01
I only had issues with the admincp, everything else worked already. I'd say you are having a conflict with another hack if you get other errors
hraweb.com
21 Feb 2006, 11:09
only thing other that is installed is who visited the board today and pm preview
how can i uninstall this manualy?
Christie189
28 Feb 2006, 06:20
Umm, I need HELP, ASAP!
I cannot get into my admin panel after installing this hack. When I try and go to the link, this is what it says:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1097) : eval()'d code on line 9
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1097) : eval()'d code on line 12
HOW DO I FIX IT???? PLEASE HELP!!!!!!
Christie189
28 Feb 2006, 06:30
PLEASE HELP!!!!!!!!!! See above post!!!
The Realist
19 Mar 2006, 14:24
Getting the very same error. Removed the hack and all works fine.
Database error in vBulletin 3.5.0:
Invalid SQL:
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(filedata) AS hascustom, customavatar.dateline,
customavatar.width, customavatar.height
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid =;
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Error Number : 1064
Date : Tuesday, November 1st 2005 @ 04:40:25 AM
Script : /forums/index.php
Referrer :
IP Address :
Username :
Classname : vb_database
This may be cause in conjuction with PM PReview hack, but either way I have had porblems with this since going Gold.
Just an FYI for later Zero.
Nexus Beat
22 Mar 2006, 12:42
Having the same problem as a few other guys here, not being able to get into the ACP etc. Anyone enlighten me on how to disable the hack manually somehow?
Thanks.
The Realist
22 Mar 2006, 16:47
Admincp> Plugin System>
If a product...
Plugin System...
In the dropdown choose disable.
If its a Plugin....
In Plugin Manager
Click edit next to the plugin
Where it says "Plugin is Active" tick NO.
Laters
Nexus Beat
22 Mar 2006, 19:52
Admincp> Plugin System>
If a product...
Plugin System...
In the dropdown choose disable.
If its a Plugin....
In Plugin Manager
Click edit next to the plugin
Where it says "Plugin is Active" tick NO.
Laters
But the problem is that I cannot get into the ACP after installing this :confused:
Brilliant ide m8, dont know why i aint seen this sooner :)
Note to self "look harder for great hacks"
I've added a delete button to mine.
In the forumhome_pmshow template, find (near the bottom):
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
You can change the deletion and button text as you wish.
Also, I've customised the "Show This PM" link to show only if the PM exceeds 400 characters (which is the plugin's default crop).
To do this:
1. Edit the plugin named "New PM On Forum Home (If Unread) [Main]"
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add under:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
2. In template forumhome_pmshow,
Find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and stick <if condition="$show['pmcropped']"> in front and </if> afterwards, so it looks like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
TygerTyger
24 Mar 2006, 13:49
Is it possible to include the pm senddate data on forumhome as well? Seems funny to miss it out when the PM arrived, everything else is included.
Protoman
19 Jun 2006, 19:55
ok the fix for the admincp functions.php error is as follows
change the fetch_userinfo plugin to the following:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I've never had a problem with it since.
yoyoyoyo
06 Dec 2006, 23:36
ok the fix for the admincp functions.php error is as follows
change the fetch_userinfo plugin to the following:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I've never had a problem with it since.Where is the "fetch_userinfo" plug?
edit: nevermind - I found it...
vBulletin® v3.6.12, Copyright ©2000-2010, Jelsoft Enterprises Ltd.