vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Parse BBCode in Custom Profile Fields (https://vborg.vbsupport.ru/showthread.php?t=103460)

ImportPassion 12-25-2005 11:55 PM

i just tried it on my other forum 3.5.1 and it worked again no problem.

Exitilus 12-25-2005 11:58 PM

Hrmm Odd ... I dunno why it won't work :|

Maybe try re-adding it?

ImportPassion 12-26-2005 12:15 AM

uninstall first. take a screen of the plugin page if u can so i can see it.

MissKalunji 12-26-2005 02:41 AM

can someone show me what this does?

thanks

Lizard King 12-26-2005 02:53 AM

Quote:

Originally Posted by MissKalunji
can someone show me what this does?

thanks

It allows you to use bbcode in custom user profiles.

MissKalunji 12-26-2005 03:24 AM

Quote:

Originally Posted by Lizard King
It allows you to use bbcode in custom user profiles.

can i see a demo?

Lizard King 12-26-2005 03:58 AM

Quote:

Originally Posted by MissKalunji
can i see a demo?

i dont use this hack but check in http://www.ayyas.com/member.php?u=4 there are bbcodes inside custom profile fields. this hack makes the same thing.

MissKalunji 12-26-2005 04:11 AM

Quote:

Originally Posted by Lizard King
i dont use this hack but check in http://www.ayyas.com/member.php?u=4 there are bbcodes inside custom profile fields. this hack makes the same thing.

:-/ ok thx

evenmonkeys 12-27-2005 12:57 AM

It doesn't seem to be working for me. Are there settings I need to adjust?

ImportPassion 12-27-2005 02:50 AM

if u r using the Myspace Style Profile template hack, then it doesn't work since the vars are being spit out differently. I am working on that now.

evenmonkeys 12-27-2005 02:58 AM

Ohhhh. I just modified the template. I didn't upload plug-ins or anything. It's all just template changes. I assume that's still different. Also... is it possible to allow for certain fields to be parsed and certain fields not to be parsed? Like... add an option to "Add New Field" and have it say "Allow" or "Not Allow"... Just a suggestion.

ImportPassion 12-27-2005 02:59 AM

maybe at some point, just want to get it working with that template mod first.

Kihon Kata 12-27-2005 03:48 AM

Quote:

Originally Posted by 7thgenCivic.Com
maybe at some point, just want to get it working with that template mod first.

Yes you have. I wanted to popin and PERSONALLY thank you very much for doing this AND taking the time to fix my site with over 225,000 posts.

Thanks again for taking the time Derek!

KBV 12-28-2005 08:58 AM

Great mod. Anyone have any idea why it turns < and > into &lt; and &gt;

MissKalunji 12-28-2005 10:13 AM

You know what woudl be cool..........having the bbcode bar (like in threads) to show also not everyone knows the bbcodes by heart

EricaJoy 12-28-2005 11:18 AM

Quote:

Originally Posted by MissKalunji
You know what woudl be cool..........having the bbcode bar (like in threads) to show also not everyone knows the bbcodes by heart

or maybe a link to bring up a pop up box with the bbcode info in it?

MissKalunji 12-28-2005 12:50 PM

Quote:

Originally Posted by princessfrozen
or maybe a link to bring up a pop up box with the bbcode info in it?

yeah would be good too

99SIVTEC 12-28-2005 06:35 PM

I can't for the life of me get this to work. Tried adding the code manually, tried the code posted earlier in the thread, and tried the plugins. I have nothing else around the hook location, and no other plugins using that hook location.

Exitilus 12-28-2005 07:06 PM

Aww that explains why it wasn't working with me. I have that updated profile thing installed :) I will keep a very close eye on this! i'm really hoping to see this working soon!!!

Exitilus 12-28-2005 07:20 PM

haha nm noticed my e-mail and when i checked the thread it has been updated. I will give it a try! :)

Exitilus 12-28-2005 07:26 PM

Works beautiful!

Annie^.^ 12-30-2005 05:34 PM

Great Job!!

wolfstream 12-30-2005 11:24 PM

Only problem I see with this (so far):
This is parsing the fields just dandy in the profile itself, but when it comes to postbit, I see:
Quote:

Location: color=blueWaterloo, IA/color
instead of
Quote:

Location: Waterloo, IA
Any idea what I'm missing there? (yes, I deliberately took the tags out of the first color bit to prevent it from showing up as an actual color.

Sychev_S 12-31-2005 01:08 AM

Quote:

Originally Posted by princessfrozen
or maybe a link to bring up a pop up box with the bbcode info in it?

:squareeyed: that would be awesome

msimplay 01-01-2006 12:05 PM

hmm problem again quotes are turning from " to &quot;

ImportPassion 01-01-2006 01:32 PM

ya, i posted about that on vb.com, but no reply. not sure why that is happening.

Oreamnos 01-04-2006 12:20 AM

First of all, i installed the plugin and it worked beautifully on 3.5.2.

i have 2 questions:
  1. What can I change so that it automatically turns any URL into a link? I don't want users to have to use BBCode.
  2. Any luck with the quotes issue?

Thanks!

eric

MissKalunji 01-16-2006 12:26 AM

Okay how can i exclude a field?

example i want all the field to have bbcode but the css field....

how can i do that?

ImportPassion 01-16-2006 02:40 AM

u could do something like this

PHP Code:

if ($profilefieldname != 'field2') {
$profilefield['value'] = $bbcode_parser->parse($userinfo["$profilefieldname"],0true);


replace field2 with ur css field #

not tested, but give it a shot.

MThornback 01-16-2006 03:29 AM

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 :p

ImportPassion 01-16-2006 03:34 AM

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 :p

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.

MThornback 01-16-2006 03:43 AM

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 :p

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?

trackpads 01-17-2006 10:31 PM

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

Thanks!

Detomah 01-30-2006 07:35 AM

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?

cartooner 01-31-2006 02:36 PM

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.

ImportPassion 01-31-2006 02:58 PM

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

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

cartooner 01-31-2006 03:57 PM

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

jluerken 03-29-2006 10:49 AM

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?

Aitsukai 04-14-2006 04:11 AM

How would I get it to parse [img] tags as well?

shadowdancer36 04-19-2006 08:45 PM

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.


All times are GMT. The time now is 07:38 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.01632 seconds
  • Memory Usage 1,854KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete