Dream Portal is a portal system designed to function with Simple Machines Forum (aka SMF).

It allows you to easily manage your site and webpages in an SMF environment. Place Modules on different actions and non-actions of your SMF forum using a simple drag-and-drop approach. Users can also create and save multiple layouts by name and assign pages to any layout(s). Bundled with Dream Pages and Dream Menu helps put the power and ease of customizing your SMF forum right at your fingertips.

Dream Portal allows you the ability to easily customize your SMF forum and site with many different possibilities helping to make customization truly what dreams are made of!

DreamPortal1.0.5.zip
File size: 221KB
Download count: 1662
DreamPortal1.0.5.tar.gz
File size: 176KB
Download count: 159
Download
Hello, Guest
Please login or register.

 
 
 

Did you miss your activation email?

Re: Menübutton lassen sich nicht löschen.
Last Poster: Tony_R in German on May 14, 2012, 10:18:03 AM


hat mir auch geholfen, vielen dank !

Re: Sologhost went mad. Check this fast!
Last Poster: ThoTh in Chit Chat on May 13, 2012, 03:07:02 PM


Congrats :D

Re: Think I have Everything I need
Last Poster: SoLoGHoST in Chit Chat on May 09, 2012, 01:36:37 PM



Your Recent Image Attachments...
Last Poster: SoLoGHoST in Team Blog on May 07, 2012, 04:13:46 AM


Well, just thought I'd let you all know of the ability to see your 15 most recent image attachments

Re: Inspire Romance
Last Poster: SoLoGHoST in Website Showcase on May 03, 2012, 12:34:22 PM


Looks great!! :)

Author Topic: Parameter Type Request  (Read 303 times)

0 Members and 1 Guest are viewing this topic.

Xarcell

  • Project Manager
  • Constant Sleeper
  • *
  • Posts: 1081
  • Dreamy
Parameter Type Request
« on: December 21, 2011, 05:43:39 PM »
You have the HTML parameter type, why not add the BBC type?
#1
*
SoLoGHoST
  • Constant Sleeper
  • Posts: 2081
Re: Parameter Type Request - December 21, 2011, 08:29:03 PM
Because this is a piece of cake for any coder.  You can simply use:  parse_bbc($code) on the code and it will be parsed as bbc.  This is more of a coding decision.  IMHO, wouldn't make much sense as a BBC parameter type, unless we added in the BBC Editor, which I already stated is FLAWED in SMF and unable to be duplicated because the SMF js file that handles this uses id attributes that are not unique and would cause errors on multiple instances of this parameter, unless we modified SMF's js code, which Dream Portal isn't going to get involved in right now.

Honestly, the HTML parameter shouldn't even be used as this has been replaced with the rich_edit parameter type and should use this instead.  I coded in the HTML way back in the day and meant to remove it once I added in the rich_edit parameter type.  Still am considering on removing the HTML parameter type completely as it's just about useless and ugly IMHO.
Last Edit: December 21, 2011, 08:52:12 PM by SoLoGHoST

#2
*
Xarcell
  • Constant Sleeper
  • Posts: 1081
Re: Parameter Type Request - December 21, 2011, 09:25:14 PM
When you say "parse_bbc($code) on the code", can you give a brief example?

#3
*
SoLoGHoST
  • Constant Sleeper
  • Posts: 2081
Re: Parameter Type Request - December 21, 2011, 11:08:52 PM
Sure, here's a quick example:
Code: [Select]
$output = parse_bbc('[b]Bold Text[/b]');

echo $output;

$code represents the actual string, including bbc tags.  Ofcourse, you really don't even need a variable, the actual bbc will work also, but most likely, this will be coming from a $params variable within your modules instead of $code, but you can even set a default for this.  For example, if you have a parameter named "bbc_code" (perhaps using the rich_edit parameter type, or html)...

Code: [Select]

$code = !empty($params['bbc_code']) ? $params['bbc_code'] : 'Message is [b]Left Empty![/b]';
echo parse_bbc($code);

So, if the user doesn't type anything into the parameter settings for this, the default message will be:

Message is Left Empty!
Last Edit: December 21, 2011, 11:14:11 PM by SoLoGHoST


 

SHOUTBOX NOT FOR SUPPORT!

 Forum Staff