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 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 04:12 AM.

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.01333 seconds
  • Memory Usage 1,791KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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