#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
How to Edit the Def...
 
Share:
Notifications
Clear all

How to Edit the Default Forum 404 Page

    Last Post
RSS

thedrawingboard
Posts: 53
thedrawingboard - Facebook thedrawingboard - Twitter
 thedrawingboard
Topic starter
March 11, 2019 6:34 pm
(@thedrawingboard)
Trusted Member
Joined: 2 years ago

Can you please tell me how I can edit the default 404 Page for the forum?

Currently this 404 page has the text:

"Oops! The page you requested was not found!
You can go to Forum Home page or Search here"

I'd like to edit this text to let people know they need to be logged in to the forum in order to see the private threads, as well as other basic information. 

I found where I can change the Phrase "Page Not Found", but I can't find where to change the text in the error message.

Thanks for any help!

404Page.png
Topic Tags
404 page customization theme
8 Replies
1 Reply
CrisW
 CrisW
(@crisw)
Joined: 3 years ago

Reputable Member
Posts: 281
March 11, 2019 9:20 pm
Reply tothedrawingboardthedrawingboard
Posted by: thedrawingboard

(1) Can you please tell me how I can edit the default 404 Page for the forum?

Currently this 404 page has the text:

"Oops! The page you requested was not found!
You can go to Forum Home page or Search here"

(2) I'd like to edit this text to let people know they need to be logged in to the forum in order to see the private threads, as well as other basic information. 

I found where I can change the Phrase "Page Not Found", but I can't find where to change the text in the error message.

Thanks for any help!

404Page.png

Hi @thedrawingboard . 

(1) I can write and tell you about where it is, but I think that it will create more problems than it would solve, if you change anything in that 404 file.  If the intention is to get the end result (2), here's an easier way to do it.   🙂 

  1. Go to Forum Dashboard
  2. Forums
  3. Then select the Category of the Forum you want to hide from guests (Blue Bar) 
  4. Click the Edit button (next to the + sign)
  5. Then under Forum Permissions, 
  6. For Guests - on the drop down menu, select No Access
  7. Click the Update button. 

The result of that is that Forum Category will only be visible to logged in users. 

However, if you want to keep the Category visible to the guest, but have one or two forums under that, visible only to Members, you can follow the same steps, but just click the edit button of the 3. specific Forum (under the Blue Category Bar), that you want visible only to Members. Follow same steps 4 to 7.  

The result you will get is the Category is visible, and then when a guest tries to click, this message will appear: 

(2) "You don't have permissions to see this page, please register or login for further information"

I hope that helps.  Good luck and God bless you.  🙂 

I'm just a member here who used to be a newbie.

The case: When I actually put my keyboard where my forum is, and became #172. Can you imagine if you had to build this forum yourself? How kind and patient will you be? The best way to say thank you is say it, write it, and then head on over at Wordpress plugin page and rate wpForo 5 stars - by clicking here.

Reply
thedrawingboard liked
Sofy
Posts: 4048
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
March 12, 2019 1:55 pm
(@sofy)
Support Team
Joined: 3 years ago

Hi @thedrawingboard,

If you like to customize the appearance of the 404 page, you should customize the 404.php file located in /wp-content/plugins/wpforo/wpf-themes/classic/ folder.  

Please read this doc for wpForo customization:

https://wpforo.com/docs/root/forum-themes/theme-customization/

If you'd like to change only the phrases, please navigate to Dashboard > Forums > Dashboard admin page, click on [Rebuild Phrases] button, then navigate to Dashboard > Forums > Phrases admin page, find the phrases and change as you like. 

More info here: https://wpforo.com/docs/root/translation/quick-translation-phrases/

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
thedrawingboard liked
maxelio42
Posts: 65
 maxelio42
May 5, 2019 4:39 pm
(@maxelio42)
Trusted Member
Joined: 2 years ago

Hi,

One small part of our forum is on restricted access to only a few users.

