ข่าวประชาสัมพันธ์

มาร่วมเป็นกำลังใจให้เว็บด้วยการสมัครสมาชิกวีไอพี ~~ เลือกปีที่ท่านต้องการได้โดยไม่ต้องเรียงปี ~~ ปีละ 350 บาท สมัคร 2 ปีลดเหลือ 600 บาท ~~ มีไลน์กลุ่ม VIP จำนวนหลายร้อยท่าน เอาไว้ปรึกษางานซ่อม ~~ เข้าถึงข้อมูลด้านเทคนิค ข้อมูลเชิงลึกมากมาย.....


ผู้เขียน หัวข้อ: เพิ่ม Tag [Blink]....[/Blink]  (อ่าน 2130 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออนไลน์ Auto Man

  • Administrator
  • หัวหน้าศูนย์ซ่อมสร้าง
  • *****
  • เจ้าของกระทู้
  • Joined: ก.ย. 2558
  • กระทู้: 37967
  • สมาชิกลำดับที่ : 1
  • เพศ: ชาย
  • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
    • เว็บชุมชนคนรักช่างยนต์
    • อีเมล์
เพิ่ม Tag [Blink]....[/Blink]
« เมื่อ: 19 กรกฎาคม 2559, 16:59:52 »
  • ขึ้นบน
  • ลงล่าง
  • Readme
    This mod will add a blink tag on your forum's Post.template, You can leave feedback on the Simple Machines Community forum at http://simplemachines.org/community Enjoy. AwwLilMaggie
    File Edits
    ./Themes/default/languages/Modifications.english.php
    Find (at the end of the file): [Select]
    ?>
    Add Before: [Select]
    $txt['blink'] = 'Blink';

    ./Themes/default/languages/Modifications.english_british.php
    Find (at the end of the file): [Select]
    ?>
    Add Before: [Select]
    $txt['blink'] = 'Blink';
    This operation isn't vital to the installation of this mod.

    ./Sources/Subs.php
    Find: [Select]
             array(
                'tag' => 'black',
                'before' => '<span style="color: black;">',
                'after' => '</span>',
             ),
    Add Before: [Select]
             array(
                'tag' => 'blink',
                'before' => '<span style="text-decoration: blink;">',
                'after' => '</span>',
             ),

    ./Themes/default/Post.template.php
    Find: [Select]
             'hr' => array('code' => 'hr', 'before' => '
    ', 'description' => $txt[531]),
    Add Before: [Select]
             'blink' => array('code' => 'blink', 'before' => '[blink]', 'after' => '[/blink]', 'description' => $txt['blink']),

    File Operations
    Move the included file "blink.gif" to "./Themes/default/images/bbc".
    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    ออนไลน์ Auto Man

    • Administrator
    • หัวหน้าศูนย์ซ่อมสร้าง
    • *****
    • เจ้าของกระทู้
    • Joined: ก.ย. 2558
    • กระทู้: 37967
    • สมาชิกลำดับที่ : 1
    • เพศ: ชาย
    • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
      • เว็บชุมชนคนรักช่างยนต์
      • อีเมล์
    เพิ่ม Tag [Blink]....[/Blink]
    « ตอบกลับ #1 เมื่อ: 07 ตุลาคม 2559, 14:08:20 »
  • ขึ้นบน
  • ลงล่าง
  • ตามไปดูกันที่ ลงม็อดยัง ไม่ลงม็อดก็ใช้ไม่ได้
    http://custom.simplemachines.org/mods/index.php?mod=924
    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    ออนไลน์ Auto Man

    • Administrator
    • หัวหน้าศูนย์ซ่อมสร้าง
    • *****
    • เจ้าของกระทู้
    • Joined: ก.ย. 2558
    • กระทู้: 37967
    • สมาชิกลำดับที่ : 1
    • เพศ: ชาย
    • มือผู้ให้ย่อมสูงกว่ามือผู้รับ
      • เว็บชุมชนคนรักช่างยนต์
      • อีเมล์
    เพิ่ม Tag [Blink]....[/Blink]
    « ตอบกลับ #2 เมื่อ: 07 ตุลาคม 2559, 14:25:48 »
  • ขึ้นบน
  • ลงล่าง
  • [blink]อักษรกระพริบ[/blink]

    ลองไปแก้ไขดู Cutom BBCodes Manager
    http://custom.simplemachines.org/mods/index.php?mod=3699

    รายละเอียด ลองไปศึกษากัน
    http://www.simplemachines.org/community/index.php?topic=527734.0

    - BBC tags are all in Subs.php file, parse_bbc() function.
    - Exactly. There is a quick documentation about creating custom BBC between lines 918-999.

    SomeBody could help me with this custom bbcode?
    Code: [Select]
    array(
       'tag' => 'rand',
       'type' => 'unparsed_content',
       'content' => '<script language="JavaScript" type="text/javascript"><!--var string = "$1";var img = string.split(",");var aCaso = Math.floor(Math.random() * img.length);document.write("<img src='"+img[aCaso]+"' />");// --></script>',
       ),
    When i put this code in my subs.php, the board is just a blank page.
    I can't understand very well the quick guide to see where i'm wrong... Thank you so much.

    Edit: i'm on RC4.

    Edit2: I want the code give me a random image froma a provided list.
    For example:
    Code: [Select]
    [rand]IMGlink1,IMGlink2,...,IMGlinkn[/rand]

    มาจากที่นี่ ลองเข้าไปอ่านดู
    http://www.simplemachines.org/community/index.php?topic=298863.0
    « แก้ไขครั้งสุดท้าย: 07 ตุลาคม 2559, 15:22:54 โดย Auto Man »
    สวัสดีคุณ...ผู้เยี่ยมชม  กด ❤ ถูกใจโพสท์นี้ หรือยัง...
    ต้องการสมัครสมาชิก VIP สมัครได้ที่นี่...   หรือทาง Line ID: k.sonchai

    เพิ่ม Tag [Blink]....[/Blink]
    « ตอบกลับ #2 เมื่อ: 07 ตุลาคม 2559, 14:25:48 »