[DEV] Thanks for posts

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
DWFII
Registered User
Posts: 324
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: [DEV] Thanks for posts

Post by DWFII » Sun Jul 09, 2017 9:31 pm

sakm wrote:
Sun Jul 09, 2017 7:27 pm
Messing with the files will not kill the board if you mess it up you just replace that file ;)
I know but... 1) I don't know which files to modify and 2) some of this is being written to the user profiles and the display that comes from them--there seems to be a co-dependence, IOW.

Anyway here are the screenshots we were talking about:

Image

Image

Image

Image

Thinking about it, the wording might better be "Has Liked" and "has been Liked" because it's a sentence with links...ie. dw has liked --->for post

And of course "Thanks List" should be "Likes List"
DWFII
In the High Desert of Central Oregon

DWFII
Registered User
Posts: 324
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: [DEV] Thanks for posts

Post by DWFII » Sun Jul 09, 2017 11:08 pm

sakm wrote:
Sun Jul 09, 2017 6:48 pm
Have you a screen shot of the ones you need changing?
Can you tell from the screen shots above which files need changing?
DWFII
In the High Desert of Central Oregon

User avatar
Hippie459MN
Registered User
Posts: 863
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Thanks for posts

Post by Hippie459MN » Sun Jul 09, 2017 11:17 pm

Just go to the extensions language files, its pretty self explanatory on what to change and you can change em to what ever you want. There is only 3 of them.

DWFII
Registered User
Posts: 324
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: [DEV] Thanks for posts

Post by DWFII » Sun Jul 09, 2017 11:25 pm

Hippie459MN wrote:
Sun Jul 09, 2017 11:17 pm
Just go to the extensions language files, its pretty self explanatory on what to change and you can change em to what ever you want. There is only 3 of them.
Well, thanks for the reply but it is far from self explanatory to me.

Maybe I just have a mental block but as I said in a previous post I opened the language file in this extension and I was immediately lost.
DWFII
In the High Desert of Central Oregon

Toxyy
Registered User
Posts: 320
Joined: Mon Oct 24, 2016 3:22 pm

Re: [DEV] Thanks for posts

Post by Toxyy » Mon Jul 10, 2017 12:28 am

It is self explanatory if you open the file. The language files only contain the sentences or phrases that the extension uses. You'll find the "been thanked" and everything in there. I have you the path to and the file name to change. Open it up. Take a look at it. I promise you, you'll immediately see what you need to do. It's as easy as a word document.

Are you sure that you opened the file that I told you? Info_acp_thanks.php? You will see sentences in English, or phrases or whatever. Just rewrite them. Just the words. You'll see it easily.

If you get lost, take a screenshot of your text editor you opened it with and point out what you don't understand.

But I promise you it's as easy as a word document for work.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

DWFII
Registered User
Posts: 324
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: [DEV] Thanks for posts

Post by DWFII » Mon Jul 10, 2017 1:09 am

It's daunting because when I opened the file in Notepad++ and did a search for "like" I only found one instance and that was in what I suspect is the explanation or notation for the command (or are they more than that?). Yet the extension is using "like" in several places..."like" or or "liked".

All the rest of the file is comprised of multiple instances of the word "thanks" most coupled to some command or other. I have included a screen shot.

Image

So...several questions...what if I did a search and replace for "thanks" replacing every instance with "likes"?

And since there is currently only one instance of "like(s)" in this file, it suggests to my mind that there must be another file that has the word "like" used in some command. For instance, in the screen shot several posts above there is a bar that says "liked". And the thumbs-up icon is labeled "Like" Am I missing something?

Maybe I should just go back to the original ext. file, accept "thanks" as the default and abandon the quest for "like."
Last edited by DWFII on Mon Jul 10, 2017 1:19 am, edited 1 time in total.
DWFII
In the High Desert of Central Oregon

User avatar
Hippie459MN
Registered User
Posts: 863
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Thanks for posts

Post by Hippie459MN » Mon Jul 10, 2017 1:15 am

