Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Parse BBCode in Custom Profile Fields Details »»
Parse BBCode in Custom Profile Fields
Version: 1.1, by ImportPassion ImportPassion is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-20-2005 Last Update: 12-26-2005 Installs: 38
Uses Plugins
 
No support by the author.

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:
// #################### PRE-CACHE TEMPLATES AND DATA ###################### 
add above that

PHP Code:
define('THIS_SCRIPT''profile_admin'); 
end 1.01 code change

################################################## ##
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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 01-16-2006, 03:34 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MThornback
Would you be willing to change this so that it parses signatures? Namely Admin Signatures.... my attempts at it are failig miserably and angering my includes folder
I don't get it? Sigs already get parsed when you use bbcode in them. I believe it may be an option you have to turn on tho.
Reply With Quote
  #73  
Old 01-16-2006, 03:43 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7thgenCivic.Com
I don't get it? Sigs already get parsed when you use bbcode in them. I believe it may be an option you have to turn on tho.
Not what I meant, sorry threw you a curve

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?
Reply With Quote
  #74  
Old 01-17-2006, 10:31 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to make this work for fields in the postbit?

Thanks!
Reply With Quote
  #75  
Old 01-30-2006, 07:35 AM
Detomah's Avatar
Detomah Detomah is offline
 
Join Date: Sep 2003
Location: South Shields UK
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #76  
Old 01-31-2006, 02:36 PM
cartooner cartooner is offline
 
Join Date: Sep 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>&nbsp;</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">&nbsp;</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&amp;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&amp;showposts=0&amp;starteronly=1&amp;e xactname=1&amp;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>&nbsp;</div>
</if> <if condition="$show['currentlocation']">
<div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']">
- <else /> @ </if> $userinfo[time]&nbsp;</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&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a><else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;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&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
<else /> <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;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&amp;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&amp;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&amp;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.
Reply With Quote
  #77  
Old 01-31-2006, 02:58 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you should prolly read the End User section here...

https://vborg.vbsupport.ru/showthread.php?t=92953
Reply With Quote
  #78  
Old 01-31-2006, 03:57 PM
cartooner cartooner is offline
 
Join Date: Sep 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7thgenCivic.Com
you should prolly read the End User section here...

https://vborg.vbsupport.ru/showthread.php?t=92953

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...
Reply With Quote
  #79  
Old 03-29-2006, 10:49 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #80  
Old 04-14-2006, 04:11 AM
Aitsukai Aitsukai is offline
 
Join Date: Feb 2006
Location: Australia
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I get it to parse [img] tags as well?
Reply With Quote
  #81  
Old 04-19-2006, 08:45 PM
shadowdancer36 shadowdancer36 is offline
 
Join Date: Nov 2005
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07995 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete