Hidden Smilies In Lava Script (wml)

Started on the old forum in July 2007 · view the original in the archive · old links redirect here

4 replies · 784 views · started 19 years ago · 1 min read

alesh Lead · 604 posts #1

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 '0', <---------- PRIMARY KEY (id), UNIQUE KEY scode (scode) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=954 ;

i've change default '0' to '1' but the smilie is still visible at smilies list! am i missing sumthng???

eeeeerrr....

alesh Lead · 604 posts #2

ugh no1 wanna help me???

eeeeerrr....

linkrx7 #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='0' ORDER BY id DESC LIMIT $limit_start, $items_per_page";

alesh Lead · 604 posts #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='0' ORDER BY id DESC LIMIT $limit_start, $items_per_page";

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



okay im back without screaming lol works perfectly!

eeeeerrr....

linkrx7 #5

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close