Results 1 to 7 of 7

Thread: comment code

  1. #1

    Exclamation comment code


    Guys,

    Tabang beh.. I'm looking for a comment code that has sort of a spam filter or at least accepts HTML tags.. Kung pwde unta kanang with naay filter na e bawal ang mga <a href> or other html tags.. any help will be greatly appreciated..

  2. #2
    guys, help nmn dyan!

  3. #3
    unsa nga scripting language? para asa ni siya? naa nay existing code?

  4. #4
    It's not a comment code. haha
    Learn about REGEX / Regular Expressions and String manipulations.

    I use that to filter specific strings and tags... then parse it out as final output.
    Last edited by dodie; 09-15-2010 at 11:31 PM.

  5. #5
    Quote Originally Posted by dodie View Post
    It's not a comment code. haha
    Learn about REGEX / Regular Expressions and String manipulations.

    I use that to filter specific strings and tags... then parse it out as final output.

    shortcut ra na bro.. hehehe!!

    anyways... unsay code sa kanang mga conditional statements?

    Mao na akong plan na gamiton as spam control pd.. dili pwde mg post if 5 secs ra ang difference... or bawal ang html tags.. and the likes...

  6. #6
    Quote Originally Posted by lazaro4ever View Post
    shortcut ra na bro.. hehehe!!

    anyways... unsay code sa kanang mga conditional statements?

    Mao na akong plan na gamiton as spam control pd.. dili pwde mg post if 5 secs ra ang difference... or bawal ang html tags.. and the likes...
    I told you, you should use REGEX (Regual Expressions) and string manipulations.
    It's the shortcut thing you'll ever get. Filtering TAGS cannot be handled by simple conditions.

    Since you have your own Objectives to filter the tags, You have to deal with functions like these. Check the PHP documentaion manual how to use these functions. or just visit php.net website
    Code:
       preg_replace(...,...,...);
    
       preg_match(...,..., ...);
    
       preg_match_all(...,..., ...);
    
       str_replace(...,...,..);

    5 seconds limit can be handled in Javascript or storing TIMESTAMP within the Session or Cookie.


    I think I just answered what you asked for, You have to deal with it..... Promise.
    Last edited by dodie; 09-17-2010 at 01:07 PM.

  7. #7
    kung php, naay built-in function para filter sa html tags... check this out for more info --> strip_tags

    akong paagi kay di man nko i-filter, pero once i-display na gani nko ang string unya wa ko kabalo kung naa bay html tags or wala, ako ra gamitan ug htmlspecialchars para dili ma-interpret sa browser ang tags kung naa man gani. unya no actual loss of data pa jud kay mo-display as normal text man jafon ang tags.

  8.    Advertisement

Similar Threads

 
  1. Comments Code
    By pulgar in forum Websites & Multimedia
    Replies: 4
    Last Post: 10-24-2012, 12:28 PM
  2. Replies: 32
    Last Post: 12-18-2009, 07:38 PM
  3. GLOBE DSL users : comments:
    By jojitd in forum Networking & Internet
    Replies: 123
    Last Post: 05-18-2008, 02:40 PM
  4. KORN's Ex-Guitarist HEAD on Interview.....post your comments
    By oliver_g0110 in forum Music & Radio
    Replies: 22
    Last Post: 06-19-2007, 02:27 PM
  5. PERSONAL WEBSITES... post comment and review!!! :)
    By terorista in forum Websites & Multimedia
    Replies: 87
    Last Post: 02-09-2006, 09:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top