Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
how to tell contact.php where template page to return to?
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 11/12/10 01:16 

Code
band_id   0
captcha_code   vot1d8b
contact_body   real test
contact_email   someone@here.com
contact_subject   nothing much
mode   sendmsg
skin   Jobs
template   feedback2.tpl
tpl_dir   skin
Source
template=feedback2.tpl&band_id=0&tpl_dir=skin&skin=Custom&mode=sendmsg&contact_email=someone%40here.com&contact_subject=nothing+much&contact_body=real+test&captcha_code=vot1d8b


working on an ajax contact form. I post the data above to contact.php then contact.php redirects to the top page.

I want it to open feedback2.tpl because that is where the response codes are. The email is getting sent ok, but the mail form is not getting any response codes back so it looks like nothing has happend.

what i want to happen is: when i go to:

Code
http://www.example.net/contact.php?mode=sendmsg&template=feedback2.tpl&tpl_dir=skin&skin=Custom&band_id=0&captcha_code=5cyzljb&contact_body=Nunc%20velit%20nulla%2C%20commodo%20nec%20rhoncus%20et%2C%20laoreet%20id%20odio%3F%20Maecenas%20lorem%0feugiat%20libero%20varius.%20Fusce%20ligula%20quam%2C%20porta%20a%20feugiat%20semper%3F%0A&contact_email=me%40mydomain.net&contact_subject=this%20is%20a%20final%20round%20of%20testing


that after the email has been sent to the admin the page that will be displayed is:
http://www.example.net/index.php?t=feedback2

is this possible?

thanks


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 11/12/10 01:55 
got this sorted,

needed to add this:
template_content_type as true

so

Code
<input type="hidden" name="template_content_type" value="true">

then the page will display instead of redirect.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 11/12/10 16:50 
Glad to see you got this sorted out...

Thanks!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 12/09/10 16:20 
hi nesty66

What ajax program? This code is useless for anything other than jamrooom.

(unless maybe you think Jamroom users might like a Shake........?)


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.