News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Personalized BBC

Started by Chen Zhen, June 03, 2014, 07:19:08 PM

Previous topic - Next topic

fungolfer

Great mod, that is what I was looking for.

My problem: I have no idea how to use it, so the new BBCode is working. I need the following BBCodes: [th] and [smilie]. TH is needed to get table headers (wondering why this isn't standard). Smilie should add a smilie with a text [smilie]text[/smilie] should look like attached. I just don't know the code to add and I didn't find anything in the net how to manage that.

I hope someone can give a little help here, would be awesome :)

fungolfer

Never mind, I found what I needed, thx anyways :)

Chen Zhen

fungolfer,

  This mod does not come with any specific additional BBCodes as its purpose is to allow the ability to add your own HTML to create pretty much any BBCodes your imagination can conjure. It is fairly flexible although it requires some knowledge of HTML. The next version will also allow the ability to enable JQuery for the SMF 2.0.X branch (not necessary for the SMF 2.1.X branch) among some other fixes and additions. Unfortunately as of late I do not have a lot of free time therefore I am not positive regarding its release date.

  I am happy to hear that you have figured out how to use the modification.

Regards.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Tikkuy

I've just updated to the new 2.1 and I'm having an issue with this mod. As you can see here, the code for YouTube works somewhat but you're unable to actually click on the video and the Soundcloud code does not show the song no matter what we try. Both these codes were working fine before I updated.

I think the problem may be that my Subs.php file doesn't have the required changes for the mod to work. However, when I make the required edits my forum is unusable and I get this error:

Fatal error: Call to undefined function PersonalizedBBC_AutoLinks() in /home/mogar/pophatesfags.org/forum/Sources/Subs.php on line 1713

Any ideas on what might be going wrong?

Thanks for an awesome mod!

Chen Zhen

Tikkuy,

  The parsed edits shown on this forum are only for the SMF 2.0.X branch.
At this time this forum does not show the necessary edits for the SMF 2.1(.X) branch (currently there is not an option from the drop down).

There are only 2 short edits for the SMF 2.1(.X) branch.

file: ../Sources/Load.php

find:

static $censor_vulgar = null, $censor_proper;


add after above code:


// Remove any Personalized BBC where the user does not have permission to view it
$text = PersonalizedBBC_parser($text, 'view');





file: ../Sources/Subs-Post.php

find:

// You won't believe this - but too many periods upsets apache it seems!


add before above code:

// Remove any Personalized BBC where the user does not have permission to use it
$message = PersonalizedBBC_parser($message, 'use');



Both Youtube and SoundCloud codes work using this modification.
Some example codes including the 2 mentioned are on this page: Example BBCodes





This mod has been updated to v1.9 for those using the SMF 2.0.X branch and require jQuery support.

Regards.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Tikkuy

Quote from: Chen Zhen on May 24, 2015, 10:05:15 PM
Tikkuy,

  The parsed edits shown on this forum are only for the SMF 2.0.X branch.
At this time this forum does not show the necessary edits for the SMF 2.1(.X) branch (currently there is not an option from the drop down).

There are only 2 short edits for the SMF 2.1(.X) branch.

file: ../Sources/Load.php

find:

static $censor_vulgar = null, $censor_proper;


add after above code:


// Remove any Personalized BBC where the user does not have permission to view it
$text = PersonalizedBBC_parser($text, 'view');





file: ../Sources/Subs-Post.php

find:

// You won't believe this - but too many periods upsets apache it seems!


add before above code:

// Remove any Personalized BBC where the user does not have permission to use it
$message = PersonalizedBBC_parser($message, 'use');



Both Youtube and SoundCloud codes work using this modification.
Some example codes including the 2 mentioned are on this page: Example BBCodes





This mod has been updated to v1.9 for those using the SMF 2.0.X branch and require jQuery support.

Regards.

Thank you for that. The YouTube code is working great! Although I'm a bit apprehensive about changing the Soundcloud codes as all of my users posts are in this format:

[soundcloud]https://soundcloud.com/user/track[/soundcloud]

This was working for me before I updated to the new version of SMF. Is there any reason it may not be functioning now? Otherwise, is there any other way we can implement this kind of a code?

sangham.net

#46
Seems to be great Mod! Congratulation Mr/Mrs Chen Zhen!

Thinking that Atma (me) had made some BBCs by hand yesterday the whole day... and today this.

A question, since I have add some BBC manually, would that be a problem if installed? How does this Mod handle existing codes?

I made changes and adds in subs and Subs-Post.php (SMF 2.0.10)

Althroug it is not so usual, Atma (I) would like to request the use of this modification for sangham.net and the Sangha.

Thanks a lot for your support!


Chen Zhen

Tikkuy,

  I updated the SoundCloud thread to include what you requested. It is shown as example #3.
Imo most likely the reason why your SoundCloud code no longer functions is due to SMF 2.1 using a more recent jQuery library (as opposed to what your plugin was written for). In that case it may require the migrate library to be loaded as shown in example #1.
If your code was an iframe that does not use jQuery then I suggest you attempt to use this mods trim options as it may simply be some sort of accidental white spaces added which it will automatically remove with those commands.





sangham.net,

  The license allows anyone to use this modification on their site and make changes to it for personal use.
However no one may redistribute this modification in any form as that right belongs to me.

Regards.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

sangham.net

Valued Mr. Chen Zhen,

thanks for your quick reply and Atma (me) will handle it as given in that frame, of course, if that was right understood as consciously given personally (like to others if have contact, but here Mr. Chen Zhen would know the receiver personally).
In regard to the question, if certain manual additions of BBC-codes before installation or your mod, will have impact, it seems to me that you might have not seen this question. So Atma likes to ask once again. Would it cause troubles if there have been add some arrays for buttons and bbc-codes?

metta & mudita
Samana Johann

Chen Zhen

sangham.net,

  This mod uses the hook to add BBCodes which occurs after the BBCode array therefore I do not see why it should cause any issues.
Although I wonder why you would bother adding manual edits to files since this mods purpose is to allow adding BBCodes via your SMF admin section.
If you changed the behaviour of existing BBCodes then leave those changes in place as I have not enabled the override feature as of yet.

Regards.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

sangham.net

Sadhu!

Well, Atma (me) did it one day before he saw your excellent mod. Thanks a lot for the patient support.

sangham.net

#51
Valued Mr. Chen Zhen,

seems to work fine so far.

Short feedback:

  • the Test does not seems to work
  • it seems that a submit, both, within the creating page and the index is necessary when creating a new one, otherwise the permission selection will be "no membergroup" select
  • the css frame of the BBC - buttons is missing
  • where are the language strings for the info text of the buttons? Maybe its possible to add such also when create a button
  • !!! As Atma had this certain BBC tags used before, all content which was under this BBC codes are deleted from the data-base(??) unvisible, also in the original text, so it does not only hide it, but delete content which is under the BBC when one likes to modify, as it seems. A "bad" loose of many transaltions... Strange is also, that it had deleted one the content of two kinds of this language BBC, the third was not deleted, so Atma guesses that it has to do with the double submit issue. What if I leaf the group which allows to view the text? Will the data also disappear, if I for example, modify the text of quote it? Atma had made 3 similar bbc [len] [lde] [lkh], language BBCs of which certain members should see a text and the text has a certain layout. The [lde] will not displayed and also the content seems to be gone. The button will be displayed for the admin, but when using it, it give an error, so its noot possible to submit this BBC.

    As for now, Atma (me) will try to share a german language text for the mod.

    Sadhu!

sangham.net

#52
Atma guesses he sees the problem.

If you make a new bbc, you are requested to submit it in the index. Now it seems that if not just now made new, all permissions are always toogled of and so the old one will also be over written with "empty" permission setting. Atma will try it by submitting the new exclusive as visible and useable.

The data under this BBCs was/is definitely deleted! So its a dangerous tool (for user like Atma) as it is very complex and focus on restrictions first and second on data it self, as it seems.

Data is self is fine, it was a parsing option issue.

Chen Zhen


sangham.net,

  You seem to be using a translation script because I am having a difficult time understanding your 2 recent posts.
Atm the test only works for the no parsing option as this has been previously reported although all types will function properly when in use.
Testing a BBCode will also save any valid changes just as the (?) help text implies.

  All permissions are toggled by default when first creating a BBCode but they can be adjusted. It is set up like this because it makes more sense when some people do not use the permission option. It does allow you to change them immediately without issue.

  The language strings are located in the default theme's language folder as with most other modifications. Their file names should reveal which should be edited.

  There is no missing css as I have no idea to what you are exactly referring to. Opt an image for the bbcode and it will show if the user has permission to use it.


My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

sangham.net

#54
Valued Mr. Chen Zhen,

please don't misunderstand Atmas comments and effort. Atma is more then contend and has a lot of gratitude to be able to use the mode and it works perfect so fare. The small hints are merely hints of "users" which could give the developer some ideas of their ways of thinking, missunderstanding and "ignorant" usage. So all just tries to support the grow.

Quote from: Chen Zhen on May 27, 2015, 05:45:12 PM

sangham.net,

  You seem to be using a translation script because I am having a difficult time understanding your 2 recent posts.
Atma guess its merely the computerizing of programmer language. Thanks for your patient.
Quote
Atm the test only works for the no parsing option as this has been previously reported although all types will function properly when in use.
Ok, that Atma might have not seen.
QuoteTesting a BBCode will also save any valid changes just as the (?) help text implies.
That Atma had seen.

QuoteAll permissions are toggled by default when first creating a BBCode but they can be adjusted. It is set up like this because it makes more sense when some people do not use the permission option. It does allow you to change them immediately without issue.
There is no problem. Its just when you submit the list again, that certain BBC's are set with all permissions untoggled. If one does not submit at the list-page, everything is fine.

QuoteThe language strings are located in the default theme's language folder as with most other modifications. Their file names should reveal which should be edited.
Thanks, maybe you like to incl. it in the mod directly. How ever, when look into the Post.english.php, where the hover text should be, no text string for the certain BBC hover-text can be found here. Do not know where the title= content of the url is coming from. Of course it displays that which is given as imput (one language) in the settings of new BBCs

QuoteThere is no missing css as I have no idea to what you are exactly referring to. Opt an image for the bbcode and it will show if the user has permission to use it.
Atma has attached a screen shot, its about the frame which comes from the "default" css. Atma while rendering the German language file, came accross of $txt['PersonalizedBBC'] = 'personalized_bbc_'; and it could be that this is the reason, since such class, it it is a text used for class, will not be within the css automatically. Maybe ../images/bbc/bbc_bg.gif??? , within the htmls, all seems fine, but just not displayed

<img style="cursor: pointer; background-image: url(&quot;http://sangham.net/Themes/sangham/images/bbc/bbc_bg.gif&quot;);" id="BBCBox_message_button_2_0" src="http://sangham.net/Themes/sangham/images/bbc/personalizedBBC/lde.gif" alt="Markieren Sie Deutsche Textteile damit" title="Markieren Sie Deutsche Textteile damit" align="bottom" width="23" height="22">


A side question: Within the text.php, there is  {content} und {option}, changing it language specific to {Inhalt} und {Option} will be ok or is that not good because it is also programmed manual within the Modification? The same question for the Mode-Name within the '....'? Is it consistent so that a Change into "Individuelle BBC" for example would make no problems here. How ever, Atma (me) sticked with the original Mode Name "Personalized BBC" within the translation.

Here the German language.php (formal)
<?php
/*
<id>underdog:PersonalizedBBC</id>
<name>Personalized BBC</name>
<version>1.8</version>
<type>modification</type>
*/

/*
 * Personalized BBC was developed for SMF forums c/o Underdog @ http://web-develop.ca
 * Copyright 2014 [email protected]
 * Distributed under the CC BY-ND 4.0 License (http://creativecommons.org/licenses/by-nd/4.0/)
 * edited by sangham.net for the mod-developer and its user
*/
global $helptxt;

/* Personalized BBC general text variables */
$txt['PersonalizedBBC_tabtitle'] = 'Personalized BBC';
$txt['PersonalizedBBC_tabtitle_list'] = 'Liste der Personalized BBC';
$txt['PersonalizedBBC_tabtitle_rev'] = 'Personalized BBC Revision';
$txt['PersonalizedBBC_Settings'] = 'Personalized BBC Einstellungen';
$txt['PersonalizedBBC_AdminSettings'] = 'Einstellungen';
$txt['PersonalizedBBC_add'] = '<< Erzeugen eines neuen BBCode >>';
$txt['PersonalizedBBC'] = 'personalized_bbc_';
$txt['personalizedBBC_confirm'] = 'Sind Sie sicher, dass Sie die Änderungen speichern wollen?';
$txt['personalizedBBC_name'] = 'BBCode Name';
$txt['personalizedBBC_description'] = 'Beschreibung';
$txt['personalizedBBC_type'] = 'Art';
$txt['personalizedBBC_parse'] = 'Aufarbeiten (Parsing)';
$txt['personalizedBBC_trim'] = 'Whitespace trimmern';
$txt['personalizedBBC_blockLvl'] = 'Block Ebene';
$txt['personalizedBBC_code'] = 'BBC HTML';
$txt['personalizedBBC_bbc'] = 'BBCode Verwendung';
$txt['personalizedBBC_enable'] = 'Aktivieren';
$txt['personalizedBBC_display'] = 'Zeigen';
$txt['personalizedBBC_delete'] = 'Löschen';
$txt['personalizedBBC_allow'] = 'Erlauben';
$txt['personalizedBBC_deny'] = 'Ablehnen';
$txt['personalizedBBC_submit'] = 'Übermitteln';
$txt['personalizedBBC_image'] = 'BBC Icon';
$txt['personalizedBBC_imageUpload'] = 'Ein Bild hochladen';
$txt['personalizedBBC_membergroups'] = 'Mittgliedsgruppen Berechtigungen';
$txt['personalizedBBC_membergroups_view'] = 'Ansehen können';
$txt['personalizedBBC_membergroups_use'] = 'Benützen dürfen';
$txt['personalizedBBC_membergroups_check'] = 'alle/keine auswählen';
$txt['PersonalizedBBC_page'] = 'Seite';
$txt['PersonalizedBBC_Override'] = 'Überschreiben:';
$txt['personalizedBBC_viewSource'] = 'Autolink deaktivieren';
$txt['PersonalizedBBC_UrlCheck'] = 'Url einrichten';
$txt['PersonalizedBBC_UrlCheckDisable'] = 'offen';
$txt['PersonalizedBBC_UrlCheck3986x'] = 'RFC-3986-A';
$txt['PersonalizedBBC_UrlCheck3986'] = 'RFC-3986-B';
$txt['personalizedBBC_test_button'] = 'Test';
$txt['PersonalizedBBC_viewBBC'] = 'Icon anzeigen: *&#38;#@';
$txt['personalizedBBC_testBBC'] = 'BBCode Test';
$txt['personalizedBBC_test_content'] = 'Inhalt:';
$txt['personalizedBBC_test_option'] = 'Option:';
$txt['personalizedBBC_test_option1'] = 'Option1:';
$txt['personalizedBBC_test_option2'] = 'Option2:';
$txt['PersonalizedBBC_disabledFeature'] = 'Diese Funktion ist derzeit für diese Version deaktiviert.';
$txt['personalizedBBC_jQuery'] = 'Externe jQuery Unterstützung aktivieren?';

// drop-down options
$txt['personalizedBBC_type_options'] = array('[tag]Inhalt[/tag]''[tag=option]Inhalt[/tag]''[tag=option1,option2]Inhalt[/tag]''[tag]');
$txt['personalizedBBC_type_display'] = array('[#%^@!]Inhalt[/#%^@!]''[#%^@!=option]Inhalt[/#%^@!]''[#%^@!=Option1,Option2]Inhalt[/#%^@!]''[#%^@!]');
$txt['personalizedBBC_parse_options'] = array('kein Aufarbeiten (kein parsing)''nur {Inhalt}''{Inhalt} und {Option}');
$txt['personalizedBBC_trim_options'] = array('keines''Innen''Außen''beides');

