Redirect to home problem

A multipurpose module, plugin and component

Redirect to home problem

New postby lalit_7 » Mon Jul 18, 2011 1:39 pm

Hello everyone,this is my site http://www.affiliateclubhouse.com/.In the affiliate programs directory of my site i have used pagination as u can see it.But the problem is that on clicking any other page number or next button it is redirectring to the home rather than the specified page.
Please anyone could give the solution to my problem it will be very helpful to me.

Thankyou in advance...
Regards,

Lalit
lalit_7
 
Posts: 4
Joined: Mon Jul 18, 2011 10:34 am

Re: Redirect to home problem

New postby Simon » Mon Jul 18, 2011 3:42 pm

Hi

You have an error in your syntax. "Parse error: syntax error, unexpected '"' in /home1/makemon5/public_html/affiliateclubhouse/components/com_jumi/files/blogger.php on line 9"

Correct this syntax error first, then we will discuss pagination :/
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Redirect to home problem

New postby lalit_7 » Mon Jul 18, 2011 3:51 pm

Thank you for your assistance as i was editing the script thats why the error came.Now the error is removed please see the problem and reply to me...
Once again thank you for your assistance....
Regards,

Lalit
lalit_7
 
Posts: 4
Joined: Mon Jul 18, 2011 10:34 am

Re: Redirect to home problem

New postby Simon » Mon Jul 18, 2011 3:58 pm

Ok. You lose the $_GET value when redirect. So it shows the home page, because that page doesn't exists.
Instead of http://www.affiliateclubhouse.com/index.php?pn=2 you must redirect to
http://www.affiliateclubhouse.com/index ... d=163&pn=2
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Redirect to home problem

New postby lalit_7 » Mon Jul 18, 2011 4:19 pm

Thank you very much sir for your help.

I have another problem that when i created a php file and pasted in my server in the path :/components/com_jumi/files/ (where a blogger.php exist) and i created a component and gave the pathname of the php file i created and i found a 404 error..Then i editted that blogger.php file and i was able to run that script...So my questino is that can;t i create a php file of my own using jumi???

Thank you once again sir for your help :D
Regards,

Lalit
lalit_7
 
Posts: 4
Joined: Mon Jul 18, 2011 10:34 am

Re: Redirect to home problem

New postby Simon » Mon Jul 18, 2011 4:38 pm

Probably you missed something, because it was tested many times, and if you wrote correct path of you script, it works just fine.

If you still have that issue, create online test for me.
Could you create the file test.php in components/com_jumi/files directory and set the path in component to components/com_jumi/files/test.php

Also add the line
Code: Select all
defined('_JEXEC') or die('Restricted access');

in blogger.php to prevent direct access to your script
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Redirect to home problem

New postby [email protected] » Mon Jul 18, 2011 5:03 pm

Thanks sir for your reply.I have create a menu item test in my site:http://www.affiliateclubhouse.com/.I have just written following statement in the php script :
echo "This is a test";

Thank you sir for your assistance...
[email protected]
 
Posts: 8
Joined: Mon Jul 18, 2011 5:00 pm

Re: Redirect to home problem

New postby Simon » Mon Jul 18, 2011 5:12 pm

Ok, as i can see, the file test.php exists in http://www.affiliateclubhouse.com/compo ... s/test.php.

What is the pathname in your jumi component?
(copy and past it exactly as you wrote)
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Redirect to home problem

New postby [email protected] » Tue Jul 19, 2011 8:10 am

Sir the path name i wrote in the compoonent is:
/components/com_jumi/files/test.php
[email protected]
 
Posts: 8
Joined: Mon Jul 18, 2011 5:00 pm

Re: Redirect to home problem

New postby [email protected] » Tue Jul 19, 2011 8:15 am

Sir i got it today i think due to some cache problem it must be happening...or it was not published i think...so stupid of me..

Thank you sir once again for you assistance... :D
[email protected]
 
Posts: 8
Joined: Mon Jul 18, 2011 5:00 pm

Re: Redirect to home problem

New postby Simon » Tue Jul 19, 2011 2:51 pm

You are welcome :/
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm


Return to Jumi

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron