En WYSIWYG-Editor, istället för BB-KOD
Moderatorer: Moderatorgrupp, Supportgrupp
En WYSIWYG-Editor, istället för BB-KOD
Är ny på detta forum men redan hunnit läsa igenom en hel del och hittat vettiga tips, länkar och annat som garanterat kommer hjälpa mig och svara på frågor. Har använt mig av phpbb2 till och från genom åren men har nu inte haft några aktiva webbprojekt på ett tag men det är nu dags att ta tag i detta igen. Har en liten egen sida som jag leker runt med har en liten blogg, länkar och annat matnyttigt och tanken är nu att gå ett steg längre och starta upp ett forum, bild-dump, fil-dump och lite andra tjänster som skall vara gratis på internet.
Gällande forumet så vill jag minnas att det till phpbb2 fanns en WYSIWYG editor att installera som mod istället för den vanliga BB-kod redigeraren, jag anser att en vettig editor när man skall posta inlägg och annat eventuellt kan höja nivån på forumet då fler av besökarna kan snygga till och ordna sina inlägg och trådar. Många har svårt att hålla koll på olika koder för olika funktioner, hur dom skall börja och sluta och därför vill jag göra det enklare för mina kommande användare genom att erbjuda en WYSIWYG editor som dom kanske känner igen sig i från diverse andra ordbehandlare.
Har i mitt sökande hittat 2 st modifikationer men ingen verkar vara riktigt stabil, dom jag funnit är Hoteditor men den verkar bugga ur lite ibland samt känns lite väl överflödig med funktioner blir lite plottrigt istället. Den andra jag hittat är en FCKeditor_mod_01 men den är inte precis nyligen uppdaterad och även den har haft lite problem med buggar och annat. Den jag gärna hade sett fungerade väl är absolut FCKeditorn då jag gillar den och använt den tidigare i andra program och skript.
Så är det någon här på forumet som har koll på om det finns någon nyare eller mer funktionell WYSIWYG-editor till phpbb3 av senaste versionen?
Mvh,
ViPER
Re: En WYSIWYG-Editor, istället för BB-KOD
Nej, jag har inte sett någon modd för att köra WYSIWYG editor istället för BBCode, så jag är tvungen att passa vidare, men ser poängen i det du skriver.
Brukar sova lite efter 29:e timman och Ingen support via PM!
Re: En WYSIWYG-Editor, istället för BB-KOD
Re: En WYSIWYG-Editor, istället för BB-KOD
Han kan själv skriva i gästboken (forumet) för att kolla om det räcker...
Brukar sova lite efter 29:e timman och Ingen support via PM!
Re: En WYSIWYG-Editor, istället för BB-KOD
Även om det inte är en ren WYSIWYG-editor så förenklar den ju lite mer och förklarar lite bättre för användaren hur den skall användas vilket alltid är bra.
PS. Finns det möjlighet att ändra mitt användarnamn till ViPER istället för ViPEr som det är nu? Såg inte att det blev fel förrens nu får skylla på mitt nya tangentbord tror jag.
Mvh,
ViPER
Re: En WYSIWYG-Editor, istället för BB-KOD
Brukar sova lite efter 29:e timman och Ingen support via PM!
Re: En WYSIWYG-Editor, istället för BB-KOD
Hittade efter lite efterforskningar vilken modifikation det är som är installerat på det forum som Peetra länkade till och det verkar heta ABBC3 eller Advanced BB-Code Box och går att hitta på http://www.mssti.com/phpbb3/ för den som är intresserad!
Mvh,
ViPER
Re: En WYSIWYG-Editor, istället för BB-KOD
Hur installlerar man?
I vilket document kan man översätta i?
Re: En WYSIWYG-Editor, istället för BB-KOD
Lokalt på din dator, när du har packat upp filen! (ej forumet)
Kopiera som ligger under language/en/ till anguage/sv/
Översätt sedan alla filer som ligger under "language/sv/"
Överför alla filer under language/sv/ till ditt forum.
Brukar sova lite efter 29:e timman och Ingen support via PM!
Re: En WYSIWYG-Editor, istället för BB-KOD
Jag fattar inte riktigt?? Jag e inte så bra på detta så kan vi inte ta det lite enklare??
snälla^^
Kod: Markera allt
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--For security purposes, please check: http
://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.1.xsd">
<header>
<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
<title lang="en">Advanced BBCode Box 3 with ACP ( aka ABBC3 )</title>
<description lang="en">ABBC3 MOD adds lots of useful BBCode features and makes the bbcode buttons look just like Microsoft Office.
It also improves the functions of phpBB's BBCode function.
It adds the bbcode exactly where the cursor is, inserts smilies where the cursor is, and adds more ways to customize posts.
The MOD is very fast loading, and is a sleek addition to your phpBB bulletin board. You must have javascript enabled to use this MOD.</description>
<author-notes lang="en"><![CDATA[
I contacted "Disturbed One" the original developer of this mod and "freddie" the last developer of this mod,
and ask for upgrade the Advanced BBcode Box for phpbb2.x to phpbb3.0.0,
Both say that they will not do the job, and are agree that I do it, so here I am ;)
-------------------------------------------------------------------
phpBB3 posting page use javascript, basically to add tags to the textarea,
when you click on a button javascript insert the code into the post text.
ABBC3 works in the same way, and add more javascript funtions to the wizards...
Apart from that the only function that need extra javascript is the fade tag.
-------------------------------------------------------------------
Please do not remove the copyright notices and the link to www.mssti.com
If you refuse to this, will not get support from me.
-------------------------------------------------------------------
Once you finish the install, please take your time to read the the contrib folder content.
-------------------------------------------------------------------
This MOD works in pbpBB 3.0.2 ( also works in 3.0.0 and 3.0.1 )
-------------------------------------------------------------------
Tested on Windows Browsers:
- Internet Explorer 7.0
- Mozilla Firefox 2.0
- Opera 9.5
- Safari 3.0
- Netscape 8.1
-------------------------------------------------------------------
List of all included : ( In default order )
* + ( Posting box Resizer : larger )
* - ( Posting box Resizer : shorter )
* Font Type Dropdown
* Font Size Dropdown
* Highlight Font Color Dropdown
* Font Color Dropdown ( Disable by default )
--------------------
* Cut selected text
* Copy selected text
* Paste previously copy text
* Remove BBCode (Removes all BBCode tags from selected text)
--------------------
* Unordered List
* Ordered List
* List item
* Header line
* Bold
* Italic
* Underline
* Strike through
* Superscript
* Subscript
* Glow text ( Only Internet explorer ) ( Disable by default )
* Shadow text ( Only Internet explorer ) ( Disable by default )
* Dropshadow text ( Only Internet explorer ) ( Disable by default )
* Blur text ( Only Internet explorer ) ( Disable by default )
* Wave text ( Only Internet explorer ) ( Disable by default )
* Text Fade
* Text Gradient
* Justify Align
* Right Align
* Center Align
* Left Align
* Preformat text
--------------------
* Tab
* Message Box text direction Left to Light (Traditional)
* Message Box text direction right to Left (Arabic, etc)
* Marquee Up
* Marquee Down
* Marquee Right
* Marquee Left
* Code
* Quote
* HTML ( Disable and restricted for administrators by default )
* Spoiler (User must click on link to review text within tags)
* Moderator ( Use restricted to moderators and / or administrators )
* Off topic
* NFO ( better on Internet explorer )
* Table row cell wizard
--------------------
* Simple upload files ( Use restricted to moderators and / or administrators ) ( Disable by default )
* Hyperlink Wizard
* Email Wizard
* Web included by iframe ( Disable by default ) ( Note : it's use activex so its not safe for forums or other websites.. with this way hacker can get in site and hack them... )
* Ed2k link Wizard
* Image Wizard
* Thumbnail Wizard
* Imgshack Wizard
* Link checker ( It requires that you have CURL installed )
* Rapid share checker ( Disable by default )
* Click counter ( Disable by default ) ( Need database update ! )
* Search tag
--------------------
* BBvideo Wizard ( 33 video sites and 7 files types )
* Flash (swf) ( Disable by default )
* Flash (flv) ( Disable by default )
* Video ( Disable by default )
* Stream ( Disable by default )
* Quick time ( Disable by default )
* Real media ( Disable by default )
* Google video ( Disable by default )
* Youtube video ( Disable by default )
* Veoh video ( Disable by default )
* CollegeHumor video ( Disable by default )
* DailyMotion video ( Disable by default )
* Gamespot video ( Disable by default )
* GameTrailers video ( Disable by default )
* IGN video ( Disable by default )
* LiveLeak video ( Disable by default )
--------------------
* Custom BBcodes
-------------------------------------------------------------------
Translation : ( See contrib/language folder )
en [English]
es [Spanish]
-------------------------------------------------------------------
Official last version
-----------
Meanwhile the phpBB group validation and as the MOD is not yet in the phpBB MOD database, check this official link for updates... http://www.mssti.com/phpbb3/index.php
If you want to test this board, you can use a demo acount : Please visit : http://www.mssti.com/phpbb3/viewtopic.php?f=2&t=1]]></author-notes>
<author-group>
<author>
<realname>Gabriel</realname>
<username>leviatan21</username>
<email>info@mssti.com</email>
<homepage>http://www.mssti.com/phpbb3/</homepage>
</author>
</author-group>
<mod-version>1.0.10</mod-version>
<installation>
<level>easy</level>
<time>600</time>
<target-version>3.0.2</target-version>
</installation>
<history>
<entry>
<date>2008-09-22</date>
<rev-version>1.0.10</rev-version>
<changelog lang="en">
<change> Added "remember the text box size after preview".</change>
<change> Added new bbcode HTML to allow (x)html code in your post ( Disable and restricted for administrators by default ) </change>
<change> Added a button to add more divisions or line break in ACP.</change>
<change> Change wizard method.</change>
<change> Change install script, now you can install/update/delete ABBC3.</change>
<change> Change display resized images in full size</change>
<change> Small fix in some bbcode.</change>
<change> ABBC3 now works inside an Iframe.</change>
<change> Added the User ID to Uploaded files by ABBC3</change>
<change> Safety Check if CURL is present for "Link checker" ( testlink bbcode ).</change>
<change> Added all patches from previous versions</change>
</changelog>
</entry>
<entry>
<date>2008-05-01</date>
<rev-version>1.0.9</rev-version>
<changelog lang="en">
<change> New installation method and updated for phpbb v3.0.1
Now phpbb3 takes care about parsing all bbcodes.
This improve speed and security.</change>
<change> Change ABBC3 files, folder and var names.</change>
<change> Added ABBC3 bbodes to phpbb3 custom bbcodes table :</change>
<change> Renew ACP module for customize and setting ABBC3.</change>
<change> Fixed insert bbcodes with wizards on IE ( Thanks phptr )</change>
</changelog>
</entry>
<entry>
<date>2008-03-31</date>
<rev-version>1.0.8</rev-version>
<changelog lang="en">
<change>New installation method, Now ABBC3 is more effective, only loaded if necessary, improved speed and security.</change>
<change>Change ABBC3 files, folder and var names.</change>
<change>Added ACP module for customize and setting ABBC3. ( Special thanks to joebart72 )</change>
<change>Added new bbcode : tab ( Thanks calproye )</change>
<change>Added new bbcode testlink : This tag is used to check the validity of file host links (also called one-click hosts) ( Thanks pavabe ).</change>
<change>Added new bbcode list item [*]. ( Thanks CharlesT )</change>
<change>Added Posting box Resizer. ( Thanks to CrossoverX )</change>
<change>Added Image Resizer on post : This fix for bug of [img] bbcode when someone add
a huge image has width larger than the width of post content.
you have 4 options to display image in full size ( greybox, enlarge, same window, new window).</change>
<change>Added new bbcode BBvideo ( with width and height up to 999px ): now you have 1 bbcode for all (34) video sites :
1.uncutvideo.aol.com,
2.clipfish.(de|co),
3.collegehumor.com,
4.crackle.com,
5.dailymotion.com,
6.gamespot.com
7.gametrailers.com,
8.gamevideos.com,
9.godtube.com,
10.ign.com,
11.liveleak.com,
12.livevideo.com,
13.megavideo.com
14.metacafe.com,
15.myspacetv.com,
16.vids.myspace.com,
17.myvideo.(de|be|nl),
18.photobucket.com,
19.sevenload.com
20.spike.com,
21.stage6.com,
22.starsclips.net,
23.tu.tv,
24.vbox7.com,
25.veoh.com,
26.videu.de,
27.vidiac.com
28.vidilife.com,
29.vimeo.com,
30.video.google,
31.video.yahoo,
32.vsocial.com,
33.wat.tv,
34.youtube.com
Also work with (7) files types:
35.Flash .swf,
36.Flash .flv,
37.Windows Media Video .wmv,
38.Moving Pictures Expert Group .mpg,
39.Quick Time .mp3,
40.Quick Time .qt,
41.Real Audio .ram</change>
<change>Join ABBC3 bbcodes and Ex custom bbcodes, and now they are all mixed together
by default bbcodes are grouped by type. But you can distribute to your liking.</change>
<change>Fixed MCP (Moderator Control Panel ) with ABBC3.</change>
<change>Change Litebox with Graybox used in wizards, thumbnails and image resizer. ( Thanks WillSWC )</change>
<change>Renew wizards, regarding with styles templates and phpbb3.</change>
<change>Check permissions status for tags : Links, BBCode, Images, Flash, Quote and Moderator. ( Thanks to muiketi )</change>
<change>New and renewed images. ( Thamks SinDramas )</change>
<change>Fixed align tag</change>
<change>Fixed others minor bugs. ( Thamks SinDramas )</change>
</changelog>
</entry>
<entry>
<date>2008-02-21</date>
<rev-version>1.0.7b</rev-version>
<changelog lang="en">
<change>Fixed the problem when DEBUG is set to true. ( Thanks to muiketi )</change>
<change>Fixed the problem when Quoting or PM's a message. ( Thanks to Anabella! )</change>
<change>Fixed mouseover help for phpbb custom bbcodes, in subsilver2 ( Thanks SinDramas )</change>
<change>Fixed add-on upload.</change>
<change>Fixed others minor bugs.</change>
<change>Re-write, updated and added text to all documents ( add-on, how-to-add, ...) and languages files</change>
</changelog>
</entry>
<entry>
<date>2008-02-18</date>
<rev-version>1.0.7</rev-version>
<changelog lang="en">
<change>New installation method</change>
<change>Re-write all code, now ABBC3 is a class.</change>
<change>Dinamic display page for posting.</change>
<change>Added help page ! ( Thanks muiketi )</change>
<change><![CDATA[Added font colour dropdown and remove phpbb3 color selector ( Suggested by riehn )>]]></change>
<change>Improve cosmetic issue.</change>
<change>Added severals background images. For set it, please read the contrib folder content.</change>
<change>Fixed PM's with ABBC3. ( Thanks mej284 )</change>
<change>Fixed insert bbcodes with wizards on IE ( Thanks phptr )</change>
<change>Fixed show custom bbcodes from a how-to-add in 'posting_abbcodes_buttons.html' files ( Thanks joebart72 )</change>
<change>Added image left|center|right ( Thanks BizimPencere ). For set it, please read the contrib folder content.</change>
<change>Fixed web, now you can use http://www. | https://www. | www.</change>
<change>Fixed Youtube link, now you can use with or without www, also work with international links.</change>
<change>Added severals pre installed custom bbcodes, all are disabled by default. For set it, please read the contrib folder content.
* icon for Simple Hide BBcode MOD by ycl6. ( not the full mod )
* Moderator ( Thanks pavabe )
* Offtopic ( Thanks tupeu )
* Dailymotion video ( Thanks joebart72 )
* Gamespot video ( Thanks naushadhassam )
* Gametrailers video ( Thanks naushadhassam )
* IGN video ( Thanks naushadhassam )
* Liveleak video ( Thanks [alfa] )
* Veoh video ( Thanks turkanime )
* NFO ( Thanks TigerCrow ) (better on Internet explorer)
* Glow text ( Thanks muiketi ) (Only Internet explorer)
* Shadow text ( Thanks muiketi ) (Only Internet explorer)
* Dropshadow text ( Thanks muiketi ) (Only Internet explorer)
* Blur text ( Thanks muiketi ) (Only Internet explorer)
* Wave text ( Thanks muiketi ) (Only Internet explorer)
* Search tag ( Thanks muiketi )
* Simple upload files ( Thanks naushadhassam )</change>
</changelog>
</entry>
<entry>
<date>2008-02-03</date>
<rev-version>1.0.6b</rev-version>
<changelog lang="en">
<change>New installation method</change>
<change>Fixed PM's with ABBC3. ( Thanks mej284 )</change>
<change>Fixed show custom bbcodes from a how-to-add in 'posting_abbcodes_buttons.html' files ( Thanks joebart72 )</change>
<change>Added 2 pre installed custom bbcodes : Dailymotion and Moderator, both are disabled by default.</change>
</changelog>
</entry>
<entry>
<date>2008-01-31</date>
<rev-version>1.0.6</rev-version>
<changelog lang="en">
<change>New installation method</change>
<change>New config, you can enable/disable each one tags, regardless. By default all are enables
please open includes/abbcode.php and look at $abbcode_config = array()</change>
<change>Fixed if text is selected and clik on a tag, the wizard is not displayed
and instead add the selected bbcode. ( excepted table bbcode )</change>
<change>Parsing abbcodes improved, now it's more fast</change>
<change>Fixed bug table parsing.</change>
<change><![CDATA[Added wizard examples, please open language/en/mods/abbcode.php
and look at all 'ABBCODE_?????_NOTE' => and add/change to your own examples ;)]]></change>
<change>Fixed wizards no description imput. ( Thanks pavabe )</change>
<change>Fixed wizard email ( Thanks pavabe )</change>
<change>Fixed style/subsilver2/posting_button.html ( Thanks mej284 )</change>
<change>Fixed video + Real Player + stream tags.</change>
<change>Added new typo thumbnail</change>
<change>Added new typo quick time</change>
<change>Fixed the copyright link ( Thanks joebart72 )</change>
<change>Fixed a misspell in language/en/mods/abbcode.php ( Thanks pavabe )</change>
</changelog>
</entry>
<entry>
<date>2008-01-25</date>
<rev-version>1.0.5</rev-version>
<changelog lang="en">
<change>Fixed overall_header.html javascript call.</change>
<change>Fixed grad color bug for IE ( Thanks ThunderCrew )</change>
<change>Fixed bug install.txt file</change>
</changelog>
</entry>
<entry>
<date>2008-01-18</date>
<rev-version>1.0.4</rev-version>
<changelog lang="en">
<change>Added security on laguages files.</change>
<change>Renewed wizards.</change>
<change>Added/renewed font styles.</change>
<change>Added imageshack upload.</change>
<change>Fixed video + Real Player + stream tags.</change>
<change>Fixed grad color. ( Thanks ThunderCrew )</change>
<change>Fixed table.</change>
<change>Improve cosmetic issue.</change>
</changelog>
</entry>
<entry>
<date>2008-01-15</date>
<rev-version>1.0.3</rev-version>
<changelog lang="en">
<change>Fix in subsilver posting_abbcodes_buttons.html.</change>
<change>Added contrib/add-on folder with Quick reply info.</change>
<change>Fixed private message bugs. ( Thanks El_Vindicador )</change>
<change>Fixed others minor bugs.</change>
</changelog>
</entry>
<entry>
<date>2008-01-14</date>
<rev-version>1.0.2</rev-version>
<changelog lang="en">
<change>Change folder placement ( Suggested by MrC ).</change>
<change>Added languaje file.</change>
<change>Changed highlight dropdown colors with phpbb colors.</change>
<change>Change the copyright link to image link.</change>
<change><![CDATA[Added Giant font size (you must go ACP -> General Tab -> Board configuration -> Post settings
look at "Maximum font size per post: Maximum font size allowed in a post. Set to 0 for unlimited font size." and change 200 value with 300)]]></change>
</changelog>
</entry>
<entry>
<date>2008-01-11</date>
<rev-version>1.0.1</rev-version>
<changelog lang="en">
<change>Added typo Pre.</change>
<change>Adder table wizard ( Suggested by ahmedgroup ).</change>
<change>Fixed Gradient.</change>
<change>Fixed added codes buttons from phpbb3 ACP.</change>
</changelog>
</entry>
<entry>
<date>2008-01-10</date>
<rev-version>1.0.0</rev-version>
<changelog lang="en">
<change>Upgrade from phpbb2.x to phpbb3.0.0 (Gold)</change>
</changelog>
</entry>
</history>
<link-group>
<link type="template" href="Install_ABBC3_v1010_Prosilver.xml" lang="en">prosilver</link>
<link type="template" href="Install_ABBC3_v1010_Subsilver2.xml" lang="en">subsilver2</link>
</link-group>
</header>
<action-group>
<sql><![CDATA[#
# NOTE : If you will not use bbcode "click", ignore this step.
# NOTE : Change the table prefix to adjust to your install. I use "phpbb_" as example.
#
# Table: `phpbb_clicks`
#
CREATE TABLE IF NOT EXISTS `phpbb_clicks` (
`id` mediumint(6) unsigned NOT NULL auto_increment,
`url` varchar(255) NOT NULL default '',
`clicks` decimal(6,0) unsigned NOT NULL default '0',
UNIQUE KEY `id` (`id`),
KEY `md5` (`url`)
) CHARACTER SET `utf8` COLLATE `utf8_bin`;]]></sql>
<copy>
<file from="root/install_abbc3/*.*" to="install_abbc3/*.*" />
<file from="root/adm/style/*.*" to="adm/style/*.*" />
<file from="root/files/*.*" to="files/*.*" />
<file from="root/images/*.*" to="images/*.*" />
<file from="root/includes/*.*" to="includes/*.*" />
<file from="root/language/en/mods/*.*" to="language/en/mods/*.*" />
<file from="root/styles/abbcode/*.*" to="styles/abbcode/*.*" />
</copy>
<open src="adm/style/acp_users_signature.html">
<edit>
<find><![CDATA[ <div id="format-buttons">]]></find>
<action type="replace-with"><![CDATA[ <div id="format-buttons">
<!-- // MOD : MSSTI ABBC3 (V1.0.10) - Start -->
<!-- IF S_ABBC3_MOD -->
<!-- INCLUDE posting_abbcode_buttons.html -->
</div>
<!-- ELSE -->
]]>
</action>
</edit>
<edit>
<find><![CDATA[ <dl>]]></find>
<action type="replace-with">
<![CDATA[ <!-- ENDIF -->
<!-- // MOD : MSSTI ABBC3 (V1.0.10) - End -->
<dl>
<!-- // MOD : MSSTI ABBC3 (V1.0.10) - Start -->
<!-- IF not S_ABBC3_COLOR -->
]]>
</action>
</edit>
<edit>
<find><![CDATA[ <dd style="margin-left: 90px;"><textarea name="signature" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea></dd>]]></find>
<action type="replace-with"><![CDATA[ <dd style="margin-left: 90px;"><textarea name="signature" id="signature" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea></dd>
<!-- ELSE -->
<dt style="width:100%"><textarea name="signature" id="signature" rows="10" cols="60" style="width: 100%;height:300px" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{SIGNATURE}</textarea></dt>
<!-- ENDIF -->
<!-- // MOD : MSSTI ABBC3 (V1.0.10) - End -->
]]>
</action>
</edit>
</open>
<open src="adm/style/overall_header.html">
<edit>
<find><![CDATA[</head>]]></find>
<action type="replace-with">
<!-- // MOD : MSSTI ABBC3 (V1.0.10) - Start -->
<!-- IF S_ABBC3_MOD and ( S_BBCODE_ALLOWED or S_NEW_MESSAGE or S_EDIT_POST or S_VIEWTOPIC or S_DISPLAY_PREVIEW or S_POST_REVIEW or S_DISPLAY_REVIEW ) or ( U_MCP and ( U_MCP_POST or U_MCP_TOPIC or U_MCP_FORUM) ) or ( S_PRIVMSGS and S_VIEW_MESSAGE ) -->
<script type="text/javascript" src="{S_ABBC3_PATH}/abbcode.js" charset="{S_CONTENT_ENCODING}"></script>
<link rel="stylesheet" type="text/css" media="all" href="{S_ABBC3_PATH}/abbcode.css" />
<!-- IF S_ABBC3_RESIZE or S_ABBC3_ADVANCEDBOX -->
<script type="text/javascript" src="{S_ABBC3_PATH}/AdvancedBox.js"></script>
<script type="text/javascript">
// <![CDATA[
/** Image Resizer JS and AdvancedBox JS - Start **/
var ImageResizerAdvancedbox = '{S_ABBC3_ADVANCEDBOX}';
var ImageResizerNumberOf = '{L_ABBC3_RESIZE_NUMBER}';
var ImageResizerPlayAlt = '{L_ABBC3_RESIZE_PLAY}';
var ImageResizerPauseAlt = '{L_ABBC3_RESIZE_PAUSE}';
var ImageResizerZoomInAlt = '{L_ABBC3_RESIZE_ZOOM_IN}';
var ImageResizerZoomOutAlt = '{L_ABBC3_RESIZE_ZOOM_OUT}';
var ImageResizerCloseAlt = '{L_ABBC3_RESIZE_CLOSE}';
var ImageResizerBlankImage = '{S_ABBC3_PATH}/advancedbox_blank.gif';
var ImageResizerThumbnails = '{S_ABBC3_MAX_THUM_WIDTH}';
var ImageResizerThumbnailsPhpbb = '{S_PHPBB_MAX_THUM_WIDTH}';
var ImageResizerMode = '{S_ABBC3_RESIZE_METHOD}'; // 'advancedbox' 'enlarge' 'samewindow' 'newwindow'
var ImageResizerWarningImage = '{S_ABBC3_PATH}/images/errormt0.gif';
var ImageResizerMaxWidth = '{S_ABBC3_MAX_IMG_WIDTH}' ;
var ImageResizerMaxHeight = '{S_ABBC3_MAX_IMG_HEIGHT}' ;
var ImageResizerWarningSmall = '{L_ABBC3_RESIZE_SMALL}';
var ImageResizerWarningFullsize = '{L_ABBC3_RESIZE_FULLSIZE}';
var ImageResizerWarningFilesize = '{L_ABBC3_RESIZE_FILESIZE}';
var ImageResizerWarningNoFilesize = '{L_ABBC3_RESIZE_NOFILESIZE}';
/** Image Resizer JS and AdvancedBox JS - End **/
// ]]>
</script>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- // MOD : MSSTI ABBC3 (V1.0.10) - End -->
</head>
</action>
</edit>
</open>
<open src="adm/style/simple_header.html">
<edit>
<find><![CDATA[</head>]]></find>
<action type="replace-with">
<![CDATA[<!-- // MOD : MSSTI ABBC3 (V1.0.10) - Start -->
<link rel="stylesheet" type="text/css" media="all" href="{S_ABBC3_PATH}/abbcode.css" />
<!-- // MOD : MSSTI ABBC3 (V1.0.10) - End -->
</head>
]]></action>
</edit>
</open>
<open src="includes/bbcode.php">
<edit>
<find><![CDATA[/**
* BBCode class
* @package phpBB3
*/
class bbcode]]></find>
<action type="replace-with"><![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
if (!class_exists('abbcode'))
{
include($phpbb_root_path . 'includes/abbcode.' . $phpEx);
}
/**
* BBCode class
* @package phpBB3
*/
class bbcode extends abbcode
// MOD : MSSTI ABBC3 (V1.0.10) - end
]]></action>
</edit>
<edit>
<find><![CDATA[ $sql = 'SELECT *
FROM ' . BBCODES_TABLE . '
WHERE ' . $db->sql_in_set('bbcode_id', $sql);]]></find>
<action type="replace-with"><![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
$sql = 'SELECT *
FROM ' . BBCODES_TABLE . '
WHERE ' . $db->sql_in_set('bbcode_id', $sql) . '
AND bbcode_match <> "." ';
// $sql = 'SELECT *
// FROM ' . BBCODES_TABLE . '
// WHERE ' . $db->sql_in_set('bbcode_id', $sql);
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><)\[/url:$uid\]#s' => $this->bbcode_tpl('url', $bbcode_id),]]></find>
<action type="before-add"><(|\|[^\\/\|:<>\*\?\"]+?)\|(.*?)\|/?)\[/url:$uid\]#sie' => "\$this->ed2k_pass( \$bbcode_id, '\$1', '' )",
'#\[url=(ed2k://\|(file|server|serverlist|friend)(|\|[^\\/\|:<>\*\?\"]+?)\|(.*?)\|/?):$uid\](.*?)\[/url:$uid\]#sie' => "\$this->ed2k_pass( \$bbcode_id, '\$1', '\$5' )",
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><![CDATA[ // Replace {L_*} lang strings]]></find>
<action type="replace-with"><![CDATA[ // Replace {L_*} lang strings
// MOD : MSSTI ABBC3 (V1.0.10) - Start
$user->add_lang('mods/abbcode');
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]>
</action>
</edit>
</open>
<open src="includes/constants.php">
<edit>
<find><![CDATA[// Additional tables]]></find>
<action type="replace-with"><![CDATA[// Additional tables
// MOD : MSSTI ABBC3 (V1.0.10) Clicks Counter feature - Start
define('CLICKS_TABLE', $table_prefix . 'clicks');
// MOD : MSSTI ABBC3 (V1.0.10) Clicks Counter feature - End
]]>
</action>
<comment lang="en">If you will not use bbcode "click", ignore this step.</comment>
</edit>
</open>
<open src="includes/functions.php">
<edit>
<find><![CDATA[ // The following assigns all _common_ variables that may be used at any point in a template.]]></find>
<action type="replace-with">
<![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
if ( @$config['ABBC3_MOD'] )
{
if (!class_exists('abbcode'))
{
include($phpbb_root_path . 'includes/abbcode.' . $phpEx);
}
$abbcode = new abbcode();
$abbcode->abbcode_init();
}
// MOD : MSSTI ABBC3 (V1.0.10) - End
// The following assigns all _common_ variables that may be used at any point in a template.
]]></action>
</edit>
</open>
<open src="includes/functions_display.php">
<edit>
<find><![CDATA[ $sql = 'SELECT bbcode_id, bbcode_tag, bbcode_helpline
FROM ' . BBCODES_TABLE . '
WHERE display_on_posting = 1
ORDER BY bbcode_tag';]]></find>
<action type="replace-with">
<![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
global $phpbb_root_path, $phpEx, $config, $mode;
if ( $config['ABBC3_MOD'] )
{
if (!class_exists('abbcode'))
{
include($phpbb_root_path . 'includes/abbcode.' . $phpEx);
}
$abbcode = new abbcode();
$abbcode->abbcode_init();
$abbcode->abbcode_display( $mode );
$sql = 'SELECT bbcode_id, bbcode_tag, bbcode_helpline
FROM ' . BBCODES_TABLE . '
WHERE display_on_posting = 1 AND abbcode = 0 AND bbcode_image = ""
ORDER BY bbcode_tag';
}
else
{
$sql = 'SELECT bbcode_id, bbcode_tag, bbcode_helpline
FROM ' . BBCODES_TABLE . '
WHERE display_on_posting = 1 AND abbcode = 0
ORDER BY bbcode_tag';
}
// $sql = 'SELECT bbcode_id, bbcode_tag, bbcode_helpline
// FROM ' . BBCODES_TABLE . '
// WHERE display_on_posting = 1
// ORDER BY bbcode_tag';
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
</open>
<open src="includes/message_parser.php">
<edit>
<find><![CDATA[ $sql = 'SELECT *
FROM ' . BBCODES_TABLE;]]></find>
<action type="replace-with">
<![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
$sql = 'SELECT *
FROM ' . BBCODES_TABLE . '
WHERE bbcode_match <> "." ';
// $sql = 'SELECT *
// FROM ' . BBCODES_TABLE;
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><![CDATA[ 'regexp' => array($row['first_pass_match'] => str_replace('$uid', $this->bbcode_uid, $row['first_pass_replace']))]]></find>
<action type="replace-with">
<![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
// 'regexp' => array($row['first_pass_match'] => str_replace('$uid', $this->bbcode_uid, $row['first_pass_replace']))
'regexp' => array($row['first_pass_match'] => str_replace('$uid', $this->bbcode_uid, $row['first_pass_replace'])),
'bbcode_group' => $row['bbcode_group'],
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><![CDATA[ // Parse smilies]]></find>
<action type="replace-with">
<![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
// Check for groups memberships and permission
foreach ($this->bbcodes as $bbcode_name => $bbcode_data)
{
if ( isset($bbcode_data['bbcode_group']) && $bbcode_data['bbcode_group'] != 0 && !in_array( $user->data['group_id'], split(',', $bbcode_data['bbcode_group']) ))
{
$this->bbcodes[$bbcode_name]['disabled'] = true;
}
}
// MOD : MSSTI ABBC3 (V1.0.10) - End
// Parse smilies
]]></action>
</edit>
</open>
<open src="includes/acp/acp_bbcodes.php">
<edit>
<find><![CDATA[ case 'edit':
$sql = 'SELECT bbcode_match, bbcode_tpl, display_on_posting, bbcode_helpline
FROM ' . BBCODES_TABLE . '
WHERE bbcode_id = ' . $bbcode_id;]]></find>
<action type="replace-with"><![CDATA[ case 'edit':
// MOD : MSSTI ABBC3 (V1.0.10) - Start
$sql = 'SELECT bbcode_match, bbcode_tpl, display_on_posting, bbcode_helpline, abbcode
FROM ' . BBCODES_TABLE . '
WHERE bbcode_id = ' . $bbcode_id . ' and abbcode = 0';
// $sql = 'SELECT bbcode_match, bbcode_tpl, display_on_posting, bbcode_helpline
// FROM ' . BBCODES_TABLE . '
// WHERE bbcode_id = ' . $bbcode_id;
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><![CDATA[ case 'modify':
$sql = 'SELECT bbcode_id, bbcode_tag
FROM ' . BBCODES_TABLE . '
WHERE bbcode_id = ' . $bbcode_id;]]></find>
<action type="replace-with"><![CDATA[ case 'modify':
// MOD : MSSTI ABBC3 (V1.0.10) - Start
$sql = 'SELECT bbcode_id, bbcode_tag, abbcode
FROM ' . BBCODES_TABLE . '
WHERE bbcode_id = ' . $bbcode_id . ' and abbcode = 0';
// $sql = 'SELECT bbcode_id, bbcode_tag
// FROM ' . BBCODES_TABLE . '
// WHERE bbcode_id = ' . $bbcode_id;
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><![CDATA[ $sql_ary['bbcode_id'] = (int) $bbcode_id;]]></find>
<action type="replace-with"><![CDATA[ $sql_ary['bbcode_id'] = (int) $bbcode_id;
// MOD : MSSTI ABBC3 (V1.0.10) - Start
$sql = 'SELECT MAX(bbcode_order) as max_bbcode_order
FROM ' . BBCODES_TABLE;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$bbcode_order = $row['max_bbcode_order'] + 1;
$sql_ary['bbcode_order'] = (int) $bbcode_order;
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><![CDATA[ case 'delete':
$sql = 'SELECT bbcode_tag
FROM ' . BBCODES_TABLE . "
WHERE bbcode_id = $bbcode_id";]]></find>
<action type="replace-with"><![CDATA[ case 'delete':
// MOD : MSSTI ABBC3 (V1.0.10) - Start
$sql = 'SELECT bbcode_tag, abbcode
FROM ' . BBCODES_TABLE . "
WHERE bbcode_id = $bbcode_id" . ' and abbcode = 0' ;
// $sql = 'SELECT bbcode_tag
// FROM ' . BBCODES_TABLE . "
// WHERE bbcode_id = $bbcode_id";
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
<edit>
<find><![CDATA[ $sql = 'SELECT *
FROM ' . BBCODES_TABLE . '
ORDER BY bbcode_tag';]]></find>
<action type="replace-with">
<![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
$sql = 'SELECT *
FROM ' . BBCODES_TABLE . '
WHERE abbcode = 0
ORDER BY bbcode_tag';
// $sql = 'SELECT *
// FROM ' . BBCODES_TABLE . '
// ORDER BY bbcode_tag';
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
</open>
<open src="includes/acp/acp_styles.php">
<edit>
<find><![CDATA[ if ($file[0] != '.' && strtoupper($file) != 'CVS' && !is_file($dir . '/' . $file) && !is_link($dir . '/' . $file))]]></find>
<action type="replace-with"><![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
if ($file[0] != '.' && strtoupper($file) != 'CVS' && !is_file($dir . '/' . $file) && !is_link($dir . '/' . $file) && $file != 'abbcode')
// if ($file[0] != '.' && strtoupper($file) != 'CVS' && !is_file($dir . '/' . $file) && !is_link($dir . '/' . $file))
// MOD : MSSTI ABBC3 (V1.0.10) - End
]]></action>
</edit>
</open>
<open src="language/en/acp/common.php">
<edit>
<find><![CDATA[?>]]></find>
<action type="replace-with">
<![CDATA[// MOD : MSSTI ABBC3 (V1.0.10) - Start
$lang = array_merge($lang, array(
'ACP_ABBCODES' => 'Advanced BBcodes Box 3',
'ACP_ABBC3_SETTINGS' => 'ABBC3 Settings',
'ACP_ABBC3_BBCODES' => 'ABBC3 BBCodes',
'LOG_CONFIG_ABBCODES' => '<strong>Altered ABBC3 settings</strong>',
'LOG_CONFIG_ABBCODES_ERROR' => '<strong>Error while save ABBC3 settings</strong>',
'LOG_CONFIG_ADD' => '<strong>Added board settings</strong><br />» %s',
'LOG_DATABASE_SCHEMA' => '<strong>Updating database schema</strong><br />» %s',
'LOG_DELETE_ABBCODES' => '<strong>Deleted MOD ABBC3 from database</strong>',
));
// MOD : MSSTI ABBC3 (V1.0.10) - End
?>
]]></action>
<comment lang="en">See contrib/language folder for availables transtations</comment>
</edit>
</open>
<diy-instructions lang="en"><![CDATA[IMPORTANT ! Do not forget to install the styles steps before continue:
Install_ABBC3_v1010_Prosilver.xml
Install_ABBC3_v1010_Subsilver2.xml
#####################################################################
Log on to Administration Control Panel
#####################################################################
A) Disable your board :
A.1) Navigate to General Tab -> Board settings
A.2) look at "Disable board: This will make the board unavailable to users.
You can also enter a short (255 character) message to display if you wish."
A.3) Change to "yes"
A.4) Submit to save setting.
#####################################################################
B) Database update :
B.1) Once all the files have been modified and uploaded to your site,
you should point your browser at this location with the addition
of /install_abbc3/install.php
For example if your domain name is www.mydomain.tld and you placed phpBB3
in a directory /phpBB3 off your web root you would enter
http://www.mydomain.tld/phpBB3/install_abbc3/install.php into your browser.
B.2) When you have done this you should see the phpBB3 ABBC3 Installation screen appear, follow the instructions.
If the installation was successful, you can now use your forum.
Congratulations, you have installed phpBB3 ABBC3 successfully.
But there is still work ahead!
B.3) You should remove/rename the install folder (root/install_abbc3)
from your server.
#####################################################################
C) Purge the templates :
C.1) Navigate to "Styles" Tab.
C.2) Under "Style components " click on "Templates".
C.3) Under "Actions" click on "Refresh".
C.4) in the next screen, click on "Yes" ( Repeat last 2 steps to each instaled style ).
C.5) Under "Style components " click on "Themes".
C.6) Under "Actions" click on "Refresh".
C.7) in the next screen, click on "Yes" ( Repeat last 2 steps to each instaled style ).
#####################################################################
D) Purge the cache :
D.1) Navigate to General Tab
D.2) look at Purge the cache
D.3) Click on "Run Now" button at right
D.4) in the next screen, click on "Yes"
#####################################################################
E) Enable your board :
E.1) Navigate to General Tab -> Board settings
E.2) look at "Disable board: This will make the board unavailable to users.
You can also enter a short (255 character) message to display if you wish."
E.3) Change to "NO"
E.4) Submit to save setting.
#####################################################################
F) Change the value that best suits your needs
F.1) Navigate to Posting Tab
F.2) At the left menu you will find a new category "Advanced BBcodes Box 3"
F.3) ABBC3 settings : Here you can determine the basic operation of ABBC3,
enable or disable, and among other settings adjust the default values for the background.
F.4) ABBC3 BBCodes : From this page you can alter the order of tags on posting page or edit the icons,
#####################################################################
H) Enjoy it !.]]>
</diy-instructions>
</action-group>
</mod>
Re: En WYSIWYG-Editor, istället för BB-KOD
Brukar sova lite efter 29:e timman och Ingen support via PM!
Re: En WYSIWYG-Editor, istället för BB-KOD
Och kan jag få den översatta filen från svånge dalen eller vad det hette ??
För det skulle underlätta för mig"!
Re: En WYSIWYG-Editor, istället för BB-KOD
Allmänt fel
SQL ERROR [ mysqli ]
Unknown column 'abbcode' in 'where clause' [1054]
SQL
SELECT * FROM phpbb_bbcodes WHERE abbcode = 0 ORDER BY bbcode_tag
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()
FILE: includes/acp/acp_bbcodes.php
LINE: 317
CALL: dbal_mysqli->sql_query()
FILE: includes/functions_module.php
LINE: 471
CALL: acp_bbcodes->main()
FILE: adm/index.php
LINE: 75
CALL: p_master->load_active()
Re: En WYSIWYG-Editor, istället för BB-KOD
Kod: Markera allt
#
# NOTE : If you will not use bbcode "click", ignore this step.
# NOTE : Change the table prefix to adjust to your install. I use "phpbb_" as example.
#
# Table: `phpbb_clicks`
#
CREATE TABLE IF NOT EXISTS `phpbb_clicks` (
`id` mediumint(6) unsigned NOT NULL auto_increment,
`url` varchar(255) NOT NULL default '',
`clicks` decimal(6,0) unsigned NOT NULL default '0',
UNIQUE KEY `id` (`id`),
KEY `md5` (`url`)
) CHARACTER SET `utf8` COLLATE `utf8_bin`;och kolla inläggen ovanför.
Re: En WYSIWYG-Editor, istället för BB-KOD
http://www.mydomain.tld/phpBB3/install_ ... nstall.php into your browser
Om du ska använda "click" så måste du köra den SQL satsen i PhpMyAdmin.
Brukar sova lite efter 29:e timman och Ingen support via PM!
Vilka är online
Användare som besöker denna kategori: 2 och 0 gäster



