PDA

View Full Version : Insert UserID In CMS Article


Bestrafung
01-14-2018, 04:36 AM
Is it possible to include a link to the user profile page in a CMS article? For example [ url ]http://example.com/member.php?$userid[ /url ] I have a post explaining the features of a plugin and need to link to the profiles dynamically. I know this can be done easily in templates but I'm not sure how you would do this in a forum or cms post.

HM666
01-14-2018, 05:35 PM
Yours does not already have it linked? Mine has it linked automatically. Maybe I'm misunderstanding what you need. This is when posting an article on the CMS, the screen is what I have...

Bestrafung
01-18-2018, 05:04 AM
Yours does not already have it linked? Mine has it linked automatically. Maybe I'm misunderstanding what you need. This is when posting an article on the CMS, the screen is what I have...

Yeah, I have the author link. I'm trying to include the link to a user's profile in the article or forum post itself. As a temporary workaround I've added an if/else statement to member.php telling it to go to the currently logged in user's profile if a profile isn't specified in the URL/request.

EDIT: BTW, before anyone mentions it's a bad idea to edit the core file, I'm already aware. It's just a temporary workaround until I figure out a better way.