Author Topic: كلمات البحث بـ الفلاش  (Read 12699 times)

0 Members and 1 Guest are viewing this topic.

Offline asms

  • Full Member
  • ***
  • Posts: 154
    • View Profile
كلمات البحث بـ الفلاش
« on: November 04, 2008, 08:24:07 PM »
كلمات البحث بـ الفلاش
كلمات بحث الصور تتحرك بـ شكل جميل
   يمكنك وضعة في كل مكان في الصفحة في الثيم
يمكنك تعديل, حجم الخط ,لون الحط ,حجم الخط ,حجم الفلاش
يجب ان تكون مركب كلمات البحث
  ch€ri{Bi}² شكرا لـ



الموديل يعمل مع :
يعمل مع جميع النسخات


مثال + تحميل



مشاهد الـ مثال


مثال كلمات البحث با الفلاش




اعدادات الموديل







ملفات للتعديل

- lang/[ملفات اللغة المستخدامة]/main.php
- includes/page_header.php
- includes/functions.php
- Flash-Tag-Clouds in menue:
  - e.g. templates/[your_template_folder]/home.html




الملفات الجديدة


- templates/[your_template_folder]/flash_tag_clouds.swf
- templates/[your_template_folder]/swfobject.js





1:

حمل الملف المضغوط
ارسل الملف الي
 templates/[الثيم المستحدام]/




2:
افتح
 lang/[your_language_folder]/main.php
ابحث عن
Code: [Select]
?>اضف بعدة
Code: [Select]
//-----------------------------------------------------
//- Mod: Flash-Tag-Clouds by KW -------------------
//-----------------------------------------------------
$lang['flash_keyword_clouds'] = "كلمات البحث";



3:
افتح
 includes/page_header.php
ابحث عن
Code: [Select]
 "url_search" => $site_sess->url(ROOT_PATH."search.php"),
اضف بعدة

Code: [Select]
//--- Start Mod: Flash-Tag-Clouds by KW ---------------
  "flash_keyword_clouds" => get_flash_keyword_clouds(),
//--- End Mod: Flash-Tag-Clouds by KW -----------------





4:
افتح
 includes/functions.php
ابحث عن
Code: [Select]
?>
اضف بعدة

Code: [Select]
/*---------------------- Start MOD Flash-Tag-Clouds by KW --------------------*/
function get_flash_keyword_clouds() {
global $site_db, $lang, $site_sess, $mode;

/*-----------------------------------------------------------------------------*/
/*--- Start Setting / Einstellungen -------------------------------------------*/
$flash_tag_clouds_width  = "100%";       // Width from the Flash                / Breite der Flashanzeige
$flash_tag_clouds_height = "100";        // height from the Flash               / Höhe der Flashanzeige
$flash_tag_clouds_textcolor = "004C75";  // color from the flashtext            / Farbe des Flashtextes (e.g. 000000 or ffffff ...)
$flash_tag_clouds_textspeed = "200";     // speed from the flying text          / Geschwindigkeite de fliegenden Textes  (e.g. 150 or 200 ...)
$flash_tag_clouds_textlimit = "20";      // Limit- How many searchwords         / Limit- Wie viele Suchworte
$flash_tag_clouds_size_max = "60";       // Max. textsize                       / Max. Textgröße
$flash_tag_clouds_size_min = "20";       // Min. textsize                       / Min. Textgröße
$flash_tag_clouds_transparent = "true";  // Flash transparently: true or false  / Flash transparent: true oder false
$flash_tag_clouds_flashcolor = "ffffff"; // => if false: Bgcolor                / => falls false: Hintergrundfarbe  (e.g. ffffff or 000000 ...)
/*--- End Setting / Einstellungen ---------------------------------------------*/
/*-----------------------------------------------------------------------------*/

        $flash_tag_clouds_text = "var so = new SWFObject(\"".TEMPLATE_PATH."/flash_tag_clouds.swf\", \"tagcloud\", \"".$flash_tag_clouds_width."\", \"".$flash_tag_clouds_height."\", \"7\", \"#".$flash_tag_clouds_flashcolor."\"); \n";
        if ($flash_tag_clouds_transparent == 'true') {
        $flash_tag_clouds_text .= "so.addParam(\"wmode\", \"transparent\"); \n";
        }
        $flash_tag_clouds_text .= "so.addVariable(\"tcolor\", \"0x".$flash_tag_clouds_textcolor."\");\n";
        $flash_tag_clouds_text .= "so.addVariable(\"mode\", \"tags\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"distr\", \"true\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"tspeed\", \"".$flash_tag_clouds_textspeed."\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"tagcloud\", \"<tags>";
$sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
        FROM ".WORDLIST_TABLE." i
        LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
        WHERE keys_match > 0
        GROUP BY i.word_text
        ORDER BY  RAND()
        LIMIT $flash_tag_clouds_textlimit";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags[$row['word_text']] = $row['quantity'];
}
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));

        $spread = $max_qty - $min_qty;
        if ($spread == 0) {
        $spread = 1;
        }
        $step = ($flash_tag_clouds_size_max - $flash_tag_clouds_size_min) / ($spread);
        foreach ($tags as $key => $value) {
        $size = round($flash_tag_clouds_size_min + (($value - $min_qty) * $step));
        // clean keys for flashtext:
        $key2 = $key;
        $key2 = str_replace('"',' ',$key2);
        $key2 = str_replace('&',' ',$key2);
        $key2 = str_replace('%',' ',$key2);
        $key2 = str_replace('>',' ',$key2);
        $key2 = str_replace('<',' ',$key2);
        $key2 = str_replace('+',' ',$key2);
        //
        $flash_tag_clouds_text .= "<a href='".$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : ""))."' style='".$size."'>".$key2." [".$value."]</a>";
        }
return $flash_tag_clouds_text;
}
/*----------------------- End MOD Flash-Tag-Clouds by KW ---------------------*/





5:
اضفة في اي مكان في
الصفحة الرئيسية
  - open templates/[your_template_folder]/home.html
ابحث عن

Code: [Select]
{if random_image}
اضف بعدة

Code: [Select]
                 <!--  Start Mod: Flash-Tag-Clouds by KW  -->
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head2" valign="top">{lang_flash_keyword_clouds}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="row1">
                      <script type="text/javascript" src="{template_url}/swfobject.js"></script>
                      <div id="flashcontent_menue" style="border: 0px solid #000000;">Install flash.</div>
                      <script type="text/javascript">
                      {flash_keyword_clouds}</tags>");
                      so.write("flashcontent_menue");
                     </script>
                     <br />
                    </td>
                   </tr>
                   </table>
                  <!--  End Mod: Flash-Tag-Clouds by KW  -->



6:
يمكنك اضافتة في كل مكان في الثيم
 search.html, lightbox.html, member.html, categories.html, details.html
اضف هذ في كل صفحة

Code: [Select]
                 <!--  Start Mod: Flash-Tag-Clouds by KW  -->
                  <table width="100%" border="0" cellspacing="1" cellpadding="0" class="head1">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head1" valign="top">{lang_flash_keyword_clouds}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="row1">
                      <script type="text/javascript" src="{template_url}/swfobject.js"></script>
                      <div id="flashcontent_page" style="border: 0px solid #000000;">Install flash.</div>
                      <script type="text/javascript">
                      {flash_keyword_clouds}</tags>");
                      so.write("flashcontent_page");
                     </script>
                    </td>
                   </tr>
                   </table>
                   <br />
                  <!--  End Mod: Flash-Tag-Clouds by KW  -->




8:
يمكنك التعديل علي حجم الخط
لون الخط حجم الفلاش..الخ
من هذة الصفحة
 includes/functions.php


النهاية...
KurtWشكرا لـ
علي الموديل الروعة

Offline Panoramic

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: كلمات البحث بـ الفلاش
« Reply #1 on: November 04, 2008, 08:52:33 PM »
شكرا لك اخي

لكن اعتقد انه لا يعمل مع العربية بشكل جيد

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: كلمات البحث بـ الفلاش
« Reply #2 on: November 05, 2008, 07:51:09 AM »
شكرا على الموضوع

وجعله الله في ميزان حسناتك

سيتم تجربته لاحقا
English Please :@

Offline bma2004

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: كلمات البحث بـ الفلاش
« Reply #3 on: September 02, 2013, 02:20:44 PM »
Flash does not understand the Cyrillic letters. You can ask the fla source file?