The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I've searched the forum for over an hour and have come up with nothing.
What I would like to do is show my members websites in the postbit. I have it set to multiple line text, and when members add them, it looks like this: Website(s): www.?????.net www.?????.org www.?????.com I would like it to look like Website(s): www.?????.net www.?????.org www.?????.com any suggestions? |
#2
|
||||
|
||||
![]()
I wrote this plugin for someone who wanted to do something like this on the member.php page. I'm sure you can modify it for use in the postbit (use one of the postbit_ hook locations - and change the field id, of course):
PHP Code:
|
#3
|
|||
|
|||
![]() Quote:
|
#4
|
||||
|
||||
![]()
I know that one won't work exactly without modification of the variable names (I said you would have to modify it to work). Post the code (and hook location) you tried.
|
#5
|
|||
|
|||
![]()
Hey Lynne,
You're the best at answering all these help issues, and yes I do have some knowledge of hooks and what not. But I cannot seem to figure this one out. Variables and Hooks are a challenge to me. It's one of those things where you search and try for hours and I'm overwhelmed. I previously saw your post with the above information, and I've tried. Isn't there an easier way? |
#6
|
||||
|
||||
![]()
That probably is the easiest way. This works for my simple field of comma separated items (I tested it on my field16, you need to change for yourself):
postbit_display_complete PHP Code:
|
#7
|
|||
|
|||
![]()
Thanks... but it stills shows like this...
testing testing testing instead of: testing testing testing |
#8
|
||||
|
||||
![]()
Did you change the field id for the one you are using? It's usually best when you say something is not working if you post the exact code you used - in this case the exact plugin code and the exact code you put in the template.
|
#9
|
|||
|
|||
![]()
Heres the code i used:
Code:
if ($post['field5']) { $find = ","; $replace = "<br />"; $post['field5']= str_replace($find, $replace, $post['field5']); } Code:
<if condition="$post['field5']"><div class="pbbox"><strong>Website(s):<br /></strong> $post[field5]</div></if> |
#10
|
||||
|
||||
![]()
And you turned on the plugin? and the websites are separated by commas in the profile field? Or by a space? If a space, then the $find variable needs to be a space, not a comma.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|