Pagina 1 van 2
BB codes
Geplaatst: 09 aug 2005, 16:08
door Laurette
Waar kan ik BB codes vinden?
Ik heb er een paar gevonden maar dat zijn er zo weinig.
Ik zoek eigenlijk deze code's
[marquee]tekst tekst tekst tekst tekst[/marquee]
Wijziging: tekst tekst
Maar ik zou het ook willen zien wat er nog meer is.
Geplaatst: 09 aug 2005, 16:10
door ElbertF
Misschien is dit wat, zelf BBCodes maken. Het is sowieso niet moeilijk bestaande BBCode mods wat aan te passen (gebruik dan wel een eenvoudige, zoals de Strike-trhough BBCode).
http://www.phpbb.com/phpBB/viewtopic.php?t=12256
Geplaatst: 09 aug 2005, 16:18
door Laurette
Misschien is dit iets voor later.
Maar de codes die ik zoek zijn denk ik niet zo eenvoudig te veranderen voor mij + dat ik eigenlijk geen codes wil veranderen maar erbij wil toevoegen.
Is er een site waar ik kan vinden hoe ik die 2 codes erbij kan vinden?
Geplaatst: 09 aug 2005, 16:45
door ElbertF
Ik bedoel ook geen standaard BBCodes aanpassen, maar bij het installeren van een nieuwe BBCode mod een beetje je eigen fantasie gebruiken.
De edit en marquee BBCodes vond ik eenvoudig met Google:
http://www.phpbb.com/phpBB/viewtopic.php?t=137297
http://www.phpbb.com/phpBB/viewtopic.php?t=137297
Geplaatst: 09 aug 2005, 16:59
door Diablo Gamer
zo iets als deze hack
Hide BBCode bedoel je toch
Laurette
anders moet je hier even in zoeken
http://www.phpbbhacks.com/searchresults ... &Submit=Go
Geplaatst: 09 aug 2005, 17:02
door Laurette
Is het ook mogelijk dat alleen een moderator en administrator de edit code kunnen gebruiken?
Geplaatst: 09 aug 2005, 17:05
door ElbertF
Dan vergt wel redelijk wat meer werk, je zou wel de BBCode knop achterwege kunnen laten zodat niemand 'm ziet, maar je kunt 'm wel gebruiken.
Geplaatst: 09 aug 2005, 17:20
door Laurette
Bedankt voor deze link staat wel wat interessants tussen :thumb:
Geplaatst: 09 aug 2005, 17:22
door Laurette
Spambot schreef:Dan vergt wel redelijk wat meer werk, je zou wel de BBCode knop achterwege kunnen laten zodat niemand 'm ziet, maar je kunt 'm wel gebruiken.
Goede oplossing, maar uit welke map moet ik dan teskst weglaten om geen knop te krijgen?
Bedankt voor de links van de codes die je gaf alleen waren dit 2 keer dezelfde codes, alle 2 voor de edit tag

