[ABD] Thank 2 Unhide

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
threetrees
Registered User
Posts: 91
Joined: Thu Jul 23, 2009 6:39 pm

[ABD] Thank 2 Unhide

Post by threetrees » Mon Aug 03, 2009 2:46 pm

Modification Name: Thank 2 Unhide.

MOD Author threetrees

Modification Description:: With this MOD, your forum members can hide text inside their posts, other members will only be able to to view that text after thanking those particular posts.

This MOD is based on The two original MODs created by mahony and ycl6 where i combined them in one, performed many changes and added extra features.

Modification Version:: 1.2.7

phpBB Version:: 3.0.7

Requirements: None.

Style templates:
  • prosilver
  • subsilver2 (requires MOD version 1.2.6 or above AND phpBB3 version 3.0.6 or above )


Features (Added since the DEV version):
  • The ability to unthank a post.
  • A reason must be provided when a user tries to unthank someone.
  • A PM is sent automatically to the unthanked users containing information about who unthanked them, in which post, and for what reason.
  • Every unthank is added to the user log.
  • Ajax capability to support thanking/unthanking and updating post content (unhiding/hiding) without refreshing the page. (in addition to the ability to view the thank list without refreshing)
  • Ability to choose thank setup for "all posts" or "first post only" or "all except first post (first post never)"
  • Original ACP modules modified to suit new features.
  • Add "sync all" option to the ACP Synchronization module.
  • New ACP Modules added (thanks statistics, prune thanks).
  • New MCP module to edit the thanks given to a certain post (edit thank list).
  • Forum permission to view hidden text without thanking.
  • text is always unhidden inside signatures.
  • subsilver2 style edit (requires MOD version 1.2.6 or above AND phpBB3 version 3.0.6 or above )
  • Locked topics cannot be thanked, and text is always hidden inside locked topics
Change Log:

  • [DEV] 0.9.1 :
  • text is always unhidden in PMs
  • text is always hidden in post review
  • text is unhidden only when & in a post that was thanked ( replying has no effect )
  • thank remove option is no longer included
  • related thank records are deleted when a user, post or topic is deleted
  • slight changes in styles
  • thank list does not load automatically with topic (hence the Ajax addon)
  • unregistered users cannot view thank list
  • MODX installation
  • [RC] 1.0.0 :
  • MODX and UMIL installation files are enforced (no manual file edits are needed for installation).
  • HIDE BBCODE is now created automatically.
  • 95% of code changed and rewritten.
  • HIDE BBCODE and THANKS MOD are adequately combined together now (Thank 2 Unhide MOD).
  • Hidden text will remain hidden to everyone in viewtopic (including post author) if the thanking feature is disabled (either for the post or the entire forum).
  • Added Bug Fix for Error when viewing Private Messages.
  • [RC] 1.0.1:
  • Bug fix for "please login" error message.
  • Bug fix for Hide BBcode tag check for parsing.
  • [RC] 1.0.2:
  • Modified Hide BBcode tag check for safe parsing.
  • [RC] 1.1.3:
  • Fixed seperate parsing to always unhide text in signatures
  • Added thank check for search results.
  • Added local (forum based) permission to view hidden text without thanking.
  • [RC] 1.1.4:
  • Added bug fix for thank list display.
  • Fixed SQL syntax for statistics display in the acp.
  • [RC] 1.1.5:
  • Modified pruning to increase efficiency with larger tables
  • Replaced SQL queries used for Synchronization for better efficiency with larger tables
  • [RC] 1.2.6:
  • Released a subsilver2 style edit (requires MOD version 1.2.6 or above AND phpBB3 version 3.0.6 or above )
  • Did some clean up for prosilver style edit in viewtopic_body.html and thanks.js
  • Added additional feature (Cannot thank/unthank if topic is locked)
  • Added additional feature (text is always hidden inside locked topics)
  • Fixed style condition (Thank button/list will never show to guests)
  • Fixed javascript bug in mcp_thanks.html
  • Fixed javascript bug in acp_thanks.html
  • Fixed bug in checking for username during pruning in the acp_thanks.php
  • Did some code changes in acp_thanks.php to suit phpBB codelines
  • Added number of pruned records in the prune success message
  • Fixed bug in thanks.php for checking if the user thanked the post
  • Added new code in viewtopic.php to enable using the subsilver2 style
  • [RC] 1.2.7:
  • Fixed big in search.php (bbcode class instantiation error).
Screenshot:

Image

subsilver2 Screenshot:

Image

ACP Screenshots:

Image

Image

Image

Image


MCP Screenshot:

Image




Modification Demo:
Modification Download: Click to Download

Notes:

- If you're installing the update from 0.9.1 , once you're done updating, please edit the "includes/constants.php" file and remove the following (or comment it out) since it's not needed anymore :

Code: Select all

define('HIDE_BBCODE_ID', XXX);
where XXX is any number

---------------------------------------------------------------------------------------------------

Extra: UPS Addon

version: 1.0.0

