Jump to content
MakeWebGames

Recommended Posts

Posted
Im sure you have seen them before. Lets say User id 1 = Name: Simon so you put in your profile signature: @1 then o viewuser in the signature it shows the name Simon, possibly in a table. Thats the tricky bit cant seem to work out.
Posted

This is an example:

 

// Query the user and get his unique id and his signature text
// Or fetch it from a text file. Your choise

function translate_signature( $profile, $userid, $signature ){

// So we have 
$userid  = $array['the_user_tabe_row_id'];

$signature = $array['the_user_table_column_signature'];

$pattern = "signature: $userid"
// better [@signature:1]  ( [@signature:$userid])

return str_ireplace($pattern,$signature,$profile);
//or assign variable. Again your choise

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...