When these users receive a notification email concerning a new message from this restricted area, and when they click the included link to view the message in the forum, they fall upon this 404 page.

The only exception is if they are already connected when clicking the link.

I precise that I followed thouroughly your step (1), @crisw.

This is not very elegant ! Would it be possible, in this specific case, to lead them to a page with a specific message, inviting them to login to see the page?

Thanks for your help!

Reply
3 Replies
Robert
 Robert
Admin
(@robert)
Joined: 5 years ago

Support Team
Posts: 7622
May 6, 2019 9:03 am
Reply tomaxelio42maxelio42

Ok, we'll add this in our-to-do list and add in future releases.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
copilot
 copilot
(@copilot)
Joined: 2 years ago

Active Member
Posts: 14
May 28, 2019 11:57 am
Reply toRobertRobert
maxelio42

After receiving today a bug report from a customer, we found that this problem too. Would be great that when visiting urls of forums and topics, who do exist but are hidden for not logged in users, show the login page if the user is not logged in.

Thanks Robert for considering!

This post was modified 2 years ago by copilot
Reply
copilot
 copilot
(@copilot)
Joined: 2 years ago

Active Member
Posts: 14
June 28, 2019 3:55 pm
Reply tomaxelio42maxelio42

@maxelio42,

Perhaps this helps you.

For my website, I added a login to the WPForo 404 error page. See the result on this restricted topic: https://easyvfr4.aero/community/feedback-on-features-and-functionalities/circuit-height-on-ev4-plates/

Not sure if this is the most elegant method 😉 but this is how I did it:

First, add the following code to the child theme's function.php in order to create the shortcode [my-login-form]:
// START add login shortcode
add_action( 'init', 'my_add_shortcodes' );
function my_add_shortcodes() {
   add_shortcode( 'my-login-form', 'my_login_form_shortcode' );
}
function my_login_form_shortcode() {
   if ( is_user_logged_in() )
      return '';
   return wp_login_form( array( 'echo' => false ) );
}
// END of add login shortcode

Then, add the following code to the, in the wpforo plugin folder located, 404.php file and edit the 404 error text as you like.:
<p style="align:center"><?php echo do_shortcode("[my-login-form]"); ?></p>

Note: once you update the wpforo plugin you probably lose this line of code, so you have to check/ edit the 404.php file after every wpforo update.

 

Cheers,
Tim

Reply
CrisW
Posts: 281
 CrisW
June 29, 2019 3:47 pm
(@crisw)
Reputable Member
Joined: 3 years ago

Hi @copilot . Thank you for sharing your code.  That will surely help those Admins who have their own customized LogIn and Register pages.  🙂 

What I use in my forum is the wpForo Register and LogIn Pages.  It was raised in my Forum too that if a post is set to "Standard Access" in a Private Forum, it's not clear to others that the page exists, but only visible to those who are logged in.  

So I tweaked it some, and added the verbiage through "Phrases". 

Here's how I did it. 

1) Go to  Forum Dashboard

2) Phrases 

3) On the search box, type "Page Not Found" 

4) It will return two phrases: 

"The Forum - Page Not Found" is the page title

and the 

"404 - Page Not Found" is the sub title in orange font. 

5) So if you hover over that, you'll see the "edit" link, and you can click it

6) You should also type on the search box "Oops! The page you requested was not found!" - that's also the sub title in orange font. 

So if you hover over that phrase, you'll see the "edit" link, and you can click it. 

7) And you can just add whatever verbiage you want to inform visitors to either Register or Login.  

8) Additionally, you can add a Register or Login Link on the 404.php page, on Line 21.  

Something like: (Change the code in RED to your own)

<p><center><strong>Or you can   <a href="https://www.YOUR-WEBSITE.com/COMMUNITY/?wpforo=signup" target="_blank" rel="noopener">Register</a>  or  <a href="https://www.YOUR-WEBSITE.com/COMMUNITY/?wpforo=signin" target="_blank" rel="noopener">Log in</a>  and  <a href="https://www.YOUR-WEBSITE.com/COMMUNITY/YOUR-CONTACT-PAGE/" target="_blank" rel="noopener noreferrer">Contact Us here</a></center></strong></p> 

