Go!
 
 
October 12, 2008, 12:34:21 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Redirect URL - after Modul subscriber  (Read 8403 times)
quer
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: June 26, 2007, 10:12:29 AM »

Hi Adam,

I would like change the redirect url -
after a subscriber registration (modul)

now
index.php?option=com_yanc&Itemid=

to (sample)
index.php?option=com_content&task=view&id=328&Itemid=

thanks for the great component !

Logged
Adam
Administrator
Hero Member
*****
Offline Offline

Posts: 4.842



View Profile WWW
« Reply #1 on: June 26, 2007, 10:46:04 AM »

have a look at /components/com_yanc/yanc.php

change;
Code:
echo "<script> alert('". Y_FRONT_SUBSCRIPTION_SAVED . "'); document.location.href='index.php?option=$option&Itemid=$Itemid';</script>\n";

to:

Code:
echo "<script> alert('". Y_FRONT_SUBSCRIPTION_SAVED . "'); document.location.href='index.php?option=com_content&task=view&id=328&Itemid=$Itemid';</script>\n";
Logged

- Joomla developer -

IMPORTANT: http://www.joomla-addons.org/option,com_smf/Itemid,7/topic,1332.0.html
Do not send support requests by PM. Post on the forum instead.
quer
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #2 on: June 26, 2007, 11:55:45 AM »

WOW Smiley


thanks for your fast and great support !
Logged
chrisbaker
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #3 on: February 20, 2008, 05:28:42 PM »

have a look at /components/com_yanc/yanc.php

change;
Code:
echo "<script> alert('". Y_FRONT_SUBSCRIPTION_SAVED . "'); document.location.href='index.php?option=$option&Itemid=$Itemid';</script>\n";

to:

Code:
echo "<script> alert('". Y_FRONT_SUBSCRIPTION_SAVED . "'); document.location.href='index.php?option=com_content&task=view&id=328&Itemid=$Itemid';</script>\n";

I can't find this line in my yanc.php file. I can find this one.

echo '<script> ' . ($show_popup ? 'alert(\''. Y_FRONT_SUBSCRIPTION_SAVED . '\');' : '') . ' document.location.href=\'' . $redirect . '\';</script>\n';

Is that the same?  Should the same change be made?
Logged
chrisbaker
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #4 on: February 20, 2008, 05:56:53 PM »

Solved....

Line 88 of yanc.php needs to be changed to this...

$redirect = mosGetParam($_REQUEST, 'redirect', 'index.php');

Thanks for the great component Adam and all your replies!
Logged
AndyTheAstronomer
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #5 on: August 25, 2008, 04:32:51 PM »

Hello,

Having read this thread, I am still a little unsure about what changes to make.

The line:

alert('". Y_FRONT_SUBSCRIPTION_SAVED . "'); document.location.href='index.php?option=$option&Itemid=$Itemid';</script>\n";

does not exist in my Yanc.php either. I have made the changes suggested to line 88, but I receive an error message related to a "T-Switch" when I run it.

What I want to do is to return users to the front page of the site after they receive the confirmation message. Can anybody tell me, specifically, what I need to change?

Many thanks

Andy-


Logged
Adam
Administrator
Hero Member
*****
Offline Offline

Posts: 4.842



View Profile WWW
« Reply #6 on: August 28, 2008, 02:15:47 PM »

it should be present..

this should be the content of the file: http://svn.bandhosting.nl/filedetails.php?repname=yanc&path=%2Ftrunk%2Fyanc.php
Logged

- Joomla developer -

IMPORTANT: http://www.joomla-addons.org/option,com_smf/Itemid,7/topic,1332.0.html
Do not send support requests by PM. Post on the forum instead.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Joomla-addons.org © 2006 | www.bandhosting.nl | JCD-A Member | Newsletter | Sitemap |