PDA

View Full Version : Previous/Next PM


Andreas
08-09-2005, 10:00 PM
<font size="3">Previous/Next PM</font>
Description
This Hack adds Previous-/Next PM Links when a PM is being showed, so you can browse through your Messages just like Threads in Forums.
It adds 1 Query when the Link is being clicked.

Details
1 Product XML with 1 Plugin and 4 Phrases
1 Template Edit

History
1.0.0 Initial Version
1.0.1 Fixed a Problem with sorting

Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!

yupfish
08-10-2005, 07:49 PM
/me installs

nix
08-10-2005, 08:13 PM
missing a file?

Andreas
08-10-2005, 08:17 PM
Whoos :)
Sorry. It's there now.

FleaBag
08-10-2005, 11:13 PM
Sweet! Thanks. :)

Biker_GA
08-10-2005, 11:22 PM
My staff and users love you. LOL

turksengel
08-11-2005, 04:53 AM
thanx
clicked install ;)

Zachariah
08-12-2005, 11:19 PM
Thank you. I will try it out.

Brinnie
08-13-2005, 01:08 PM
Instaled.

worked perfectly

Oblivion Knight
08-13-2005, 08:55 PM
Another excellent tool for us busy admins lazy people.! :)

OmaniMan
08-14-2005, 11:33 AM
Thanks ...
Installed

RoryF
08-14-2005, 04:13 PM
Installs, thankyou KirbyDE :)

poolking
08-14-2005, 05:21 PM
/me installed

Sleepyk
08-17-2005, 01:33 AM
perfect i been looking for something like this sense vb 2 lol

Brinnie
08-21-2005, 05:09 PM
I've noticed that using the 'previous pm' and 'next pm' buttons under the actual pm don't work. When you hit the "next pm" it takes you to the very last pm in your inbox rather than the "next" pm.

Anyone else notice this?

Andreas
08-21-2005, 06:25 PM
It takes you to the next/previous PM in the same Folder, at least that is what it should do.

Brinnie
08-22-2005, 07:13 AM
« Previous PM works.
Next PM » takes me to the most recent PM.

Andreas
08-22-2005, 03:01 PM
Doh! Should be fixed now.

Boofo
08-22-2005, 03:07 PM
I would re-check the readme file in there. It looks like a converstion between you and someone else. ;)

Andreas
08-22-2005, 03:09 PM
WTF ... that was a post from vB.com
Wonder how this made it into the readme

Boofo
08-22-2005, 03:13 PM
WTF ... that was a post from vB.com
Wonder how this made it into the readme

With you, Kirby, I have learned to expect the unexpected. ;)

Andreas
08-22-2005, 03:16 PM
LOL ;)
Anyway, the correct File should be in the ZIP now again.

Boofo
08-22-2005, 03:18 PM
It is. ;)

The readme hasn't changed any of its content, right? Just the product (1 byte difference). ;)

Andreas
08-22-2005, 03:19 PM
Exactly. It was just a DESC where it should have been ASC :)

Boofo
08-22-2005, 03:20 PM
All that grief for one byte. Seems almost a waste to upgrade it, huh? LOL

Andreas
08-22-2005, 03:21 PM
Well, you could also just edit the Plugin and change the 2nd DESC to ASC :)

Boofo
08-22-2005, 03:21 PM
Well, I rather enjoyed the first readme you sent with it. I look forward to your upgrades now. ;)

Andreas
08-22-2005, 03:24 PM
I'm gonna try to stick some private eMails into the next one ;)

Boofo
08-22-2005, 03:28 PM
I will definately be looking forward to that. ;)

FleaBag
08-22-2005, 08:34 PM
Just installed on my Beta 2, loving it! Thanks Kirb. :)

Cyricx
09-26-2005, 12:01 PM
Love this Kirby! Thanks :)

I wonder if it would be possible to do something similar to what Amy did for thread titles in this hack -

https://vborg.vbsupport.ru/showthread.php?t=92407

Into your hack so that it displayed the PM's title instead of the previous/next text :)

* Cyricx clicks install

akanevsky
10-05-2005, 10:58 PM
Thanks, this is a nice hack.

Oblivion Knight
10-18-2005, 11:53 AM
Just a friendly reminder to update the product for RC3 onwards.. ;)

