PDA

View Full Version : Show Thread Enhancements - Find My Posts In A Thread


Mosh
12-10-2008, 10:00 PM
Please click Mark as Installed if you are using this hack.


What Does This Hack Do?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 Compatibilityhr
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 Requestshr
IMPORTANT: This hack is no longer supported.


Install Instructionshr

Unzip ms_findmyposts.zip
Upload bitfield_ms_findmyposts.xml to your /includes/xml folder.If upgrading from an earlier version, then overwrite the previous copy.
Import the ms_findmyposts.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
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 Instructionshr

Delete the bitfield_ms_findmyposts.xml file from your /includes/xml folder.
Uninstall the product in vB using the AdminCP Product Manager.


Version Historyhr
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
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:
<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:
<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
Excellent idea, Sir :) May I correct you in one important thing? Here y?u go...

Change the Phrasetype from:
<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:
<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
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
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 :)

The Realist
12-20-2008, 01:25 PM
Works in 3.7.4 as well but I've also included the following code and added it to the quicklinks dropdown menu so members can find all their posts on the forum and not just a thread.

The code I used is as follows:

<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]searchthreadid=$threadid&amp;userid=$bbuserinfo[userid]&amp;do=finduser">$vbphrase[ms_find_my_posts]</a></td></tr></if>

Used the above after the following line within the navbar template:

<tr><td class="thead">$vbphrase[quick_links]</td></tr>

Thanks to the original poster for this code addition.

Regards

Mosh
12-20-2008, 06:48 PM
Works in 3.7.4 as well but I've also included the following code and added it to the quicklinks dropdown menu so members can find all their posts on the forum and not just a thread.

The code I used is as follows:

<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]searchthreadid=$threadid&amp;userid=$bbuserinfo[userid]&amp;do=finduser">$vbphrase[ms_find_my_posts]</a></td></tr></if>

Used the above after the following line within the navbar template:

<tr><td class="thead">$vbphrase[quick_links]</td></tr>

Thanks to the original poster for this code addition.

Regards
I already have a separate hack for that - View Your Posts/Threads from Navbar Search :)

zero5854
12-23-2008, 01:53 AM
hi awesome mod BUT I am using a theme that is NOT for 3.8

Could u possibly tell me the correct phrase or how to make it work on mine?

Thanks!!!

Mosh
12-23-2008, 03:06 AM
hi awesome mod BUT I am using a theme that is NOT for 3.8

Could u possibly tell me the correct phrase or how to make it work on mine?

Thanks!!!
Did you set the usergroup permissions?

choccyclaire
09-22-2009, 12:25 AM
I've been meaning to do a search for this mods for ages. Many thanks. :)

TheChaosFactor
09-26-2009, 11:20 AM
Could you make it so admin or mods can search for any members post within threads?

Mosh
09-27-2009, 06:56 AM
Could you make it so admin or mods can search for any members post within threads?
That would make this a completely different hack, so no, I will not be adding that to this hack.

Saying that, it sounds interesting so I may well create a separate hack to do this at a later date. There is no ETA on if and when I will do this.

bluej
11-05-2009, 06:23 AM
very nice, thank you :)

Julie
11-05-2009, 09:43 AM
Awesome mod, thanks!

Mosh
01-02-2010, 01:28 AM
Hi all,

It is with regret that after over 4 years (and thousands of hours) spent providing free support for my free hacks released here, as of today I will no longer be able to provide support for free.

This is due to being unemployed for a while, being strapped for cash and unable to rely on the virtually non-existent donations from here to help to pay the bills or put food on the table for my family. I am now providing all support for my free hacks released here over at Wolfshead Solutions (http://www.wolfshead-solutions.com) via an annual support subscription (for a small fee).

It does not mean I will be no longer release free hacks, I will, but I will just no longer be supporting them for free.

My free hacks have and always will remain free to download and use. And so will updates/bug fixes.

I will be releasing more free hacks, but if you require any support at all for those free hacks, you will need to purchase an annual support subscription over at Wolfshead Solutions to receive support.

I am really sorry I have to do this, but revenue generated by my programming gigs are now my only source of income, and I can no longer afford the luxury of providing free support here, when that time can be spent creating new commercial products, doing paid work requests or providing paid support to pay the bills.

Thank you for the understanding.

Regards,

Mosh.

Mosh
01-08-2011, 02:12 AM
Hi all,

Free support has now been moved back to vBulletin.org.

Please see the first post for more information (and also this thread (http://www.wolfshead-solutions.com/threads/444-Our-quot-vBulletin.org-Hacks-Support-quot-subscription-has-been-scrapped) at Wolfshead Solutions).

Enjoy :)

Regards,

Mosh Shigdar - Wolfshead Solutions.