Würfel für das Board?

In diesem Forum können Mod-Autoren ihre Mods vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Sabiene

Beitrag von Sabiene »

Ich würde auch gerne das Würfel spiel haben.
Hab die dice.php hochgeladen, aber wenn ich sie aufrufe erscheint
folgende Fehlermeldung:

parse error, unexpected T_VARIABLE on line 56

Was kann ich machen? :roll:
Hats denn bei dir geklappt, Valerie Raghnall?
Benutzeravatar
Lucas1510
Mitglied
Beiträge: 823
Registriert: 04.07.2003 13:59

Beitrag von Lucas1510 »

Hi,

vielleicht ist das ja für Euch interessant: bbcode DICE (BETA)

Code: Alles auswählen

################################################################# 
## MOD Title: Dice BBCode 
## MOD Author: Hades < phpbb@hades.me.uk > - Lee Conlin - http://www.celestialvault.com/blast 
## MOD Description: Adds a dice roller BBCode to your forum. 
## MOD Version: 1.2.2 
## 
## Installation Level: Intermediate 
## Installation Time: 10 Minutes 
## Files To Edit: bbcode.php, posting.php, bbcode.tpl, posting_body.tpl, lang_main.php, lang_bbcode.php 
## Included Files: n/a 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## 
## Author Notes: 
## 
##  BASED ON THE DICE MOD BY Jeff Leigh 
## 
##  IMPORTANT: if you are installing manually (without EasyMod) you MUST first 
##        install the Multi BBCode MOD available at http://www.phpbb.com/mods/downloads 
## 
##  For serious use of this MOD, you MUST disable non-moderator editing of posts.. otherwise, users 
##  can simply edit their posts a few times until they get a good roll.  Also, if a post is edited (by a 
##  moderator or user) the word 'Fixed' will appear in the dice roll.  This prevents users from 'fixing' 
##  their results by passing in a result seed they know brings good results... but is nessassary to 
##  allow a post to be edited without changing the results.  I am not quite happy with this, but 
##  it does the job. 
## 
##  The obvious way to avoid the above issues is to use the Post_ID to seed the results.  This, 
##  however, appeared to require changes to phpbb function declarations - a thing I try very 
##  hard to avoid (as it can cause problems for other MODs not expecting these changes). 
## 
##############################################################
Was da wichtig ist:
IMPORTANT: if you are installing manually (without EasyMod) you MUST first install the Multi BBCode MOD available at http://www.phpbb.com/mods/downloads
Habe weder den Dice-Mod noch den Multi BBcode Mod eingebaut, aber der Dice-Mod liesst sich ganz gut :)

Viele Grüße,

Lucas
Sabine

Beitrag von Sabine »

Ist das dieser Multi-Mod?:
http://www.phpbb.com/mods/downloads/upl ... bbc100.txt

Ich hab den installiert, aber wenn ich nun posten will kommt ne Fehlermeldung: parse error, unexpected ';'

Der Fehler liegt an folgender Änderung:

Code: Alles auswählen

# 
#-----[ OPEN ]---------------------------------
# 
posting.php

# 
#-----[ FIND ]---------------------------------
#
#  NOTE: the full line to look for is:
# make_jumpbox('viewforum.'.$phpEx);
#
make_jumpbox(


# 
#-----[ AFTER, ADD ]---------------------------------
#

// EASYMOD-begin
//NOTE: the first element of each array must be ''   Add new elements AFTER the ''
$EMBB_keys = array('') ;
$EMBB_widths = array('') ;
$EMBB_values = array('') ;

for ($i=1; $i<count($EMBB_values); $i++)
{
	// EasyMod BBcode mods
	$val = ($i*2)+16 ;
	$template->assign_block_vars('EasyModBB', array(
		'KEY' => $EMBB_keys[$i],
		'NAME' => "addbbcode$val",
		'WIDTH' => $EMBB_widths[$i],
		'VALUE' => $EMBB_values[$i],
		'STYLE' => "bbstyle($val)")
	);
}
// EASYMOD-end[/size]
Denn wenn ich diese rückgängig mache, ist er weg.
Muss ich den einzusetzenden Text direkt hinter die öffnende Klammer schreiben?
Ich denke mal nicht das ich das Problem daran liegt, dass ich 2.0.4 hab.
magikyr
Mitglied
Beiträge: 1
Registriert: 06.06.2004 20:31

Beitrag von magikyr »

eine möglichkeit mit mehreren würfeln zu würfeln wäre net ;)
d20 oder d4 usw
HyperPunk
Mitglied
Beiträge: 35
Registriert: 13.10.2005 23:18

Beitrag von HyperPunk »

Das schaut ja alles recht geil aus aber irgendwie blick ich da jetzt grad net so ganz durch...

Würde nämlich auch gerne nen Würfelmod haben...
Am geilsten wäre das dann für mich wenn man das beim Post mit nem befehl wie z.B. /dice1w6 oder sowas in der art aufrufen könnte.
und man müsste auf jeden fall 6seitige und 20seitige Würfel wählen können.

Kann mir da jemand sagen ob das da schon das ist was ich suche oder was ich da noch anders machen muss bzw das vll für mich schon ändern so dass es passt??
hab da voll keine ahnung von.
Benutzeravatar
Endres
Mitglied
Beiträge: 70
Registriert: 19.11.2005 12:18
Wohnort: Wuppertal
Kontaktdaten:

Beitrag von Endres »

Also man kann das alles auch mit JScript statt mit PHP machen, wäre dann auch nicht so Anstrengend!!! :wink:
HyperPunk
Mitglied
Beiträge: 35
Registriert: 13.10.2005 23:18

Beitrag von HyperPunk »

wenn ich nun verstehen würde was von dem gepostetem was macht wäre ich ja schonmal etwas weiter und dann muss ich noch wissen ob mir des hilft, da ich des mit dem Würfeln nur für bestimmte bereiche brauche bzw haben will.
HyperPunk
Mitglied
Beiträge: 35
Registriert: 13.10.2005 23:18

Beitrag von HyperPunk »

hallo kann mir denn wirklich keiner weiter helfen???
Benutzeravatar
-=Fable=-
Mitglied
Beiträge: 491
Registriert: 16.09.2005 19:12
Wohnort: Nahe Lüneburg
Kontaktdaten:

Beitrag von -=Fable=- »

Ich weiß ja nicht ob der Link schon gepostet wurde, aber dieser mod hört sich n bischn an als hätte er ne würfelfunktion ;)

http://www.phpbbhacks.com/download/4366
Besucht meine Page unter http://www.roqbar.de
Benutzeravatar
Gumfuzi
Ehemaliges Teammitglied
Beiträge: 2448
Registriert: 26.03.2004 22:25
Wohnort: Linz, AT
Kontaktdaten:

Beitrag von Gumfuzi »

Hat das schon jemand eingebaut und kann man sich das Teil wo ev. anschauen?
Antworten

Zurück zu „phpBB 2.0: Mods in Entwicklung“