Email notifications and core SEF - urls incorrect?

Support specific to the phpBB 3 plugin.
Forum rules
Please post all the bugs you encounter on our issue tracker.

Email notifications and core SEF - urls incorrect?

Postby Gavin on Fri Nov 20, 2009 1:22 pm

Please fill up the following form to enjoy free support from our Team. No Support will be provided in case this form is not filled up!

1. Have you searched the forums and checked the documentation section for a solution?
yes
2. Please summarize your problem in a few lines.

I have jfusion set up to run phpbb3 in frameless mode, its working fine - using core SEF, no rewrite, with suffix added to URLs. The phpbb3 Jfusion plugin is writing URLs in this format :yourdomain.com/index.php/menu_name/filename.php/option1,value1/option2,value2 - the other way of writing the URLs doesn't seem to work properly on my setup.

Everything is fine, except that the notification emails are generated with the URLs in the other format: yourdomain.com/index.php/menu_name/filename.php?option1=value1&option2=value2

Which returns a 404 - component not found error on the server.

If this is not a config problem, can you suggest a way to modify the php code - i assume its created in something like "post.php" - (I'm guessing) and I would be able to hard code the email URLs there.

3. What steps will reproduce the problem?
setup as above?
4. What is the expected output? What do you see instead?
I would have expected to see URLs of the type in use by the system.

5. You must include a printout of the login checker in the JFusion component.

Code: Select all
Server Configuration
Joomla Version    1.5.14
PHP Version    5.2.9
MySQL Version    5.0.51
System Information    Linux web104c25 2.6.31.2 #1 SMP Tue Oct 6 10:37:20 EDT 2009 i686
Browser Information    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
juga user Plugin    Enabled
jfusion user Plugin    Enabled
jfusion authentication Plugin    Enabled

JFusion Versions
JFusion Component Version    1.2.0-000 (Rev 1473)
JFusion Authentication Plugin Version    1.2.0-000
JFusion User Plugin Version    1.2.0-000
JFusion Activity Module Version    1.2.0-000
JFusion Login Module Version    1.2.0-000
JFusion Search Plugin Version    1.2.0-000
JFusion Discussion Plugin Version    1.2.0-000

JFusion joomla_int Plugin
configuration    master 1
slave 0
dual_login 1
check_encryption 1
JFusion phpbb3 Plugin
configuration    master 0
slave 1
dual_login 1
check_encryption 1


Authentication Plugin
userid    62
activation    ""
username    admin
name    The BAcC
password    c14a87********
email    *******@hotmail.com
block    0
group_name    Super Administrator
group_id    25
params    admin_language=en-GB language=en-GB editor=jce helpsite= timezone=0
password_salt    CAdu*****
language    en-GB
credentialed_username    admin
   Authentication Plugin Success
Authentication Plugin Debug
0    joomla_int Password Encryption Check: Success


juga User Plugin
   User Plugin Error


jfusion User Plugin
   User Plugin Success
User Plugin Debug
init    0 Using userinfo JFusion authentication plugin
phpbb3 User Update    0 A user has been found that matches the login details
1 Skipped Password Update:Password already valid
phpbb3 User Details    userid 2
name admin
username admin
email *******@hotmail.com
password $H$Bon********
password_salt null
activation ""
reason 0
lastvisit 1258650666
group_id 5
group_name ADMINISTRATORS
user_type 3
block 0
password_clear ******
phpbb3 Session    0 Created COOKIE: Name=phpbb3_rk638_u, VALUE=2, Expires=60000, Cookie Path=/, Cookie Domain=.acupuncture.org.uk
1 Created COOKIE: Name=phpbb3_rk638_sid, VALUE=irYOhD********, Expires=60000, Cookie Path=/, Cookie Domain=.acupuncture.org.uk
User avatar
Gavin
JFusion Newbie
JFusion Newbie
 
Posts: 4
Joined: Fri Nov 20, 2009 11:52 am

Re: Email notifications and core SEF - urls incorrect?

Postby Gavin on Wed Dec 02, 2009 12:35 am

Not sure why the JFusion isn't rewriting these URLs, I assume it just doesn't look at functions_posting.php.

Anyhow, I did indeed replace the code:

Code: Select all
'U_FORUM'=> generate_board_url() . "/viewforum.$phpEx?f=$forum_id",
'U_TOPIC'   => generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t=$topic_id",
'U_NEWEST_POST'=> generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t=$topic_id&p=$post_id&e=$post_id",
'U_STOP_WATCHING_TOPIC'=> generate_board_url() . "/viewtopic.$phpEx?uid={$addr['user_id']}&f=$forum_id&t=$topic_id&unwatch=topic",
'U_STOP_WATCHING_FORUM'=> generate_board_url() . "/viewforum.$phpEx?uid={$addr['user_id']}&f=$forum_id&unwatch=forum",


with
Code: Select all
'U_FORUM'   => generate_board_url() . "/viewforum.$phpEx/f,$forum_id",
'U_TOPIC'   => generate_board_url() . "/viewtopic.$phpEx/f,$forum_id/t,$topic_id",
'U_NEWEST_POST'=> generate_board_url() . "/viewtopic.$phpEx/f,$forum_id/t,$topic_id/p,$post_id/e,$post_id",
'U_STOP_WATCHING_TOPIC'=> generate_board_url() . "/viewtopic.$phpEx/uid={$addr['user_id']}/f,$forum_id/t,$topic_id/unwatch,topic",
'U_STOP_WATCHING_FORUM'=> generate_board_url() . "/viewforum.$phpEx/uid={$addr['user_id']}/f,$forum_id/unwatch,forum",


I know its a bit crude compared to the idea behind Jfusion - automatically replacing sef URLs, but hey it works, so hope it helps. I just replaced the & with a / and = with a ,
User avatar
Gavin
JFusion Newbie
JFusion Newbie
 
Posts: 4
Joined: Fri Nov 20, 2009 11:52 am

Re: Email notifications and core SEF - urls incorrect?

Postby mariusvr on Wed Dec 02, 2009 9:57 am

Thats very strange as JFusion accepts both types of url regardless of what SEF setting you use in your jfusion plugin. For example the following urls both work:

http://www.jfusion.org/index.php/forums ... ,39/t,4905
http://www.jfusion.org/index.php/forums ... =39&t=4905

Can you post or PM me a link to the actual forum? This could be a bug and no hacks should be needed.

Thanks, Marius
User avatar
mariusvr
Developer
Developer
 
Posts: 3132
Joined: Sun Jan 13, 2008 9:55 am
Location: Perth, Western Australia

Re: Email notifications and core SEF - urls incorrect?

Postby sammymcfly on Sun Oct 17, 2010 7:34 pm

I have the very same problem with phpBB3 and JFusion running on newest version. I get as link something that's half SEF and half not as described above.

link form mail:
http://www.mysterytwisterc3.org/index.php/de/forum/ucp.php?i=pm&folder=inbox

correct link:
http://www.mysterytwisterc3.org/index.php/de/forum/ucp.php/i,pm/folder,inbox

Maybe it's something with the Mod/Plugin Options of the phpbb Plugin?
User avatar
sammymcfly
JFusion Newbie
JFusion Newbie
 
Posts: 3
Joined: Sun Oct 17, 2010 7:32 pm

Re: Email notifications and core SEF - urls incorrect?

Postby sammymcfly on Fri Nov 05, 2010 6:28 pm

Still not a solution for this?

I've now adjusted the functions_privmsgs.php in the includes/ folder of phpBB3 to get a correct URL.
User avatar
sammymcfly
JFusion Newbie
JFusion Newbie
 
Posts: 3
Joined: Sun Oct 17, 2010 7:32 pm

Re: Email notifications and core SEF - urls incorrect?

Postby Javex on Wed Aug 17, 2011 11:21 am

I had the same problem after an update that sammymcfly hat earlier (I administrate the site now). This time I needed to change the function "user_notification" in "functions_posting.php" on lines 1327-1331 to SEF-URLs.

I updated JFusion to the current version and tried everything but it doesn't seem to work (the old problem is still, that no SEF-URLs dont work, not even when turning SEF-mode off). If anyone has found a solution for this, please let me know.
User avatar
Javex
JFusion Newbie
JFusion Newbie
 
Posts: 1
Joined: Wed Aug 17, 2011 11:16 am

Re: Email notifications and core SEF - urls incorrect?

Postby fanno on Wed Aug 17, 2011 1:43 pm

Javex wrote:I had the same problem after an update that sammymcfly hat earlier (I administrate the site now). This time I needed to change the function "user_notification" in "functions_posting.php" on lines 1327-1331 to SEF-URLs.

I updated JFusion to the current version and tried everything but it doesn't seem to work (the old problem is still, that no SEF-URLs dont work, not even when turning SEF-mode off). If anyone has found a solution for this, please let me know.

create your own thread
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7666
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen


Return to phpBB 3

Who is online

Users browsing this forum: Bing [Bot] and 0 guests

cron