The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Parse BBCode in Custom Profile Fields Details »» | |||||||||||||||||||||||||||
Parse BBCode in Custom Profile Fields
Developer Last Online: Oct 2008
Why? Cause I think this should be the norm and others in this thread seem to want it. https://vborg.vbsupport.ru/showthread.php?t=101248
Be nice to also have WYSIWYG on the textareas, but that's another hack. There are 2 versions of this. The first one, product-parse_bbcode_in_profile_1.1.xml, is for anyone that does not have the MySpace style profile template hack installed. You can find that hack here https://vborg.vbsupport.ru/showthread.php?t=101248 The second, product-myspace_style_profile_version.xml, is for users that are using that template hack. INSTALLATION: Install the Product and that's it. Will install 1 new plugin. I tested as best I can, but see what happens. Can't provide 100% support, but I will see what I can do. For non-MySpace profile template users, some options: -------------------------------------------------------------------------- Optionally remove some code. https://vborg.vbsupport.ru/showpost....4&postcount=18 -------------------------------------------------------------------------- If you only want certain fields, put this code for EACH fieldx u want parsed in member_customfields hook location. https://vborg.vbsupport.ru/showpost....5&postcount=19 -------------------------------------------------------------------------- If you did this code change for 1.01, u can now remove it as it is not needed for 1.1. v.1.01 Code Change in admincp/profilefield.php find PHP Code:
PHP Code:
################################################## ## Non-MySpace template hack v.1.00 - Original Release v.1.01 - Update to fix some weird issue in admincp when going to profile field manager. v.1.1 - re-written - totally works. MySpace Template hack version: 1.0 - Original release. Show Your Support
|
Comments |
#72
|
|||
|
|||
Quote:
|
#73
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=81895 This hack parsed certian BB like: $bbuserinfo[username] : Username of the visitor Its never been ported...and judging by your code, it looks like a stones throw from what would be needed to port it....I was just wondering if you'd modify your code to make it similar to what we had available to 3.0.7? |
#74
|
||||
|
||||
Is there any way to make this work for fields in the postbit?
Thanks! |
#75
|
||||
|
||||
I don't think I am doing anything wrong, the code works fine and I now have bbcode working fine in my profile fields, so that's a good start...
However... Is it just me or do [ quote] [ code] [ html] type tags muck the tables up for anyone else? If it's not just me, would there be any way to make it so that only certain bbcodes function in profile fields? |
#76
|
|||
|
|||
I'm using this hack from on MEMBERINFO template..from HR3rdGen.
and this is the template.. $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title> </head> <body> $header $navbar <!-- main info - avatar, profilepic etc. --> <table border="0" width="100%" align="center" cellspacing="0" cellpadding="0"> <tr> <td width="64%" valign="top"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr bgcolor="#919EBA"> <td class="tcat" colspan="4" valign="top"> <b>Profile page for: <b>$userinfo[musername], $userinfo[usertitle] $userinfo[onlinestatus] </b></b></td> </tr> <tr> <if condition="$show['avatar']"> <td class="panelsurround" width="15%"> <div align="center"><img src="$userinfo[avatarurl]" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></div> </td> <else /> <td> </td> </if> <td class="panelsurround" width="42%" valign="top"> <p><b>Gender:</b> $userinfo[field7]<br> <b>Age: </b>$userinfo[age]<b></b> <br> <b>Orientation: </b>$userinfo[field13]<br> <b>Astrology:</b> $userinfo[field6]</p> </td> <td class="panelsurround" width="42%" valign="top"> <b>Member Since:</b> $userinfo[datejoined]<br> <b>Location:</b> $userinfo[field2]<br> <b>Referrals:</b> $referrals<br> <b>Reputation:</b> $userinfo[reputationdisplay]</td> </tr> </table> <br> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr valign="top"> <td class="tcat"> Bio:</td> </tr> <tr valign="top"> <td class="panelsurround"> <p>$userinfo[field1]</p> </td> </tr> </table> <br> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr valign="top"> <td class="tcat" bgcolor="#919EBA">Favorite Music:</td> </tr> <tr valign="top"> <td class="panelsurround"> <p>$userinfo[field5]</p> </td> </tr> </table> <br> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr valign="top"> <td class="tcat" bgcolor="#919EBA">Favorite Movies:</td> </tr> <tr valign="top"> <td class="panelsurround"> <p>$userinfo[field6]</p> </td> </tr> </table> <br> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="60%"> <tr valign="top"> <td class="tcat" bgcolor="#919EBA">About Me:</td> </tr> <tr valign="top"> <td class="panelsurround"> $userinfo[field7]</td> </tr> </table> </td> <td valign="top"> </td> <td width="34%" valign="top"> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr> <td class="tcat">My Favorite Links:</td> </tr> <tr> <td class="panelsurround"> <p>$userinfo[field11]</p> </td> </tr> <tr> <td class="tcat">Forum Stats:</td> </tr> <tr> <td class="panelsurround">$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)<br> <a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a><br> <a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&e xactname=1&searchuser=$userinfo[urlusername]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a><br> <if condition="$show['lastactivity']"> <div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span> </div> </if> <if condition="$show['currentlocation']"> <div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time] </div> </if></td> </tr> <tr> <td class="tcat">My contact info:</td> </tr> <tr> <td class="panelsurround"><if condition="$show['addbuddylist']"> <a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a><else /> <a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a> </if><br><if condition="$show['addignorelist']"> <a href="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a> <else /> <a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a> </if><br> <a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a><br> <a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a></td> </tr> <tr> <td class="panelsurround"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <if condition="$show['textimicons']"> <if condition="$userinfo['showicq']"> <tr> <td>$vbphrase[icq] <td> <td>$userinfo[icq]</td> </tr> </if> <if condition="$userinfo['showaim']"> <tr> <td>$vbphrase[aim] <td> <td>$userinfo[aim]</td> </tr> </if> <if condition="$userinfo['showmsn']"> <tr> <td>$vbphrase[msn] <td> <td>$userinfo[msn]</td> </tr> </if> <if condition="$userinfo['showyahoo']"> <tr> <td>$vbphrase[yahoo] <td> <td>$userinfo[yahoo]</td> </tr> </if> <else /> <if condition="$userinfo['showicq']"> <tr> <td>$userinfo[icqicon]</td> <td><a href="#" dir="ltr" onClick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td> </tr> </if> <if condition="$userinfo['showaim']"> <tr> <td>$userinfo[aimicon]</td> <td><a href="#" dir="ltr" onClick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td> </tr> </if> <if condition="$userinfo['showmsn']"> <tr> <td>$userinfo[msnicon]</td> <td><a href="#" dir="ltr" onClick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td> </tr> </if> <if condition="$userinfo['showyahoo']"> <tr> <td>$userinfo[yahooicon]</td> <td><a href="#" dir="ltr" onClick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td> </tr> </if> </if> </table> </td> </tr> <tr> <td class="tcat">My Groups:</td> </tr> <tr> <td class="panelsurround"> <table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0"> <tr> <if condition="$show['membergroups']"> <td></td> <else /> <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td> </if> </tr> $membergroupbits </table> </td> </tr> </table> </td> </tr> </table> <if condition="$profileimagebits"> <br><table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr> <td class="tcat" colspan="5"><a href="/gallery/browseimages.php?do=member&imageuser=$userinfo[userid]" title="View My Gallery">$userinfo[username]'s Latest Gallery Submissions</a> </td> </tr> <tr>$profileimagebits</tr> </table> <br /> </if> $footer </body> </html> I'm new to this, so if I sound dumb please forgive me. I've learned quite a bit though running my Forum. All I need to know right now is a more detailed instructions to install this plug-in. Do I upload to my includes/xml folder?? I'm using *default* style to work with this, and so far I have everything set for Profile Page improvements except this. |
#77
|
|||
|
|||
you should prolly read the End User section here...
https://vborg.vbsupport.ru/showthread.php?t=92953 |
#78
|
|||
|
|||
Quote:
OK..I read it.. End-Users Go to ACP / Plugin System / Manage Products. Click Add/Import Product, select the product XML File for the Hack you want to install. If you are upgrading an existing Hack, make sure that Allow Overwrite is set to Yes This How-To is (C) 2005 by KirbyDE and you are not allowed to redistribute it in any way without my explicit consent. ..when I go to download product my space style version.xml It opens the file. so what do I do, copy paste the code into notepad and save. I'm sorry for asking questions that might seem so stupid... |
#79
|
||||
|
||||
I edited the ABOUT ME text on my page after installing this product but BBCodes or Line Breaks are not working for me.
Any idea? |
#80
|
|||
|
|||
How would I get it to parse [img] tags as well?
|
#81
|
|||
|
|||
Sorry I'm a newbie here. What does this hack do again? Any screen shots? I'm thinking it allows u to use the editor to enter page changes, but I might be wrong.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|