PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : اين توضيحات براي سازگاري قالب با بسته ها رو كجا ميتونم



smahdi
02-20-2008, 10:25 AM
سلام دوستان،

من ميخوام از بسته ثبت نام سريع استفاده كنم. ولي حتما ميدونيد كه بايد قالب ويرايش بشه. از قالب Dilber Mc استفاده ميكنم.

ظاهرا يك آموزشي در اين مورد وجود داره ولي من نتونستم پيدا كنم. ميشه بگيد كجاست؟

smahdi
02-20-2008, 03:08 PM
واقعا اين ديگه خيلي عجيبه كه همه بسته ها فقط و فقط بر روي قالب پيشفرض كار ميكنند در حاليكه هيچ كس به هيچ عنوان از قالب پيشفرض اون استفاده نميكنه. اينجا متن انگليسي هست ولي من چيزي ازش نفهميدم. دارم هنوز ميخونم شايد يك چيزهايي دستگيرم شه.


XML Format Instructions

The XML format differs slightly from the format described earlier. Once you get the hang of it, it's pretty easy though. Using the same examples as above:

1. Open the .xml file with any text editor and search for <file name="...">. You will find the filename in the "name" attribute.

2. Open up the specified file and look for a set of <operation>...</operation> tags. This indicates a single modification step within the specified file.

3. Within the operation tags, you will see two more pairs of XML tags: <search position="...">...</search> and <add>...</add>. The <![CDATA[ and ]]> tags are there to make sure the text doesn't get parsed as HTML or XML, and are not part of the code to search for or add. This is where it gets confusing. The position attribute of the search tag indicates where the code you're searching for should be in relation to what you're adding (not where you should add the code):

after - Find the code and add the specified code before it (same as <add before>...</add before>)
before - Find the code and add the specified code after it (same as <add after>...</add after>)

There are two other special positions that are relatively easy to understand:
end - Add the specified code at the end of the file.
replace - Find the code and replace it with the specified code (same as <replace>...</replace>).

For example:


<file name="$themedir/Display.template.php">
<operation>
<search position="replace"><![CDATA[
// Show the anchor for the top and for the first message. If the first message is new, say so.
]]></search>

<add><![CDATA[
global $bar_exps, $bar_posts;

// Show the anchor for the top and for the first message. If the first message is new, say so.
]]></add>
</operation>
</file>

And that means, we need to open Display.template.php and look for:


// Show the anchor for the top and for the first message. If the first message is new, say so.

and replace it with:


global $bar_exps, $bar_posts;

// Show the anchor for the top and for the first message. If the first message is new, say so.

نوید
02-20-2008, 07:00 PM
در نسخه 2.0 میتونید بسته را در قالبی خواستید نصب کنید
فعلا باید با این نسخه بسازید و خودتون تغییر بدید