Hidden Smilies In Lava Script (wml)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hidden Smilies In Lava Script (wml)

    hi there.... i wanna hide sum smilies at my site but i thnk it doesnt work


    heres the sql

    CREATE TABLE `ibwf_smilies` (
    `id` int(100) NOT NULL auto_increment,
    `scode` varchar(15) NOT NULL default '',
    `imgsrc` varchar(200) NOT NULL default '',
    `hidden` char(1) NOT NULL default &#39;0&#39;, <----------
    PRIMARY KEY (`id`),
    UNIQUE KEY `scode` (`scode`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=954 ;


    i&#39;ve change default &#39;0&#39; to &#39;1&#39; but the smilie is still visible at smilies list! am i missing sumthng???
    sigpiceeeeerrr....

    #2
    ugh no1 wanna help me???
    sigpiceeeeerrr....

    Comment


      #3
      edit the action=="smilies" in lists.php and change this line

      $sql = "SELECT id, scode, imgsrc FROM ibwf_smilies ORDER BY id DESC LIMIT $limit_start, $items_per_page";

      to

      $sql = "SELECT id, scode, imgsrc, hidden FROM ibwf_smilies WHERE hidden=&#39;0&#39; ORDER BY id DESC LIMIT $limit_start, $items_per_page";

      Comment


        #4
        edit the action=="smilies" in lists.php and change this line

        $sql = "SELECT id, scode, imgsrc FROM ibwf_smilies ORDER BY id DESC LIMIT $limit_start, $items_per_page";

        to

        $sql = "SELECT id, scode, imgsrc, hidden FROM ibwf_smilies WHERE hidden=&#39;0&#39; ORDER BY id DESC LIMIT $limit_start, $items_per_page";[/b]

        thanX bro..... going 2 try now, if it doesnt work ill come back screaming lol


        ---------------------------------------------
        ---------------------------------------------
        okay im back without screaming lol works perfectly!
        sigpiceeeeerrr....

        Comment


          #5
          gud 2 no it was rite as wrote it off top my head lol

          Comment

          Working...
          X