vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Find My Posts In A Thread (https://vborg.vbsupport.ru/showthread.php?t=198594)

Mosh 12-10-2008 10:00 PM

Find My Posts In A Thread
 
1 Attachment(s)
Please click Mark as Installed if you are using this hack.


What Does This Hack Do?[hr]hr[/hr]
This is a hack that adds an extra option on the Search this Thread drop down list on the first post of a thread (along with all the other thread tools) which allows your members to search for their own posts within a thread they have posted in, just like here at vb.org.

As an added bonus (thanks to Michelle for the idea), unlike the version here at vb.org, you have the option to check if a user has posts in the thread they are in and not display the link to users who do not have posts (why show the link if there will be no search results?). Please note, if this option is enabled for a usergroup, it will add 1 query when a user from that usergroup is viewing a thread.

There are no file or template changes at all, and is fully phrased.

DEMO: Click on the Search this Thread or Search this Mod drop down list and select Find My Posts in any thread you have posted in to see it in action.


vBulletin Version Compatibility[hr]hr[/hr]
This hack can be used with vBulletin versions 3.6.0 - 3.8.8.

For the v4.0.x version of this hack - check here.



Hack Support/Feature Requests[hr]hr[/hr]
IMPORTANT: This hack is no longer supported.


Install Instructions[hr]hr[/hr]
  1. Unzip ms_findmyposts.zip
  2. Upload bitfield_ms_findmyposts.xml to your /includes/xml folder.If upgrading from an earlier version, then overwrite the previous copy.
  3. Import the ms_findmyposts.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
  4. In the Usergroup Manager edit the usergroup(s) you want:
    • To see the link (disabled by default for all usergroups).
    • To check to see if they have posts in that thread (disabled by default for all usergroups).

Uninstall Instructions[hr]hr[/hr]
  1. Delete the bitfield_ms_findmyposts.xml file from your /includes/xml folder.
  2. Uninstall the product in vB using the AdminCP Product Manager.

Version History[hr]hr[/hr]
v3.8.003 - Tuesday 16th December 2008
-- Changed: Installation Instructions
-- Changed: Screenshots
-- Added: SQL query to check if a user has posted in a thread, and code display the link if there are posts
-- Added: 1 phrase
-- Added: 1 bitfield option

v3.8.002 - Friday 12th December 2008
-- Changed: Phrase type for a couple of phrases

v3.8.001 - Thursday 11th December 2008
-- Initial Release


Show Your Appreciation [hr]hr[/hr]
Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Madlike 12-11-2008 06:24 AM

Thx, Installed

D.Ilyin 12-11-2008 07:00 AM

Thanks! Usefull for big threads!

Mike-D 12-11-2008 12:04 PM

Excellent idea, Sir :) May I correct you in one important thing? Here y?u go...

Change the Phrasetype from:
HTML Code:

<phrasetype name="GLOBAL" fieldname="global">
  <phrase name="ms_find_my_posts" date="1228954692" username="Mosh" version="3.8.001"><![CDATA[Find My Posts]]></phrase>
  <phrase name="ms_findmyposts" date="1228954810" username="Mosh" version="3.8.001"><![CDATA[Allow view of the <b>Find My Posts</b> link?]]></phrase>
  <phrase name="ms_findmyposts_permissions" date="1228954726" username="Mosh" version="3.8.001"><![CDATA[Find My Posts In A Thread Permissions]]></phrase>
</phrasetype>


And separate them as below:
HTML Code:

<phrasetype name="GLOBAL" fieldname="global">
    <phrase name="ms_find_my_posts" date="1228954692" username="Mosh" version="3.8.001"><![CDATA[Find My Posts]]></phrase>
</phrasetype>
                       
<phrasetype name="Permissions" fieldname="cppermission">
 <phrase name="ms_findmyposts" date="1228954810" username="Mosh" version="3.8.001"><![CDATA[Allow view of the <b>Find My Posts</b> link?]]></phrase>
  <phrase name="ms_findmyposts_permissions" date="1228954726" username="Mosh" version="3.8.001"><![CDATA[Find My Posts In A Thread Permissions]]></phrase>
</phrasetype>


Mosh 12-12-2008 12:04 AM

Quote:

Originally Posted by Mike-D (Post 1683075)
Excellent idea, Sir :) May I correct you in one important thing? Here y?u go...

Change the Phrasetype from:
HTML Code:

<phrasetype name="GLOBAL" fieldname="global">
  <phrase name="ms_find_my_posts" date="1228954692" username="Mosh" version="3.8.001"><![CDATA[Find My Posts]]></phrase>
  <phrase name="ms_findmyposts" date="1228954810" username="Mosh" version="3.8.001"><![CDATA[Allow view of the <b>Find My Posts</b> link?]]></phrase>
  <phrase name="ms_findmyposts_permissions" date="1228954726" username="Mosh" version="3.8.001"><![CDATA[Find My Posts In A Thread Permissions]]></phrase>
</phrasetype>


And separate them as below:
HTML Code:

<phrasetype name="GLOBAL" fieldname="global">
    <phrase name="ms_find_my_posts" date="1228954692" username="Mosh" version="3.8.001"><![CDATA[Find My Posts]]></phrase>
</phrasetype>
                       
<phrasetype name="Permissions" fieldname="cppermission">
 <phrase name="ms_findmyposts" date="1228954810" username="Mosh" version="3.8.001"><![CDATA[Allow view of the <b>Find My Posts</b> link?]]></phrase>
  <phrase name="ms_findmyposts_permissions" date="1228954726" username="Mosh" version="3.8.001"><![CDATA[Find My Posts In A Thread Permissions]]></phrase>
</phrasetype>


I was just being lazy, global is the default phrase type when creating a phrase, and at the time I just could not be asked to change the phrase type :)

I will update it and release an updated version later.

Mosh 12-12-2008 07:39 AM

Update: v3.8.002
-- Changed: Phrase type for a couple of phrases

No need to upgrade if you don't want to, there is no added functionality, just changed phrase types to the correct ones.

Lea Verou 12-14-2008 02:25 AM

Does it show if the user has not posted in the thread?

Mosh 12-14-2008 05:15 AM

Quote:

Originally Posted by Michelle (Post 1684930)
Does it show if the user has not posted in the thread?

Yes, it is just a simple hack that displays an extra link, nothing fancy. There are no queries used to determine if a user has posted in a thread or not.

Mosh 12-15-2008 11:49 PM

Quote:

Originally Posted by Michelle (Post 1684930)
Does it show if the user has not posted in the thread?

As mentioned in the previous post, it did show the link regardless. Now thanks to your idea, I have added an option to check if a user has posted in a thread and display the link if they have, otherwise it will not display.

Thanks Michelle :D

Update: v3.8.003
-- Changed: Installation Instructions
-- Changed: Screenshots
-- Added: SQL query to check if a user has posted in a thread, and code display the link if there are posts
-- Added: 1 phrase
-- Added: 1 bitfield option

Lea Verou 12-16-2008 02:04 AM

Cool, I might install it in the future :)


All times are GMT. The time now is 08:11 AM.

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.01156 seconds
  • Memory Usage 1,759KB
  • 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
  • (4)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete