Advertisement:

Author Topic: Custom BBCodes Manager  (Read 67674 times)

Offline pgn4web

  • Semi-Newbie
  • *
  • Posts: 13
Re: Custom BBCodes Manager
« Reply #40 on: January 16, 2015, 01:07:04 PM »
Just updated to 1.5, looks good.

One of the old issues seems to be solved: now the preview button actually applies the custom bbcode. Well done!

I have an issue however: when trying to update an existing bbcode I get an error message warning that "The bbcode you are attempting to insert already exists." and changes are not saved.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #41 on: January 16, 2015, 07:24:56 PM »
v1.5 - December 13th, 2014
o License change to Simplified BSD.
o Replaced the BBCode existance check using SMF's own code...
o Added Dutch translation to the mod, courtesy of Fixit...
« Last Edit: January 16, 2015, 07:38:17 PM by dougiefresh »
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline pgn4web

  • Semi-Newbie
  • *
  • Posts: 13
Re: Custom BBCodes Manager
« Reply #42 on: January 18, 2015, 06:58:22 AM »
Looked around a bit more and it seems that with the new 1.5 version, each time I try saving a new bbcode, I get the error message "The bbcode you are attempting to insert already exists."
Even tried removing the module and all its data and re-installing.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #43 on: January 19, 2015, 06:35:15 PM »
Lemme look into this issue....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #44 on: February 01, 2015, 01:21:33 PM »
Uploaded v1.6 - Febuary 1st, 2015
o Fixed a nasty bug where existing custom BBcodes weren't allowed to be edited.
o If SMF 2.1-Style Admin Menu is installed, this mod is installed under Configuration => Feature Settings.
o Changed code so that CustomBBCode.php not loaded until actually needed....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline konef

  • Newbie
  • *
  • Posts: 1
Re: Custom BBCodes Manager
« Reply #45 on: February 07, 2015, 06:32:05 AM »
Confirm

Quote
when trying to update an existing bbcode I get an error message warning that "The bbcode you are attempting to insert already exists." and changes are not saved.

smf 2.0.9
Custom BBCodes Manager 1.6   

Offline pro-pumper

  • Newbie
  • *
  • Posts: 4
Re: Custom BBCodes Manager
« Reply #46 on: February 08, 2015, 12:49:19 PM »
always send me the error: "The bbcode you are attempting to insert already exists." and no save

Offline Paracelsus

  • Sr. Member
  • ****
  • Posts: 874
  • Gender: Male
Re: Custom BBCodes Manager
« Reply #47 on: February 10, 2015, 07:43:04 AM »
always send me the error: "The bbcode you are attempting to insert already exists." and no save

Same issue here using the most updated version of this MOD.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #48 on: February 11, 2015, 03:06:23 PM »
I will look into this issue.  One question, though: What bbcode are you trying to create?  If it is already defined by either Sources/Subs.php or a hook, then redefinition of a bbcode isn't possible at this time.  You can easily find out what bbcodes are defined by looking at Admin => Forum => Posts and Topics => Bulletin Board Code.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Paracelsus

  • Sr. Member
  • ****
  • Posts: 874
  • Gender: Male
Re: Custom BBCodes Manager
« Reply #49 on: February 11, 2015, 05:51:46 PM »
I will look into this issue.  One question, though: What bbcode are you trying to create?  If it is already defined by either Sources/Subs.php or a hook, then redefinition of a bbcode isn't possible at this time.  You can easily find out what bbcodes are defined by looking at Admin => Forum => Posts and Topics => Bulletin Board Code.

No, it's not on that list, I've checked. I can't create any kind of BBCode, keep getting that error the whole time.

Here's what I'm trying and what I get:

Offline Paracelsus

  • Sr. Member
  • ****
  • Posts: 874
  • Gender: Male
Re: Custom BBCodes Manager
« Reply #50 on: February 11, 2015, 06:08:13 PM »
Btw, I also get 3 errors:

Code: [Select]
http://www.forumscp.com/index.php?action=admin;area=postsettings;sa=custombbc;edit=-1;sesc
8: Undefined index: after
Ficheiro: /var/www/html/Sources/CustomBBCodes.php
Linha: 279

Code: [Select]
http://www.forumscp.com/index.php?action=admin;area=postsettings;sa=custombbc;edit=-1;sesc
8: Undefined index: before
Ficheiro: /var/www/html/Sources/CustomBBCodes.php
Linha: 279

Code: [Select]
http://www.forumscp.com/index.php?action=admin;area=featuresettings
8: Undefined index: sa
Ficheiro: /var/www/html/Sources/Subs-CustomBBCodes.php
Linha: 32

Offline pro-pumper

  • Newbie
  • *
  • Posts: 4
Re: Custom BBCodes Manager
« Reply #51 on: February 12, 2015, 12:19:12 AM »
I will look into this issue.  One question, though: What bbcode are you trying to create?  If it is already defined by either Sources/Subs.php or a hook, then redefinition of a bbcode isn't possible at this time.  You can easily find out what bbcodes are defined by looking at Admin => Forum => Posts and Topics => Bulletin Board Code.

No, it's not on that list, I've checked. I can't create any kind of BBCode, keep getting that error the whole time.

Here's what I'm trying and what I get:

are exactly the same mistakes that I have, I tried reinstalling and nothing

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #52 on: February 13, 2015, 09:19:34 AM »
Uploaded v1.7 - Febuary 13th, 2015
o Fixed undefined variable error in Subs-CustomBBCodes.php
o Fixed some undefined array elements in CustomBBcodes.php
o Fixed several issues inside the bbcode_exists function in Subs-CustomBBCodesAdmin.php



@Everybody: I am unable to edit the first post at this time.

when trying to update an existing bbcode I get an error message warning that "The bbcode you are attempting to insert already exists." and changes are not saved.
always send me the error: "The bbcode you are attempting to insert already exists." and no save
Same issue here using the most updated version of this MOD.
Thank you for your bug reports.  I apologize for my oversight that lead to these errors.  I've corrected the mod and have uploaded it....



No, it's not on that list, I've checked. I can't create any kind of BBCode, keep getting that error the whole time.

Here's what I'm trying and what I get:
Okay, I see a few things wrong with the bbcode you're trying to build.  The content specifies the HTML content of the bbcode....  In order for this bbcode to be displayed correctly, you would need something like:
Code: [Select]
<a href="http://www.forumscp.com/wiki/index.php?title={content}">{content}</a>
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Paracelsus

  • Sr. Member
  • ****
  • Posts: 874
  • Gender: Male
Re: Custom BBCodes Manager
« Reply #53 on: February 13, 2015, 07:41:45 PM »
Now I got it working, but I don't seem to be able to create an effective BBCode.

So, what I want is to write for example ABCD in between tags and get a link like this: http://www.forumscp.com/wiki/index.php?title=ABCD If I put this html code <a href="http://www.forumscp.com/wiki/index.php?title={content}">{content}</a> and choose parsed content then i get the right link but {content} as text (and I want ABCD as text).

Offline danster

  • Jr. Member
  • **
  • Posts: 123
  • Gender: Male
Re: Custom BBCodes Manager
« Reply #54 on: March 25, 2015, 10:44:04 PM »
hello..!

please anyone knows how to add custom bb code in correct way cos i'm using Custom_BBCodes_Manager_v1.7 mod
but i try to add may custom bb code but it's didn't take effect cos i tried to disable some bbcodes to show for guests but it'd didn't works  so please if some one know how to proceed that tell me

I'm using mods 1. Custom_BBCodes_Manager_v1.7 mod and 2. show_bbcode_to_guests-0.1.7  both..

I attached one image for reference...

Thank you...
Brgds..!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #55 on: April 06, 2015, 04:42:39 PM »
Uploaded v1.8 - April 4th, 2015
o Updated for SMF 2.1 Beta 1f
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #56 on: April 08, 2015, 07:27:11 PM »
@Everybody:  I want to apologize.  I'm not trying to ignore messages and/or requests.  I've been working a lot of hours at my workplace lately and haven't had much time to deal with issues.  I spent most of my 4-day Easter weekend trying to make every mod work with SMF 2.1 Beta 1....  Maybe it's futile, maybe it's not.  Either way, some (if not all) of the work has been done....

That having been said, I'm going to work on rewriting this mod to be more "friendly" towards bbcode creation, cause it definitely ain't that way right now....



@Danster:  If you disable a built-in bbcode within SMF's admin interface, that does not delete the bbcode, nor will it remove the bbcode from the internal bbcode list.  The mod checks to make sure that the bbcode you are creating does not already exist....

The picture you included doesn't assist me with what the bbcode you are attempting to create....  The content of the picture makes it appears that you're trying to create a duplicate HTML tag, which is HUGE risk to your forum!  I would NOT advise the creation of such a bbcode!
« Last Edit: April 08, 2015, 07:59:45 PM by dougiefresh »
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline danster

  • Jr. Member
  • **
  • Posts: 123
  • Gender: Male
Re: Custom BBCodes Manager
« Reply #57 on: April 08, 2015, 10:27:56 PM »
Thank you for respond..

yes sorry for lack of details of question..so i'm asking that i want to add custom bbcode for not allow to view for guests
so like this codes " donload " " url " like this..

i wanted to add that bbcode when guest logging to my forum for them shows this massage instead of this words..

" Sorry, you are not allowed to see this part of the text. Please login or register"

so that is i wanted to know how to to dot...

Thank you
Best regards..!!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #58 on: April 09, 2015, 04:17:00 AM »
Okay, I understand now.  This mod is for the creation of "simple" HTML bbcodes.  What you are trying to create cannot be made as a "simple" HTML construct without using JavaScript, which would reveal what you're trying to hide from guests it during a source view.  You NEED a mod and/or custom code in order to accomplish this objective....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline 420Connect.co.uk

  • Full Member
  • ***
  • Posts: 413
    • 420connect.info on Facebook
    • @4twentyconnect on Twitter
    • 420 Connect
Re: Custom BBCodes Manager
« Reply #59 on: April 23, 2015, 01:47:50 PM »
I've got:

Undefined index: area
for this line in /Sources/Subs-CustomBBCodes.php

Code: [Select]
if (($_GET['area'] == 'featuresettings' || $_GET['area'] == 'postsettings') && (isset($_GET['sa']) && $_GET['sa'] == 'custombbc'))
 ???

Anything obvious?
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)