Forum Index > glFusion > Theme Support New Topic Post Reply
 Redirect Contact Us Page
 |  Printable Version
By: Trek (offline) on November 03 2009 07:48 AM (Read 274 times)  
Trek

Can someone tell me how and where I can redirect the Contact Us 'form.' I would like it to return to the 'Front' or ' Homepage' verses the User Profile.

Cheers!

--Trek


Forum Regular Member
Regular Member

Group Comfort
Level:
: +3

Status: offline

Registered: 10/21/09
Posts: 97

Profile Email   PM
  Quote
By: Mark (offline) on November 03 2009 08:41 AM  
Mark

Unfortunately, there isn't a configuration option for this, it is hard coded to return to the profile page.

If you want to hack the code, here is where you would make the change:

Edit public_html/profiles.php, around line 139 you'll see:

PHP Formatted Code

            if ( COM_isAnonUser() && $_CONF['profileloginrequired'] == true) {
                $redirectURL = $_CONF['site_url'] . '/index.php?msg=';
            } else {
                $redirectURL = $_CONF['site_url']
                                . '/users.php?mode=profile&uid=' . $uid
                                . '&msg=';
            }
 


We will change this block to look like this:

PHP Formatted Code

            $redirectURL = $_CONF['site_url'] . '/index.php?msg=';
 


Basically, we're just going to set the redirect to the home page.

Be sure and keep a record of all the code changes you make since they will be overwritten when you upgrade to the next release.

Also, feel free to submit this as a feature to the Tracker and we'll see if we can't make it a configuration option in one of the future releases.

Thanks!
Mark

Forum Admin
Admin

Group Comfort
Level:
: +93

Status: offline

Registered: 10/21/05
Posts: 5029
The Great State of
Texas

Profile Email    
  Quote
By: Trek (offline) on November 03 2009 10:00 AM  
Trek

Fantastic... much better Mark. However, 'wow' now I need to find 'all' the changes I have made; so I do not lose then with an upgrade!

I signed up for the 'Tracker' and would be happy to include this fix. However, I did not see any prompt for soliciting features for future releases. Give me some insight... I will make it happen.

Cheers!

--Trek


Forum Regular Member
Regular Member

Group Comfort
Level:
: +3

Status: offline

Registered: 10/21/09
Posts: 97

Profile Email   PM
  Quote
By: lgarner (offline) on November 03 2009 11:42 AM  
lgarner

Quote by: Trek

I signed up for the 'Tracker' and would be happy to include this fix. However, I did not see any prompt for soliciting features for future releases. Give me some insight... I will make it happen.


When you report the issue, just set the "Severity" to "Feature".


Forum Admin
Admin

Group Comfort
Level:
: +35

Status: offline

Registered: 06/10/08
Posts: 888

Profile Email Website PM
  Quote
Content generated in: 0.41 seconds
New Topic Post Reply



 All times are CDT. The time is now 09:29 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
HTML Allowed 
Censored Content