Announcement

Collapse
No announcement yet.

Problem adding link with userid

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Problem adding link with userid

    Hello, I'd like to add a link to "My Blog" to another location. The link I use is

    Code:
    blog.php?u=['userid']
    Like this I would expext it to pull the userid of the according member and show their blog. And the link displayed in the URL should be
    Code:
    www.domain.com/blog.php?u=1234
    What is happening to me is that the URL is displayed as
    Code:
    www.domain.com/blog.php?u=['userid']
    and when you click on it you always get forwarded to the most recent blogs instead of "My Blog".

    I am doing the same with e.g "Blog Settings"
    Code:
    blog_usercp.php?u=['userid']
    and here it works as intended. Although it's also displayed as =['userid'] at the end of the URL instead of =1234. But at least it works.

    Any ideas what I am doing wrong and how to do better? Thanks a lot!
    sigpic

  • #2
    You'd use:
    {vb:raw bbuserinfo.userid}

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X