The plugin currently isn't attached to the product.

Andreas
10-18-2005, 12:31 PM
Just a friendly reminder to update the product for RC3 onwards.. ;)

The plugin currently isn't attached to the product.
Hmm, there is just 1 Plugin, which is in the Product XML and therefore surely attached to the product?

Sooner95
10-18-2005, 12:39 PM
2ez, installed.. thx bud

Oblivion Knight
10-18-2005, 12:57 PM
Hmm, there is just 1 Plugin, which is in the Product XML and therefore surely attached to the product?I was under the impression that for every plugin, cpnav or phrase we should put product="<productid>"?

It's what I've been doing anyway.! Perhaps I'm mistaken.. :nervous:

Andreas
10-18-2005, 01:14 PM
In product XMLs there won't be a product parameter, as those plugins automatically belong to the product :)

cbr929rrerion
10-26-2005, 10:16 PM
I also added it to the top so you dont have to scroll to the bottom. They have the choice to hit next/previous at the top of the message or bottom..

just find..

// -->
</script>
</if>

and paste:

<div class="smallfont" align="center">
<strong>&laquo;</strong>
<a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]&amp;goto=nextoldest">$vbphrase[previous_pm]</a>
|
<a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]&amp;goto=nextnewest">$vbphrase[next_pm]</a>
<strong>&raquo;</strong>
</div><br />

Works awesome

FleaBag
08-13-2006, 10:34 AM
Works (as expected) with 3.6 also. Another gem hidden away in the obscurity of ancient threads. Please add this to the main vB code if you can Andreas. :)

crazycajun
02-24-2007, 06:52 PM
Thank for the mod, it works great!

codershark
05-15-2008, 02:38 PM
dont works at vb3.7 :(

Jase2
05-16-2008, 06:01 AM
Working on an update. Will need permission from Andreas before I can release it, though.

Boofo
05-16-2008, 06:04 AM
There is no need for an update as this works fine as it is on 3.7.

codershark
05-16-2008, 06:20 AM
hmm I dont see the links :(

Andreas
05-16-2008, 07:00 AM
@codershark
I haven't tested it on 3.7, but I see no reason why it should not work.
You do realize that you have to edit the template manually?

Boofo
05-16-2008, 07:07 AM
As I said above, I'm using it on 3.7 fine. ;)

Jase2
05-17-2008, 01:12 PM
Ok, Boofo -- you made your point and it was quite clear ;)

Boofo
05-17-2008, 01:51 PM
Are you sure? I can state it again for clarity. ;)

Boards.ie
06-06-2008, 02:33 PM
Added the the manual template edit into the product. May as well save others the hassle. Works for 3.6.x and 3.7.x to the best of my knowledge.

@Andreas: hope you don't mind me posting it.

Edit: no prob, removed

Andreas
06-07-2008, 08:10 AM
@Boards.ie
Please remove the file ASAP.
I do not want any template cache tampering in my releases - it costs performance and causes a lot of problems.
Thank you.

Boards.ie
06-07-2008, 12:16 PM
I'd be interested in knowing what performance and "other" problems there are with template caching, maybe you could direct me to an article on it?

Andreas
06-07-2008, 02:03 PM
Performance -> unnecessary str_replace() call on every page
Other Problems -> Unrecoverable, fatal PHP errors if you use custom Template Caches, eg. the board becomes unusable if any plugin tampers the template cache.

Eq4bits
08-10-2008, 03:15 PM
Does this mod work with , or has it been ported to work with, vB3.7x?

Andreas
03-11-2009, 05:38 PM
Yes. No.

ragtek
05-21-2009, 07:46 AM
Does this mod work with , or has it been ported to work with, vB3.7x?

You can find here (http://vbulletin-germany.org/showthread.php?t=6110) a new version which is using ajax to get the pm text.

ATM it's just in german available, but you can find also a english installinstruction in the archiv.

If everything is working fine, i'll release it on vb.org soon.

furnival
02-25-2013, 12:24 PM
Andreas, Is there any way you could make http://www.vbulletin-germany.org/showthread.php?6110-next-prev-AJAX-PM/ available here please? I tried to register at VB Germany but my account was never approved.