Support Forums

redirect after successful contact.php

This is a discussion on redirect after successful contact.php within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I'd like to make a suggestion : when you contact a member for his/er ad, you're redirected to contact.php page ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-27-2008, 10:04 AM   #1
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 111
Rep Power: 21
frommarcq is on a distinguished road
Talking redirect after successful contact.php

I'd like to make a suggestion : when you contact a member for his/er ad, you're redirected to contact.php page with a message 'successful'. the problem is that the guest has lost the listing, and have to make a new search...

Would it be possible, after a successful message, to be automatically redirected to the listing view...

I thought using the famous <a href="javascript:history.go(-1)"> function will be efficient. But if the guest fails one, two ou three times with the captcha code, it won't work.

Any suggestion ?

Regards

Pascal
__________________
68classifieds (V4.0.9Developer)

maison nord - appartement Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline   Reply With Quote
Old 08-27-2008, 10:27 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,474
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi,

Are you using the contact.php or the private message?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-27-2008, 10:32 AM   #3
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 111
Rep Power: 21
frommarcq is on a distinguished road
Default

Hi Eric,
I'm using both of them (contact.php for guests and PM for registered members), but my request is for contact.php
Pascal
__________________
68classifieds (V4.0.9Developer)

maison nord - appartement Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline   Reply With Quote
Old 08-27-2008, 10:48 AM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,474
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I haven't tried this but I believe you can find this:
PHP Code:
$class_tpl->assign('title',LANG_CONTACT_SUCCESS_TITLE);
$class_tpl->assign('pPageContent',LANG_CONTACT_SUCCESS_BODY);
$class_tpl->assign('body','content.tpl'); 
Then replace with:
PHP Code:
$class_tpl->assign('title',LANG_CONTACT_SUCCESS_TITLE);
$class_tpl->assign('pPageContent',LANG_CONTACT_SUCCESS_BODY);
$class_tpl->assign('forward',TRUE);
$class_tpl->assign('location',$siteurl);
$class_tpl->assign('body','forward.tpl'); 
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-27-2008, 11:09 AM   #5
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 111
Rep Power: 21
frommarcq is on a distinguished road
Talking

that works fine !
That's exactly what I was searching for !!!
Eric, tu es le meilleur ! (you're the best)
Pascal
__________________
68classifieds (V4.0.9Developer)

maison nord - appartement Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline   Reply With Quote
Old 08-28-2008, 09:57 PM   #6
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 16
crystal is on a distinguished road
Default

Awesome, works great! Thanks Eric. Another feature I was looking for.
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 12-10-2008, 01:31 PM   #7
Member
 
Join Date: Jul 2008
Posts: 76
Rep Power: 10
centinel3 is on a distinguished road
Default private message forward.

I switched this code out on the contact.php and it works great. Which file do I need to modify for the private messages to be forwarded like this as well? I tried switching the code out on the contactus.php, which didn't work, and didn't see the code on the private.php file.

thanks for the help,
chris
centinel3 is offline   Reply With Quote
Old 12-10-2008, 01:35 PM   #8
curmudgeon
 
Join Date: Mar 2006
Posts: 5,279
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

contactus.php is for contacting via e-mail the site admin.

If you mouse over the "contact" icon when viewing the ad owner details you will see the file is private.php
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 12-10-2008, 02:09 PM   #9
Member
 
Join Date: Jul 2008
Posts: 76
Rep Power: 10
centinel3 is on a distinguished road
Default

I don't see the three lines to change in this document, unless they are split apart, though don't want to change something that I'm not sure about. Any help would be appreciated. I can send you he file to look at if you have time.

chris
centinel3 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with redirect for SEO Module cedano Technical Support 1 06-27-2008 05:15 AM
The Secret of Successful Classifieds Eric Barnes Site Marketing 8 04-09-2008 04:19 AM


All times are GMT -4. The time now is 06:51 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0