When I subscribe to a thread the system sends me to
http://www.xxx.com/forum/index.php?topic=2506.new;topicseen#new
This sends me a 404 because the /forum/index.php is influenced by ...
Quote// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{
if(!defined('_VALID_MOS')){ header("Location: /index.php".$_SERVER['QUERY_STRING']); }
}
So forum/index redirects me to index.php
What should be sent is ...
http://www.xxx.com/component/option,com_smf/Itemid,91/topic,2506.0
Any way of resolving this?
=====================
Joomla 1.0.12
Bridge 1.1.7
Standard Joomla SEO
A real URL?
http://www.xxx.com/index.php?option=com_content&task=view&id=3504&Itemid=95
is what we get sent
http://www.xxx.com/component/option,com_smf/Itemid,91/topic,2506.0
is preferable but I'd prefer
http://www.xxxx.com/
and force people to login to the front page.
What changes have you made to your bridge/SMF?
When I logged in to the forum, I was redirected to the AEC component. That shouldn't happen unless some change was made to the bridge.
No changes made ... the com_smf / config setting is the Mambo/Joomla Registration.
The site is set up to register you into the site but you gotta pay via AEC to go on the forum link as it is behind the pay to access line.
QuoteNo changes made ... the com_smf / config setting is the Mambo/Joomla Registration.
Upon logging in on the forum I was redirected to the AEC component. This has absolutely nothing to do with what registration method you have chosen. Redirection after login is handled by the integrate_redirect function in the bridge.
All of your outgoing emails contain the URL to the stand alone forum. The rewriting of those URLs is handled in the integrate_outgoing_email function in the bridge.
Both of those integration hooks (and possibly more) are not working as expected.
Are you absolutely sure that there are no changes made to the file smf.php?
Not sure whether I explained that correctly.
The latest AEC works like...
• Person visits site and wishes to join
• Person registers and told to login
• Registered user without access logs in
• Registered user without access does not actually log in but gets redirected to select a payment plan.
Access anything in the site without registration you get sent to the AEC component/ register to join. This site is set up to require you to to pay to view the forum etc ... that simple.
SMF is wrapped and requires payment to access inside Joomla site. It is that simple.
No $$ no access to any thing that isn't public.
Orstio you completed 3 steps but never paid so you couldn't get in
I just downloaded the latest SMF bridge and did a file compare with what is online and I've touched nothing.
The only change I've made to any smf files is to block direct access as described above
The issue as to why the SMF sending me to
http://www.xxx.com/forum/index.php?topic=2506.new;topicseen#new
instead of
http://www.xxx.com/component/option,com_smf/Itemid,91/topic,2506.0
still stands.
What I see is the issue is that by having blocked direct access to the forum the url is disfunctional
If direct access was switched off the url is ok.
So how to get the system to send me the correct url given blocked direct access is what is the core issue.
Why not remove direct access?
Because if you access the forum direct you don't get access to the site and the people who use the site than get up in arms ... I can't access the site from the forum.
Is that clearer than the mud I sent before? ;)
QuoteRegistered user without access logs in
• Registered user without access does not actually log in but gets redirected to select a payment plan.
Right, except login and redirection after login is handled by the bridge. So, if you have not modified your bridge, the redirect to select a payment plan should not be working.
QuoteSMF is wrapped and requires payment to access inside Joomla site. It is that simple.
No $$ no access to any thing that isn't public.
Check your PM's on your forum. Whatever you think you've done isn't working as you expect.
Quote
Right, except login and redirection after login is handled by the bridge. So, if you have not modified your bridge, the redirect to select a payment plan should not be working.
I repeat
I have the default smf.php file as downloaded from this site reinstalled earlier today.Quote
Check your PM's on your forum. Whatever you think you've done isn't working as you expect.
?? Your name appears on the list but I don't see anything else.
Just tried to login via the smf login direct page after doing the initial registration, but not paying, and get two goes at logging in and then get booted to the AEC pay page.
If you can get otherwise I'd appreciate a PM as to how or why someone with out your intimate knowledge can do so.
If the supposed change to smf.php is the stumbling block then this discussion will not proceed with a positive outcome. The current ... you have ... I haven't ... is totally unproductive.
yerg,
Your bridge is not acting like a standard installation.
Standard install would be:
1: registers with the defined registration method (smf, bridge, joomla, CB, etc)
2: user logs in with mod_smf_login
2a: mod_smf_login redirect the user to either a) the page he was on prior to login, b) the joomla home page or c) the forum page (com_smf).
DO you see what is wrong here?
Somehow, your login is redirecting the user to the AEC page... that is not one of the three options.
As for installing the redirect code into SMF to prevent direct access...
the code you posted below is missing information in the redirect statement:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{
if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=yourItemidNum&".$_SERVER['QUERY_STRING']); }
}
see the difference?
My installation is set up as follows
SMF Forum integration: Wrapped
SMF Forum integration: Mambo / Joomla Registration
The Joomla Registration is controlled by AEC
AEC registration/payment access for new registrants to access the site is
• Person visits site and wishes to join
• Person registers and told to login
• Registered user without access logs in
• Registered user without access does not actually log in but gets redirected to select an AEC payment plan.
Redirect Code is the issue as using
Quoteif(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=yourItemidNum&".$_SERVER['QUERY_STRING']); }
was a problem with an earlier version of AEC
It allowed people to loginto the Forum and
not loginto the site when you used the code above. This I don't want.
What happened if I allowed this was I got all sorts of complaints as they click on a link to go between the SMF and the site and then get told to login. They claim they are already logged in, they must be, they are in the forum.
What I did to stop this from happening is directed them to the site entrance to login by just having ... Location: /index.php
Since I've upgraded to the latest AEC the redirect can now be put back ... the link
http://www.xxx.com/forum/index.php?topic=2506.new;topicseen#new
Now sends me to the SMF login, when used now takes me to the members front page, or direct to the forum if my cookies/session is current
So smf.php, the bridge etc wasn't the problem at all eh? ;)
Just my stopping people accessing the forum and not the site.
Thanks Kindred and Orstio :)
I will reserve my previous comments.
Ok Orstio you wish to play games with me and my site and not make contact with me as I requested, that's your call.
My request still stands ... If you can get in otherwise I'd appreciate a PM as to how or why someone with out your intimate knowledge can do so.
Sending me PM's is all well and good but doing what you have done confirms that you are smart I'm not disputing that ... but in being smart you have not made a contribution to this process of me finding a solution.
The ball is in your court ... stop playing games and PM or email me with something that isn't time wasting ... please.
Been doing some further work and code digging on this since my last post.
I figure ... if it is possible for you to do what you did Orstio that you are aware of the issue and know what to do to fix the access hole in the system.
As lead developer I would most respectfully suggest that it is your job to fix the issue, and that I know you have the skills to do so.
The way into the site is via SMF and the Bridge.
I'm away for the next 10 days with no internet access ... I look forward to a positive response either privately or on this forum by way of resolving this issue of unregulated access when I get back.
QuoteOk Orstio you wish to play games with me and my site and not make contact with me as I requested, that's your call.
I don't understand what you mean by this.... I registered, and sent you a PM to show you that what you are trying to accomplish is not working, that's all.
I also think you are confusing the redirect hack:
if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=yourItemidNum&".$_SERVER['QUERY_STRING']); }
With the bridge redirect function. What I have been trying to tell you is that your bridge redirect function is not working. That has nothing at all to do with the redirect hack you put into the SMF index.php.
I changed the redirect hack as a part of my testing
I had it redirected to /index.php and this caused issues with wrong url's I've now changed it as a result of Kindred's suggestion.
Ok so you registered and you supposedly sent me a pm ... but you didn't because there was no PM in my PM box ... you sent one to the site owner how disrespectful !!!
I repeat I am not the site admin the site admin is the owner hence my asking you to contact me via this forum PM or my email. Thanks very much!!
I am not interested in discussing this matter further.
QuoteOk so you registered and you supposedly sent me a pm ... but you didn't because there was no PM in my PM box ... you sent one to the site owner how disrespectful !!!
I repeat I am not the site admin the site admin is the owner hence my asking you to contact me via this forum PM or my email. Thanks very much!!
My sincere apologies. I assumed (incorrectly) that you were the site admin. I meant no disrespect. :-[
Orstio this thread (http://www.simplemachines.org/community/index.php?topic=164746.msg1053151#new) I just found, shows how easy it is to get side tracked when the answer was quite simple.
The solution you offered Alison worked for me as well and was what I asked in the first place. All that "argy bargy" and paranoia was for naught ;)