// error message
$txt['PersonalizedBBC_ErrorMessage'] = 'Sie haben für die Personalized BBC Admin-Sektion keine Berechtigung .';
$txt['PersonalizedBBC_PHP_ErrorMessage'] = 'Ihre PHP Version ist zu alt, bitte erweitern Sie dies zu einer neueren Version.<br />Ihre aktuelle Version ist #@#$! , jedoch benötigt dieses Plugin zumindest die Version 5.3.0';
$txt['PersonalizedBBC_DuplicateErrorMessage'] = '<span class="error">Warnung:</span> Dieser BBC existiert bereits als SMF-Grundbaustein. Bitte verwenden Sie einen anderen BBC-tag.';
$txt['PersonalizedBBC_LengthErrorMessage'] = '<span class="error">Warnung:</span> Die maximale Länge eine BBC-tag-Namens darf 25 Zeichen nicht überschreiten.';
$txt['PersonalizedBBC_IllegalErrorMessage'] = '<span class="error">Warung:</span> Nur Buchstaben, nummern und das Untersteich-Zeichen sind innerhalb des BBC-tag-Namens erlaubt.';

// permissions
$txt['permissiongroup_PersonalizedBBC_perms'] = 'Personalized BBC';
$txt['permissiongroup_simple_PersonalizedBBC_perms'] = 'Personalized BBC';
$txt['permissionname_PersonalizedBBC_perm_view'] = 'BB Code ansehen: #@#$!';
$txt['permissionname_PersonalizedBBC_perm_use'] = 'BB Code nutzen: #@#$!';
$txt['permissionhelp_PersonalizedBBC_perm_view'] = 'Erlauben dieser Mitgliedgruppe den #@#$! BB Code zu sehen.';
$txt['permissionhelp_PersonalizedBBC_perm_use'] = 'Erlaube dieser Mitgliedsgruppe den #@#$! BB Code zu nutzen.';
$txt['PersonalizedBBC_perms'] = 'Personalized BB Codes';

