Seite 1 von 1

Probleme beim Einbau des dice-bbcodes

Verfasst: 13.10.2008 15:38
von Greyhound76
Hallo,

ich hab da diesen nette dice-bbcode gefunden und hab soweit alles was in der inst.xml stand erledigt, bis auf zwei Sachen, die ich nicht ganz verstehe.



Code: Alles auswählen

TWO: ACP BBCode addition for [dice]
(1)  Go to Administration Control Panel
(2)  Navigate to Posting -> BBCodes -> Add a new BBcode
(3)  Under "BBCode usage", enter: [dice]{TEXT}[/dice]
(4)  Under "HTML replacement", leaves it empty
(5)  Under "Help line", enter: Roll some dice: [dice]3d6[/dice] rolls three six-sided dice
(6)  Under "Display on posting page", select the box to display the button for [dice]
(7)  Click Submit to save your new BBcode
(8)  Get your BBcode ID by: 
	(8.1)  Click on the "Edit (green image)" button
	(8.2)  Remember the ID on the URL (i.e. &mode=bbcodes&action=edit&bbcode=XX, XX is the number)
(9)  Find define('DICE_BBCODE_ID', 1000); in includes/constants.php
(10) Change 1000 to the bbcode ID XX from (8), e.g. define('DICE_BBCODE_ID', 18);

THREE: ACP BBCode addition for [dice=]
(1)  Go to Administration Control Panel
(2)  Navigate to Posting -> BBCodes -> Add a new BBcode
(3)  Under "BBCode usage", enter: [dice={TEXT1}]{TEXT2}[/dice]
(4)  Under "HTML replacement", leaves it empty
(5)  Under "Help line", leave it empty
(6)  Under "Display on posting page", do not select the box to display the button for [dice=]
(7)  Click Submit to save your new BBcode
(8)  Get your BBcode ID by: 
	(8.1)  Click on the "Edit (green image)" button
	(8.2)  Remember the ID on the URL (i.e. &mode=bbcodes&action=edit&bbcode=XX, XX is the number)
(9)  Find define('DICE_ACTION_BBCODE_ID', 2000); in includes/constants.php
(10) Change 2000 to the bbcode ID XX from (8), e.g. define('DICE_ACTION_BBCODE_ID', 18);



Ab der Nummer 8 konnte ich bisher die Aufgaben nicht erledigen, da ich nicht genau weiss, was ich da machen soll ... also, ich verstehe das nicht, will ich damit sagen. Ich soll ?welche? ID wo genau eintragen???

Es wäre nett, wenn mir da wer weiterhelfen könnte.

Danke schon mal im vorraus.

Greetz, der Greyhound

Verfasst: 14.10.2008 19:38
von Greyhound76
*verzweifelt schieb*

Verfasst: 14.10.2008 19:42
von Dennisen
Das ist doch ganz einfach,
Editiere den erstellen BBCode.
Wenn du im Editiermenü dieses BBCodes bist, endet deine URL mit:
=bbcodes&action=edit&bbcode=XX
Das XX ist die BBCode ID.

Dann sollst du in der includes/constans.php das finden:
define('DICE_BBCODE_ID', 1000);

Und die 1000 ersetzt du mit dem XX, also der BBCode ID.

Verfasst: 15.10.2008 00:05
von Greyhound76
Ah, gut, jetzte hab ich´s verstanden :oops: . Funzt prima.

Danke vielmals, der Greyhound