Log in

View Full Version : Profile Field Link in Postpit


Connector
03-26-2006, 01:34 AM
Hello

Can someone make a small Profile Field where user can add a username for their blog or myspace not a url just a username and not a full url and in the show thread under the post count it will show My Blog: Link ? and My Space

maybe some one could help me on this

Thanks :)

Freesteyelz
03-26-2006, 06:11 AM
Probably the best way is to create a custom New User Profile Field in Admin CP. Either a single or Multiple-Line Text box, depending on your needs. Adjust the maxlength from "100" characters to a number you desire. Set all remaining fields and be sure to make it "Editable" for your users. Remember the "Field ID", as you'll be needing that in a bit.

Once completed, in your postbit or postbit_legacy find:

<div>
$vbphrase[posts]: $post[posts]
</div>


And under that add:


<!-- Custom User Profile Field -->
<if condition="$post['fieldx']"><div>
$post[fieldx]</div>
<!-- / Custom User Profile Field -->


Where "x" is replace that with the Field ID # you just created. When users fill this Profile Field in User CP it'll show up in their post user the post count. :)

hiiped
03-26-2006, 08:40 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=929579&postcount=4" target="_blank">https://vborg.vbsupport.ru/showp...79&postcount=4</a>