// help text
$helptxt['personalizedBBC_tagHelp'] = 'Bezeichnung des BBC-tags. Diese Eingabe ist in soweit eingeschränkt, als nur Buchstaben, Zahlen und das Unterstreichungszeichen (underscores) verwendet werden dürfen. Leerzeichen, die eingegeben werden, werden in Untersteichungszeichen umgewandelt und der gesamte Text in Kleinbuchstaben konvertiert.<br /><br />Normalerweise, erhalten Sie, wenn ein BBC-tag-Name bereits in den Grundeinstellungen von SMF bereits existiert, eine Warnung und es ist Ihnen nicht möglich diese tag zu speichern. Eine Auswahlbox, die, wenn gewählt, die Wahrnung übergeht und erlaubt den tag zu speichern, ist vorgesehen. Ihr neuer BBC-tag wird dann jeglichen bestehenden SMF-Grundeinstellungs-tag überschreiben.<br /><br />Einen bestehenden BBC-tag-Name, der innerhalb der Liste der Personalized BBC besteht, einzugeben, wird stets den bestehenen überschrieben.';
$helptxt['personalizedBBC_tagDescription'] = 'Die Beschreibung des BBC tag. Diese wird Nutzern angezeigt, wenn sie mit der Maus über den BBC-Knopf gleiten.';
$helptxt['personalizedBBC_tagType'] = 'Wählt die Art des BBC-tags, wobei die Beschreibung der Art eigentlich selbsterklärend ist<br /><br />
Mehrfache Anführung von {Inhalt} in ihrem Code wird wahrscheinlich die "kein Aufarbeiten" Option erfordern.<br /><br />Zwischen  "Aufarbeiten (parsing)" und "kein Aufarbeiten (kein parsing)" hin und her schalten, mag unerwünschte Effekte auf den Code, der eingegeben wurde, haben. Deshalb sollte man nachsehen, ob der Code korrekt ist, wenn diese Option geändert wird.<hr /><hr />Geschlossene BBC-tags werden automatisch auf "kein Aufarbeiten (kein parsing) gesetzt.'
;
$helptxt['personalizedBBC_tagParse'] = 'Wählen Sie die Art des "Aufarbeiten parsing" die verwendet werden soll um das Verhalten des BBC-Codes  zu beeinflussen.<br /><br />"kein Aufarbeiten (kein parsing)": Die Nutzereingaben zwischen den tags werden ignoriert (Nur HTML das in den Code-Einstellungen eingegeben wurde, wird angezeigt).<br /><br />nur {Inhalt}: {Inhalt} wird mit dem ersetzt, was der Nutzer zwischen den BBC-tags eingesetzt hat.<br /><br />{Inhalt} und {Option}: {Inhalt} wird mit den ersetzt, was der Nutzer zwischen den tags angeführt hat. {Option} wird durch jenes ersetzt, was der Nutzer nach `=` innerhalb des BBC-tags eingegeben hat.';
$helptxt['personalizedBBC_tagTrim'] = 'Wählen Sie wie die "whitespace" vom der BBCode Ausgabe-Text getrimmt werden.<br /><br />Diese Option ändert ihren BBC-Code, wenn er innerhalb des Adminbereiches gespeichert wird.<br /><br />"kein": Wird Ihren Code nicht trimmen.<br /><br />"innerhalb": Trimmt jeglichen "whitespace" innerhalb des HTML-tags.<br /><br />"außerhalb": Trimmt jeglichen "whitespace" außerhalb des HTML-tags.<br /><br />"beides": Trimmt alle "whitespace".';
$helptxt['personalizedBBC_tagBlockLvl'] = 'Option, ob eine "Block Ebene" angezeigt werden soll.';
$helptxt['personalizedBBC_tagCode'] = 'Das HTML, welches für den BBC verwendet werden soll.<br />ie. &lt;tag&gt;{Inhalt}&lt;/tag&gt; or &lt;tag alt={Option}&gt;{Inhalt}&lt;/tag&gt;<br /><br /> Sie haben die Möglichkeit die Option [Url Einrichten]-Einstellungen zu aktivieren/a<br />Dieses wird geltend, wen eine Url in diese Eingabe gegeben wird und Sie es wünschen, das dessen Fragmente gefiltert werden um die <a href="http://tools.ietf.org/html/rfc1738">RFC 3986</a> Standards einzuhalten.<br />Dies sollte nur genutzt werden, wenn es notwendig/erforderlich ist, da es Ihre Url\' unnötig falsch umgestalten würde.<br />Diese Option ist standardgemäß ausgeschalten.';
$helptxt['personalizedBBC_tagImage'] = 'Wähle das Bild, welches für den BBC genutzt werden soll. Die standardgemäßen Bilder sind innerhalb der Modification inkludier, Sie können aber Anwender_bilder in folgendem Verzeichnis ergänzen: ../Themes/default/images/bbc/PersonalizedBBC. Nur &@!%@ File-Arten werden akzeptiert.';
$helptxt['personalizedBBC_tagImageUpload'] = 'Hochladen eines Bildes in das Personalized BBCode Bilderverzeichnis.';
$helptxt['personalizedBBC_membergroups'] = 'Die Mitgliedsgruppen-Berechtigungen erlauben die Kontrolle über das Ansehen und den Nutzen der BBCs<br /><br />[Ansehen können]<br />-Mitgliedergruppen, die aktiviert/ausgewählt sind, haben die Berechtigung die BBCodes innerhalb des Beitrages zu sehen. Das deaktivieren/nichtauswählen von Mitgliedergruppen, wird diesen nicht erlauben, den BB Code Inhalt einzusehen.<br /><br />[Benützen dürfen]<br />-Mitgliedergruppen die aktiviert/ausgewählt wurden, haben die Berechtigung diesen BBCode innerhalb von Beiträgen zu nutzen. Die deaktivierten/nichtausgewählten Mitgliedergruooen können diesen BBCode nicht nutzen und es wird von deren Post ge-parsed (entfernt), bevor der Beitrag in der Datenbank abgespeichert wird.';
$helptxt['personalizedBBC_tagViewSource'] = 'Option, ob der die Autoling-Möglichkeit deaktiviert wird, während dieser BBCcode genutzt wird. Dieses zu aktivieren, verweigert dem BBCode-parser ihren Links in in url- oder ftp-BBCodes umzuwandeln.<br /><br />Anmerkung: Autolinks sind automatisch deaktiviert, wenn "Aufarbeiten (parsing)" selbst deaktiviert ist und wiedersteht dieser Option nicht.';
$helptxt['personalizedBBC_testBBC'] = 'Geben Sie bestimmte Daten in dieses Feld ein und drücken Sie den [Test]-Knopf um Ihren BBCode zu testen.<br /><br />Das Ergebnis wird unter den Eingaben am Ende der Anzeige angezeigt.<br /><br />Bitte bemerken Sie, dass das Testen eines BBCoces diesen auch in die Datenbank speichert,<br /> deshalbt sollten Sie diesen, wenn Sie ihn nicht möchten, nach dem Testen anpassen oder innerhalb der BBCode-Liste löschen.';
?>

