PDA

View Full Version : Mini Mods - Previous-Next PM 1.0


ForumsMods
09-19-2008, 10:00 PM
Previous-Next PM 1.0

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.

Installation:
1)Import the product.2)At the end of template pm_showpm add:$prevnext

Where to set option:
vBulletin Options-> Private Messaging Options

Languages:
- English

History:
1.0 20-09-08
- First Release

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.

ximcix
09-20-2008, 03:54 AM
Good job.
This should be included in the next vB release.

Forum Lover
09-20-2008, 07:16 AM
Nice hack!

Delphiprogrammi
09-20-2008, 07:42 AM
one more rip look here

NAZIA
09-20-2008, 08:33 AM
Not bad..

Gene Steinberg
09-20-2008, 08:59 AM
Not bad..
Nice idea. But it doesn't work.

Do Quick Reply PM products conflict?

Peace,
Gene

Alfa1
09-20-2008, 09:17 AM
one more rip look here
Are you saying this is the exact same code?

Hasann
09-20-2008, 09:21 AM
Are you saying this is the exact same code?

yes this is the exact same code

Delphiprogrammi
09-20-2008, 09:34 AM
Are you saying this is the exact same code?

with a few minor changes here and there to make it look like his own ....

Alfa1
09-20-2008, 04:34 PM
vbulletin.org staff should look at this then.

Delphiprogrammi
09-20-2008, 05:21 PM
vbulletin.org staff should look at this then.

they wil i reported it already ;)

Dismounted
09-21-2008, 05:19 AM
Gasper, it is obvious this is a copy of Andreas' modification (https://vborg.vbsupport.ru/showthread.php?t=94028), with a few minor changes. Do you have his permission to re-release his modification?

Dismounted

PS. You cannot argue that is is not a copy, here is the difference report.
================================================== ==============================
Lines modified at 3
================================================== ==============================
- <product productid="prevnextpm" title="Previous/Next PM" description="This Hack provides Previous/Next PM links so you can browse through your Messages just like you can browse Threads in Forums." version="1.0.1" active="1">
+ <product productid="prev_next_pm" active="1">
================================================== ==============================
Lines added at 4
================================================== ==============================
+ <title>Previous-Next PM</title>
+ <description>This Hack provides Previous/Next PM links so you can browse through your Messages just like you can browse Threads in Forums.</description>
+ <version>1.0</version>
+ <url />
+ <versioncheckurl />
+ <dependencies>
+ </dependencies>
================================================== ==============================
Lines added at 7
================================================== ==============================
+ <template name="Previous-Next PM" templatetype="template" date="1209682112" username="Gasper" version="1.0"><![CDATA[<if condition="$vboptions['prev_next_pm_active']">
+ <br />
+
+ <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>
+ </if>]]></template>
================================================== ==============================
Lines modified at 9
================================================== ==============================
- <plugin active="1">
+ <plugin active="1" executionorder="5">
- <title>Previous/Next PM</title>
+ <title>Previous-Next PM</title>
================================================== ==============================
Lines added at 11
================================================== ==============================
+ <hookname>private_complete</hookname>
+ <phpcode><![CDATA[eval('$prevnext = "' . fetch_template('Previous-Next PM') . '";');]]></phpcode>
+ </plugin>
+ <plugin active="1" executionorder="5">
+ <title>Previous-Next PM</title>
================================================== ==============================
Lines added at 60
================================================== ==============================
+ <phrasetype name="vBulletin Settings" fieldname="vbsettings">
+ <phrase name="setting_prev_next_pm_active_desc" date="1221880667" username="Adrian" version="1.0"><![CDATA[Show ? Previous PM | Next PM ?]]></phrase>
+ <phrase name="setting_prev_next_pm_active_title" date="1221880667" username="Adrian" version="1.0"><![CDATA[Show Previous-Next PM Link?]]></phrase>
+ </phrasetype>
================================================== ==============================
Lines modified at 61
================================================== ==============================
- <phrase name="next_pm"><![CDATA[Next PM]]></phrase>
+ <phrase name="next_pm" date="1221880375" username="Adrian" version="1.0"><![CDATA[Next PM]]></phrase>
- <phrase name="previous_pm"><![CDATA[Previous PM]]></phrase>
+ <phrase name="nonextnewestpm" date="1221880425" username="Adrian" version="1.0"><![CDATA[There are no Private Messages newer than the previous one.]]></phrase>
- </phrasetype>
+ <phrase name="nonextoldestpm" date="1221880443" username="Adrian" version="1.0"><![CDATA[There are no Private Messages older than the previous one.]]></phrase>
- <phrasetype name="Error Messages" fieldname="error">
+ <phrase name="previous_pm" date="1221880394" username="Adrian" version="1.0"><![CDATA[Previous PM]]></phrase>
================================================== ==============================
Lines deleted at 65
================================================== ==============================
- <phrase name="nonextnewestpm"><![CDATA[There are no Private Messages newer than the previous one. Click the back button in your browser to return to it.]]></phrase>
- <phrase name="nonextoldestpm"><![CDATA[There are no Private Messages older than the previous one. Click the back button in your browser to return to it.]]></phrase>
================================================== ==============================
Lines added at 70
================================================== ==============================
+ <settinggroup name="pm" displayorder="440">
+ <setting varname="prev_next_pm_active" displayorder="150">
+ <datatype>free</datatype>
+ <optioncode>yesno</optioncode>
+ <defaultvalue>1</defaultvalue>
+ </setting>
+ </settinggroup>
================================================== ==============================
Lines added at 71
================================================== ==============================
+ <helptopics>
+ </helptopics>
+ <cronentries>
+ </cronentries>
+ <faqentries>
+ </faqentries>