Out of the box, this is a THANKS extension, not a LIKES extension so you need to change the "thanks, thanked, etc..." to what ever you wish to use, i.e... "Like, Likes, Liked, etc..."

Make sure to back up your original file first so if something goes goofy you can revert back to your back up.

Toxyy
Registered User
Posts: 320
Joined: Mon Oct 24, 2016 3:22 pm

Re: [DEV] Thanks for posts

Post by Toxyy » Mon Jul 10, 2017 1:19 am

Unless you're using a different language other than British English, that is the only file you need to change. Change every instance of thank to like within that file. You shouldn't need to purge your cache but if you still aren't seeing any changes, do so in the ACP and for your browser.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

DWFII
Registered User
Posts: 324
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: [DEV] Thanks for posts

Post by DWFII » Mon Jul 10, 2017 1:24 am

Hippie459MN wrote:
Mon Jul 10, 2017 1:15 am
Out of the box, this is a THANKS extension, not a LIKES extension so you need to change the "thanks, thanked, etc..." to what ever you wish to use, i.e... "Like, Likes, Liked, etc..."

Make sure to back up your original file first so if something goes goofy you can revert back to your back up.
But where do I change it? in a command such as 'THANKS_NUMBER' or in the notation such as => 'Number of thanks from the list shown in profile', Or both?

And referring to the Thumbs-up icon and the like notification bar at the bottom of the post, mentioned above where do I find these entries? They don't appear to be in the Info_acp_thanks.php file.
DWFII
In the High Desert of Central Oregon

Toxyy
Registered User
Posts: 320
Joined: Mon Oct 24, 2016 3:22 pm

Re: [DEV] Thanks for posts

Post by Toxyy » Mon Jul 10, 2017 1:28 am

Only the ones on the right.

Within the extension,
styles/prosilver/theme/images/

is where you'll find the thumb images.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

DWFII
Registered User
Posts: 324
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: [DEV] Thanks for posts

Post by DWFII » Mon Jul 10, 2017 8:30 pm

Not my thread but my thanks to everyone who has participated and offered advice. Thanks to paulie and sakm in particular I have this pretty much sorted out.

The only issue I still have with the extension is that the bar shown in the SS in my post of 9 jul here seems too long by half and too obtrusive. Maybe it is the background colour of my forum, maybe making the background colour of the bar transparent would help...??

But aside from that it all works and that's all the at matters.
DWFII
In the High Desert of Central Oregon

Toxyy
Registered User
Posts: 320
Joined: Mon Oct 24, 2016 3:22 pm

Re: [DEV] Thanks for posts

Post by Toxyy » Mon Jul 10, 2017 11:08 pm

That's a css issue. Not too difficult to fix, is that bar on the original version as well? If it is ill look into it.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

DWFII
Registered User
Posts: 324
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: [DEV] Thanks for posts

Post by DWFII » Mon Jul 10, 2017 11:43 pm

Toxyy wrote:
Mon Jul 10, 2017 11:08 pm
That's a css issue. Not too difficult to fix, is that bar on the original version as well? If it is ill look into it.
Better would be a drop down list "users who have liked this post". I can see that bar getting pretty crowded before too long.

:?: While we're at it...where is the subject for email notification specified?

Currently email notification of a post being liked comes in with "No email subject specified" in the subject line.
DWFII
In the High Desert of Central Oregon

deadwood
Registered User
Posts: 5
Joined: Mon Jul 17, 2017 4:30 am

Re: [DEV] Thanks for posts

Post by deadwood » Mon Jul 17, 2017 4:31 am

Hello and thanks for your hard work.

Does this work for 3.2.x? If not, how can i make it work?

User avatar
Hippie459MN
Registered User
Posts: 863
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Thanks for posts

Post by Hippie459MN » Mon Jul 17, 2017 1:02 pm

deadwood wrote:
Mon Jul 17, 2017 4:31 am
Hello and thanks for your hard work.

Does this work for 3.2.x? If not, how can i make it work?
Works just fine here. :)

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Galixte de EzCom, rohde, VSE and 25 guests

cron