Thread Rating:
  • 12 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Thank You/Like System v3.3.5 + MyAlerts support
(09-05-2015, 01:33 AM)Dark Neo Wrote: This is the final code changes on mod....

I add attachments on how messaages have been displayed.

But need some tests and we have to add some new changes to new 1.9.7 version.

Hi,
Was wondering if you know how to add a code like the one on this plugin. The code I'm looking for is like the 'First Post only or All' function, I wanted to know what it is so I can try and implement it on some buttons on postbit and postbit_classic.

Thanks
Reply
The function is:

thankyoulike_postbit

and the var of button is:

$post['button_tyl']

You have to tell if all of first post only to set where the button have to show.

all show on every post the thanks or like button and first post only shows in the first post for every thread only and his list of thanked/liked.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
(09-06-2015, 09:00 PM)Dark Neo Wrote: The function is:

thankyoulike_postbit

and the var of button is:

$post['button_tyl']

You have to tell if all of first post only to set where the button have to show.

all show on every post the thanks or like button and first post only shows in the first post for every thread only and his list of thanked/liked.

I found this code on thankyoulike.php, I know what it does because of the desc in the comment though I have no idea how the other ifs above this line are interconnected and what to change if I want it for  other buttons. Anyways, thanks! One thing though, I looked at my thankyoulike_postbit it's only a 1 liner so not sure if mine is different or something.
// Same as above but show add button, to first post only, both have to been on that way or won't work...
 eval("\$post['button_tyl'] = \"".$templates->get("thankyoulike_button_add")."\";");
}
} 
Reply
I dont follow you... can you describe your request better? You can set TYL System only for the first post in a thread in TYL System settings. No further modification is required.

Latest stable version is available on MyBB mod site; latest beta version for testing is available on our GitHub
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
(09-07-2015, 03:31 PM)Eldenroot Wrote: I dont follow you... can you describe your request better? You can set TYL System only for the first post in a thread in TYL System settings. No further modification is required.

Latest stable version is available on MyBB mod site; latest beta version for testing is available on our GitHub

Yes, that is what I'm trying to find out. How you made that feature.
Reply
Check commit on our GitHub - you can see in release tab since which version the feature is available

EDIT: This feature was added by original author of this plugin (-G33K-)
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
(09-07-2015, 04:36 PM)Eldenroot Wrote: Check commit on our GitHub - you can see in release tab since which version the feature is available

EDIT: This feature was added by original author of this plugin (-G33K-)

Will check it out, thanks!
Reply
Yes, but since the first release version of this 1.8 that code does not work, i dunno if on previous version works, but in the first changes commited taken by the code i change i work on that part, because that does not works, and i see that because i use that on mine plugin. So i fixed that part making some tests on my board, so i'm sure since the first code changes maded by me this have to work fine, if there is another change or dunno really i think have to work.

All parts tested by me i have to be sure of some code parts works fine, i added more than one, but it's hard to review and fix, and make some code news about a mod created by another user and some parts are touched by others xD.

Maybe if i use this on my board can know about all code and how it works, but unfortunatelly i never use this mod on the past and i will never use it on my forum because i got my own mod released here too and in that mod i know every part of the code and how it works at all, so if i wanna add or remove or change some parts it's more easy to do because i have entire knowledge about everything. In this mod only i know how it works in some parts i change code or added code.

But it's easy to know how it works, to me it's an easy task to make another mod like this, may say add first post only or all posts, because the code taken it's very easy to add. But i do not use that so, i add some code optimizations to my board and i think that mod it's very nice i comppared mine with this and others and let me say it's a better code optimization working mod. Many users like it or won't but this mod is used because on tapatalk are added on code, but i release a tapatalk version compatible with mine, but it's really out of date, and tapatalk have many security issues, so i don't use since that released and i will never use it because for me don't work, and does not serve for a forum like mine, i use GoMobile and that goes fine, many users don't like it, but i prefer security and functionabillity over users like or not Big Grin

But review that parts i say, because i'm really sure that part does not work on the first version i touch and i fix that in that release, after that me only add changes over new versions, so i think have to work.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
(09-07-2015, 08:01 PM)Dark Neo Wrote: Yes, but since the first release version of this 1.8 that code does not work, i dunno if on previous version works, but in the first changes commited taken by the code i change i work on that part, because that does not works, and i see that because i use that on mine plugin. So i fixed that part making some tests on my board, so i'm sure since the first code changes maded by me this have to work fine, if there is another change or dunno really i think have to work.

All parts tested by me i have to be sure of some code parts works fine, i added more than one, but it's hard to review and fix, and make some code news about a mod created by another user and some parts are touched by others xD.

Maybe if i use this on my board can know about all code and how it works, but unfortunatelly i never use this mod on the past and i will never use it on my forum because i got my own mod released here too and in that mod i know every part of the code and how it works at all, so if i wanna add or remove or change some parts it's more easy to do because i have entire knowledge about everything. In this mod only i know how it works in some parts i change code or added code.

But it's easy to know how it works, to me it's an easy task to make another mod like this, may say add first post only or all posts, because the code taken it's very easy to add. But i do not use that so, i add some code optimizations to my board and i think that mod it's very nice i comppared mine with this and others and let me say it's a better code optimization working mod. Many users like it or won't but this mod is used because on tapatalk are added on code, but i release a tapatalk version compatible with mine, but it's really out of date, and tapatalk have many security issues, so i don't use since that released and i will never use it because for me don't work, and does not serve for a forum like mine, i use GoMobile and that goes fine, many users don't like it, but i prefer security and functionabillity over users like or not Big Grin

But review that parts i say, because i'm really sure that part does not work on the first version i touch and i fix that in that release, after that me only add changes over new versions, so i think have to work.

The theme I'm using supports this plugin by default so this is what I'm using and I don't have any problems with it.
Reply
Like/thanks for the the first post only - this feature works fine (double checked) in the latest v1.9.7
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)