Also attached as file.

Language seems to be ok.

Last but not least: Would it be possible to let the mod display an alternative html for those who are not able to see (maybe later on) like "To view this content, the "certain membership" is required, please go to your membership opinions in your account setting" (link, link...) even automatically or as optional automatic/manual "hidden-waring display"

Sadhu!

sangham.net

Atma thought it would be fine to have a "share place" for codes and htmls:

Share and get code and html snipsl for "Personalized BBC" and similar modes (topic not approved jet)

for the case it will be better places here: 

QuoteValued SMF-Supporters and Friends,

Atma (me) accidentally found two days ago this Mod "Personalized BBC", made by Chen Zhen and found it wonderful while "playing around" to realize some open wishes.

While doing so, and as he is not really someone into the matter of programming and html, he thought that there would be others like him as well and it would be great to have a common share place  of ideas and solutions, so that one does not need to go far or take something from here and there which is not consciously given.

So this tread should be dedicated for BBCode solutions and short snipls and of course with no specific rights reserved.

Atma will also mention, that he is not so aware if there are similar mods like Personalized BBC and please don't feel that it's limited for it and maybe those who have shared similar tools, can also share the links to their modes.

Of course, critic and further hints and discussions should be welcome.

To get a little bit standard to it, it would be good if you design you post like this:

QuoteName: youtube
Description: Simple html to emed youtubes. You may change the layout within the div-style or use the id "youtubex" to style it in your index.css. to embed Youtube Videos by using the new BBCode . Please just put the code of the video between this tags.

For example, you may have such urls:

https://www.youtube.com/watch?v=eiSez7NHRqc
https://youtu.be/eiSez7NHRqc


just use the bold marked code: [youtube]eiSez7NHRqc[/youtube] and you get something like this at the end of the post.

Reason for use: make it possible for certain groups to embed and/or see youtube clips
SMF Version: 2.0.10
Special requirements: none
Mod used: Personalized BBC
BBC Tag: [youtube]
Parsing: Yes content (No / Which)
BBC HTML: <div style="padding:1em 1em 1em 3em;" id="youtubex"><iframe width="360" height="240" src="https://www.youtube.com/embed/{content}" frameborder="0" seamless></iframe></div>
Picture: attached alternative youtoub.gif
Samlpe link: embed Youtube, new BBC

Much joy in working and sharing!

metta & Mudita
Samana Johann

sangham.net

Atma has seen, that the translation of {content} and {option} could cause easily "problems" also the mod is fantastic, because it refreshes even the content of the html-content in the settings. So he had changed to the original {content} and {option} in the german.language.php and attaches it here:


May it be of use.

Sigyn

Cheers! We use this mod frequently on our forum as a way to color the speech of our dragons.

I do have a small issue, perhaps a bug...
Occasionally, though no one has touched the edit for the code, the checkboxes will all unmark and the BBC code and wherever it has been used becomes invisible. I have to go back into the code again to check the boxes and fix it, but I am confused because no one has messed with the code to unmark them.

Is this something that happens often, or something that can be fixed? Does it perhaps interact at all with the Alphabetized BBC mod? Any support or fixes would be lovely, thank you!

Sigyn

sangham.net

Yes, such happens, Sigyn. Mostly if you modify BBCs or put new into it. No real reason found. It could be that it happens if you change some permissions within a group or add new groups. 

Sigyn

I haven't edited the codes that disappear, nor any groups - though I am hoping perhaps there's a solution for it :) It just happens randomly to many of the codes.

Advertisement: