Style Support With Word Counter

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
Jade23
Registered User
Posts: 81
Joined: Mon Sep 22, 2014 2:40 pm

Style Support With Word Counter

Post by Jade23 » Thu Oct 03, 2019 9:27 am

Hello! I apologize if I'm posting this in the wrong section but it doesn't seem like the Author of this extension (Wordcount) is providing support. At least I don't know where to find it since they haven't gotten back to the most recent questions.

Anyways, I can't find where or how to move where the Word Counter appears on my style. I've looked in the extension folder and only found one html file that had, I think, three lines of code in it. Listed below are pictures of where it appears and where I want it to appear.

The word count appears to the right of the last edit information and I'm trying to figure out how to move it above and to the left. This shows up when you're looking at an edited post on the forum.
Image

The word counter appears at the top of a previewed post and I would like it to appear in the message body with the other information.
Image

Lastly, this is just me being picky, but they didn't capitalize word count. I wanted to try to edit it so that it looked like this:

Word Count: xxx

Image

Would anyone be able to help me figure out how to move this information around? Thank you in advance!

Website: http://omensinashes.com/index.php

User avatar
Mannix_
Registered User
Posts: 566
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Style Support With Word Counter

Post by Mannix_ » Thu Oct 03, 2019 10:20 am

For the language fix you need to open common.php inside language/en folder
find 'WORDCOUNT_WORDCOUNT' => ' word count: %1s', and change it to
'WORDCOUNT_WORDCOUNT' => ' Word count: %1s',

For the preview position you would need to change the name of the posting_preview_poll_after.html to posting_preview_content_after.html but do that after you disable the extension and clear it's data because if you do that on working extension it may break the board. Then enable the extension again.

With the 3rd problem you need help from someone that actually knows how to code sorry, all I was able to figure out is that there is a change to be made in the main_listner.php file at the end :)
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

Jade23
Registered User
Posts: 81
Joined: Mon Sep 22, 2014 2:40 pm

Re: Style Support With Word Counter

Post by Jade23 » Thu Oct 03, 2019 10:52 pm

Hi! Thank you for your quick response!

I think at this point, I'm wondering if there's a way to just have it appear in the post body and that's it? It doesn't matter to me whether it's in the preview or not, but we use the word count of posts to process rewards for members, so having it in the post body is a necessity. Unfortunately, I don't know how to do that hahah. Or remove it from the post preview for that matter... SIGH!

Does anyone know of another word counter extension that works with 3.2.8? While it's not a problem just having members post their word counts, it's a bit troublesome. Especially for those on mobile devices.

Thanks for the help!

User avatar
Mannix_
Registered User
Posts: 566
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Style Support With Word Counter

Post by Mannix_ » Fri Oct 04, 2019 10:17 am

Jade23 wrote:
Thu Oct 03, 2019 10:52 pm
so having it in the post body is a necessity. Unfortunately, I don't know how to do that hahah. Or remove it from the post preview for that matter... SIGH!
The word count already appears in the post body. The problem is when a post is being edited then it will appear after the information that the post was edited just like on your first screenshot I don't know how to fix that I'm not a coder.

Removing word count from preview is simpler you just need to delete the content of posting_preview_poll_after.html file.

EDIT: Found a way to display word count just after the message like this
2019-10-04 12.26.22 localhost 81d965f8b1ba.png
Let me know if that will work for you
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

Post Reply

Return to “[3.2.x] Styles Support & Discussion”