phpBB version: 3.0.7-PL1

Requirements: Style templates:
  • prosilver
  • subsilver2


Features:
  • Adds a special Module to the UPS ACP category for complete control over the addon.
  • Adds a new feature called "Liquidate Thanks" to the user's points control system.
  • Adds a new permission to control the newly installed feature "Liquidate Thanks".
  • The ability to set up the amount of points awarded when someone is thanked.
  • The ability to setup the amount of points lost when someone is unthanked.
  • The ability to setup the amount of points lost when someone unthanks a user.
  • Dynamic update of the point records on the "viewtopic.php" page.
  • MODX and UMIL automated (and painless) installation.
Notes:
I might not give this any full support before i finish the next version of my MOD, and it is very likely that this addon will NOT be compatible with the upcoming version of the "Thank 2 Unhide" MOD. However, I will try to release an update for this addon together with the new MOD version. :)

Download: Click here to Download the UPS Addon
Last edited by threetrees on Fri Apr 09, 2010 1:36 am, edited 24 times in total.

User avatar
eunaumtenhoid
Registered User
Posts: 845
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [DEV] Thank 2 Unhide

Post by eunaumtenhoid » Wed Aug 05, 2009 9:32 pm

thx for mod man, but i have any questions:

can i enable and disable to users thanks only the creator of topic?
have list of top thanked?
can i enable and disable to users remove thanks?
dont install for subsilver2 no :(

great mod continue work it^^
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

threetrees
Registered User
Posts: 91
Joined: Thu Jul 23, 2009 6:39 pm

Re: [DEV] Thank 2 Unhide

Post by threetrees » Wed Aug 05, 2009 11:46 pm

Hi eunaumtenhoid,
eunaumtenhoid wrote: can i enable and disable to users thanks only the creator of topic?
if we do that , this MOD would be pointless because if some one else in the same topic hides his message , your users will not be able to view it because they are only allowed to thank the creator of topic :(
eunaumtenhoid wrote: have list of top thanked?
There is an addon like that done by ValorSolo
check here: http://www.phpbb.com/community/viewtopi ... 5#p8380685
eunaumtenhoid wrote: can i enable and disable to users remove thanks?
.. i was thinking of adding an option so that you can enable/ disable Administrators and/or Moderators to remove thanks from a list.. never thought of users.. good suggestion. however since the MOD is about thanking to unhide messages, i think i will also add an option so that users must provide a reason if they want to unthank. :)

as for subsilver2 style , you can find their setup in the original mods

thank post mod : http://www.phpbb.com/community/viewtopi ... &t=1115275
hide bbcode : http://www.phpbb.com/community/viewtopi ... 0&t=560705

User avatar
eunaumtenhoid
Registered User
Posts: 845
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [DEV] Thank 2 Unhide

Post by eunaumtenhoid » Thu Aug 06, 2009 4:09 am

thx man is very good, but i need thanks only in creator of topic
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

kida7
Registered User
Posts: 64
Joined: Fri Sep 26, 2008 2:54 pm
Location: Vietnam
Contact:

Re: [DEV] Thank 2 Unhide

Post by kida7 » Thu Aug 06, 2009 4:51 am

Nice mod. Thank you!

User avatar
ijhtio
Registered User
Posts: 150
Joined: Sat Feb 28, 2009 10:09 pm
Contact:

Re: [DEV] Thank 2 Unhide

Post by ijhtio » Thu Aug 06, 2009 8:58 am

such combination was always needed...thanks threetrees...

well thanks button should be there for all the posts in the thread an not only on the topic creator's post (i.e. first post)...I think users should not be given access to remove thanks...but as you have said...moderators and admins shud have this access...what if users remove their thanks after retreiving what was hidden from them! this will be too bad.
i hope your mod has the feature of saving thanks received and thanked counts (as it is there in Mahoney's version (original MOD by idiotnesia))...

i will let you know if some other things come into my mind...
regards,
ijhtio

threetrees
Registered User
Posts: 91
Joined: Thu Jul 23, 2009 6:39 pm

Re: [DEV] Thank 2 Unhide

Post by threetrees » Thu Aug 06, 2009 10:56 am

thank you kida7 :)
eunaumtenhoid wrote:thx man is very good, but i need thanks only in creator of topic
well if you must .. then you can edit this one file: (also please check the important update in the topic post)

open viewtopic_body.html

find:

Code: Select all

<!-- IF postrow.S_FIRST_POST and not postrow.S_GIVE_THANKS and not postrow.S_IS_OWN_POST -->
replace with:

Code: Select all

<!-- IF postrow.S_FIRST_POST == 2 and ONPAGE == 1 and not postrow.S_GIVE_THANKS and not postrow.S_IS_OWN_POST -->
find:

Code: Select all

<!-- IF postrow.S_FIRST_POST and postrow.POST_THANKED -->
replace with:

Code: Select all

<!-- IF postrow.S_FIRST_POST == 2 and ONPAGE == 1 and postrow.POST_THANKED -->
this will only hide the thank button & thank list from all posts except the first post.
ijhtio wrote: well thanks button should be there for all the posts in the thread an not only on the topic creator's post (i.e. first post)...I think users should not be given access to remove thanks...but as you have said...moderators and admins shud have this access...what if users remove their thanks after retreiving what was hidden from them! this will be too bad.
makes total sense :)
ijhtio wrote: i hope your mod has the feature of saving thanks received and thanked counts (as it is there in Mahoney's version (original MOD by idiotnesia))...
that is already available from the original MOD.

User avatar
katib
Registered User
Posts: 562
Joined: Thu Jun 26, 2008 12:27 pm

Re: [DEV] Thank 2 Unhide

Post by katib » Wed Aug 19, 2009 3:13 pm

Thanks a lot
the features added are very usefull

apnaitaly
Registered User
Posts: 323
Joined: Tue Jun 30, 2009 6:13 pm

Re: [DEV] Thank 2 Unhide

Post by apnaitaly » Sun Aug 23, 2009 1:19 pm

waoooooooooo wounderfull

its realy nice mod ,

can i use it now or batter to wait for realsing for this mode ?

thanks

threetrees
Registered User
Posts: 91
Joined: Thu Jul 23, 2009 6:39 pm

Re: [DEV] Thank 2 Unhide

Post by threetrees » Wed Aug 26, 2009 1:30 am

apnaitaly wrote:waoooooooooo wounderfull

its realy nice mod ,

can i use it now or batter to wait for realsing for this mode ?

thanks
it is better to wait until i finish adding the rest of the features :)

