Menü

İletileri Göster

Bu özellik size üyenin attığı tüm iletileri gösterme olanağı sağlayacaktır. Not sadece size izin verilen bölümlerdeki iletilerini görebilirsiniz.

İletileri Göster Menü

Konular - Spxcy

#1
Aşağıda bıraktığım plugini kullandığım sürüme uyarlamaya çalışıyorum fakat sürekli aynı hatayı veriyor.

> https://custom.simplemachines.org/mods/index.php?mod=1676


./Sources/Subs-Editor.php
Kod (Find) Seç
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt['bbc_quote']),
Kod ("Add After") Seç
'box' => array('code' => 'box', 'before' => '[box title=TitleBox]', 'after' => '[/box]', 'description' => $txt['box_bbcode']),


Find dediği kodu değiştirerek denedim olmadı, denilen kod sonrası da ekledim yine olmadı. Alta yaptığım kodu bırakacağım, belki de yanlış yapıyorumdur.
Alta sadece Find denilen yerin yanına ekledim, onu kaldırıpta verilen kodu da girdiğimde aynıydı. Konu çok uzun olmasın diye onu koyma gereği duymadım.



<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>.LORD.:BoxBBCode</id>
<name>Box BBCode</name>
<version>1.1</version>

<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="before"><![CDATA[
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt['bbc_quote']),
'box' => array('code' => 'box', 'before' => '[box title=TitleBox]', 'after' => '[/box]', 'description' => $txt['box_bbcode']),]]></search>
<add><![CDATA[
'box' => array('code' => 'box', 'before' => '[box title=TitleBox]', 'after' => '[/box]', 'description' => $txt['box_bbcode']),]]></add>
</operation>
</file>

<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[
array(
'tag' => 'blue',
'before' => '<span style="color: blue;" class="bbc_color">',
'after' => '</span>',
),
array(
'tag' => 'box',
'parameters' => array(
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}">',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'box',
'parameters' => array(
'title' => array('optional' => true, 'value' => '$1', 'match' => '(.{0,192}?)'),
'link' => array('optional' => true, 'value' => ' <a href="$1" target="_blank">$1</a>', 'match' => '(http://[\w.]+/?\S*?)'),
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}"><legend>{title}{link}</legend>',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'box',
'before' => '<fieldset class="box_bbcode">',
'after' => '</fieldset>',
'block_level' => true,
),]]></search>
<add><![CDATA[
array(
'tag' => 'box',
'parameters' => array(
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}">',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'box',
'parameters' => array(
'title' => array('optional' => true, 'value' => '$1', 'match' => '(.{0,192}?)'),
'link' => array('optional' => true, 'value' => ' <a href="$1" target="_blank">$1</a>', 'match' => '(http://[\w.]+/?\S*?)'),
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}"><legend>{title}{link}</legend>',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'box',
'before' => '<fieldset class="box_bbcode">',
'after' => '</fieldset>',
'block_level' => true,
),]]></add>
</operation>
</file>

<file name="$themedir/style.css">
<operation>
<search position="end" />
<add><![CDATA[

/* Box BBCode */
.box_bbcode { margin: 10px 50px 10px 50px; border: 1px solid #ADADAD; }
.box_bbcode legend {color: #476C8E }
]]></add>
</operation>
</file>

</modification>