Szerző Téma: [KIEGÉSZÍTÕ]SMF Pawno FIX  (Megtekintve 1924 alkalommal)

[KIEGÉSZÍTÕ]SMF Pawno FIX
« Dátum: 2014. Február 07. - 22:40:49 »
0
Hali!
SMF-hez ami van pawno BB kód azt fixáltam.
Eredeti készítõ: -=[Vyorel]=-
http://www.simplemachines.org/community/index.php?topic=429388.0
Telepítés szokásos módon.
V 1.8
A letöltés tartalma:
Spoiler for pawno.gif:
\"n4d947b187fb8d.png\"
Spoiler for info.txt:


Pawno BB Kód
 
 
Eredeti készítõ: -=[Vyorel]=-     [Nézd meg további munkáit itt!]
Magyar változat készítõ: akos127     
Eredeti utolsó verzió: 1.7
Magyar utolsó verzió: 1.8
Ezzel a BB kód kiegészítõvel használhatja a pawno kódokat a fórumon.
A következõ kódoknak átállítva a színe, úgy mint a Pawno programban.
public
return
sizeof
switch
true
false
if
new
else
for
while
case
default
goto
do
continue
break
(
)
[
]
{
}
Használat :
[pawno]Pawno kód[/pawno]
Például :
[pawno]
public OnGameModeInit()
{
    //Kód
    return 1;
}[/pawno]
Valahogy így néz ki:
public OnGameModeInit()
{
    //Kód
    return 1;
}
Támogatott Verziók:
 
  • SMF 2.0 RC4

  • SMF 2.0 RC5

  • SMF 2.0

  • SMF 2.0.1

  • SMF 2.0.2

  • SMF 2.0.3

  • SMF 2.0.4

  • SMF 2.0.5

  • SMF 2.0.6

  • SMF 2.0.7


Köszönet érte:
Kaysnak a kódért - Link itt
Spoiler for package-info-info.xml:
<?xml version=\"1.0\" encoding=\"utf-8\" ?>
<!DOCTYPE package-info SYSTEM \"http://www.simplemachines.org/xml/package-info\">\'>http://www.simplemachines.org/xml/package-info\">
<package-info xmlns=\"http://www.simplemachines.org/xml/package-info\" xmlns:smf=\"http://www.simplemachines.org/\">
<name>Pawno BB Kod</name>
<id>PawnoBBKod</id>
<type>modification</type>
<version>1.8</version>
<install for=\"2.0 RC4, 2.0 RC5, 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7\">
   <modification type=\"file\">PawnoBBKod.xml</modification>
   <require-file name=\"pawno.gif\" destination=\"$imagesdir/bbc\" />
   <readme parsebbc=\"true\">info.txt</readme>
</install>
<uninstall for=\"2.0 RC4, 2.0 RC5, 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7\">
   <modification type=\"file\" reverse=\"true\">PawnoBBKod.xml</modification>
   <remove-file name=\"pawno.gif\" destination=\"$imagesdir/bbc\" />
</uninstall>
</package-info>
Spoiler for PawnoBBKod.xml:
<?xml version=\"1.0\" encoding=\"utf-8\" ?>
<!DOCTYPE modification SYSTEM \"http://www.simplemachines.org/xml/modification\">\'>http://www.simplemachines.org/xml/modification\">
<modification xmlns=\"http://www.simplemachines.org/xml/modification\" xmlns:smf=\"http://www.simplemachines.org/\">
<id>PawnoBBKod</id>
<version>1.8</version>
<file name=\"$sourcedir/Subs.php\">
<operation>
   <search position=\"after\"><![CDATA[array(
         \'tag\' => \'color\',
         \'type\' => \'unparsed_equals\',
         \'test\' => \'(#[\\da-fA-F]{3}|#[\\da-fA-F]{6}|[A-Za-z]{1,20}|rgb\\(\\d{1,3}, ?\\d{1,3}, ?\\d{1,3}\\))\\]\',
         \'before\' => \'<span style=\"color: $1;\" class=\"bbc_color\">\',
         \'after\' => \'</span>\',
      ),]]></search>
   <add><![CDATA[
      array(
         \'tag\' => \'pawno\',
         \'type\' => \'unparsed_content\',
         \'content\' => \'<div class=codeheader\">\' . $txt[\'pawnocode] . \': <a href=\"javascript:void(0);\" onclick=\"return smfSelectText(this);\" class=\"codeoperation\">\' . $txt[\'code_select\'] . \'</a></div>\' . ($context[\'browser\'][\'is_gecko\'] || $context[\'browser\'][\'is_opera\'] ? \'<pre style=\"margin: 0; padding: 0;\">\' : \'\') . \'<code class=\"bbc_code\">$1</code>\' . ($context[\'browser\'][\'is_gecko\'] || $context[\'browser\'][\'is_opera\'] ? \'</pre>\' : \'\'),
         \'validate\' => create_function(\'&$tag, &$data, $disabled\', \'
         global $context;
         if (!isset($disabled[\\\'pawn\\\']))
         {
            $data = str_replace(
            array(
                  \\\'public\\\',
                  \\\'return\\\',
                  \\\'sizeof\\\',
                  \\\'switch\\\',
                  \\\'true\\\',
                  \\\'false\\\',
                  \\\'if\\\',
                  \\\'new\\\',
                  \\\'else\\\',
                  \\\'for\\\',
                  \\\'while\\\',
           \\\'case\\\',
           \\\'default\\\',
           \\\'goto\\\',
           \\\'do\\\',
           \\\'continue\\\',
           \\\'break\\\',
                  \\\'(\\\',
                  \\\')\\\',
                  \\\'[\\\',
                  \\\']\\\',
                  \\\'{\\\',
                  \\\'}\\\',
               ),
            array(
                  \\\'<span style=\"color: blue;\">public</span>\\\',       
                  \\\'<span style=\"color: blue;\">return</span>\\\',
                  \\\'<span style=\"color: blue;\">sizeof</span>\\\',
                  \\\'<span style=\"color: blue;\">switch</span>\\\',
                  \\\'<span style=\"color: blue;\">true</span>\\\',
                  \\\'<span style=\"color: blue;\">false</span>\\\',
                  \\\'<span style=\"color: blue;\">if</span>\\\',
                  \\\'<span style=\"color: blue;\">new</span>\\\',
                  \\\'<span style=\"color: blue;\">else</span>\\\',
                  \\\'<span style=\"color: blue;\">for</span>\\\',
                  \\\'<span style=\"color: blue;\">while</span>\\\',
           \\\'<span style=\"color: blue;\">case</span>\\\',
           \\\'<span style=\"color: blue;\">default</span>\\\',
           \\\'<span style=\"color: blue;\">goto</span>\\\',
           \\\'<span style=\"color: blue;\">do</span>\\\',
           \\\'<span style=\"color: blue;\">continue</span>\\\',
           \\\'<span style=\"color: blue;\">break</span>\\\',
                  \\\'<span style=\"color: red;\">(</span>\\\',
                  \\\'<span style=\"color: red;\">)</span>\\\',
                  \\\'<span style=\"color: red;\">[</span>\\\',
                  \\\'<span style=\"color: red;\">]</span>\\\',
                  \\\'<span style=\"color: red;\">{</span>\\\',
                  \\\'<span style=\"color: red;\">}</span>\\\',             
            ), $data);
                $data = preg_replace(
                  array(
                     \\\'~#(.+?)\\<br \\/>~is\\\',
                     \\\'~\\/\\/(.+?)\\<br \\/\\>~i\\\',
                     \\\'~\\/\\*(.+?)\\*\\/~i\\\'
                  ),
                  array(
                     \\\'<span style=\"color: blue;\">#$1<br /></span>\\\',                       
                     \\\'<span style=\"color: green;\">//$1<br /></span>\\\',
                     \\\'<span style=\"color: green;\">/*$1*/</span>\\\'
                   ), $data);               
            // Older browsers are annoying, aren\\\'t they?
            if ($context[\\\'browser\\\'][\\\'is_ie4\\\'] || $context[\\\'browser\\\'][\\\'is_ie5\\\'] || $context[\\\'browser\\\'][\\\'is_ie5.5\\\'])
               $data = str_replace(\"\\t\", \"<pre style=\\\"display: inline;\\\">\\t</pre>\", $data);
            elseif (!$context[\\\'browser\\\'][\\\'is_gecko\\\'])
               $data = str_replace(\"\\t\", \"<span style=\\\"white-space: pre;\\\">\\t</span>\", $data);
         }\'),
         \'block_level\' => true,
         ),
]]></add>
</operation>
</file>
<file name=\"$sourcedir/Subs-Editor.php\">
   <operation>
      <search position=\"before\"><![CDATA[array(
         \'image\' => \'quote\',
         \'code\' => \'quote\',
         \'before\' => \'
\',
         \'after\' => \'
[/quote]\',
         \'description\' => $txt[\'bbc_quote]
      ),]]></search>
      <add><![CDATA[
      array(
         \'image\' => \'pawno\',
         \'code\' => \'pawno\',
         \'before\' => \'[pawno]\',
         \'after\' => \'[/pawno]\',
         \'description\' => $txt[\'bbc_pawn\']
      ),]]></add>
   </operation>
</file>
<file name=\"$themedir/languages/Modifications.english.php\">
      <operation>
      <search position=\"end\" />
            <add><![CDATA[
// Pawno Code Start
$txt[\'bbc_pawn\'] = \'Pawno Kod\';
$txt[\'pawnocode\'] = \'Pawno Kod\';
// Pawno Code End
]]></add>
</operation>
</file>
<file name=\"$sourcedir/QueryString.php\">
   <operation>
      <search position=\"replace\"><![CDATA[// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.]]></search>
      <add><![CDATA[
// Pawno BBCode Start
$buffer = preg_replace(\'~(, Simple Machines LLC</a>)~\', \', Simple Machines LLC</a><br /><span class=\"smalltext\"><a href=\"http://www.xerom-zone.com\" target=\"_blank\">Pawno BBCode by www.Xerom-Zone.com</a></span>\', $buffer);
$buffer = preg_replace(\'~(class=\"new_win\">Simple Machines</a>)~\', \'class=\"new_win\">Simple Machines</a><br /><span class=\"smalltext\"><a href=\"http://www.xerom-zone.com\" target=\"_blank\">Pawno BBCode by www.Xerom-Zone.com</a></span>\', $buffer);
// End Pawno BBCode
// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.]]></add>
</operation>
</file>
</modification>
\"images?q=tbn:ANd9GcRLZOPMaYO5kFZ2520VjTYJErgGpRzuuccH9_9mt6pGzNGmrnLcEA\"
« Utoljára szerkesztve: 2014. Február 07. - 23:05:37 írta akos127 »

Nem elérhető divkn

  • 3259
    • Profil megtekintése
[KIEGÉSZÍTÕ]SMF Pawno FIX
« Válasz #1 Dátum: 2014. Február 07. - 22:44:26 »
0
Mi van még a forráskódban? Elküldi az e-mail címedre a fórum $db_passwd értékét?
E: Inkább [REL] prefix kéne, mint [APP].
« Utoljára szerkesztve: 2014. Február 07. - 22:47:14 írta divkn »

[KIEGÉSZÍTÕ]SMF Pawno FIX
« Válasz #2 Dátum: 2014. Február 07. - 22:46:32 »
0
Meg lehet nézni mi van benn :/
Egyébként sem értek a programozáshoz...
E: Szabályzat: \"Ha plugin akkor a [REL]\" mivel ez egyik se ezért én a programot választottam mert szerintem ahhoz közelebb áll.
« Utoljára szerkesztve: 2014. Február 07. - 22:58:34 írta akos127 »

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
[KIEGÉSZÍTÕ]SMF Pawno FIX
« Válasz #3 Dátum: 2014. Február 07. - 23:00:02 »
0
Ez pont hogy egy plugin egy meglévõ programhoz, tehát biztosan nem app. De te tudod...

[KIEGÉSZÍTÕ]SMF Pawno FIX
« Válasz #4 Dátum: 2014. Február 07. - 23:03:18 »
0
Nemtudom figyeled e a hasonlatod?
SMF Motor = Prgram
Kiegészítõ = Plugin
 ???

[KIEGÉSZÍTÕ]SMF Pawno FIX
« Válasz #5 Dátum: 2014. Február 07. - 23:08:51 »
0
1. Ennek mennyi köze van a SA-MP: Szkriptelés -hez?
2. Ezen mit kellett \'Fixálni\'? Igen a fórumon volt hiba vele, de az nem az alap csomag miatt keletkezett, hanem a költöztetés miatt. (Legalábbis szerintem.)

[KIEGÉSZÍTÕ]SMF Pawno FIX
« Válasz #6 Dátum: 2014. Február 07. - 23:28:33 »
0
1. Nézz körbe hány olyan program van ami nem kötõdik a samphoz? ééésss??? :thumbsdown:
2. Találd ki. ;)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal