Notifications
Clear all

wpForo 1.x.x [Closed] This code did not work, unfortunately. Please advise.

5 Posts
2 Users
0 Likes
517 Views
Posts: 124
Topic starter
(@mplusplus)
Reputable Member
Joined: 4 years ago

Hi there

I pasted this code in my theme's JS file https://wpforo.com/community/postid/46646/ as directed.
And still the Tags field is not mandatory. 

Are there any changes needed, or should this be added in a different file, please?

Thank you.

4 Replies
Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 4 years ago

@mplusplus,

Please try to add code using the methods described in this tutorial: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/

1 Reply
(@mplusplus)
Joined: 4 years ago

Reputable Member
Posts: 124

@alvina Any update on this, please?

To make Tags a required field:
The mentioned code works ONLY when I add a post using /add-topic/ page. However, it does not work if we click on Add Topic button from within a forum. (Screenshot)

Thanks.

Posts: 124
Topic starter
(@mplusplus)
Reputable Member
Joined: 4 years ago

So, it works if I go directly to the Add Topic page with a full URL (e.g. /forums/add-topic/68/).

However, if I click the Add Topic button from within the forum interface (to have the add topic form fly out) then this code does not work. E.g. see attached screenshot.

Any help will be appreciated.

Thanks a lot.

1 Reply
Alvina
Moderator
(@alvina)
Joined: 4 years ago

Member
Posts: 1869

@mplusplus,

There is no such issue on our test websites, the code work's fine.

Probably there is a cache issue(the file you add the JS code is not loaded, so you do not see the change). So please delete all caches, if you have a CDN purge the CDN. And do Ctrl+F5 on the forum front.

If you have a cache plugin, please exclude wpForo Forum page from your cache plugin!

Almost all cache plugins should have an option to exclude pages from the caching process. You should exclude your forum home page from your cache plugin. This is very important.

More info here: https://wpforo.com/community/faq/wpforo-and-cache-plugins/

Also please leave your forum URL.