User avatar
eunaumtenhoid
Registered User
Posts: 845
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [DEV] Thank 2 Unhide

Post by eunaumtenhoid » Wed Aug 26, 2009 4:14 pm

threetrees wrote:
apnaitaly wrote:waoooooooooo wounderfull

its realy nice mod ,

can i use it now or batter to wait for realsing for this mode ?

thanks
it is better to wait until i finish adding the rest of the features :)
humm...
ok i too will waiting, thx man
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

AnotherNewbie
Registered User
Posts: 10
Joined: Sat Feb 20, 2010 1:04 am

Re: [DEV] Thank 2 Unhide

Post by AnotherNewbie » Sat Feb 20, 2010 1:17 am

Firstly thanks to threetrees for this mod :D

Secondly - has anyone installed and used it on v3.0.6?

Third - does it require the other two mods to be installed (Mahony and yc16)?

Lastly - what happened to stop the development?

threetrees
Registered User
Posts: 91
Joined: Thu Jul 23, 2009 6:39 pm

Re: [DEV] Thank 2 Unhide

Post by threetrees » Sat Feb 20, 2010 10:40 am

hi
i have just finished the development of this mod, it is fully functional with 3.0.5, i still need to test it with 3.0.6 but i am currently reorganizing the code to comply with phpbb coding rules.

once i'm done i will post the download link to an RC 1.0.0 version as well as an upgrade from 0.9.1..

i made huge changes since the previous version and added features that include:
-AJAX functionality for thanking/unthanking/fetching thank list
( users can thank/unthank the post and the content will be unhidden/rehidden without having to refresh the page)

-ability to unthank (a reason must be provided and a PM that includes the reason will be sent automatically to the post author when someone unthanks him )

-acp module which includes:
1- enable thanking in a forum for (all posts/only first post/all except first post)
2-thanks statistics
3- thanks pruning
4- thanks syncronization

-mcp module to edit thanks given to a post

i will update this thread with the new version in a couple of days :)


edit : this mod is independent , it does need need the anything to be installed in advance

User avatar
Ephemeraboy
Registered User
Posts: 331
Joined: Tue Dec 29, 2009 4:25 pm
Location: Bandung Kota Hujan
Name: Bernando Bona Tius Sianipar
Contact:

Re: [DEV] Thank 2 Unhide

Post by Ephemeraboy » Sun Feb 21, 2010 3:02 am

can't wait for this great mod...
My diary, my notepad, and my life on
http://www.bonatius.com
My online shop at
http://www.nefara.com

WascallyWabbit
Registered User
Posts: 170
Joined: Sun Mar 16, 2008 1:17 pm
Contact:

Re: [DEV] Thank 2 Unhide

Post by WascallyWabbit » Sun Feb 21, 2010 10:13 pm

I am having a small problem. Whenever I click the "show users" link it keeps saying "Please Login First". It's weird cause you cannot even browse the forum I am testing without being logged int :P.

I fixed the above by removing the registered user check in the tlist.php file.

I am getting this error when checking PMs though:

Code: Select all

Fatal error: Call to a member function bbcode_second_pass() on a non-object in /opt/lsws/animeanarchy/html/includes/ucp/ucp_pm_viewmessage.php on line 164
If I comment out the line, PMs work fine, but I have no clue what terrible things are caused by commenting it out :P.

Locked

Return to “[3.0.x] Abandoned MODs”