vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Previous-Next PM 1.0 (https://vborg.vbsupport.ru/showthread.php?t=191384)

ForumsMods 09-19-2008 10:00 PM

Previous-Next PM 1.0
 
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:
PHP Code:

$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

Quote:

Originally Posted by NAZIA (Post 1626184)
Not bad..

Nice idea. But it doesn't work.

Do Quick Reply PM products conflict?

Peace,
Gene

Alfa1 09-20-2008 09:17 AM

Quote:

Originally Posted by Delphiprogrammi (Post 1626170)
one more rip look here

Are you saying this is the exact same code?

Hasann 09-20-2008 09:21 AM

Quote:

Originally Posted by Alfa1 (Post 1626198)
Are you saying this is the exact same code?

yes this is the exact same code

Delphiprogrammi 09-20-2008 09:34 AM

Quote:

Originally Posted by Alfa1 (Post 1626198)
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

Quote:

Originally Posted by Alfa1 (Post 1626448)
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, 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.
Code:

================================================================================
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>



All times are GMT. The time now is 10:58 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
  • Page Generation 0.01061 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete