Quick Ipb Question

Discussion in 'Gaming' started by dementia, Jan 22, 2006.

  1. dementia

    dementia Well-Known Member

    Posts:
    6,244
    Likes Received:
    0
    Joined:
    May 21, 2005
    Location:
    Denver
    In the html whats the code for a username?

    Like displayed in each posts, 'Donate Credits' how itll say:
    http://www.gamerenders.com/forum/index.php...ate_money&name=

    Whats the code to fill out the 'name=' with whoever posted? I have tried just about everything I can possibly think of without looking into the php files and have had no luck.
     
  2. BreakOut

    BreakOut Well-Known Member

    Posts:
    2,930
    Likes Received:
    0
    Joined:
    Apr 28, 2005
    Check the IPB Help Topic, it explains it all there...

    I'll do it if you still can't manage
     
  3. FUBAR

    FUBAR Senior Member

    Age:
    44
    Posts:
    2,252
    Likes Received:
    0
    Joined:
    Jun 16, 2005
    Location:
    Toronto, Ontario
    I think the code you are looking for is the following:

    Code:
    [url="http://www.siteurl.com/index.php?act=Store&Code=donate_money&name={$author['author_name']}"]Send Credits[/url]
    
    I hope this helps. ;)
     
  4. Equivalent Exchange

    Equivalent Exchange Well-Known Member

    Posts:
    1,466
    Likes Received:
    0
    Joined:
    Nov 9, 2005
    Edit:

    Oh yeah, and to add it so it automatically fills the name in...

    I beleive the code to add at the end of that link above was "&name={$post['author']}"
     
  5. dementia

    dementia Well-Known Member

    Posts:
    6,244
    Likes Received:
    0
    Joined:
    May 21, 2005
    Location:
    Denver
    i have that code there.

    Putting the base code in there wasnt the problem, i am having a problem knowing what comes after 'name=' to make it dynamic based on whoever posted.

    it should be something like {ipb.lang['membername']} or something along those lines (just an example)
     
  6. Equivalent Exchange

    Equivalent Exchange Well-Known Member

    Posts:
    1,466
    Likes Received:
    0
    Joined:
    Nov 9, 2005
    Yeha, i almost forgot that part. I edited my post, the answer's in theree
     
  7. dementia

    dementia Well-Known Member

    Posts:
    6,244
    Likes Received:
    0
    Joined:
    May 21, 2005
    Location:
    Denver
    That was my initial thought, however, using '{$author['author_name']}' gives the board URL to the member's profile, not the members name...

    the code '{$post['author']}' doesnt work...
     
  8. Equivalent Exchange

    Equivalent Exchange Well-Known Member

    Posts:
    1,466
    Likes Received:
    0
    Joined:
    Nov 9, 2005
    Try {$author['name']} then or {$post['name']}
     
  9. dementia

    dementia Well-Known Member

    Posts:
    6,244
    Likes Received:
    0
    Joined:
    May 21, 2005
    Location:
    Denver
    Thank you :)

    {$post['name']} worked.

    You may want to have BFTP add that to his 'Donate Credit' section of his FAQ.

    Rep for those that helped me :) very fast actions :)
     

Share This Page