Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=621)
This MOD adds the ability to create custom BBCode for your forum. It will show up as a tab in "Features and Options".
To add a button to a custom tag, enable the "Add button" option for the tag, and upload tagname.gif (where "tagname" is the tag name) in the Themes/default/images/bbc directory. The image should be a 23 x 22 GIF with transparent background.
As always, I'm open to feedback and improvement ideas.
Changelog:
2.00 (Feb 04, 2007)
- Major rewrite.
- New settings interface.
- Support for parsing inside tags (nested tags).
- Support for different tags with the same name.
- Some other smaller stuff.
1.02 (Jan 12, 2007)
- Fixed bug from 1.01 where buttons didn't close some tags.
1.01 (Jan 12, 2007)
- Button support.
1.00 (Jan 10, 2007)
- Initial release.
Thank you Sarke,
First of all I like to say that I had no problems with the installation of the MOD.
Secondly this is a very useful MOD. :)
I like to see the possibility for another {option} e.g. height="{option1}" width="{option2}"
-Leonard C
Thanks!
I'm planning on implementing more options in a comming version.
I'm having a bit of trouble with your latest version installing into SMF 1.1.2.
I have it installed and it is working correctly save for 2 problems.
when creating a new BBCode
First in the it is using the Tag Name to both identify the tag and and gets put in the [ ] area. So if I put "test" in the Tag Name box on my post reply screen it generates [test][/test] and ignores the HTML replacement.
Second issue is I have a gif file in my Themes/default/images/bbc directory by the name of test.gif but it isn't showing up at all in the Post Reply box.
Example: (I have this one created)
Tag Name: test
Description: Red Text
Tag Type: [tag]content[/tag]
Parsing enclosed BBCode: (no parsing)
Trim whitespace: (no trim)
Blocklevel: Unchecked
HTML used for this tag: <font color=red>{content}</font>
When I save that on the custom BBCode list I see:
Tag | BBCode | Enabled | Button | Delete |
Test | [test]{content}[/test] | checked | checked | unchecked |
Then on my post reply screen when creating a reply I see a broken link for a box and if I hover over the broken link I get "Red Text" and when I click it in the dialog box I get [test][/test]
WifiGamer, are you using the default theme? And it doesn't show the red text even after the post has been submitted?
No I'm using another theme. I did figure it out. I realized why it says Test in the tags. And I'm not sure why it didn't work the first time I moved the test.gif file into the */bbc directory of my theme that I'm using but it's showing up now?
Strange. anyhow.. thank you for you response and sorry for the confusion.
This is what I get for modifying the board late at night.
The image problem might have been because you put it in the default theme by mistake, or a browser caching issue.
The first one I'm not sure, maybe you forgot to enable the tag? :P
Hello!
I use smf in French version and with Dilber theme.
I installed the mod but don't find it anymhere in features and options page.
could you help me?
Thanks
You'll need to switch to English, or translate the mod's language tags in Modifications.english.php
I have not installed this yet... but just trying to understand exactly what it does.. what i want to make is the ability for the users to add an IFRAME to the post... so what i be able to do this with your Custom BBCODE? just want to know if i am understanding what this add on does...
thanks...
rick
Yes, it let's you make your own BBCode.
alright thanks as i will give a try...
thanks for the input.. and i will let you know how it goes
regards
rick
Hey uh...
I'm not seeing the new tab in "Features and Options"
It's just no there? Does anyone know why?
I'm using English, in the default theme, and I didn't get any error while installing. It just not there... ???
Do you get anything when you go to index.php?action=featuresettings;sa=custombbc
Nope. All I get is the Features and Settings screen... without the Custom BBC Code. It's a real bummer too. I really would like to use this Mod.
The mod was never installed for some reason then... try again.
Another mod is probably interfering with it.
I've tried again, and I had the same thing happen.
No errors, but there is no new section none the less.
>:( Need that mod! >:(
*Kicks Computer*
Quote from: Resident Geek on April 02, 2007, 04:10:06 PM
I've tried again, and I had the same thing happen.
No errors, but there is no new section none the less.
>:( Need that mod! >:(
*Kicks Computer*
I encountered this same problem and I re-tried like 10 times already, same thing, no new section ...
During the package installation I got successful test for all. During the package uninstall, 2 test failed ..
Help please thanks!
I'm not sure why this is, it only happens to some people. It's probably another mod that is interfering with it.
Looks like there's a bug in SMF as well that says it installs when infact it does.
I'm not sure why this is happening, because I can't reproduce the problem for myself because it works fine on a default install. Maybe if you both post which mods you have installed and we can see which ones are common to both.
Try installing it manually using: http://modparser.dev.dansoftaustralia.net/
i had this same problem all i did to fix it was uninstall all the themes that affected Modifications.english.php and then installed it and that fixed it!
Were you able to reinstall the themes afterwards? Removing my theme permanently is not an option.
I think the problem is with permission, try to chmod 0777 on the files/folders the package trying to modified. It seems to work for me.
I'll try that...
Hurray! That did it.
I'd create some sort of fix for that Sarke.
Just out of curiousity... Do those that have been having this problem happen to run on a windows server?
umm... i think i use a windows server.
It may be that this mod just doesn't like windows servers for some reason. Maybe some special security thing with Windows servers? I don't know. I'm just glad that I have it working now.
how would one use this for youtube? is there some manual to this that I am missing?
The way it works is, you put in a bunch of HTML code with {content} inside of it for where you want the user input to go in the code.
When they use the BBC tag, whatever is inside of the tag, replaces the {content} part of your HTML code, and it executes it.
For example:
To create a highlight tag, your HTML would look like this:
<span style="background-color: #FFFFFF">{content}</span>
This would highlight the text inside of the tags white.
Hope this helps.
error after install this mod
QuoteFatal error: Cannot redeclare modifycustombbcodesettings() (previously declared in /home/farmaceu/public_html/forum/Sources/ModSettings.php:693) in /home/farmaceu/public_html/forum/Sources/ModSettings.php on line 703
I persume that problem is with simple blog mod that i have installed too .
there is my modsettings.php in attachment
The fatal error shows that you're trying to install the same mod twice over...you need to do a manual install fixing the files so that the mod is installed but only once...see a previous posting where Sarke has been good enough to point a user to the package parser.
Quote
Try installing it manually using: http://modparser.dev.dansoftaustralia.net/
oh my god, you are right! :-[
thanx
just like to say that i have been looking for this mod and it works great. here's what i did with it so far:
<tag><strong>SPOILER:</strong><span style="background-color: #FFFFFF; color: #FFFFFF;">{content}</span></tag>
this is my spoiler tag. when someone is posting plot information about a movie or show they can use the spoiler tag to hide the spoiler text. if you can't tell how it works from the html code, it makes the {content} text white on a white background, making it unreadable, and puts the word SPOILER: in bold before the text. you just select the text manually by click dragging your mouse over the text. now people are safe to read reviews or whatever without having the whole thing spoiled for them, or they can read it if they want.
The following Code shoud into a tag called "new"
[B][color=blue]N [/color][/B]
the result is: N
how can i do this with Custom BBCode?
Quote from: ltdeta on May 28, 2007, 10:07:40 AM
The following Code shoud into a tag called "new"
[B][color=blue]N [/color][/B]
the result is: N
how can i do this with Custom BBCode?
If I understood what you wanted I might be able to help...please rephrase your request. Do you want the text in the new tags to be turned blue...if so you don't need a custom tag as the colour can be selected in the normal posting system.
yes, but is it possible ?
it is only an example , because no BBCode is parsed into the tag
Quote from: ltdeta on May 28, 2007, 03:07:21 PM
yes, but is it possible ?
it is only an example , because no BBCode is parsed into the tag
Possible but pointless...use...
<span style="color: #0000FF">{content}</span>
Call the tag "new"...thus if you post [new]{content}[/new] you will, indeed, get the content in the tags to be displayed in blue. If you want to put it in bold as well then...
[b][new]{content}[/new][/b]
*edited to show bold as an option each time you use the tag or use Sarke's version in the next post for it to be in bold every time the tag is used
What TrueSatan said, but if you want to do blue and bold, use this for the HTML:
<span style="color: #0000FF; font-weight: bold;">{content}</span>
I've used this mod (an excellent mod BTW and thank you for producing it) to add quite a number of custom BBC items to my forums and have worked off of an old mod to display them hard coded in Post.template.php (the old mod is TagMenu by AzaToth...the mod is now obsolete but the code in it can still be of use...to me anyhow.)
I've been thinking about modding your mod such that the new tags made using it appear in Post.template.php as a drop down automatically without having to hard code them in to the array one by one...I haven't begun work on this yet but thought I'm share the idea with you and see what your thoughts on it might be.
Quote from: TrueSatan on May 29, 2007, 05:51:30 AM
I've used this mod (an excellent mod BTW and thank you for producing it) to add quite a number of custom BBC items to my forums and have worked off of an old mod to display them hard coded in Post.template.php (the old mod is TagMenu by AzaToth...the mod is now obsolete but the code in it can still be of use...to me anyhow.)
I've been thinking about modding your mod such that the new tags made using it appear in Post.template.php as a drop down automatically without having to hard code them in to the array one by one...I haven't begun work on this yet but thought I'm share the idea with you and see what your thoughts on it might be.
Thanks.
I'm not quite sure what you mean though, are you talking about replacing the buttons for the BBCode with a dropdown list?
No...only having in the drop down those tags that don't have a button. Your mod is just too useful and I've got rather a lot of tags as a result and so I don't show all of them with buttons...it would hit page load speeds and be rather overwhelming if I did.
The old mod I mentioned did something similar...it had a drop down titled "more tags" and hard coded the array for it. I'd much prefer to avoid hard coding each tag into an array and rather than that would prefer it if the mod were to pick those tags that don't have a button and put them in the drop down. Having all tags in a drop down wouldn't be a major hardship but a division between those with a button displayed as normal and those without one in the drop down would be better.
Ah I see what you're saying now. It wouldn't be too hard to pull of. I should be able to do that for the next version (a little busy today, but maybe tomorrow).
Thanks...much appreciated. I know all too well the time pressures helping here puts on one so I won't hassle you about it.
Great mod!! Using it right now, very cool 8)
But how can i find out custom bbc codes for example: Myspace video's?
Thnx :)
I tried to add the code within this mod:
<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=1280088108&type=video&cp=1" type="application/x-shockwave-flash" width="430" height="346"></embed><
But when i take out this part:
flashvars="m=1280088108&type=video&cp=1"
it gives a error when i try to play a video... ???
What should i modify to make it work?
Edit//
It works!! Add the following code as a custom bbc:
<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m={content}&type=video"" type="application/x-shockwave-flash" width="430" height="346"></embed>
Me so silly >:(
I am unable to get the Custom BBCode MOD to work. Here is my scenario:
SMF 1.1.2
Settings:
Tag Name: GoogleIMG
Description: Find Google Images
_______________________________
Tag type: [tag]content[/tag]
Parse enclosed BBCode: content only
Trim whitespace: (no trim)
Block level: uncheck
_______________________________
The HTML used for the tag:
<a href="http://images.google.com/images?q={content}" target="_blank">{content}</a>
The post in the forum is:
[GoogleIMG]Fish[/GoogleIMG]
Result:
{content} (http://images.google.com/images?q=fish)
The link works but the link name will not show the word "Fish".
I could be missing something totally obvious...any thoughts?
debatepro, change "Parse enclosed BBCode" to "(no parsing)".
You don't know how many combinations I tried with all the settings to figure out what I was doing wrong. Thank you so much! World class support!!! Even for user error!!!
QuoteHow would I used this mod to simply wrap an embed code in BBC html codes, or something else that would work?
I would like for my members to simply be able to copy and past embed code in, highlight it, and click a button.
Thanks
EDIT: NO NEED FOR THIS NOW THANKS TO KARLBENSON'S AUTO-EMBED VIDEO CLIP MOD
Quote from: weightman on July 05, 2007, 10:32:05 PM
How would I used this mod to simply wrap an embed code in BBC html codes, or something else that would work?
I would like for my members to simply be able to copy and past embed code in, highlight it, and click a button.
Thanks
Are you sure you want to do that? It opens a big can of worms because members could post all sorts of nasty code.
I think it would be a great idea for people to donate their costum BBC Codes and buttons.
I'll Start
Windows Media Palyer (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.racehorsetalk.com.au%2FThemes%2Forange-lt07%2Fimages%2Fbbc%2Fmediaplayer.gif&hash=b89272758d0fa8629e7bac80abbee3464489b03b)
<center><object id="MediaPlayer" width=320 height=286 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<param name="filename" value="{content}">
<param name="Showcontrols" value="True">
<param name="autoStart" value="True">
<embed type="application/x-mplayer2" src="{content}" name="MediaPlayer" width=320 height=240></embed>
</object></center>
YouTube (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.racehorsetalk.com.au%2FThemes%2Forange-lt07%2Fimages%2Fbbc%2Fyoutube.gif&hash=e5de27013992d70d91c6c116f23ac6b1abff5561)
<center><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{content}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></center>
from error log
Quote8: Undefined index: customBBCode_tabtitle
Datoteka: /home/farmaceu/public_html/forum/Sources/ModSettings.php
Line: 148
Great Mod... I needed something to link items from the curse gaming site.
I was able to use this mod with the following
<script type="text/javascript" src="http://www-en.curse-gaming.com/feeds/tooltips/7/{content}/tooltip.js"></script>
Thanks!! 8)
I assume this works for 1.1.3? I'm running the default theme.
Thanks!
I can't get either of the spoiler mods to work with 1.1.3, so I wrote it with Custom BBCode and it works great.
Here's what I did.
I inserted this into the CSS of the skin I am using:
/* A spoiler. */
.spoiler
{
color: #F1F1F1;
background-color: #F1F1F1;
border: 1px solid #000000;
margin: 1px;
padding: 1px;
font-size: x-small;
line-height: 1.4em;
Then I put this in the BBCode creation area:
Tag name: spoiler
HTML:
<div class="quoteheader">Spoiler</div><div class="spoiler">{content}</div>
Quote from: Matthew Schenker on July 19, 2007, 10:35:45 AM
I assume this works for 1.1.3? I'm running the default theme.
Thanks!
It does indeed Matthew!
Hello,
Can anyone give me an example how to add iframe tag like [iframe]www.any-link[/iframe].
Thank you!
This is what i did for my Iframe
<table width="100%" cellspacing="0" cellpadding="0" style="height:650px"><tr valign="top"><td> <IFRAME SRC="{content}" WIDTH=100% HEIGHT=600> </IFRAME></P></td></tr></table>
Quote from: JaGuR123 on August 04, 2007, 06:19:01 PM
This is what i did for my Iframe
<table width="100%" cellspacing="0" cellpadding="0" style="height:650px"><tr valign="top"><td> <IFRAME SRC="{content}" WIDTH=100% HEIGHT=600> </IFRAME></P></td></tr></table>
Just Perfect - thanks a lot!
I added the blink tag
<blink>{content}</blink>
:-*
a gif ;D
Hi,
I think I have this installed correctly :) I'm interested in trying to get Gametrailers movies to show up on my site. The following is the code they give you to embed:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=23277"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=23277" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>
But I'm unsure on how to go about this. From what I can work it 23277 is the unique number for the movie but all my attempts so far haven fallen flat on their face.
This movie is the top selection on this page:
http://www.gametrailers.com/game/4131.html
Any help appreciated.
Thanks
Is it possible to use php code in the custom BBC?
I'm not great with PHP so I can't make my own BBC code outside this (currently, but i'll learn if i have to)
Right now I'm trying to make a BBC code which checks a user's status as a member, and if they're not logged in they can't read the {content} in the BBC code, and if they are logged in, they can.
Is that possible???
It's not possible with this mod as it is.
Should this mod work with SMF 1.1.3? I tried to download it thru the Packages tool, and it gave me an error message. I uninstalled it, reinstalled it, and it seemed to take, but when I go to find the tab to create a new code, there's just a small space between Layout & Options and Karma, but it can't be clicked.
When I manually put index.php?action=featuresettings;sa=custombbc, I can see the option to add a new tag, but when I click on it I get a page that has no labels for its text fields and menus, plus about six or seven error codes in my log.
I was just going to ask if it was compatible with 1.1.3, as i need a [mod][/mod] bb code. looks like i got my answer from the post above ^ lol
Yes it is compatable with 1.13 , i am using it very successfully on my forum www.racehorsetalk.com.au
Should I post the error codes that are showing up in my log?
my friend the problem is simply with your language file.....
a way to make it appear is to download the modoifications.english.php with the utf8 format and upload it....
or the shortcut could be just go to ur server settings and change the language to english.php
Ahhhh....took me a while to understand what you were talking about, but here's how I fixed it in case anyone else needs help later:
go to modifications.english.php and copy the contents into modifications.english-utf8.php and save.
Ok, new problem....I can't get the Custom BBC to do what I want :(
Here's the idea:
There's a mod where I added/tweaked the following in my subs.php:
array(
'tag' => 'tex',
'type' => 'unparsed_content',
'content' => '<img src="http://www.calculusabc.com/cgi-bin/mimetex.cgi?$1" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
and put the mimetex.cgi in my cgi-bin directory, so if I type
[tex]c=\sqrt{a^2 + b^2}[/tex]
my users will see (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.calculusabc.com%2Fcgi-bin%2Fmimetex.cgi%3Fc%3D%255Csqrt%257Ba%255E2%2520%2Bb%255E2%257D&hash=31ecf6f9350304e6ea2aaa0771fe9bcb35409bea)
I wanted to create a set of buttons that would allow users to create custom equations, similar to what you find at http://test.izyba.com/equationeditor/equationeditor.php (http://test.izyba.com/equationeditor/equationeditor.php)
I tried creating the custom code [math] so that I could have a custom button:
Tag type [tag]{content}[/tag]
Parse enclosed BBCode: no parsing
Trim whitespace: inside
Block level: unchecked
HTML: <img src="http://www.calculusabc.com/cgi-bin/mimetex.cgi?{content}" />
but when I tried to use it all I would see is [math]{content}[/math] in the post, instead of the pretty equation. I tried playing with some of the options, but if anyone can quickly see my problem I'd appreciate any pointers!
Thanks.
Never mind...I figured out how to directly edit the post.template.php file, so I can do what I need to do w/o going thru the custom bbc mod.
This is such a great MOD and very very close to what I am needing.
I do have a question and maybe someone can offer a suggestion or solution.
My question is....
Can I use php code so that I can display specific user data of the logged in viewer who is reading the post?
I would like to create personalization tags and I would set them as admin permission so that only I can use certain tags (I have a bbc permission mod)
For instance I might write a news post and address it to [FNAME] within the post and when Joe reads it he sees his name and Sue reads it she sees her name.
If this isnt set up to use php in that html area of the mod can someone add in a option so that we may fill in one form or the other (html or php).
Next I would like to say that the suggestion for people to share their creative ways they are using the custom bbc mod is great and would be awesome if more would post their bbc buttons.
Lastly can someone post here any php code snippet examples of what I would use when a php option comes available for me to create a first name, last name, and username tag?
Hopefully I can see and understand from those examples how to create more userdata tags
Thanks again for a great mod and I appreciate any assistance anyone can offer.
Richard Wing
I forgot to ask...
In the Tag Type drop down would I just create the tags I want using the plain [tag] option to print user data in place of that tag.
Also another comment. once we can use php for these tags we could create some really cool self updating posts.. the possibilities are endless.
Next I hope there is a messaging mod to be able to do this with the PM system.
Thanks again.
Richard Wing
Hello There!
Should this mod work with SMF 1.1.4 ?
Thanks!
Sarke , this mod can work in smf 1.1.4?
It is advisable for you to have a spare test forum to try things out on prior to putting them on your main forum and had you had one you could have simply tried the mod for yourself and answered your own question...it works perfectly on SMF 1.1.4
I downloaded this MOD and installed it. Well How do I add BBC code. Can some one please HELP. How and what do I enter. Or is there a mod that already has them in.
Thanks
I will pay to have this mod so that it will also allow for php when making the bbc codes since now it only allows you to use html.
Thanks,
Richard Wing
I have added many tags. How do I get them to move down to the next row on the editor. Every tag I add adds it to the end of the same row and its creating a scroll bar at the bottom of the browser.
Would anyone know how to fix that?
Thanks,
Richard Wing
QuoteTo add a button to a custom tag, enable the "Add button" option for the tag,
where exactly i shooed enable this?
Can it be for only admins/moderators?
pcsimke ,
Features And Options, On the main Custom BBC admin area after you create the new tag.
Mr Cowboy,
There is a BBC permissions mod that will allow you to permission each tag.
Richard Wing
ok RichardWing i ll try it soon..
Thank you ;)
I have added many tags. How do I get them to move down to the next row on the editor. Every tag I add adds it to the end of the same row and its creating a scroll bar at the bottom of the browser.
Can someone look at the post.template.php and tell me how to fix the custom bbc codes I create wrap when they are supposed to?
They wrap in FF but in IE7 they stay in one row.
Would anyone know how to fix that?
Thanks,
Richard Wing
Is there a chance that I can get help on how to use custom BBC. I'm real new at this so any help would be great
All I need are samples of how to add my custom code or is the a BBC mod that already has the BBC code built in
Thanks
Hi, I'm trying to add an [ol] tag that will mimic the <ol> HTML tag, but I can't get it to work. Here's the farthest I've gotten:
Tag name: ol
Description: Ordered List
Tag type: [tag=option]content[/tag]
Parse enclosed BBCode: (no parsing)
Trim whitespace: (no trim)
Block level: Unchecked
The HTML used for the tag: <tag alt={option}><ol style="list-style-type: {option}"><li>{content}</li></ol></tag>
If I type [ol=decimal]stuff[/ol] It will display an ordered list with decimals, but only that one item, I can't figure out how to get more than one item.
I sorry I wish I could help. I'm still trying to get some one to give me some samples so I can get some more in mine right now. Who knows some one mite know
I want use this mod for SMF newest version 1.1.4.
Because it 's cool mod: easy to share media, flash...
But only use with SMF 1.1
Help me. It 's good mod for all !
I am trying to make a custom quote bbcode, but cant seem to get the quote box. here is my code.
<blockquote class="uncited"><div><img src="http://deathknight.info/blizz.gif" alt="Image" /> Source: Blizzard Official<br /><br /><span style="color: #4080FF"><b> {content}</b></span></div></blockquote>
I am just trying to get my text in blue with a small .gif as the header with a quote box around it all. anyone have any clue where i am going wrong?
nevermind i fixed it, was using the wrong class
Sorry. I have no idea. I just under stand your reason for all that extra code
<blockquote> <div class="text1"> Something here</div> <div class="image1"><img src="image/image.gif"></div></blockquote>
Try and make it simple. Then when you have it working, Then add more options to it. And if you want to change the color. Do it from the style sheet.
I got it working, here is what it does
http://deathknight.info/index.php?topic=250.msg5500;topicseen#new
I created a new class with a set background color and font size/style
then i can make several quote bbcodes using this classs with each code having its own font color.
Cool. Good luck with your project
Hello,
In spite of having followed the information regarding the language files (for BBCode not showing up under Features and Options) I am still only getting the blank space between "Layout and Options" and "Karma". Same thing with using the code to directly access the BBCode CP. The options come up but everything is blank. I am on SMF 1.1.4 using the Wowdk_114v1 theme. I have copied Modifications.english.php to Modifications.english-utf8.php in both the Default and wowdk_114v1 language directories. Here is the directory listing for both directories: (Linux System)
[root@MyBox languages]#pwd
yaddayaddayadda/forum/Themes/wowdk_114v1/languages
[root@MyBox languages]# ls
Modifications.english.php Modifications.english-utf8.php Settings.english.php
[root@MyBox languages]# pwd
Yaddayaddayadaa/forum/Themes/default/languages
[root@MyBoxlanguages]# ls
Admin.english.php index.english.php ManageMembers.english.php Modifications.english.php~ Post.english.php Stats.english.php
Admin.english.php~ Install.english.php ManagePermissions.english.php Modifications.english-utf8.php Profile.english.php Themes.english.php
Errors.english.php Login.english.php ManageSmileys.english.php ModSettings.english.php Reports.english.php Who.english.php
Help.english.php ManageBoards.english.php Manual.english.php Packages.english.php Search.english.php Wireless.english.php
Help.english.php~ ManageCalendar.english.php Modifications.english.php PersonalMessage.english.php Settings.english.php
The contents of Modifications.english.php-utf8.php:
[root@MyBox languages]# cat Modifications.english-utf8.php
<?php
// Version: 1.1; Modifications
// Custom BBCode
$txt['customBBCode_tabtitle'] = 'Custom BBC';
$txt['customBBCode_tag'] = 'Tag name';
$txt['customBBCode_description'] = 'Description';
$txt['customBBCode_enable'] = 'Enable tag';
$txt['customBBCode_type'] = 'Tag type';
$txt['customBBCode_type_options'] = '[tag]content[tag]|[tag=option]content[tag]|[tag]';
$txt['customBBCode_trim'] = 'Trim whitespace';
$txt['customBBCode_trim_options'] = '(no trim)|inside|outside|both';
$txt['customBBCode_block_level'] = 'Block level';
$txt['customBBCode_button'] = 'Add button';
$txt['customBBCode_parse'] = 'Parse enclosed BBCode';
$txt['customBBCode_parse_options'] = '(no parsing)|content only|content and option';
$txt['customBBCode_text'] = 'The HTML used for the tag<div class="smalltext"><tag>{content}</tag></div><div class="smalltext"><tag alt={option}>{content}</tag></div>';
The error code I see in my forum logs:
8: Undefined index: customBBCode_tabtitle
File: /.../.../.../.../httpdocs/forum/Sources/ModSettings.php
Line: 142
I'm sure I'm just overlooking something really simple, and my frustration has got the best of me. Any guidance is greatly appreciated. :)
Sorry, Thats way over my head. You mite have to start a new topic on that one. Good luck
Hahaha. Well at least I'm not getting yelled at for not giving enough info. :D The the short of it is that I've got the exact same issue Resident Geek had on page one of this thread. Custom BBCode shows that it installed correctly, but I can't see it under Features and Options. There is a blank space where the tab should be. If I go to index.php?action=featuresettings;sa=custombbc, I get the BBCode "Add a tag" option, but all the drop down menus are blanked out. From what I understand, this problem is fixed by just copying the Modifications.english.php file to Modifications.english-utf8.php so that they are both exactly the same. I'm assuming this needs to be done only in the language directory of the theme you are using, and not in the default theme. I just wanted to confirm that I was understanding the Modifications.english-utf8.php fix correctly.
Well have you tried to uninstall and reinstall it again. Thats weard because I never had any problems installing it. May some thing happen when the install was coping files and it didn't copy the files right. I would try a new install.
Hey. If you find a highlighter for SMF 1.1.4, Let me know.
Good luck
Yeah. Removed all the unnecessary themes I had installed, and tried uninstalling and then reinstalling a few times. I think it's got to be something with that utf8 file since that was the fix for the others withs the same problem , but I just don't know how. :( Thanks for the suggestion though. Might jut be something with the Wow-DK theme. I'll try removing it and jsut using the default theme and then reinstalling the BBCode mod.
Well if you installed other things that relate to SMF. well maybe that were the problem is like you said. I would uninstall every thing back from when it was then you first installed it, and then try again. I do know that some mods will screw up other mods. So you mite want to give it a try too.
Good luck
So crazy, i installed this mod and i have error page 500. :(
@ Techmonkey and bigjoe11a
Better advice would be to swap out all your forum files for a fresh set...simply do a full files and database backup then get the latest SMF installation package and from that overwrite/replace all but the Attachments directory and Settings.php and Settings_bak.php in your forum root. Doing that will give a new set of files with no left over items from previous installs, uninstalls or other edits.
@ hclloveh
Please check to see that all the edits and additional files the mod seeks to produce are in place in your forum and that they aren't 0k in size...remedy as needed to put right any discrepancies.
Please use a test forum to trial a new to you mod or to sort out possible problems before putting it on your main forum(s).
Sounds like an error in the server or theres a error in the page.
I only install these mods:
Attachments Positioning
MessagePreviewOnHover
Maybe have problem with it ? :(
Thats what I was thinking from the start. There has to be an answer some where. Thats why I said to start from scratch
So the Mod itself hava a small bug, if you delete a tag sometimes it do not count the numbers correct and will end in a infinity loop ;).
So i add to this post a fix for this bug, because the author did not answer to the pm. (CustomBBCDeleteBug100.zip)
I programmed also two small extensions for the mod.
The first one is extension to parse quoted equals (It's usefull for user what like to use bbc in the equal tag the option). (CustomBBCQuoteExtend100.zip)
And the second one make it possible to use bbc also in the field "The HTML used for the tag". (CustomBBCExtendPreparse102.zip)
All extensions work only on a installed Version of the CustomBBC mod.
Hope it's usefull
Use on own risk ;).
Bye
DIN1031
Hi I'm trying to install the "indent" button.
I don't know what html code to put in the html code, and where do I upload the custom GIF?
Thanks for your patience. :)
Thanks everyone, but I figured it out. Just use <blockquote> and copy the Gif to the image folder and it works!
Thanks I plan to add more custom buttons!!
I'm having troubles to select "Parse BBC on the Content" for more than 1 custom BBC. I select for one, then when select this option in another, the first BCC option has gone.
Please, help me on this.
Also, CustomBBCExtendPreparse100.zip has an error:
<search for>
array('check', 'customBBCode_block_level_' . $i, null, $txt['customBBCode_block_level']),
</search for>
<add after>
array('check', 'customBBCode_block_level_' . $i, null, $txt['customBBCode_block_level']),
array('check', 'customBBCode_preparse_content_' . $i, null, $txt['customBBCode_preparse_content']),
</add after>
It should be <replace> instead <add after>
Oh Thanks, i did not see it XD.
But i fix it. :)
Bye
DIN1031
Quote from: brasiweb on January 21, 2008, 02:58:07 AM
I'm having troubles to select "Parse BBC on the Content" for more than 1 custom BBC. I select for one, then when select this option in another, the first BCC option has gone.
Please, help me on this.
How about this?
I can't add customBBCode_preparse_content_X manually.
I have customBBCode_preparse_content_1 => 1
When I try to add customBBCode_preparse_content_2 => 1 its says something like duplicated key..
Quote from: brasiweb on January 21, 2008, 06:03:24 AM
Quote from: brasiweb on January 21, 2008, 02:58:07 AM
I'm having troubles to select "Parse BBC on the Content" for more than 1 custom BBC. I select for one, then when select this option in another, the first BCC option has gone.
Please, help me on this.
How about this?
I can't add customBBCode_preparse_content_X manually.
I have customBBCode_preparse_content_1 => 1
When I try to add customBBCode_preparse_content_2 => 1 its says something like duplicated key..
Upgrade to the latest Version 1.0.2 than this is fixed... i don't know why but the customBBCode_preparse_content_2 is to long... now i replaced it with a much shorter version and the error should not happen any more ;).
Bye
DIN1031
VERY THANKS!
works like a charm!
i needed to install html tags, and edit mod to add some of them maually, like table, tr, td, span, div and tbody, who html tags mod author choose to not add, and do some other changes not included in any mod to work as i want
maybe i send a mod with all the changes together (with all credits to mod authos, off course), my brazilian friends will luv it :)
*these changes will enable the use of "gerador de posts" (posts generator) for game/movies/apps review sites, with images, and lots of contents and stuffs in a table. these generators have most bbcode tags compatible between them, so a post made in the generator of one forum works normally in others forums, without needing to regenerate the post using the generator of each one (they have some particularities, but just differents positioning of sections, etc)
another time, THANKS!!
-edit-
strange.. after add some bbcodes, some messages was messed up
i'will double check it again (re-do the changes and test in between)
Hi,
Can anyone explain how I would use this to embed Google Maps into my forum?
If someone saved the static link from Google Maps and wanted to show it as a map instead of a link, that kind of thing :)
this mod works with smf 1.1.4??
I installed this mod today and I like it so much I came up with an idea for a new feature. It would really be great for my members if they could go to their profiles and put default values for the {option} and {content} parts that would be automatically copied in the bbcode when they click the button.
My forum is for DVD Collectors and most of us publish our collection to a web site for others to see. I created a bbcode where the user can put the domain/path of his hosted collection in the {option} portion and the UPC Code of a DVD in the {content} portion. When parsed the tag displays an image of the DVD as a link to the corresponding page on his site.
If each user could put a default value for the {option} portion of that bbcode in their profile they wouldn't have to enter the domain/path each time they use the tag.
Hi
I get this error when I try to access Features and Options after installing this mod:
Fatal error: Cannot redeclare modifycustombbcodesettings() (previously declared in /customers/petterthorvald.com/petterthorvald.com/httpd.www/Sources/ModSettings.php:346) in /customers/petterthorvald.com/petterthorvald.com/httpd.www/Sources/ModSettings.php on line 366
Any Ideas?
I'm using SMF 1.1.4 and I have no other mods installed
Quote from: Pe2 on February 27, 2008, 03:20:30 AM
Hi
I get this error when I try to access Features and Options after installing this mod:
Fatal error: Cannot redeclare modifycustombbcodesettings() (previously declared in /customers/petterthorvald.com/petterthorvald.com/httpd.www/Sources/ModSettings.php:346) in /customers/petterthorvald.com/petterthorvald.com/httpd.www/Sources/ModSettings.php on line 366
Any Ideas?
I'm using SMF 1.1.4 and I have no other mods installed
duplicate code on those lines. Open that file and remove the duplication.
Question:
I used this to make a Highslide BBCode, and it works great. The problem is that I'm not able to post more than one Highslide BBCode on a line, it forces the next entry to the next line. When I use the code I set up as BBC outside of the BBC (a TP scriptbox for example) it works fine, so I surmise that the trouble is with the BBC. Can anyone tell me where to find where my custom code is actually scripted so I can examine it?
Thanks,
Metorks
is there an update for SMF 2? please make one.. thanks...
is it possible to make a hyperlink tag with this mod?
I want to make a bbc version of this to make it easier for members to post hyperlinks with bbc as they confused when trying to do this [url=http://www.google.com]google[/url]
google (http://www.google.com)
I've been playing with
<a href=></a>
but I can't get it to work
thanks
I installed your mod and am anxious to use it. For the benefit of us newbies, can someone give a quick definition for these:
Tag type
Parse enclosed BBCode
Trim whitespace
Block level
I get the first two types of tags, I just don't understand the last one: [tag]
I don't understand any of the other options.
Thank you! :)
Quote from: pcsimke on October 26, 2007, 08:22:19 PM
QuoteTo add a button to a custom tag, enable the "Add button" option for the tag,
where exactly i shooed enable this?
After you create your new code and click save, the option to enable buttons appears.
Quote from: perplexed on March 28, 2008, 10:49:01 AM
is it possible to make a hyperlink tag with this mod?
I want to make a bbc version of this to make it easier for members to post hyperlinks with bbc as they confused when trying to do this [url=http://www.google.com]google[/url]
google (http://www.google.com)
I've been playing with
<a href=></a>
but I can't get it to work
thanks
I'd like that too perplexed. How about <url={option}>{content}</url>
That was one of the options I tried and then I smacked myself on the head and remembered we already have a button that does that - duh
the world image! between the image button and the email button lol
/me has moments of forgetfulness :-[
If I'm not mistaken, I think the button you're referring to only inserts the opening and closing hyperlink code (the effect is no different than simply typing the url into the post). I'm still new at this, but I don't really see the need for this button.
What I'm looking to create (and I thought you were after as well) is one that sets it up to insert the url and the text you want displayed instead of displaying the url itself (which is unattractive, and can often be quite long). I think these are referred to as Descriptive Links.
I can't be sure if the suggestion I gave you works because I don't know how to go about getting a button (I'm searching for that right now), and although I've enabled my new custom code, I can't find any way to use it without a button.
that's correct, but on my site, using post preview, when I click on that little world button it posts the url tags as
[url=] [/url ]
I never noticed as I always use quick reply, and I have 'enchanced quick reply mod' installed. On quick reply the little world button posts the url tags as
[url ][/url ]
which is why I was looking for custom code to do it, but have only noticed that it's doing it anyway but only on post reply.
In another thread here, someone has asked a similar question and been directed to this mod url popup (http://www.simplemachines.org/community/index.php?topic=111254.new#new) which I have just installed on a test site.
That might solve the problem for you as it asks you to insert url and then text :)
edited again as codes keep disappearing!
Oh, that's interesting! I've never used quick reply. Thanks for the tip on the url popup - I'll go have a look at that right now ;)
Wow! Just what I needed - thanks again for passing that on, perplexed :D The url popup works great!
it's very nice, probably better than what we were trying to achieve. you're welcome :)
where do i upload the files to?
got it
¬!
this mod work with smf 1.1.4???
yes it does
hi there i need help here is the scenario
one of my moderator forgot to fill up some of the fields and added it now after the bbc was added why site won't load and is showing
Fatal error: Call to undefined function tp_loadtheme() in /home/ourcrib/public_html/Sources/Load.php on line 1133
and
Fatal error: Maximum execution time of 30 seconds exceeded in /home/ourcrib/public_html/Sources/Subs.php on line 168
so what i did is re- installed a fresh copy of the files in the sources folder and i manage to un-install the mod but my problem is everytime i re install this mod the error occurs again, my question is how can i install this without the error that my moderator made.
here is what my moderator did:
Tag name:Blank
Description: Blank
Tag type: [tag=option]content[/tag]
Parse enclosed BBCode: (no parsing)
Trim whitespace: (no trim)
Block level: Unchecked
The HTML used for the tag: <embed src="http://i82.photobucket.com/albums/j268/enchantedglitters/mediaplayer.swf" width="200" height="20" allowfullscreen="true" flashvars="&file={content}&height=20&width=200&showeq=true&autostart=true&repeat=true&shuffle=false&volume=100"></embed>
bump
anybody? sorry i really needed help
@Sheree try to remove the custom bbcode from DB
about me I have one question, I removed this from CustomBBcode.php and Post.template.phpasort($tags);
becouse I do not like the alphabetical sorting, now all seems to work fine, the Custom BBcode are showed on post template with the creation order.
but is my "mod" safe?
thx
Quote from: cellax on April 22, 2008, 05:53:01 AM
@Sheree try to remove the custom bbcode from DB
about me I have one question, I removed this from CustomBBcode.php and Post.template.phpasort($tags);
becouse I do not like the alphabetical sorting, now all seems to work fine, the Custom BBcode are showed on post template with the creation order.
but is my "mod" safe?
thx
Do you mean with safe secure?
Than i would say it'S secure, because as i see the admin can only change these things. (But he can do some things wrong and it did nor work).
If you mean by safe, is it bug free?
Than defently not ;). I found 3 bugs on my first trys... the delete fix mod (http://www.simplemachines.org/community/index.php?topic=154997.100) that i created should fix some of them, but i'm sure there are more bugs.
Bye
DIN1031
oh thx, I am fixing with your patch
EDIT: about your Custom BBC Extension Option Preparse Content
it seems to be like the embedded option to parse BBcode inside the Content, what's the difference?
and "Custom BBC Extension Option Quotes" all work during installation and on CP, but isn't working on post template, it is showed alway as [tag][/tag], but it shoud be [tag=""][/tag], am I wrong?
Ah you mean it insert the other way? It's normal because smf handle it like that, because the quoted information are only for some extra infomations, it must not be filled that it work ;). So i thought, and it was only a idea what else can be added to the mod. To make it more usefull ;). (It's not my mod, but i think it has potential).
And yes it is possible to do this somehow, but i programmed it fast and so i think it could be many things that could be done better. But like i said before this are only ideas to make the mode more attractive ;). (Hope the Mod Author will update it sometimes).
Bye
DIN1031
so, thank you :)
Quote from: cellax on April 22, 2008, 05:53:01 AM
@Sheree try to remove the custom bbcode from DB
about me I have one question, I removed this from CustomBBcode.php and Post.template.phpasort($tags);
becouse I do not like the alphabetical sorting, now all seems to work fine, the Custom BBcode are showed on post template with the creation order.
but is my "mod" safe?
thx
Hi thanks for the answer but what is the database name? I don't see custom bbcode on my database
Hello,
i want to add a custom BB Code that the members van use to change the background in a image of color in the profile boxes. I use Ultimate profile.. Does anybody know what code that is?
Thanks!
Quote from: Sheree on April 23, 2008, 12:52:28 PM
Hi thanks for the answer but what is the database name? I don't see custom bbcode on my database
well, enter on Table {prefix}settings, sort on Alphabetical order the Variables and look for "CustomBBcode", you should see all your custom bbcode on forum, you have to remove the wrong one and to reduce the BBcode counter by one. Do before a DB backup or better, try it on local server.
look mine for example, I have 2 custom bbcode, I opened an older SQL backup file:
('customBBCode_tag_1', 'ancora'),
('customBBCode_description_1', 'Crea un ancora nei messaggi'),
('customBBCode_type_1', '1'),
('customBBCode_parse_1', '1'),
('customBBCode_count', '2'),
('customBBCode_before_1', '<a name=$1></a>'),
('customBBCode_enable_1', '1'),
('customBBCode_after_1', ''),
('customBBCode_tag_2', 'ed2k'),
('customBBCode_description_2', 'Link eD2k'),
('customBBCode_type_2', '1'),
('customBBCode_parse_2', '1'),
('customBBCode_before_2', '<a href=$1>'),
('customBBCode_after_2', '</a>'),
('customBBCode_enable_2', '1'),
('customBBCode_button_2', '1'),
('customBBCode_text_2', '<a href=$2>$1</a>'),
there are 2 tag, and the counter say 2:
('customBBCode_count', '2')
If you want to erase all, you have to put the counter on Zero, "0"
wow thanks for the reply been waiting for somone to help
I owe you one ;)
pls convert one for smf 2 beta... i really need this mod... pls... pls... pls...
it seems to be a bug, the "Trim whitespace" function is not working when more Custom BBcode are nested.
example I created a custom TABLE, TR and TD (used personalized name for tag) and the Trim function is not working between Table and Tr, so it has problem with the 3rd level.
I just report the bug, I am not able to fix it, just to notice it.
Do I have to use the default theme for the button to show?
I made the tags and checked "button" but the button still doesn't show :-\
:-\
I tried it with the default theme and it doesn't work either :-\
Nevermind, they helped me in the Spanish forum :D 8) ;)
Oh yeah, and nobody locked my thread there ;D
I am trying to get this working with SMF 2.0. Its seems to intall into every place correctly except the default/Post.template.php. I was wondering if anyone has found a fix to have this work with 2.0? I would love to get my hands on it, if not, anyone theorize about how it might be done? It looks like the changed Alot about post.template.php code in 2.0 from 1.15, so I am not exactly sure where to even start looking. Anyways would love any direction you guys can give.
-Emily
Ok, so I have almost gotten what I need, but need a little more assitance.
I have created the button, and the packages works great, I just am not sure how to go about doing the next part I want.
What I am needing help with is the following.
I have the buttons add the following code:
Tag Type: [tag=option]Content[/tag]
Parse enclosed BBCode: Content and Option
Time Whitespace: No Trim
Block level: (unchecked)
<a href="http://www.mydomain.com/{option}" target="new">{content}</a>
So the option that is entered is goes onto the end of the domain. What I am looking to try and do is pull the userid from the user.
Basically so when someone uses the button, it will put in the domain+userid.
Is this possible?
seriously seeking an update to use with 1.1.5
It works with 1.1.5 and 1.1.6
Quote from: The Cadet on October 03, 2008, 07:35:51 AM
It works with 1.1.5 and 1.1.6
thanks for the info!
installing...
Im having a problem, i installed everything and all. But no tap seems to come up.
What am i suppos to do with the isnstalling files?
Hello!
Thank you for the mod.
I would like to ask if i can make a button that will be only visible to administrators or in some specific members.
Can I??
How?
works fine in 1.1.7
ive been wanting an embed youtube videos, without xhtml
<object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="349"></embed></object>
you just need to copy the embed code, so now you have multiple color options
THANKS FOR A GREAT MOD!!
SMF 1.1.7
Default Theme
Uploaded and installed through the admin control panel.
I'm not seeing a tab in the Features and Options for this mod...
How do I create a bordered table using this mod?
Quote from: grynmoors on December 10, 2008, 07:18:34 PM
SMF 1.1.7
Default Theme
Uploaded and installed through the admin control panel.
I'm not seeing a tab in the Features and Options for this mod...
Try a refresh (hit the F5 key :) ).
If the install was succesfull, you should see something like in the attachment.
This mod will ever be available under 2.x versions?
Quote from: grynmoors on December 10, 2008, 07:18:34 PM
SMF 1.1.7
Default Theme
Uploaded and installed through the admin control panel.
I'm not seeing a tab in the Features and Options for this mod...
After installation, try also to check the Language folder of the active Theme you are using that is different than the Default Theme. If there is also a file "Modifications.english.php" inside that folder, modify it as well to be the same with the similarly entitled file in the "...default/languages/" folder.
Can i make a tag that's only allowed to use with Mods and Admins? Thanks!
Hi, I'm wondering if this is capable of multiple option in the tag like this:
[tag=option1,option2,option3]content[/tag]
I use a three column table frequently and would like to automate the creation of each row, like so:
<tr>
<td>
{option1}</td>
<td>
{option2}</td>
<td>
{option3}</td>
</tr>
Is this possible?
I've been trying to get Wowhead item links to work on my forum, I've added the Wowhead - Powered script to my forum, and set up a custom BBcode that works. My only problem so far is I don't know how to make another bbcode to change the item links color to the quality of the item.
For the HTML i used. I successfully got the color to change but the item link did not work alongside the [*item][/*item].
<a class="q{option}" href="http://www.wowhead.com/?item={number}">[{content}]</a>
For the BBcode I used
[item=19019][q=q5]ITEM NAME[/q][/item]
It seem I can only successfully have one and not the other.
I'm not really sure what else to do.
P.S. I've tried item stats and the script CraCkpot made, and both do not work.
This is an awseome mod! Good job!
But I have a small problem, I try to make a custom code to embed google maps into posts. I made this BBC:
<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{content}"></iframe>
And the users must insert between the tag a piece o the link provided by Google, for example
http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=&ie=UTF8&t=h&s=AARTsJod7oXNU7yzw2rY1LBQOsB66rbmwA&ll=29.786653,31.207266&spn=0.017878,0.027466&z=15&output=embed
The problem is, that SMF messes up the code, and in the post it looks like this:
<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=&amp;ie=UTF8&amp;t=h&amp;s=AARTsJod7oXNU7yzw2rY1LBQOsB66rbmwA&amp;ll=29.786653,31.207266&amp;spn=0.017878,0.027466&amp;z=15&amp;output=embed"></iframe>
Ofcourse, the embed is not displayed corectly, because the character & is converted into &amp;
How can I solve this issue? Thanks!
this mod work for SMF 2.0 RC1?
Hi guys you explain the problem I have, I hope to be quite clear
In practice while I was creating new BBC (via Custom mods BBC) from my SMF 1.1.7, I will
error in forum and gives me this error
Fatal error: Maximum execution time of 30 seconds exceeded in / home /*****/ public_html / forum / Sources / Subs.php on line 1825
[/ code]
1821-1835 and in the line of this file is subs.php
[code]
/ / Find all the tags.
$ Count = $ modSettings [ 'customBBCode_count'];
For ($ i = 1, $ count, $ i + +)
(
if (isset ($ modSettings [ 'customBBCode_tag_'. $ i]))
(
$ tags [$ i] = $ modSettings [ 'customBBCode_tag_'. $ i];
$ Count -;
)
)
Foreach ($ tags as $ i => $ tag)
(
if (! empty ($ tag) & &! empty ($ modSettings [ 'customBBCode_enable_'. $ i]))
(
In Annex I put the file Subs.php
then I turn off the BBC from database (using phpMyAdmin -> smf_settings -> enableBBC 0) and everything comes back ok, only problem is that
obviously not the BBC have more active, you can go and manually delete the last
I have added Custom with BBC for the BBC then resume database?
Maybe or lengthen the time instead 30 seconds (I assumed that maybe they need more to the question of subs.php file)
Or how can I solve?
Thanks
File Subs.php
http://www.mediafire.com/download.php?zzjmm4ygeiz
At my request, Dragooon (http://www.simplemachines.org/community/index.php?action=profile;u=95397) updated this mod for SMF 2.0 RC1. No guarantees it'll work on an earlier version.
Attached to this post.
I would like use the custom bbcode to allow embedding various types of documents -- pdf, msword, etc. I can use javascript to generate the appropriate <object ... > tags.
[embed=word]http://ss.xx.org/docname.doc[/embed]
This requires a little bit of scripting to accomplish. The problem is that every carriage-return gets turned into a <br />. So, for example
<!--javatag-->
<script type="text/javascript">
document.write ('Hello');
</script>
Creates:
<!--javatag--><br /><script type="text/javascript"><br />document.write ('Hello');<br /></script>
And so the script does not work. Does anyone know a way around this problem?
Other than of course, creating a separate custom bbcode tag for each type of document.
Thanks
Quote from: Eliana Tamerin on April 13, 2009, 02:37:10 PM
At my request, Dragooon (http://www.simplemachines.org/community/index.php?action=profile;u=95397) updated this mod for SMF 2.0 RC1. No guarantees it'll work on an earlier version.
Attached to this post.
Great work!
There is a bug thou: the post can not contain only tags when you're embedding something - you must type something else along with it, otherwise it recognizes it as an empty post.
For example this won't work:
[b]embed_code_here[/b]
You have to type something else with it like this(dot or any symbol):
.[b]embed_code_here[/b]
Will this mod work for SMF 1.1.10?
Bump, anyone? :)
Quote from: Muldoon on August 07, 2009, 09:45:41 PM
Will this mod work for SMF 1.1.10?
It should work 100%.
Thank you Eliana...I'll give it a shot! :)
Hey it turned out great. I was able to add a YouTube video button so now my members can embed youtube videos in their posts. I tried for google videos and it didn't work so I'll have to figure that out still. This mod is great! ;D
Reinventing the wheel much? (http://custom.simplemachines.org/mods/index.php?mod=936)
How about just using the spare tire as well? (http://custom.simplemachines.org/mods/index.php?mod=834)
Or it's more graceful cousin, the hoverfan? (http://custom.simplemachines.org/mods/index.php?mod=977)
What? Hovercars have to have SOME kind of propulsion method!
Oh my gosh...
Well, I may have to go the YouTube mod. There seems to be some kind of break showing in IE above the posted video, but not in Firefox...
EDIT: Ok, got it working :) And Eliana, you had me cracking up...too funny :)
Keep getting this error please help :
8: Undefined index: session_var
File: /home/****/public_html/Sources/CustomBBCode.php
Line: 136
Quote from: Eliana Tamerin on April 13, 2009, 02:37:10 PM
At my request, Dragooon (http://www.simplemachines.org/community/index.php?action=profile;u=95397) updated this mod for SMF 2.0 RC1. No guarantees it'll work on an earlier version.
Attached to this post.
just wanted to say this works pretty darn good, wish it would auto make a image for the bbcode button, but to use it took me a while to figure out..
GOTO
Configurations >> Modifications >> Custom BBCTHANKS SO MUCH
Thanks for making this mod, it has really helped in making SMF forums easy for beginners to add features to. I can't seem to get one to work though - I'm trying to make a classy [spoiler] tag that will replace the tag's contents with the word "*spoiler*", which will then change to the original {content} when moused over, and return to say *spoiler* when the mouse is moved away. I think the best plan of attack is to use two spans, and a function that determines which span will be shown, depending on whether the mouse has moved onto or off of the area.
When I copy my code into notepad (along with <html>, <body> obviously) and save as HTML, then it does exactly what I want it to. But it's not working when used with custom BBC. I see that the code must all be entered on the same line, but I don't think that's the problem - I believe I removed any carriage returns, and I see no <br>'s in the output page source.
Here is my code (as entered into Custom BBC):
<script type="text/javascript"> function showSpan(bh) {if (bh == '1') { deftext.style.display='inline'; alttext.style.display='none'; } if (bh == '2') { deftext.style.display='none'; alttext.style.display='inline'; } } </script><span id="deftext" style="display:inline;" onMouseOver="showSpan('2');">*spoiler*</span><span id="alttext" style="display:none;" onMouseOut="showSpan('1');">{content}</span>
And the same code with breaks for better visibility:
<script type="text/javascript">
function showSpan(bh)
{
if (bh == '1')
{
deftext.style.display='inline';
alttext.style.display='none';
}
if (bh == '2')
{
deftext.style.display='none';
alttext.style.display='inline';
}
}
</script>
<span id="deftext" style="display:inline;" onMouseOver="showSpan('2');">
*spoiler*
</span>
<span id="alttext" style="display:none;" onMouseOut="showSpan('1');">
{content}
</span>
One thing i've noticed is that in custom BBC, I can't seem to access a span's attributes using span_id.style.display, though I can if I use this.style.display. The thing is, I need to access a different span than the one containing the triggering event. Is this normal of custom BBC, or am I doing something wrong? I'm pretty new to CSS, JS... haven't messed with HTML much since like 1996 :-[
thx in advance for any help!
edit: im attaching the html page that I got working (in FF 2.0.0.17 anyway) so you can see exactly what i'm trying to accomplish. i don't see why this would't work when entered in custom bbc...
well nvm I used a much more optimized approach and got it to work.
here's my <span onmouseover="this.innerHTML='{content}'" onmouseout="this.innerHTML='*spoiler*'">*spoiler*</span>
still kindof frustrated i couldnt get my other code to work in custombbc, even though it would work in a blank html file
Simple and powerfull all we need, great works.
I got hit with an "unexpected T_Variable in line 98" in Modifications.english.php:
$txt['customBBCode_tabtitle'] = 'Custom BBC';
Hi guys,
just installed the mod and i don't get the image for my custom bbc button.
The genrate address for the image is:
http://www.aviaonline.it/public/smf/Themes/default/images/bbc/.gif
I get this error:
8: Undefined index: imageFile: /web/htdocs/www.aviaonline.it/home/public/smf/Themes/default/GenericControls.template.php (main sub template - eval?)
Line: 114
and that is the line:
114: sImage: ', JavaScriptEscape($settings['images_url'] . '/bbc/' . $tag['image'] . '.gif'), ',
You need to put a gif image with the same name as the BBC into the /public/smf/Themes/default/images/bbc/ folder.
So, for instance, you need to create an image, save it as a GIF and call it imageFile. Then upload it so that this url works properly: http://www.aviaonline.it/public/smf/Themes/default/images/bbc/imageFile.gif
That should work.
Quote from: Eliana Tamerin on November 17, 2009, 07:30:35 PM
You need to put a gif image with the same name as the BBC into the /public/smf/Themes/default/images/bbc/ folder.
So, for instance, you need to create an image, save it as a GIF and call it imageFile. Then upload it so that this url works properly: http://www.aviaonline.it/public/smf/Themes/default/images/bbc/imageFile.gif
That should work.
i know. but the system search for a pix named only ".gif" not for anet.gif... thats the problem
Quote from: Beagleboys link=topic=154997.msg2363499#msg2363499
i know. but the system search for a pix named only ".gif" not for anet.gif... thats the problem
I have this problem with this mod and RC2 too.
Quote from: digger on November 18, 2009, 08:14:43 AM
I have this problem with this mod and RC2 too.
Same here. Can't find what line to modify in order to make it work.
Quote from: Beagleboys on November 18, 2009, 04:20:23 AM
i know. but the system search for a pix named only ".gif" not for anet.gif... thats the problem
Any solution to this yet? Same problem here. Worked perfectly in RC1
The editor was overhauled in RC2. The mod will need a fair amount of update to make it work.
Can anyone tell me the html tag for a CSS bbcode?
I tried finding it everywhere but to no avail...
What would a CSS bbcode do, exactly?
This I would love in RC2 of 2.0! I used to use a free host for a phpBB forum, and they had something built in to make custom BBcodes.
I would either like this mod for 2.0RC2, or a new one specifically made for 2.0???
Would be a rewrite of big chunks for 2.0 RC2 and up.
Would it be easier to make a new mod for 2.0?
Probably, actually. But such mods are always limited because there are so many things that can be done with bbcode items that simply cannot be done with something like this.
You couldn't implement my dice roller mod in this, for example.
Well, all I would need is something simple, to add text/url, etc bbcodes, nothing like your dice BBcode.
in the phpBB one, you added the HTML you wanted, and if you did it right, you have a custom BBcode!
As you've found there is such a mod for 1.1.x. But no-one is interested in updating it, and that's partly because it is actually very limited as a result :(
This seems to work for me, even with the bbc images.
Adding BBC to SMF isn't that hard in fact its one of the first things I learned when I started coding for it.
You can also take a look at my mods for Quote Source (http://custom.simplemachines.org/mods/index.php?mod=1631) just adds a new BBC code and World of Warcraft tooltips (http://custom.simplemachines.org/mods/index.php?mod=1633) adds the code and a button.
Primarily you need only to edit one file to add the code ./Sources/Subs.php
Look for the section that starts with
array(
'tag' => 'center',
and ends with...
array(
'tag' => 'white',
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),
These are the codes that already exist in SMF and should give you a decent idea of how to add the BB code you want.
If you want to add a button to the message editor look at ./Sources/Subs-Editor.php
Look for the section that begins with
// The below array makes it dead easy to add images to this control.
Look at how everything else is entered there and its even easier then adding the code.
If you want to have text description when a user hovers their mouse over the button then you will need to add a description in ./Themes/default/languages/Modifications.english.php
Hi, I am having issues installing my Ad Management mod after installing Custom BB Code. I initially had it installed when I was running SMF 1.1.10 and Tiny Portal v0.9.8 along with the Ad Management mod, however I just upgraded to SMF 1.1.11 tonight. However, prior to upgrading I uninstalled both Custom BB Code and Ad Management mod.
Now after successfully upgrading to SMF 1.1.11 I went ahead and installed Custom BB Code. It said it installed successfully, HOWEVER, under Features and Options there is absolutely no 'Custom BB Code' tab. I'd like to figure this out, however I want to just simply uninstall it at this time as it is more important for me to have the Ad management mod installed. And when I attempt to install the Ad Management Mod it gives me an error with the Display.template.php file so I am unable to install the mod. Now, I know the Custom BB Code is causing this error, because prior to installing the Custom BB Code mod I was able to successfully install and uninstall the Ad Management mod. The reason I uninstalled it was because I received the same error when attempting to install the Custom BB Code mod AFTER the Ad Management mod.
However, when I attempt to uninstall the Custom BB Code mod, I continue to get an error that test failed for the following files:
Delete File ./Sources/CustomBBCode.php
2. Execute Modification ./Sources/ModSettings.php Test failed
3. Execute Modification ./Sources/Subs.php Test failed
4. Execute Modification ./Themes/default/Post.template.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
And I've made sure all these files are 777
What can I do to fix this??? I am very nervous right now and could really use some sound advice. Thank you.
The best advice I could give you is to use the parser on the downloads page and compare those changes to your files. Either add the missing code or remove the code that is there manually.
Ugh.. ok, I hope I'm not in over my head...
Ok, thank you! I got the mod working. Tomorrow I'll see if I still need to attempt to uninstall it if the ad management mod does not want to install. We'll see if it uninstalls correctly if I need to go that route. I'll post more tomorrow if necessary. Thank you!
Well, on my test forum, i get this trying to install (this is a basically brand spank'n new forum with only User CP mod (tested), Avea Media (tested), Menu Order (tested), and Registration Password (tested) ):
1. Extract File ./Sources/CustomBBCode.php
2. Execute Modification ./Sources/ModSettings.php File not found
* 3. Execute Modification ./Sources/Subs.php Test successful
1. Add Before ./Sources/Subs.php Test successful
* 4. Execute Modification ./Themes/default/Post.template.php Test failed
1. Add Before ./Themes/default/Post.template.php Test failed
* 5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
EDIT:
I don't have "ModSettings.php" on my main forum Sources!
Funnily enough because ModSettings.php is a 1.1 only file.
What, exactly does "Parse enclosed BBCode" mean and when would I want to use each of the options? Examples would be appreciated...
(no parsing)
content only
content and options
@arantor:
I downloaded version that said it was for 2.0...
Where did you download it from? There is no version of this for SMF 2.0. There is a version of the mod listed as SCBBC_2.00.zip is the second incarnation of the mod Compatible With: 1.1.1, 1.1.2
Is there any way to create custom BBCode buttons with this mod for the wowhead tooltips mod?...
http://www.wowhead-tooltips.com/
For a minute there I thought you meant my mod http://custom.simplemachines.org/mods/index.php?mod=1633 that thing is much more robust then mine I'm going to have to take a better look at it.
None the less, no this mod wouldn't work for it, it has too many parameters. To make something like that work right you'd have to create your own custom BBC code. I give a rough tutorial on how to do that for 2.0 at http://www.simplemachines.org/community/index.php?topic=154997.msg2456230#msg2456230
Edit: At a second look at that mod you shouldn't have to add the BBC code at all its already in there. Also if your having issues you might want to ask there since they are using SMF for their forums. In fact I'm surprised Crackpot hasnt made an actual mod out of it.
The mod works fine and the BBCode works. I want to be able to add buttons for each code to the posting screen in SMF. I know how to do it by hacking the code, I just thought I could do it with the custom BBCode mod.
I'm a bit stumped, and it has little to do with the mod. I created a soundclick bbcode.
Ideally I would like my users to paste their URL between the tags:
[ sndclk]http://soundclick.com/share?songid=8387149[ /sndclk]
where I'm stuck....
I need it to look like this upon completion
[ sndclk]8387149[ /sndclk]
I've got no clue how to strip out the unwanted portion of the url.
Note everyone:
I am going to try to take over this mod, if I can figure out how to get it to work, I tried installing the latest again, and I still had to do a manual edit, to show the admin panel, most of the other stuff worked. When I downloaded this, the modsettings.php (i now know it is for 1.1) wasn't even the zip file!
Did you ask the author about taking it over?
Labradoodle txted me and said to develop it and to have sarke look at it, if he approves, then yes, I would update it for 2.0RC2!
You should ideally ask the author first.
Ok. Sarke, is it ok if I try to update it for SMF 2.0RC2 (it might take a while though...)
thx kcmartz. i'm waiting for you.
Like I said, I am trying, but labradoodle is making a customBBc mod and a toggle mod for BBC that go hand-in-hand together, and that is more likely to get finished before I am...
Quote from: Leonard C on March 04, 2007, 07:05:57 PM
I like to see the possibility for another {option} e.g. height="{option1}" width="{option2}"
Hi, anyone knows if it is possibile something like i have quoted, but for
content and not for
optione.g.: content1, content2 etc.
Thanks and sorry for my bed english :)
So what would you do with it? Can we have example of the code? I suspect you'd have to write it in as a proper bbcode rather than use this mod.
eg.:
Match<br />
<b>{content1}</b> - <b>{content2}</b><br />
<b>Yellow Cards: </b>{content3}<br />
<b>Red Cards: </b>{content4}
news? ???
nothing?
It would be nice to see this for SMF 2.0 RC3.
awesome! rc3 please :D
It needs a total rewrite for the 2.0 series anyway, and if you're going to do that... you might as well enhance it in the process.
I have some related code bubbling away but THAT DOES NOT MEAN IT WILL BE PUBLISHED. It's very early, may not get finished.
I would really love to see something for rc3 for this.
the few times its needed it makes it so easy, I miss this function that phpbb3 had built in.
one of the very few things I miss about it though :)
hi there, I'm using SMF 1.1.11, the mod works fine, however my only problem was that when i tried to use BBC in the "option" tag it did not parse, BBC only worked in "content" tag so i did a little bit of research and found a file extend for the mod that allows BBC inside "option" tag, the file name was "CustomBBCQuoteExtend100.zip" and it actually DID make BBC work, however the only thing that doesn't work is when i try to use the [color] tag around any text, the lines look completely messed up and does not follow the HTML code i wrote for it. that only happens within the [option] tag, if i use [color] within [content] tag it works fine.
Any ideas how to fix the color tag within that mod? I'll attach the mod extend file in this post.
I want to be able to use the [color] tag as well in the [option] tag not just the [content] tag.
Any help is greatly appreciated.
Quote from: ディン1031 on December 25, 2007, 02:25:24 PM
So i add to this post a fix for this bug, because the author did not answer to the pm. (CustomBBCDeleteBug100.zip)
which are the modifies and the files where this fix works on?
Quote from: Sheree on April 18, 2008, 08:13:26 PM
one of my moderator forgot to fill up some of the fields and added it now after the bbc was added why site won't load and is showing
Fatal error: Call to undefined function tp_loadtheme() in /home/ourcrib/public_html/Sources/Load.php on line 1133
and
Fatal error: Maximum execution time of 30 seconds exceeded in /home/ourcrib/public_html/Sources/Subs.php on line 168
I had the same problem and I found the exact field that generates the problem. the field is TAG NAME.
so, my question is: is there a a FIX for this problem?
Thanks
Quote from: dmacleo on May 07, 2010, 04:24:14 PM
I would really love to see something for rc3 for this.
the few times its needed it makes it so easy, I miss this function that phpbb3 had built in.
one of the very few things I miss about it though :)
I also need for smf rc3 I have been crying alot for last 3 days :( :(
Quote from: dirtymind on May 15, 2010, 01:12:11 PM
Quote from: Sheree on April 18, 2008, 08:13:26 PM
one of my moderator forgot to fill up some of the fields and added it now after the bbc was added why site won't load and is showing
Fatal error: Call to undefined function tp_loadtheme() in /home/ourcrib/public_html/Sources/Load.php on line 1133
and
Fatal error: Maximum execution time of 30 seconds exceeded in /home/ourcrib/public_html/Sources/Subs.php on line 168
I had the same problem and I found the exact field that generates the problem. the field is TAG NAME.
so, my question is: is there a a FIX for this problem?
Thanks
Up :)
Can anyone help me on this?
I've got the mod installed based on the parse changes for version 1.1.11. It installs fine, but when I go to the 'Features and Options' page, it's not listed in the menu bar. I look at the source code and the link is there, but there is no text. I go to the link page and sure enough, it's working, but there are no labels on the form fields. I figure this has to do with the Modifications.english.php file where you put the label text fields. I've got that file changed correctly, but it's not reading the changes for some reason. I don't have any caching enabled on the server. Is there something else I can check?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg138.imageshack.us%2Fimg138%2F5261%2Fcustombbcode.png&hash=64d58d64170cff662c3e07bf248c1062b4d7ec88)
<?php
// Version: 1.1; Modifications
$txt['are_you_human'] = 'Are You Human?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'Please confirm that you are human in order to proceed with registration';
$txt['are_you_bot_yes'] = 'Bots are not allowed to register. Please confirm that you are human in order to register';
// Custom BBCode
$txt['customBBCode_tabtitle'] = 'Custom BBC';
$txt['customBBCode_tag'] = 'Tag name';
$txt['customBBCode_description'] = 'Description';
$txt['customBBCode_enable'] = 'Enable tag';
$txt['customBBCode_type'] = 'Tag type';
$txt['customBBCode_type_options'] = '[tag]content[tag]|[tag=option]content[tag]|[tag]';
$txt['customBBCode_trim'] = 'Trim whitespace';
$txt['customBBCode_trim_options'] = '(no trim)|inside|outside|both';
$txt['customBBCode_block_level'] = 'Block level';
$txt['customBBCode_button'] = 'Add button';
$txt['customBBCode_parse'] = 'Parse enclosed BBCode';
$txt['customBBCode_parse_options'] = '(no parsing)|content only|content and option';
$txt['customBBCode_text'] = 'The HTML used for the tag<div class="smalltext"><tag>{content}</tag></div><div class="smalltext"><tag alt={option}>{content}</tag></div>';
?>
Ok, I figured this out. The comment "//Custom BBCode" is the problem. For some reason, the file didn't save the end lines and it viewed everything I added as inside a comment.
Does anyone know if it's possible to use just *part* of what someone puts as the content between the tags?
Basically, I want them to be able to put it in their posts like this:
[customtag]http://www.somewebsite.com/stuff_I_want_to_use[/customtag]
and then I want to HTML it uses to look like this:
<html_tag>stuff_I_want_to_use</html_tag>
I've seen the custom BBCode stuff for phpBB that lets me specify tags like that by putting them in as
[customtag]http://www.somewebsite.com/{content}[/customtag]
and then then the HTML as
<html_tag>{content}</html_tag>
Anyone know if this is possible in SMF forums, through this or another mod?
For SMF 2.0 RC3
Just some minor edits to make it look and function properly.
I briefly tested this and it functions properly and is SMF error free.
Note:
Your bb code icons must be stored in ... /Themes/YOUR_THEME/images/bbc/ ... of every theme.
Name them the same as the tag name, they should be approx. 23 x 23 and in gif format with preferably a transparent background.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi766.photobucket.com%2Falbums%2Fxx301%2Faskus%2FcustomBBC.png&hash=5e0ff8858dcb0c6aab33ecd0340422d612a22235)
Settings Menu
\\Edit Aug. 13/2010 - I fixed/created a proper settings display template .
UD
Quote from: dirtymind on May 22, 2010, 07:05:37 PM
Quote from: dirtymind on May 15, 2010, 01:12:11 PM
Quote from: Sheree on April 18, 2008, 08:13:26 PM
one of my moderator forgot to fill up some of the fields and added it now after the bbc was added why site won't load and is showing
Fatal error: Call to undefined function tp_loadtheme() in /home/ourcrib/public_html/Sources/Load.php on line 1133
and
Fatal error: Maximum execution time of 30 seconds exceeded in /home/ourcrib/public_html/Sources/Subs.php on line 168
I had the same problem and I found the exact field that generates the problem. the field is TAG NAME.
so, my question is: is there a a FIX for this problem?
Thanks
Up :)
Up
Quote from: 01_Underdog on May 28, 2010, 09:54:19 PM
For SMF 2.0 RC3
Just some minor edits to make it look and function properly.
The BrowseCustomTags() function should be re-written.. perhaps when I have more time.
I briefly tested this and it functions properly and is SMF error free.
Note:
Your bb code icons must be stored in ... /Themes/YOUR_THEME/images/bbc/ ... of every theme.
Name them the same as the tag name, they should be approx. 23 x 23 and in gif format with preferably a transparent background.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Faskusaquestion.net%2Findex.php%3Faction%3Ddlattach%3Btopic%3D1416.0%3Battach%3D432%3Bimage&hash=80a3ecdbc8c834880e9ff41d4bf8ce4481c2340d)
UD
Thanks a millions..
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 installed this but no new tab shows up in Features and Options
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
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?
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
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
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>
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 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=621;attach=27652;smf_version=2.0_RC3) i cant find ./Sources/ModSettings.php anywhere. I'm using 2.0 RC3. Am I missing something?
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 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=621;attach=27652;smf_version=2.0_RC3) 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
Thanks -Underdog- (http://www.simplemachines.org/community/index.php?action=profile;u=212317), working fine on my RC3 :)
Quote from: Nuks on October 06, 2010, 07:16:47 AM
Thanks -Underdog- (http://www.simplemachines.org/community/index.php?action=profile;u=212317), working fine on my RC3 :)
No probs.
Imao - it's a lot better then manually adding them or installing single bb code packages.
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.
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?
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
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!
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?
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:
[userid={input}]{content}[/userid]
<a href="'.$scripturl.'?action=profile;u={input}">{content}</a>
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.
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.
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.
how do you make an image 23 x 22 :/
With an image editor like GIMP?
would Paint work?
okay
well I used GIMP anyways
another question. How do I 'apply' a button to a tag? I created a tag and I got the button edited.
EDIT: Never mind. figure it out myself
Quote from: -Underdog- on November 09, 2010, 04:50:52 PM
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.
Just tested it against 2.0 RC5 (I just had to add RC5 to the list of supported versions) and it works.
Havent done an extensive testing, just tested a couple of bbcodes I was using with the previous version.
How to add 2.0 RC5 to supported vesions?
Quote from: Leniek on March 14, 2011, 01:26:07 PM
How to add 2.0 RC5 to supported vesions?
Get the zipfile attached to this earlier message (http://www.simplemachines.org/community/index.php?topic=154997.msg2845495#msg2845495), then edit the file package-info.xml changing from
<install for="2.0 RC2, 2.0 RC3, 2.0 RC4">
...
<uninstall for="2.0 RC2, 2.0 RC3, 2.0 RC4">
to
<install for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
...
<uninstall for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
You should be able to install on smf 2.0 RC5 the updated zipfile module.
-sigh- Why do people keep insist on modifying the package file for 2.0 when 2.0 is quite capable of doing it without that?
Admin > Packages > Browse Packages > Advanced > enter 2.0 RC4 in the box provided, packages for 2.0 RC4 will typically allow you to install after that.
Because it is a new feature, and the documentation does not present Emulate Version in a way that is obvious to many users.
I realise that, but we're talking about something that's been in 2.0 for nearly 2 years at least, and something that should be being actively taught rather than people being told to have to modify the package when it isn't necessary.
Quote from: Arantor on March 18, 2011, 12:55:39 PM
something that should be being actively taught
You are doing a great job of that. Thanks!
http://wiki.simplemachines.org/smf/Packages#Advanced
Quote from: Arantor on March 18, 2011, 11:42:52 AM
-sigh- Why do people keep insist on modifying the package file for 2.0 when 2.0 is quite capable of doing it without that?
Admin > Packages > Browse Packages > Advanced > enter 2.0 RC4 in the box provided, packages for 2.0 RC4 will typically allow you to install after that.
Well, I can tell you my personal experience: when I had to figure out how to install the mod for smf 2.0RC4 on a test site with smf 2.0RC5, it was pretty easy to figure out how to add a line to the file in the mod. At no point in my search I saw the option of emulating a previous version (?).
Bottom line, to your question, people do that because it's the path of least resistance; you can argue it should not be like that, but today with the current documentation apparently it is.
I might also ask, if 2.0RC5 is around since a long time and if it's so easy to upgrade the mod package and avoid the problem altogether (so no manual fiddling with the file and no emulations), why dont we have for download an updated package mod?
It would not take much for me to do it if you like me to...
QuoteAt no point in my search I saw the option of emulating a previous version (?).
I'm not arguing that it's not the most user friendly option, but it's gotta be better than unpacking a zip, editing an XML file, repacking it and uploading it back to the server. And it's been there since 2.0 RC1 at least if not earlier.
Quotewhy dont we have for download an updated package mod?
Because the author hasn't been around to update it?
QuoteIt would not take much for me to do it if you like me to...
And it would have to be removed since only the original author has the right to do so.
First l want to say that in most cases if you can add a BBC function using this mod, its just as easy to package your own mod for it. After that...
I hate the fact that so many authors confine their mod to certain versions of SMF when it could possibly work with so many more. For instance 2.0 has been feature locked for a while and the only updates will be for security reasons. Most of the times these wont have an effect on a mod.
Why not use something like 2.0.0 -2.99.99 in the install then on the mod page the author can select which versions of SMF they have actually tested the mod on. It keeps them from having to update the mod every time there's a new version of SMF that doesn't effect their mod and its less hassles for an admin to have to figure out.
The worst case scenario is that an admin is able to install the mod but it doesn't work. Then they can uninstall it, even if it has to be done by hand. More then not if a mod isnt compatible with the current files for a version they'll get errors during the install anyway. Then you can try to emulate a different version, or does emulation only check the versions numbers rather then the files? I haven't checked.
In any case it makes much more sense to me. Not that its going to help in this case, Sarke hasn't even logged on to this site in over a year. Bah dah bum bum bum, another mod bites the dust (my apologies to Mr. Mercury).
Or you can use version emulate, now a standard feature in 2.0 ;)
Yes but have you read the innumerable post of people that dont even realize it exists.
They upload the file, then on the "Package uploaded successfully" page they click [ Install Mod ], the emulation isnt even available on that page at all. So then they get an error that says the mod isnt compatible with their version of SMF. Next thing you know they are back here asking that the mod be updated.
If they happen to happen to install from the browse package display the function is hidden under that tiny little "Advanced" link. While advanced admins are aware of the function the general public needs something more simple.
The function needs to be much more visible. Maybe show it by default on both pages with an option to hide it rather then the other way around. Better still, to make things easier on the average admin, minor SMF version checks should just be eliminated all together for mods. Checks for 1.0, 1.1. 2.0 would suffice. Ok 2.0 RC2 was a major change and affected a lot of mods but if the mods were incompatible they would error on install anyway.
At least that would generate a valid support request rather then the bogus ones that results in "use version emulation" and or having to explain how to use it every 5 posts or so, such a waste of time.
Since the current versions of SMF aren't solving this simple problem, authors can by using an all inclusive install tag in the package info. It just seems way more practical to me. ;D
For 1.1.x, all inclusive tags are incredibly practical since for the most part things aren't going to change.
For 2.0 bearing in mind I started with 2.0 RC1, the changes between 2.0 RC1 and RC3 were easily enough to warrant not using catchalls, but 2.0 RC3 and up the story's a bit different. That said, I'm currently doing some overhaul on SimpleDesk and I absolutely have to use RC5 in the version string because it simply won't work on anything lower, not even RC4.
Ok understandable and people shouldn't be using the outdated versions of SMF for security reasons anyway. Its worse then people that cling to IE6. :laugh:
However how do you know that the mod wont be compatible with versions beyond RC5? You can save yourself some headaches by making it installable on future versions. If it winds up not being compatible you'll wind up releasing a new version anyway. If it is compatible then you dont have to update the mod or have to reference an obfuscated function.
I don't know that. But you cannot wildcard for that.
Sure you can. <install for="2.0 RC5 - 2.99.99">
I used it for the transition from 2.0 RC1.2 to RC2. One set of modifications uses 2.0 - 2.0 RC1.2 and a second set for 2.0 RC2 - 2.99.99. When I was a charter member RC2 was released for charter members only and I had to keep the old instructions for members that couldn't update yet. As it stands I haven't had to update that mod since and it works just like it always did on RC5.
Funny, I could have sworn they modified the behaviour of the system since then, that treated things differently.
But given the complexity of the mod I'm working on, I really would rather test it out rather than use a catchall, especially since although the transition from RC2 to RC3 was painless, there were changes for RC4 (not just presentational ones, but security related impact), different changes for RC5 (hook behaviour related) but hopefully no more between now and final, whereupon I will feel comfortable using a catchall.
Hi all
I am really struggling with BBCode .. mainly because i want to make quick button that use nested bbcodes
ie i have a mp3 bbcode called [mp3]http://somewhere.com/something.mp3[/mp3] which converts to [mp3=200,20,1,center][/mp3]
now lets say if i wanted to create my own bbcode to do this using which uses the mp3
i call it mp3play then entered the following in the code <tag>[mp3=200,20,1,center]{content}[/mp3]</tag> but it doesnt work, seem just to produce a hyperlink of [mp3=200,20,1,center]http://somewhere.com/something.mp3[/mp3] rather than initiating the embeded mp3 player
i think i tried all combinations and just cant seem to get it to work when using other bbcodes any ideas or advice to tell me what i am doing wrong
I have a new board and this is the only mod I've installed so far. In spite of installing this mod 3 separate times I still cannot get anything new to show in the admin area. I'm using version 1.1.13 and, although I have several templates for the site, I am using the default template.
At this point in time the only bbcode I'm wanting to add is (web)(/web) (() => brackets ;)). Is there any way to simply hard code it in somewhere (file, database)?
WTIA for any and all help!
Hey folks, recently installed this mod on a SMF 1.1.xx forum.
Trying to get a custom tag a Non-SMF forum uses to work for SMF. This tag is called "[popup]".
[popup={option1},{option2},{option3}]{option4}[/popup]
<a href="{option1}" onclick="popup(this.href, {option2}, {option3}, ''); return false;" title="{option1}"><strong>{option4}</strong></a>
[popup=URL,WIDTH,HEIGHT]TEXT[/popup]
However, I can't get it to work. The mod has almost no instructions, but is the only one I could find. I put the HTML in the html box, and saved the bbcode tag, then I try the tag in a test post; The output is just "{option4}" as a link, but when clicked, it does nothing. Any help greatly appreciated. :(
Thanks,
Jason
P.S. Could this be because the mod only has support for one "{option}"?
This mod is deader than Michael Jackson. Shame, it's a great concept. :'(
This mod only allows a single user input and within your html code it should be entered as {content}.
ie.
[popup={option}]{content}[/popup]
or
[popup={content}]...text...[/popup]
or
[popup]{content}[/popup]
or
[popup]{content}
depending on setup for the specific bb code.
example html:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{content}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>
The above example is for a youtube bb code where a user just enters the video number between the tags.
( setup for
[/color])
ie
Quote from: -Underdog- on June 03, 2011, 09:27:37 PM
This mod only allows a single user input and within your html code it should be entered as {content}.
ie.
[popup={option}]{content}[/popup]
or
[popup={content}]...text...[/popup]
or
[popup]{content}[/popup]
or
[popup]{content}
depending on setup for the specific bb code.
example html:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{content}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>
The above example is for a youtube bb code where a user just enters the video number between the tags.
( setup for [/color])
ie
I realised. Now if you could tell me how to modify it to add support for multiple options, we'd be in business.
Quote from: żεχเ๏ภ on June 03, 2011, 10:42:21 PM
I realised. Now if you could tell me how to modify it to add support for multiple options, we'd be in business.
Hmm.. one way to do it is to have it execute a php file and carry the needed multiple entries in the url (seperated by commas).
Then have your php file fetch the needed info from the url (using $_REQUEST) into an array by using preg_split.
If you want your php file to be secure you should have it executed as an action from the index using file and function.
... perhaps the custom action mod as well that is for this?!
Quote from: -Underdog- on June 03, 2011, 10:58:47 PM
Quote from: żεχเ๏ภ on June 03, 2011, 10:42:21 PM
I realised. Now if you could tell me how to modify it to add support for multiple options, we'd be in business.
Hmm.. one way to do it is to have it execute a php file and carry the needed multiple entries in the url (seperated by commas).
Then have your php file fetch the needed info from the url (using $_REQUEST) into an array by using preg_split.
If you want your php file to be secure you should have it executed as an action from the index using file and function.
... perhaps the custom action mod as well that is for this?!
Whoa, mate. That's a little over my understanding. :( Perhaps I should google "preg_split" since I have no idea what it is and get back to you...
Quote from: żεχเ๏ภ on June 03, 2011, 11:06:09 PM
Whoa, mate. That's a little over my understanding. :( Perhaps I should google "preg_split" since I have no idea what it is and get back to you...
Well.. that is one way to do it and I wasn't quite sure if you have any php coding experience.
Instead of manual edits it may be possible to also install this mod: http://custom.simplemachines.org/mods/index.php?mod=331
.. which has not been updated for RC5 or 1.1.13 but you can easily edit its package-info.xml file to install/uninstall for your smf version.
That mod should allow you to create an action that executes your own php code where you would use the commands I previously instructed.
ie.
$options = !empty($_REQUEST['myoptions']) ? $_REQUEST['myoptions'] : false;
The above code would gather anything you put for myoptions from the url. Let's say the url you have the bb code execute is like this:
http://your_site/index.php?action=mypopup;myoptions=my1stoption,my2ndoption,3rdoption
Then to put it into an array like this:
$opts = preg_split('/,/', $options, -1, null);
and then you create a for loop to query the array:
foreach ($opts as $myoption)
{
/* each entry will cycle as $myoption */
}
The multiple entries are in the $opts array in the above example.
.. but I should also mention that you need to use javascript within the bbc to execute the action as a popup.. and I am not positive if this mod will allow the necessary input from where it requires your html entry.
But wait.. That mod only makes pages right? I'm looking for a way to incorporate BBC tags into a post like [popup=URL,width,height]text[/popup]
URL = {option1}
width = {option2}
height = {option3}
Text = {content}
I don't see how creating a custom action url will help me achieve the popup bbc tag I want in posts? I am a php-idiot. So perhaps it's just above my IQ... Lol
Edit: Also, if you can tell me what edits I need to make to this Custom BBCode mod to allow for multiple options, please do. I can try it.
Quote from: żεχเ๏ภ on June 04, 2011, 01:36:03 AM
But wait.. That mod only makes pages right? I'm looking for a way to incorporate BBC tags into a post like [popup=URL,width,height]text[/popup]
URL = {option1}
width = {option2}
height = {option3}
Text = {content}
I don't see how creating a custom action url will help me achieve the popup bbc tag I want in posts? I am a php-idiot. So perhaps it's just above my IQ... Lol
Edit: Also, if you can tell me what edits I need to make to this Custom BBCode mod to allow for multiple options, please do. I can try it.
What I was getting at was possibly using both mods.. 1 for the bbcode that executes an action while passing info via the url and then use the action mod to request the needed info from the url.
Anyhow, I came up with something close to what you want using just this mod.
This mod does allow 2 inputs in the bbc and javascript for the popup seems to work.
What I suggest using the 2 inputs is a square popup of a url using a common link (can be an image or text for the link) and then you can put your text after the bbcode.
Navigate to the Custom BBC Admin menu and add a tag:
Tag Type: [tag=option]content[/tag]
No Parsing
No Trim
Put this into the html text area:
<a href="{content}" onclick="return reqWin(this.href, {option}, {option}, true);">Click Here</a>
Where it says Click Here you can change to the text you want or an image as this will be what is displayed for the user to click the link.
You can type whatever title text you want after the bbc.
ie.
Let's use a tag name of mypopup with popup dimensions of 300 x 300 (height x width)
This would be an example of it in a post:
[mypopup=300]http://www.simplemachines.org[/mypopup]
My SMF Popup
Quote from: -Underdog- on June 04, 2011, 11:23:19 PM
Quote from: żεχเ๏ภ on June 04, 2011, 01:36:03 AM
But wait.. That mod only makes pages right? I'm looking for a way to incorporate BBC tags into a post like [popup=URL,width,height]text[/popup]
URL = {option1}
width = {option2}
height = {option3}
Text = {content}
I don't see how creating a custom action url will help me achieve the popup bbc tag I want in posts? I am a php-idiot. So perhaps it's just above my IQ... Lol
Edit: Also, if you can tell me what edits I need to make to this Custom BBCode mod to allow for multiple options, please do. I can try it.
What I was getting at was possibly using both mods.. 1 for the bbcode that executes an action while passing info via the url and then use the action mod to request the needed info from the url.
Anyhow, I came up with something close to what you want using just this mod.
This mod does allow 2 inputs in the bbc and javascript for the popup seems to work.
What I suggest using the 2 inputs is a square popup of a url using a common link (can be an image or text for the link) and then you can put your text after the bbcode.
Navigate to the Custom BBC Admin menu and add a tag:
Tag Type: [tag=option]content[/tag]
No Parsing
No Trim
Put this into the html text area:
<a href="{content}" onclick="return reqWin(this.href, {option}, {option}, true);">Click Here</a>
Where it says Click Here you can change to the text you want or an image as this will be what is displayed for the user to click the link.
You can type whatever title text you want after the bbc.
ie.
Let's use a tag name of mypopup with popup dimensions of 300 x 300 (height x width)
This would be an example of it in a post:
[mypopup=300]http://www.simplemachines.org[/mypopup]
My SMF Popup
Thank you mate, I think you have solved my problem. Kudos :)
Quote from: żεχเ๏ภ on June 05, 2011, 02:00:37 AM
Thank you mate, I think you have solved my problem. Kudos :)
You're welcome and I am glad it is satisfactory.
the only thing I don't like about this is that you have to find an image for every custom bbcode. isn't there some way that you don't need to do that, that it'll just list all custom made bbcodes in a drop down?
OK so I have a problem...big one...
I installed the mod. Everything went OK until I moved to the Features panel...No button, I looked for a solution in this post, page, page, scroll, scroll, after a few tries and a few hours, using the information from here, I managed to get the "Custom BBC" tab into the Options and Features panel...
Moved on to the "Adding a custom code" part. All I'm trying to do is to embed the youtube links..I added the code (tried a few ones), but there was another problem. The area where the video should be is blank...I mean all I see is a big blank space, no video, no link...
I started again to scroll, scroll, scroll, page, page, but I cant seem to find a solution....Anyone a hint where I should look what I should change so the video will show up?
I did changed the Modification.English file. The forum is in Romanian language so I did changed the Modification.Romanian file too...Nothing seems to work...
Here is a screenshot about how it looks in Mozilla Firefox browser. Same look in Opera, but in IE it shows a white square with an X in the corner.
Alright, so let's say I wanted to have a BBCode that bolded and underlined the included text, and then put it in a quote-like box. Can someone help me with the HTML code for that?
help please
i installed this manually and all seemed to be fine
but now i have a button in security & moderation between general and spam without letters inside and some like the picture in attachment
one click at [create new tag] nothing happens, but the next window show the button Custom BBC Code - by clicking it there´s nothing
how can i get the menu
using 2.0 final
thx
To get to the Custom BBC panel goto Admin>Configuration>Modification Settings>Custom BBCode
Somehow the button is showing up as the second button in both the security center and the modification area....but looking through the install code I cannot see where it would generate a url of "area=securitysettings;sa=custombbc;"
:boggle"
I have problem. This mod was worked on my forum, and when i want to change picture to show when click on button a forum will be show me this error:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/ultrafor/public_html/Sources/Subs.php on line 1766
When i do parse deleting forum work. This mod very need me! Please help?
PS. Sorry for my bad english.
Hi there.
I would like to know who i can install that package in my smf 2.0 forum!
Thanks!
The Days -- Please see the documentation Package Manager (http://wiki.simplemachines.org/smf/Packages) for an introduction to how to install a package using the Package Manager.
Misa95 -- it looks like something is taking too long in parse_bbc -- the part of SMF that actually reads those tags and spits out HTML. If you leave the mod enabled, but disable all the custom tags you have created, do you still get the error?
Well a number of months ago after an upgrade my BBCode for posting youtube videos on my message board stopped working.
However! - my old videos posted in this manner STILL worked properly. It was just that new posts would not work. So... tonight I copied some old code from one video that worked and did a test post and it worked. But, then I went and found the 'old embed code' of a youtube video and posted it and it DID NOT WORK.
Anyway, I wanted to post both code here and I'm hoping you might be able to help me figure this out.
working code:
Quote
Code that DOES NOT work:
Quote
Also - the html code used for the tags is as follows:
Quote<param name="movie" value="http://www.youtube.com/v/{content}"></param>
<param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" height="350″ width="425″></embed>
Any idea why the latter code is not displaying the video?
Anyone?
Will this get updated to 2.0.1 at all?
I eventually got this figured out. Seemed it required the setting to remove my head from the nether and then imbibe coffee?
I do have a question though:
Anyway to code in a drop-down menu to hold all the tags that have 'Button' checked? We might have quite a few. The list would populate on its own?
Hi,
I am trying to use "Custom BBCode" mod in my SMF 1.1.15, but I fail.
The mod installs fine. I can define a custom bbcode, enable it, I even defined a button gif image. When I click the button, the code is inserted in the message, for example [pgn][/pgn], however, there is no effect.
Where did I go wrong?
Where in the source should I search for pgn tags in order to debug it?
Thanks.
Could someone give me a simple example of code that I can try to see if this is working?
It seems this mod was abandoned. Does anyone know enough to pick it up for 2.0? It's a pretty awesome mod.
It doesn't matter if anyone knows it enough or not - the fact is the mod does not state anywhere that anyone has permission to take it over and get it up to date.
Someone would have to rewrite it from scratch in order for that to be the case.
Sorry for the absence everyone, I meant to do this earlier. I'll release it under the CC BY-NC-SA license. Go nuts.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-sa%2F3.0%2F88x31.png&hash=be27368905a4a8052533722bf679594f2501899d) (http://creativecommons.org/licenses/by-nc-sa/3.0/)
http://creativecommons.org/licenses/by-nc-sa/3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0)
That is really amazing. Once you upload the new version (with your license statement on it) to http://custom.simplemachines.org/mods/index.php?mod=621, then everyone will really appreciate it.
People love this mod, and it is wonderful that you are going to make it available for the community to continue to develop.
any updates on this?
Quote from: Sarke on August 27, 2012, 02:53:18 PM
Sorry for the absence everyone, I meant to do this earlier. I'll release it under the CC BY-NC-SA license. Go nuts.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-sa%2F3.0%2F88x31.png&hash=be27368905a4a8052533722bf679594f2501899d) (http://creativecommons.org/licenses/by-nc-sa/3.0/)
http://creativecommons.org/licenses/by-nc-sa/3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0)
If only I knew enough PHP, I'd attempt it. But alas I don't. Maybe I should download smf 1.1.2 and put that on my site :P (jk)
Quote from: Sarke on August 27, 2012, 02:53:18 PM
Sorry for the absence everyone, I meant to do this earlier. I'll release it under the CC BY-NC-SA license. Go nuts.
amazing man. cant wait for this to be upgraded to 2.0.1 this is such an awesome mod.
Hi. I am using smf 2.0.3, up to now is there any custom bbcode mod works for this version? Thanks.
After two years using this mod, i added a new bbc code 3 days ago and the mod made my forum crash. How? I don't know, but the memory and processor resources of my server went out of the roof. Now that i was able to uninstall it, my forum is back to normal.
A while ago, just to double check it, I installed this mod again and it happened again. Processor resources at 100% and memory peaked at 200.
Any idea on what's causing this?
You had the mod installed for 2 years, and it only started to cause a problem after your most recent tag addition?
What tag did you add?
The tags I had were all the same type, a simple [tag] with html to show an image. This tag was another one like those. I'm going to upgrade my forum to SMF 2 this weekend and see if I can install it without problems.
But the mod's entries are still there. Are they going to be erased when upgrading SMF or do I have to manually remove them?
FragaCampos --
No mods will "survive" the upgrade. All SMF files are replaced in the process of upgrading for 1.1.x to 2.0.x
* you might as well uninstall all mods
* And reinstall afterwards -- the mods' installers will use "SMF 2.0 friendly" code -- the previously-used code would not work with SMF 2.0 anyway.
Good luck!
Thanks, AngelinaBelle, will do that.
Hey guys.
Using the 2x code supplied a few pages back, and it is working brilliantly. A small issue has just arisen, however, in that we can't seem to use regular BBC within something inside custom BBC; eg
[custom]lalala [b]bold[/b] alalal a[/custom]
The 'custom' code will work (we use it as a quick font colour change) but the original code will show up as if there was a nobbc code in work.
How could we go about fixing this?
Didn't turn on the parsing XD;
Weird, I installed version 2.03 on localhost on the latest SMF without errors and when I try to access the mod's configuration tab I get the following message:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\docsPT\public_html\Sources\CustomBBCode.php on line 18
The table wasn't even created in the database. Is it created only when a tag is added? If so, why the timout?
Does this work with 2.0.4?
Compatible With:
1.1.1, 1.1.2
Unless someone has updated it within a post then I'd look at the compatible with text.
Quote from: Sarke on August 27, 2012, 02:53:18 PM
Sorry for the absence everyone, I meant to do this earlier. I'll release it under the CC BY-NC-SA license. Go nuts.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-sa%2F3.0%2F88x31.png&hash=be27368905a4a8052533722bf679594f2501899d) (http://creativecommons.org/licenses/by-nc-sa/3.0/)
http://creativecommons.org/licenses/by-nc-sa/3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0)
i got dibs? to convert to 2.0
Yes. Provided that you credit the original author and release it under the same licence.
The rules are a bit iffy for sites that make money while making use of the mod, just note.
Quote from: Arantor on May 06, 2013, 09:29:27 PM
Yes. Provided that you credit the original author and release it under the same licence.
The rules are a bit iffy for sites that make money while making use of the mod, just note.
well yes. I don't have any paid mods nor intent to make any ;)
That wasn't quite what I meant. The rules state that it is not to be used for commercial purposes. That doesn't include selling the mod, but it's ambiguous about using it on sites that do set out to make money.
Quote from: Arantor on May 06, 2013, 09:32:35 PM
That wasn't quite what I meant. The rules state that it is not to be used for commercial purposes. That doesn't include selling the mod, but it's ambiguous about using it on sites that do set out to make money.
gotcha. Well then I pass. Last thing I want is a lightning rod up my...
I'm not saying you couldn't... I'm just saying be careful because the mod's licence does say 'no commercial uses'. Exactly what the scope of that clause is, is unclear and IMHO the author should not have used the NC clause in it.
He should have said: "Here, go nuts". Lol
The thing is, I'm curious how this mod works. The fact that I have coded a handful of bbc tags manually for my forum that im tired already. I suppose this mod should ease the pain.
Just a note - there is a modification in the queue that allows you to *add* BBC, but it does not allow you to modifying existing BBC.
I'm missing the "ModSettings.php" file from the directory:
(./Sources/ModSettings.php)
can someone attach it in a reply please?
No, because it's a 1.1.x file, you're not supposed to have it.
And if it's trying to edit 1.1.x stuff, it's really not going to work on 2.0 anyway...
Hi,
I am using a pgn4web mod to add a chessboard to forum. I've added a custom BBC code to include this chess board (per this instructions: http://code.google.com/p/pgn4web/wiki/User_Notes_simplemachines). However, the board would not display when Previewed. Works fine when post is submitted, just the Preview doesn't work.
Whose fault is it: chessboard software or Custom BBC mod or SMF?
I am using SMF 1.1.19. and Custom BBCode 2.0.
Thanks.
I just updated forum to 2.0.7 (was using 1.1.x).
Previewing chessboard created with "pgn4web" still doesn't work.
Nothing in the error log.
Any ideas maybe?
My users are crying to get this feature back working...
Mmm... Hey Guys, Any can UpDate this MOD for SMF 2.0.7? or please tell me how I can add a personal BBcode like this
[Pers][/Pers]
With a corresponding image and can work? :) I hope yes...
Please Thanks...
Thanks & Regards 8)
Nothing said it was a problem when installing it.
But then my forum disappeared and I got:
Fatal error: Cannot redeclare getServerVersions() (previously declared in /home/friends6/public_html/forum/Sources/Subs-Admin.php:56) in /home/friends6/public_html/forum/Sources/Subs-Admin.php on line 108
Is this because I tried to install this before, or I have tried to install something else which didn't work?
OK so I fixed that bit, it was because I had forgotten to remove phpinfo.php when I made it to diagnose an issue before.
But now I got:
Table 'friends6_smf341.smfcj_bbcodes' doesn't exist
File: /home/friends6/public_html/forum/Sources/Subs-CustomBBCodes.php
Line: 32
Are you sure that is from this mod?
I installed it and this suddenly popped up :(
Does anyone fancy coming to look at my set up to help me fix it? I am quite the noob I am afraid
You know, I am not sure it is now, I used my brains and had a look and read this at the top:
" Subs-CustomBBCode.php - Subs of the Custom BBCode Manager mod"
I have a stinky feeling that this was a previous BBCode manager I tried
I am wondering whether I can safely remove the files (Subs-CustomBBCode.php and Subs-CustomBBCode-Admin.php)
You need to use this support topic:
https://www.simplemachines.org/community/index.php?topic=527734.0
eeek I don't know how I ended up here. SO sorry