[Beta] Parse BBCode in Custom Profile Fields

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
trefex
Registered User
Posts: 112
Joined: Sun Apr 24, 2005 3:08 pm
Name: Christophe Trefois

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by trefex »

Ok I see what you mean.

I will try to look into it
Trefex
=D_17
Registered User
Posts: 7
Joined: Thu Feb 28, 2008 7:36 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by =D_17 »

Yeah !!!
Nice ! :D
Do you know a way to only allow one of this CPF if the user has XX posts ?

,
=D_17
User avatar
trefex
Registered User
Posts: 112
Joined: Sun Apr 24, 2005 3:08 pm
Name: Christophe Trefois

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by trefex »

hey D_17,

I guess this would be a MOD in itself.

Have you looked around already, maybe somebody did this?
Trefex
=D_17
Registered User
Posts: 7
Joined: Thu Feb 28, 2008 7:36 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by =D_17 »

Hey Trefex,

yes I've been trying to find a way to do that for a specific Mod.
But nobody could help me.
So I asked for a way to only allow a CPF if you have XX posts.
If somebody could help me with that question, i could transform this way an use it in that mod.

Do you have any idea ?

,
=D_17
Minatajah
Registered User
Posts: 5
Joined: Fri Sep 21, 2007 7:34 am

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by Minatajah »

Hi..

I've got a small problem here.. I've resently installed a mod in phpbb3 that allows a CURL-function to display mouseover tooltips when fed a bbcode ([char=]{text}[/char]. The bbcode itself works like a charm, but when I follow the instructions found here on adding the bbcode to the profile, I get this page when I navigate to a post on the forum (only posting a part of the error-"code" as all of it is not needed for you to reconize it.

Code: Select all

?php /** * * @package phpBB3 * @version $Id: viewtopic.php,v 1.513 2007/11/06 00:05:53 kellanved Exp $ * @copyright (c) 2005 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); include($phpbb_root_path . 'includes/bbcode.' . $phpEx); // char-in-profile include_once($phpbb_root_path . 'includes/functions_content.' . $phpEx); // char-in-profile-off // Start session management $user->session_begin(); $auth->acl($user->data); // Initial var setup $forum_id = request_var('f', 0); $topic_id = request_var('t', 0); $post_id = request_var('p', 0); $voted_id = request_var('vote_id', array('' => 0)); $start = request_var('start', 0); $view = request_var('view', ''); $sort_days = request_var('st', ((!empty($user->data['user_post_show_days'])) ? 
In short, it would appear that the php is no longer translated as php, as that is the script of viewtopic.php.

You can see the intended function here:
http://armory.deluxe-board.com/forum/vi ... &sk=t&sd=a

I did as instructed on page one (unless I misunderstood very simple things) and then went and added a custom profile field:
(single_text_field)
(display profile field: yes)
(required field: yes)
(default value: [char=]{TEXT}[char])



so.. does anyone know what went wrong? :(
User avatar
trefex
Registered User
Posts: 112
Joined: Sun Apr 24, 2005 3:08 pm
Name: Christophe Trefois

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by trefex »

It looks in that file you don't have the "<" at the beginning. Every php file should start with <?php and not simply ?php

Does this help ?
Trefex
xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by xxxgamer »

Very nice mod. Thank you very much :)
xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by xxxgamer »

Hey mate do you know how to get this working for standard profile fields like the "interests" field?
Please help me :S
User avatar
trefex
Registered User
Posts: 112
Joined: Sun Apr 24, 2005 3:08 pm
Name: Christophe Trefois

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by trefex »

Hey,

I got your pm but didn't get a chance to look at it yet :?
Trefex
xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by xxxgamer »

Ah ok cool. Let me know if you have any news :)
xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by xxxgamer »

Hey mate any news on getting it to work on standard profiles? :)
moustafamin
Registered User
Posts: 230
Joined: Thu Aug 30, 2007 8:10 am

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by moustafamin »

i can't wait this
User avatar
trefex
Registered User
Posts: 112
Joined: Sun Apr 24, 2005 3:08 pm
Name: Christophe Trefois

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by trefex »

Ok will def. look into it this week then :)
Trefex
timmo
Registered User
Posts: 45
Joined: Mon Apr 21, 2008 11:09 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by timmo »

is it ready for the RC?
hasibauz
Registered User
Posts: 1
Joined: Sat Jun 07, 2008 12:08 pm

Re: [Beta] Parse BBCode in Custom Profile Fields

Post by hasibauz »

perfect mod. thank you.

is there a way to parse the tags on the 'members' page also?

Return to “[3.0.x] MODs in Development”