× Here you can get community support related to ReDJ.

some site macros didn't work, jfusion prioblem?

More
10 years 9 months ago #2090 by nabe
Hello, I've tried a redirect from some static article to a new url where I need id of logged in joomla user,like
From url: moje-menu/moja-galeria.html
To url: galeria/index.php?u={userid}

Instead of user id I got in the url: galeria/index.php?u=plgSystemReDJ::manageMacroParams('userid', array(0 => ''))

I've tried macros {username}, {userid} with the same result. {userid guestvalue} works as expected

Joomla! 2.5.17,
ReDJ 1.7.4
JFusion 1.8.4-011

Users are logging in with the native joomla module.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2091 by admin
Hi,
this is really strange. Just try to change ReDJ system plugin ordering and put as first one. If the problem persists, I will install JFusion to check what happens. I know what JFusion is for (integration) but I have never used it with ReDJ. Please, advise.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #2092 by nabe
I've tried that in the first place.
jfusion extensin is used to map users from vbulletin forum (master) to joomla accounts (slave).
Users can log in from the forum level or from the joomla itself. In the latter case I use ReDJ to extract user login details. The {userid guestvalue} returns userid stored in joomla tables, which I can compare to the vb userid using the {tableselect}. But username and userid macros cause aforementioned problem.
Last edit: 10 years 9 months ago by nabe.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2093 by admin
Is a bug (just replicated). I will fix ASAP and let you know.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2094 by admin
Found the issue. I will release a new version as soon as pobbile. Meanwhile you can fix yourself. Edit file plugin/system/redj.php.

Line 751 (if enterprise) or 744 (if community), change:
$patterns[34] = "/\{username\}/";
To:
$patterns[34] = "/\{username\}/e";

Line 753 (if enterprise) or 746 (if community), change:
$patterns[36] = "/\{userid\}/";
To:
$patterns[36] = "/\{userid\}/e";

I missed the "e" for EVAL.

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds