× Joomla Facebook Connect support forum

Topic-icon Reveal Page not Working

Active Subscriptions:

None
14 years 6 months ago #16067 by piebal
Replied by piebal on topic Reveal Page not Working
Alright, I feel like im losing my marbles here...
Tried your htaccess query - that did nothing.
If I disable sh404sef and remove &tmpl=component from canvas.php I get the template!

Re-enable sh404sef and i get
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

put &tmpl=component back to canvas.php and the page at least loads,but I dont get the template loading again.

Do you have any ideas on something I should try with sh404sef, or should I try just hard coding the url into canvas.php, and if so how would I go about that?

Thanks for all of your help thus far.
The topic has been locked.
Support Specialist
14 years 6 months ago #16069 by alzander
Replied by alzander on topic Reveal Page not Working
No problem for the help. Not sure why sh404SEF is acting funny, but sometimes it really 'wants' to go to URLs that aren't quite right. We'd recommend deleting the SEF URL for your reveal page (with any aliases or whatever it's called).

If you want to hard-code the URL, you can do it in the canvas.php file by switching:
$app->redirect('index.php?option=com_content&view=article&tmpl=component&id=' . $revealPage);
With
$app->redirect('http://www.seafoamsales.com/index.php?option=com_content&view=article&id=174');
You should be able to use any URL there, SEF or not. The main thing you need to make sure of is that the id=### is the same as your Reveal Page setting in JFBConnect. We check to make sure that's the same when a viewer is looking at the page as a way to check that the user hasn't somehow navigated away. If you don't want that check, you can change the line above that looks like:
if ($revealPage && !$pageInfo['liked'] && ((JRequest::getCmd('option') != 'com_content') || (JRequest::getCmd('view') != 'article') || (JRequest::getInt('id') != $revealPage))
to:
if ($revealPage && !$pageInfo['liked'])
Hope that all helps and makes sense. If not, let me know. Sorry for all the troubles!

Alex
The topic has been locked.