I don't recommend tweaking the 404 because as the Support Team suggests, it is not "update safe" - meaning any customizations will be overwritten on any future updates.  (That's why I initially typed it might create more problems than it solves).  But I think tweaking the "phrases" would be a tad bit safer.  🙂 

And here is a sample of my "not elegant" 404 page 🙂

404_Sorry_RegisterOrLogIn.jpg

I'm just a member here who used to be a newbie.

The case: When I actually put my keyboard where my forum is, and became #172. Can you imagine if you had to build this forum yourself? How kind and patient will you be? The best way to say thank you is say it, write it, and then head on over at Wordpress plugin page and rate wpForo 5 stars - by clicking here.

Reply
dlinstedt
Posts: 47
 dlinstedt
November 8, 2019 4:40 pm
(@dlinstedt)
Eminent Member
Joined: 2 years ago

I think, wpForo should add this to their list of features, a new tab in their SETTINGS area to customize 404 page.

This type of functionality can be found (as an example for what & how) in Ultimate Member, and in wpFusion.com

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Changing to a threaded layout
    1 month ago
  • wpforo custom theme
    5 months ago
  • Class/ID by forum
    9 months ago
  • Customizing CSS file
    9 months ago
  • Permalinks fail, 404 errors for some (not all) tabs
    11 months ago
Topic Tags:  404 page (7), customization (18), theme (11),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages  wpforo-advanced-attachments-128x128  wpforo-embeds-128x128 wpForo User Custom Fields addon  wpForo – Blog Cross Posting addon  wpForo Ads Manager
View all Addons »

Recent Topics

  • Foro "moves" in Mobile devices as Admin

    By Jesus, 4 hours ago

  • Disabling Add Topic option

    By WeAreThe99, 5 hours ago

  • Lost the menu !!

    By dimalifragis, 6 hours ago

  • Forum is displayed narrow on mobile

    By jalin0919, 13 hours ago

  • How to clear cache for forum? It's for my users view, it's caching old data.

    By dantesalvino, 21 hours ago

  • User role does not adhere to user group

    By langel87, 21 hours ago

Topic Tags

  • new features43
  • seo39
  • translation37
  • plugin conflict36
  • forum35
  • buddypress33
  • login33
  • registration30
  • threaded layout30
  • ultimate member29
  • moderation28
  • editor25
  • avatar24
  • shortcode24
  • css24
  • menu23
  • tags22
  • profile21
  • migration20
  • url20
View all tags (1512)

Recent Posts

  • Foro "moves" in Mobile devices as Admin

    Hi, it's not really a mayor problem IF IT ONLY HAPPENS ...

    By Jesus, 4 hours ago

  • RE: Disabling Add Topic option

    @wearethe99, Sure it's possible. You can create ne...

    By Sofy, 5 hours ago

  • RE: I now get the email notifications but no longer "bell notifications"

    Ahhhh, great, things starts to make sense then. I was...

    By Jesus, 5 hours ago

  • RE: What this means / do

    @jesus, You've added the screenshot, but I'll need to...

    By Sofy, 6 hours ago

  • RE: Lost the menu !!

    Hi Sofy, For some reason the menu selection are lost,...

    By dimalifragis, 6 hours ago

  • RE: wpforo-admin-note Help

    I've already provided the article in previous post. You...

    By Sofy, 7 hours ago

  • RE: Forum is displayed narrow on mobile

    Thanks for your support. I resolved problem with belo...

    By jalin0919, 9 hours ago

Share:
  Forum Statistics
20 Forums
8,020 Topics
40.2 K Posts
1 Online
15.5 K Members

Latest Post: Foro "moves" in Mobile devices as Admin Our newest member: fishcriio834 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2021 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation