vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Insert UserID In CMS Article (https://vborg.vbsupport.ru/showthread.php?t=325985)

Bestrafung 01-14-2018 04:36 AM

Insert UserID In CMS Article
 
Is it possible to include a link to the user profile page in a CMS article? For example
Code:

[ 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

1 Attachment(s)
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

Quote:

Originally Posted by HM666 (Post 2592252)
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.


All times are GMT. The time now is 06:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00946 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete