Custom BBCode

Started by Sarke, March 03, 2007, 02:40:26 PM

Previous topic - Next topic

Chen Zhen

Quote from: snyperthugs on June 03, 2010, 03:35:50 AM
I installed this but no new tab shows up in Features and Options

That's because it's under 'Modification Settings' ...

Admin / Modification Settings / Custom BBC


My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

codevarun

Quote from: 01_Underdog on May 31, 2010, 03:21:49 PM
Quote from: codevarun on May 29, 2010, 08:38:30 AM
Thanks a millions..

You're welcome.  I use it myself so I edited the RC1.2 version to work for people using RC3.
Like I said.. it needs more editing though... the info fed into the array for the db settings (and the settings display itself) needs to be re-written properly.

However,  it works, displays and is smf error free.


UD
I am using this in www.Fu      ckedUpSystems.com
working like a charm ...

if need editing then we shall wait for nice version
PS: its working fine then why reediting?
Join: http://www.helponrelation.com/forum/

LETS HELP OTHERS

Chen Zhen

#242
Quote from: codevarun on June 06, 2010, 07:14:04 AM
I am using this in www.Fu      ckedUpSystems.com
working like a charm ...

if need editing then we shall wait for nice version
PS: its working fine then why reediting?

I want to add permissions to each bbc so for example an admin can reserve certain bbc for his/her own posts.
... but I am extremely busy with my own mods atm. This works fine for now.
   

UD

My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

cleftangels

one problem I get is if the bbcode is entered incorrectly is I get the following error:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/cleftang/public_html/Sources/CustomBBCode.php on line 17

I then have to go into my MYSQL DB ant remove the bbcode before my board will operate again

cleftangels

Here is a nice spolier code I got working. The user must press the spoiler button and it will unfold to show what was hidden works with text and pics!


<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{content}</div></div></div>

Kazna

I want to manually install this mod on my forum (because i'm using free host it doesnot allow FTP access to edit the files). When i followed the instruction here i cant find ./Sources/ModSettings.php anywhere. I'm using 2.0 RC3. Am I missing something?

Chen Zhen

Quote from: Kazna on August 01, 2010, 11:25:36 AM
I want to manually install this mod on my forum (because i'm using free host it doesnot allow FTP access to edit the files). When i followed the instruction here i cant find ./Sources/ModSettings.php anywhere. I'm using 2.0 RC3. Am I missing something?

Install the version attached to this post: http://www.simplemachines.org/community/index.php?topic=154997.msg2646955#msg2646955

My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Nuks

Thanks -Underdog-, working fine on my RC3 :)

Chen Zhen

Quote from: Nuks on October 06, 2010, 07:16:47 AM
Thanks -Underdog-, working fine on my RC3 :)

No probs.

Imao - it's a lot better then manually adding them or installing single bb code packages.



My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Goss

#249
I had this working just fine on my SMF 2.0 RC3 board.  I just upgraded to RC4 and tried to reinstall.  The bbcode I already had in there seems to work fine on the board, but whenever I go into any of the Admin -> Configuration options I get the following fatal error:

QuoteFatal error: Cannot redeclare modifycustombbcodesettings() (previously declared in ...forum/Sources/ManageSettings.php:2055) in ...forum/Sources/ManageSettings.php on line 2075

The error goes away if I uninstall though.

Edit: Oh, nevermind, I fixed it.  The following code had somehow been input twice into ManageSettings.php
function ModifyCustomBBCodeSettings()
{
global $sourcedir;

require_once $sourcedir . '/CustomBBCode.php';

if (!empty($_GET['tag']))
EditCustomTag($_GET['tag']);
else
BrowseCustomTags();
}


I just removed one of the copies and everything is fine now. 

KensonPlays

This really needs an official SMF 2.0RC4 update, not the RC3 unofficial update (it works for me for rc4).

One more thing: How to add an image, I don't see a setting to point to an image, how to make an image for a BBcode?

Owner of Mesozoic Haven

Chen Zhen

#251
Quote from: Kcmartz on November 08, 2010, 10:31:39 AM
This really needs an official SMF 2.0RC4 update, not the RC3 unofficial update (it works for me for rc4).

One more thing: How to add an image, I don't see a setting to point to an image, how to make an image for a BBcode?

The SMF 2.0 RC4 install is attached.
I am unable to contact the author regarding updating the original post.

It has been fixed to smf guideline as far as I can tell.
If someone with authority here wants to test and attach it to the OP,  be my guest imao.

The package has been edited properly for SMF 2 (rc3, rc4) but I did not adjust any code for the smf 1 install except for the install file..

it will work for smf 1.1.12 but the settings display template is still improper for that version as before.





quote from what is displayed during installation btw:

Quote
To add a button to a custom tag, enable the "Button" option for the tag, and upload tagname.gif (where "tagname" is the tag name) in the  Themes/ALL_THEMES/images/bbc  directory.  The image should be approx. 23 x 22 GIF with a transparent background.

.. in all of your themes image directory



My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

KensonPlays

thanks UD. if there was a way to pik image thru admin that would be nice. but I don't mind as long as I have FTP!

Owner of Mesozoic Haven

Melissa524

Hey can someone help me out on how to make BB codes.  For example, I want to make a create a bbcode that will allow linking to a member with only using the member idea.  IE action=profile;u=1---> All you would have to do 1, but I need it to look like this "<tag=user #>{content}</tag>"  Does that make sense?
In case, I forget to say.  I am using 2.0.2

NanoSector

#254
Quote from: Melissa524 on January 04, 2011, 03:32:21 PM
Hey can someone help me out on how to make BB codes.  For example, I want to make a create a bbcode that will allow linking to a member with only using the member idea.  IE action=profile;u=1---> All you would have to do 1, but I need it to look like this "<tag=user #>{content}</tag>"  Does that make sense?
...I don't get it.

You could do something like this:
Code (BBCode Tag) Select
[userid={input}]{content}[/userid]

Code (HTML code) Select
<a href="'.$scripturl.'?action=profile;u={input}">{content}</a>
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Melissa524

I want to put "http://www.simplemachines.org/community/index.php?action=profile;u=" That as already part of a bb code so you don't have to put it all in

[url=http://www.simplemachines.org/community/index.php?action=profile;u=258497]me[/url]


So instead of using the whole url you just have to enter

[bio=258497 ] Me[/bio]


I tried what you got above but when I use the code in a post it just says. "The following error or errors occurred while posting this message: The message body was left empty." 

SO I am not sure what I am doing wrong.

In case, I forget to say.  I am using 2.0.2

Chen Zhen


When using a BBCODE in your posts you must also include some other content in the message body.
You can not just post a bbcode and nothing else or you will receive that error and it will not allow you to make the post.



My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

NanoSector

Quote from: Melissa524 on January 04, 2011, 03:44:16 PM
I want to put "http://www.simplemachines.org/community/index.php?action=profile;u=" That as already part of a bb code so you don't have to put it all in

[url=http://www.simplemachines.org/community/index.php?action=profile;u=258497]me[/url]


So instead of using the whole url you just have to enter

[bio=258497 ] Me[/bio]


I tried what you got above but when I use the code in a post it just says. "The following error or errors occurred while posting this message: The message body was left empty." 

SO I am not sure what I am doing wrong.
It works fine on my forum.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Jessica.

how do you make an image 23 x 22 :/
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Arantor

With an image editor like GIMP?
Holder of controversial views, all of which my own.


Advertisement: