Announcement

Collapse
No announcement yet.

Replace some characters in User Profile Field content (Many people should need it)

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

  • Basketmen
    replied
    i am sorry then for methode no.2

    if that so i just will ask about methode no.1, please help guys, what is the regex function patern to search and replace, in profile fields?

    or do regex function can used for replacing too, instead for searching right?

    Leave a comment:


  • Lynne
    replied
    Help with modifying your code is given over on vbulletin.org, the modification site.

    Leave a comment:


  • Replace some characters in User Profile Field content (Many people should need it)

    I need to replace some characters in User Profile Field content,
    for example aaa to be bbb


    maybe there is two way, please help to make one of them or both works :




    1. i see in User Profile Field Manager, there is regex function, what is the regex function patern to search and replace there?




    2. or using a plugin with profile_updateprofile hook, but looks like below variable code in red are still wrong, so this is still not working


    $fieldcontentbefore = array(
    'aaa',
    'ccc'
    );

    $fieldcontentafter = array(
    'bbb',
    'ddd'
    );


    $vbulletin->user[$field] = str_replace($fieldcontentbefore, $fieldcontentafter, $vbulletin->user[$field]);
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X