#1 WordPress forum plugin created by gVectors Team

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

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
General Discussions
Change the destinat...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Change the destination where where user is sent upon logout

Page 1 / 2 Next
    Last Post
RSS

bba01
Posts: 17
 bba01
Topic starter
August 23, 2017 8:42 pm
(@bba01)
Active Member
Joined: 5 years ago

Hey guys!

Thank you for a great plugin! How do I change the above mentioned destination? I want my users to be redirected to a custom made you have been logged out page.

With best regards,

bb

9 Replies
Robert
Posts: 9090
Robert - Twitter
 Robert
Admin
August 25, 2017 12:53 pm
(@robert)
Support Team
Joined: 6 years ago

I the target page is a forum page you can change the menu to the target page and add /?wpforo=logout after URL. For example:

 https://wpforo.com/community/members /?wpforo=logout

If the target page is not a forum page you should change it in core. but it's not a update safe way:

Find this line in /wpforo/wpforo.php file:

wp_redirect( wpforo_home_url( preg_replace('#\?.*$#is', '', wpforo_get_request_uri()) ) );

Change to this:

wp_redirect( wpforo_home_url( preg_replace('#\?.*$#is', '', 'http://example.com/target-page/') ) );

 

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
samhughey liked
bba01
Posts: 17
 bba01
Topic starter
August 27, 2017 10:45 pm
(@bba01)
Active Member
Joined: 5 years ago

Hi Robert and thank you!

Maybe in the future you can add a feature in where the user can choose where to redirect the logout?

/b

Reply
Robert
Posts: 9090
Robert - Twitter
 Robert
Admin
August 28, 2017 4:27 pm
(@robert)
Support Team
Joined: 6 years ago

Thank you bba01,  we'll take this under consideration.

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
pederw
Posts: 23
 pederw
January 10, 2018 8:28 am
(@pederw)
Eminent Member
Joined: 5 years ago

I really would like this feuture as well. been playing out with different scripts for a day now and it just mess upp login/logout process. Know you got a lot of requests of features but this one would be quite easy to fix? (me just guessing actually) since you have the solution above.

Reply
Page 1 / 2 Next
  All forum topics
  Previous Topic
Next Topic  

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 wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Attachments not showing on forums posts after migration

    By Formicid, 2 hours ago

  • New Feature About Plugin Customization and Integration

    By z14165899, 14 hours ago

  • WordPress Email sending function wp_mail() doesn't work!

    By feassistant, 21 hours ago

  • Import users from IPBoard

    By jesusdlg, 1 day ago

  • Intruder signing in to wpforo without approval

    By plaurits, 2 days ago

  • How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 3 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • spam33
  • editor33
  • menu33
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2195)

Recent Posts

  • RE: replacing create_function() with something else for PHP8 [duplicate]

    Hi @douglajonson, what is the plugin name?

    By Chris, 35 mins ago

  • RE: Description for each topic?

    @christine, wpForo does not have a topic description ...

    By Chris, 1 hour ago

  • RE: About Plugin Customization and Integration

    Hi @z14165899, Please send your request to sales[at]g...

    By Chris, 1 hour ago

  • Attachments not showing on forums posts after migration

    Hello I just did a manual migration and the older forum...

    By Formicid, 2 hours ago

  • RE: WordPress Email sending function wp_mail() doesn't work!

    @dimalifragis thanks for the enlightenment there. It...

    By feassistant, 15 hours ago

  • RE: Intruder signing in to wpforo without approval

    Maybe at Wordpress.org ?

    By dimalifragis, 23 hours ago

  • Import users from IPBoard

    Hello, Is it possible to import users from ipboard? (...

    By jesusdlg, 1 day ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,940 Topics
50.3 K Posts
7 Online
48.4 K Members

Latest Post: replacing create_function() with something else for PHP8 [duplicate] Our newest member: Chris1255 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-2022 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
  • Addons Demo
  • Documentation