V1.1 Build 2
Added some lang keys
Fixed a typo in the disclaimer
Added some header text for the page
Added scrollbar
Added border
Added if (admin or moderator) can delete on secret page
Upcoming on the agenda is to work with replies and some kind of reply management we will see how that goes. I didn't want to do everything at once.
If this gets too many features i will need to charge more. Sorry but it was originally never intended to have tons of features, so i will price fair and accordingly. It was intended to give a low cost option for the feature. But we will see how this goes and how the demand is for it.
version 1.2 build 3 change log
removed black background - changed mind and wanted to try to meet all theme viewability so i removed that black ground in the last version.
Add reply button to each reply - in order to delete a reply you will need to either delete the whole secret with the delete button provided or you can do so via phpMyadmin
Added block decorator to the viewing area
Added a reply form
Added checking if mod or admin - only admins or mod can see the del button on the page
Added more lang keys
Lengthened the form 400 to 600 for better viewing
Widened date field area so that the date does not wrap on some themes.
Added new database table for replies
>added new css to files for disclaimer view
>changed css to allow for better mobile view
>added new language value
>removed static folder - not used not needed - added logic to update file to remove dir
be sure to clear your cache please after the update, thanks
i also wanted to thank Darryl B. https://developers.oxwall.com/user/dgbeard
for his wonderful suggestions and css help on this.. he had some great ideas and i implemented them :)
thats it folks.
>added cancel button to both add and reply pages
>added permission user roles including guest for view, add, and reply
Be sure if you want guest to post that you also select guest option on the plugin button in admin pages and also that you select that guests can view the site in admin settings.
Also remember that all permission are checked by default, even guest, so make sure you uncheck guest in roles if you dont want guests using the plugin.
important - small error in the original update has been corrected as of 1040am UT -7 07/27/2016
thats it folks, enjoy
> added pagination
> added config value for pagination (items per page) in plugin config
Thats it folks.. thanks
Dave
>added captcha to new and reply forms
>added settings in plugin config for option to enable or disable captcha
>added settings in plugin config for question and answer text content
>fixed some small bugs and typos
Thats it folks... thanks
Dave
Well folks i didnt even get the first update out the door and people did not like the way i did the captcha form and did not like that they didnt have multiple question so here we go with another update.
>converted field for captcha question to display variable type of output
>added 3 additional questions and answers to the plugin config section (total of 4)
>added random logic so that the questions will be displayed at random
OK thats all till next update.. no more today...
UPDATE: found a very small issue with captcha answers and have corrected that. The new files are in place now 01/21/2017 and 12:13am. All is well now.. :)
Thanks :)
Dave
>fixed issue with captcha answer and correct answer
thats it folks.. my goof up..
Dave
>fixed form display added proper cols value to extend the full width of form
>added anonymous newsfeed on new secret post and new reply.
Special Note: Newsfeed requires valid user ID to be able to post feed. So all new secrets and reply notifications on newsfeed will show the site admin. This is the best way without creating an anonymous user for the site. There is still 100% anonymous for the actual secret or secret reply posted, its just that we had to use some valid id in order to add a newsfeed event, so we chose the admin id because every site has an admin.
This does not mean that admin posted the secret or secret reply, it just means the notification on the newsfeed was from admin letting others know of new event.
Thats it folks...
Dave :)
>kept user data in form when wrong captcha or form fails
>added pretext to newsfeed link
>added new css file to load on event
>added event listener for newsfeed - this will prevent the admin avatar from showingin the newsfeed - which could confuse users to think that admin posted message. For more info on this pelase see note in previous release.
NOTE: be sure to clear your cache as there is new css involved in this update.
Thats it folks..
Thanks Dave :)
> fixed bug issue where replys were not being deleted when secret was deleted.
> corrected personal lang text that was wrongly included from test site.
> removed support for html in textarea. Js is also not supported. Both will be removed prior to saving content.
> added event listener to stop the display of the admin avatar on the newsfeed. This will help to prevent confusion thinking that admin is posting secrets. Now it is anonymous in newsfeed as well.
NOTE: you dont have to do this it should be fine if you dont.
This issue has been fixed in this version. But if you want a clean the previous dead reply records from the reply table do the following.
First make a backup to save you if you make a mistake. Export the two secret post tables (export data and structure) so you can import it back if you make a mistake.
Then export both tables (data only) and open the file and compare the "id" field in the secret text archive table to the "secretid" field in the reply archive.
If the secretid field in the reply archive does not match the id field in the text archive table then remove that reply record, because the main secret that was associated with the reply is no longer there so the reply is actually not associated with anything and is a dead record.
Example:
In this example the items 4 and 5 are no longer associated with anything because 4 and 5 does not match the existing ids in the text archive, so we can remove those replys they are replys to nothing anymore.
Text archive (id field) reply archive (compare the secretid field - NOT THE ID FIELD)
1 1
2 2
3 3
6 4 remove this record
7 5 remove this record
Again leaving old replies is not going to hurt anything but some of you i know dont want data in your tables that does not need to be there. Its up to you if you remove the old reply records or not.
Special Note: If you have never deleted any posts from the secret page then you should be OK and not have to do anything now that the bug is fixed.
Thats it folks...
Thanks dave ")