PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : بسته wap اینترنت موبایلی



Bdehghaniyan
07-17-2007, 12:33 PM
سلام
شما در ویژگی های فروم smf به قابلیت wap ان اشاره نمودید، اما چگونه می توان به این ماژول دسترسی داشت؟ آیا به صورت پیشفرض در smf نصب است و یا اینکه باید خودمان اقدام به نصب آن نماییم؟
با تشکر

sorry4uboth
07-17-2007, 12:36 PM
بله نصب هست

دو نوع داره

Wap , Wap2

ببینید:
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>

تنها کاری که لازمه بکنید این هست که این لینک رو در جایی که میخواید قرار بدید!

bme
08-12-2007, 11:32 AM
چطور در قسمت های مختف سیات بذاریم یعنی چطوری مثل دکمه بذارم جایی ؟

sorry4uboth
08-12-2007, 11:38 AM
شما باید در فایل index.templates.php خودتون کد مورد نظر رو قرار بدید

این فایل بصورت ZIP آپلود کنید تا براتون تغییرات رو اعمال کنم + بقیه کابران هم ببینند و استفاده کنند

amiralib
08-12-2007, 04:33 PM
خيلي جالبه
منتظر هستم تا نمونش رو بزارين تا استفاده كنيم

متشكر

sorry4uboth
08-12-2007, 04:47 PM
خوب من این آموزش رو بر روی قالب پیشفرض نسخه 1.1.3 میزارم اینجا تا همه استفاده کنند

در نسخ قبلی و احتمالی بعدی هم باید به همین صورت باشه

محتویات خط 517 الی 593 فایل index.templates.php در شاخه قالب پیشفرض SMF




// Show the [home] button.
echo ($current_action==&#039;home&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;home&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;&quot;&gt;&#039; , $txt[103] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;home&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

// Show the [help] button.
echo ($current_action == &#039;help&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;help&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=help&quot;&gt;&#039; , $txt[119] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;help&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

// How about the [search] button?
if ($context[&#039;allow_search&#039;])
echo ($current_action == &#039;search&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;search&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=search&quot;&gt;&#039; , $txt[182] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;search&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

// Is the user allowed to administrate at all? ([admin])
if ($context[&#039;allow_admin&#039;])
echo ($current_action == &#039;admin&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;admin&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=admin&quot;&gt;&#039; , $txt[2] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;admin&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

// Edit Profile... [profile]
if ($context[&#039;allow_edit_profile&#039;])
echo ($current_action == &#039;profile&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;profile&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=profile&quot;&gt;&#039; , $txt[79] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;profile&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

// Go to PM center... [pm]
if ($context[&#039;user&#039;][&#039;is_logged&#039;] &amp;&amp; $context[&#039;allow_pm&#039;])
echo ($current_action == &#039;pm&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;pm&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=pm&quot;&gt;&#039; , $txt[&#039;pm_short&#039;] , &#039; &#039;, $context[&#039;user&#039;][&#039;unread_messages&#039;] &gt; 0 ? &#039;[&lt;strong&gt;&#039;. $context[&#039;user&#039;][&#039;unread_messages&#039;] . &#039;&lt;/strong&gt;]&#039; : &#039;&#039; , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;pm&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

// The [calendar]!
if ($context[&#039;allow_calendar&#039;])
echo ($current_action == &#039;calendar&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;calendar&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=calendar&quot;&gt;&#039; , $txt[&#039;calendar24&#039;] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;calendar&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

// the [member] list button
if ($context[&#039;allow_memberlist&#039;])
echo ($current_action == &#039;mlist&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;mlist&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=mlist&quot;&gt;&#039; , $txt[331] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;mlist&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;


// If the user is a guest, show [login] button.
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo ($current_action == &#039;login&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;login&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=login&quot;&gt;&#039; , $txt[34] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;login&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;


// If the user is a guest, also show [register] button.
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo ($current_action == &#039;register&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;register&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=register&quot;&gt;&#039; , $txt[97] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;register&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;


// Otherwise, they might want to [logout]...
if ($context[&#039;user&#039;][&#039;is_logged&#039;])
echo ($current_action == &#039;logout&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;logout&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=logout;sesc=&#039;, $context[&#039;session_id&#039;], &#039;&quot;&gt;&#039; , $txt[108] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;logout&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;


خوب در هر جایی که دوست دارید دکمه مورد نظر شما پدیدار بشه این کد رو قرار بدید:

// Show the [WAP] button.
echo ($current_action == &#039;help&#039; || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&lt;td class=&quot;maintab_active_&#039; . $first . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039; , &#039;
&lt;td valign=&quot;top&quot; class=&quot;maintab_&#039; , $current_action == &#039;help&#039; ? &#039;active_back&#039; : &#039;back&#039; , &#039;&quot;&gt;
&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>; , $txt[909090] , &#039;&lt;/a&gt;
&lt;/td&gt;&#039; , $current_action == &#039;help&#039; ? &#039;&lt;td class=&quot;maintab_active_&#039; . $last . &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039; : &#039;&#039;;

خوب حالا فایل Modifications.persian.php رو از شاخه languages باز کنید و مقدار زیر رو وارد کنید:

$txt[&#039;909090&#039;] = &#039;WAP&#039;;

این کار رو میتونید برای هر نوع دکمه و لینکی انجام بدید.

bme
08-17-2007, 04:09 AM
الان این می ره کنار اون یکی دکمه ها ؟

این یعنی چی : $txt[&#039;909090&#039;] = &#039;WAP&#039;;

من می خوام 3 تا دکمه دیگه هم اضافه کنم به جای این $txt[&#039;909090&#039;] = &#039;WAP&#039;; چی بذارم باید ؟