Geplaatst: 09 aug 2005, 17:32
door ElbertF
Sorry, dit is de marque BBCode:
http://www.phpbbhacks.com/download/230
Je komt ergens in de mod tegen dat je in /templates/*template_naam*/posting_body.tpl zoiets moet plaatsen:
Code: Selecteer alles
<input type="button" class="button" accesskey="*" name="addbbcode*" value=" * " style="font-style:italic; width: 30px" onClick="bbstyle(*)" onMouseOver="helpline('*')" />
Dat is de knop, en die regel moet je dan weglaten.
Geplaatst: 09 aug 2005, 17:41
door Laurette
Ok ik ga het proberen, ik zal even laten weten of het is gelukt.
Bedankt voor je hulp :thumb:
Geplaatst: 09 aug 2005, 17:56
door Laurette
Ok ik heb al een vraag;
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array(''
Ik kom dit helemaal niet tegen in posting.php
Hoe moet ik nu verder gaan?
Geplaatst: 09 aug 2005, 18:05
door ElbertF
Ehm, daar moet je geloof ik eerst een andere mod voor geïnstalleerd hebben. Lees even de mod-beschrijving door, daar staat het vast in.
Edit // Deze dacht ik:
http://www.phpbb.com/phpBB/viewtopic.php?t=145513
Geplaatst: 09 aug 2005, 18:08
door Laurette
Ja die heb ik al geinstaleerd maar daar hoefde ik alleen dit mee toe te voegen
posting.php
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# make_jumpbox('viewforum.'.$phpEx);
#
make_jumpbox(
#
#-----[ AFTER, ADD ]---------------------------------
#
Multi_BBCode();
Dus daar staat dus niks over die zinnen in.
Geplaatst: 09 aug 2005, 18:10
door ElbertF
Wat bedoel je precies? Die link die ik je gaf is een niet echt een kleine mod volgens mij.
Edit // Even gekeken, ik zie dit wel in de mod staan:
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
$bbcode_tpl = null;
#
#-----[ AFTER, ADD ]---------------------------------
#
// MULTI BBCODE-begin
function Multi_BBCode()
{
global $template, $lang;
// DO NOT CHANGE THIS ARRAY
$hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
//NOTE: the first element of each array must be '' Add new elements AFTER the ''
$EMBB_widths = array('') ;
$EMBB_values = array('') ;
Vreemd genoeg zie ik "
$EMBB_keys = array(''" er niet bijstaan, misschien weet iemand anders dit..

Geplaatst: 09 aug 2005, 18:16
door Laurette
Dit is de mod die ik eerst moest instaleren.
Code: Selecteer alles
#############################################################
## MOD Title: Multiple BBCode MOD
## MOD Author: Nuttzy99 < nospam@blizzhackers.com > (n/a) http://www.blizzhackers.com
## MOD Author, Secondary: wGEric < eric@best-dev.com > (Eric Faerber) http://mods.best-dev.com/
##
## MOD Description: Allows you to install BBCode MODs that
## add quick BBCode buttons in post edits. Without this
## MOD, there is no standard way of installing BBCode MODs.
## MOD Version: 1.4.0c
##
## Installation Level: EASY
## Installation Time: 2 minutes
## Files To Edit: posting.php
## templates/subSilver/posting_body.tpl
## 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:
## + if Multi BBCode MOD v1.0.1 is already installed, use the update to 1.2.0 MOD
## and do NOT install this MOD script
## + Works with phpBB 2.0.2 thru 2.0.10
## + installable with EasyMOD
##
## Version 1.4.0 makes it so MOD Authors don't have to set a hotkey for their BBCodes.
##
## I have added instructions to the MOD that tell MOD Authors what to do in the language files
## This isn't required but I heavily recommend that you do it anyways just in case the MOD Authors
## use something in what I have added as their FIND.
##
##############################################################
##
## MOD History:
##
## 2004-09-26 - Version 1.4.0
## + Sets hot key automatically
## + Adds it to Private Messages (version b)
## + Fixes a help line bug (version c)
##
## 2003-09-25 - Version 1.2.1
## + improved MOD Template compliance
##
## 2003-08-15 - Version 1.2.0
## + updated for 2.0.6
## + allows additional hotkeys - Xore did most of the work ;-)
## + made EasyMOD compatiable
##
## 2003-02-03 - Version 1.0.1
## + updated for 2.0.4
## + no code changes required, just updated the header info
##
## 2002-08-31 - Version 1.0.0
## + initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# make_jumpbox('viewforum.'.$phpEx);
#
make_jumpbox(
#
#-----[ AFTER, ADD ]---------------------------------
#
Multi_BBCode();
#
#-----[ OPEN ]---------------------------------
#
privmsg.php
#
#-----[ FIND ]---------------------------------
#
generate_smilies('inline', PAGE_PRIVMSGS);
#
#-----[ AFTER, ADD ]---------------------------------
#
Multi_BBCode();
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
$bbcode_tpl = null;
#
#-----[ AFTER, ADD ]---------------------------------
#
// MULTI BBCODE-begin
function Multi_BBCode()
{
global $template, $lang;
// DO NOT CHANGE THIS ARRAY
$hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
//NOTE: the first element of each array must be '' Add new elements AFTER the ''
$EMBB_widths = array('') ;
$EMBB_values = array('') ;
for ($i=1; $i<count($EMBB_values); $i++)
{
// load BBcode MODs info
$val = ($i*2)+16 ;
$help_lang = ( !empty($lang['bbcode_help'][(strtolower($EMBB_values[$i]))]) ) ? $lang['bbcode_help'][(strtolower($EMBB_values[$i]))] : $lang['bbcode_help'][$EMBB_values[$i]];
$template->assign_block_vars('MultiBB', array(
'KEY' => $hotkeys[$i],
'NAME' => "addbbcode$val",
'HELP' => sprintf($help_lang, $hotkeys[$i]),
'WIDTH' => $EMBB_widths[$i],
'VALUE' => $EMBB_values[$i],
'STYLE' => "bbstyle($val)")
);
}
}
// MULTI BBCODE-end
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]---------------------------------
#
<!-- BEGIN MultiBB -->
{MultiBB.VALUE}_help = "{MultiBB.HELP}";
<!-- END MultiBB -->
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
# </span></td>
#
name="addbbcode16"
</td>
#
#-----[ AFTER, ADD ]---------------------------------
#
<!-- BEGIN MultiBB -->
<td><span class="genmed">
<input type="button" class="button" accesskey="{MultiBB.KEY}" name="{MultiBB.NAME}" value="{MultiBB.VALUE}" style="width: {MultiBB.WIDTH}px" onClick="{MultiBB.STYLE}" onMouseOver="helpline('{MultiBB.VALUE}')" />
</span></td>
<!-- END MultiBB -->
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# <select name="addbbcodefontcolor" onChange="bbfontstyle('[color=' + this.form.addbbcodefontcolor.options[this.form.addbbcodefontcolor.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
name="addbbcode18"
#
#-----[ IN-LINE FIND ]---------------------------------
#
name="addbbcode18"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
name="addbbcodefontcolor"
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode18.options
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontcolor.options
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode18.selectedIndex
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontcolor.selectedIndex
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# </select> {L_FONT_SIZE}:<select name="addbbcodefontsize" onChange="bbfontstyle('[size=' + this.form.addbbcodefontsize.options[this.form.addbbcodefontsize.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
name="addbbcode20"
#
#-----[ IN-LINE FIND ]---------------------------------
#
name="addbbcode20"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
name="addbbcodefontsize"
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode20.options
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontsize.options
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode20.selectedIndex
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontsize.selectedIndex
#
#-----[ OPEN ]---------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# $lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
#
$lang['bbcode_f_help']
#
#-----[ AFTER, ADD ]---------------------------------
#
//
// bbcode help format goes like this
// $lang['bbcode_help']['value'] = 'BBCode Name: Info (Alt+%s)';
//
// value is what you put in $EMBB_values in posting.php
// %s gets replaced with the automatic hotkey that the bbcode gets assigned
//
$lang['bbcode_help']['value'] = 'BBCode Name: Info (Alt+%s)';
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------
#
# EoM[/size]
In het stukje
#
#-----[ OPEN ]---------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# make_jumpbox('viewforum.'.$phpEx);
#
make_jumpbox(
#
#-----[ AFTER, ADD ]---------------------------------
#
Multi_BBCode();
#
#-----[ OPEN ]---------------------------------
#
privmsg.php
zowel hier als in de tweede mod komen komen deze
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array(''
zinnen niet voor.
In de tweede mod wordt er gezegt zoek deze zinnen maar die bestaan niet.
Tip: Gebruik codetags, veel makkelijker en beter leesbaar!
Geplaatst: 09 aug 2005, 18:19
door ElbertF
Lees even mijn edit. Ik heb deze mod nooit gebruikt, hopelijk kan iemand anders je verder helpen.

Geplaatst: 09 aug 2005, 18:28
door Laurette
Dat stukje wat je in je edtit schreef in welke mod kwam dit voor?
want bij mij komt er zowel als in de eerste mod als in de tweede mod niks voor wat hier op lijkt.
Geplaatst: 09 aug 2005, 18:34
door Laurette
Soory ik heb het al gevonden, maar goed ik heb er weinig aan want staat inderdaad niet alles maar ook helemaal in de verkeerde map.
Is er niet nog een edit mod?
Geplaatst: 09 aug 2005, 18:48
door Bee
Veel mods zijn gemaakt voor Multiple BBCode 1.2.1, ik ben ook niet blij met versie 1.4.0 van de Multiple BBCode.