Activity Stream
48,167 MEMBERS
61380 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Hybrid View

bumilad20 need help with removing [Rs] 12th Aug 2010, 07:38 PM
Mr.WT which forum script u use in ur... 12th Aug 2010, 09:15 PM
ayyan unmmm u want to skip prefix ? 12th Aug 2010, 09:17 PM
bumilad20 ooh my bad ,, phpbb dude 3.0.7 :) 12th Aug 2010, 09:18 PM
shadow.prx Do you mean for new topics posted... 13th Aug 2010, 10:28 PM
RT I think he just wants to remove the... 13th Aug 2010, 10:31 PM
Mr Happy Someplace in the posting.php or... 13th Aug 2010, 11:05 PM
litewarez MR Happy, you need to examine the... 13th Aug 2010, 11:08 PM
Mr Happy I have it so they can enter their... 13th Aug 2010, 11:20 PM
litewarez not really do, you can implode the... 13th Aug 2010, 11:24 PM
Mr Happy I've tried something like this but... 13th Aug 2010, 11:35 PM
Gavo You would need to place litewarez... 13th Aug 2010, 11:35 PM
litewarez yea you can do practically any... 13th Aug 2010, 11:40 PM
Gavo There is some error in the code... 14th Aug 2010, 12:19 AM
bumilad20 okayy thanxx guys .. which is the... 18th Aug 2010, 10:21 PM
bumilad20 tired it .. and dont seem to be... 22nd Aug 2010, 06:18 PM
Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Respected Developer
    Website's:
    wrzc.org
    Quote Originally Posted by litewarez View Post
    not really do, you can implode the array and the preg_escape them like so

    PHP Code: 
    $tags = array('RS','MS','FS','RS MU','MU');

    $preg_compat implode("|",$tags);

    preg_replace("/\([[" $preg_compat "]\])?/","",$string); //UNTESTED 


    what you want me to do, give you a cookie lol. i did say untested, example purposes and all that shizzle
    I've tried something like this but it gets messy. You have people who have stuff like [RS/HF/FS/MU] or RS-HF or [RS|HF][MULIT] or RS+1 or RS*3 and lots of other stuff which mess with your regex and have to take into consideration. Have a look through some posts on WBB and the prefixes they use. I tried but you just get people posting the craziest patterns you'd never think of which affect it

    In this case where he has control your is obviously better. I'm not arguing that fact.
    Mr Happy Reviewed by Mr Happy on . need help with removing [Rs] jus A quick question .. does any1 know a way how .. that u can check on the topic title name for like , etc and to get rid of it ? Rating: 5
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  2.   Sponsored Links

  3.     
    #2
    Member
    You would need to place litewarez code in Includes/functions_content.php

    After
    PHP Code: 
            return preg_replace($censors['match'], $censors['replace'], $text);
        } 

    and change $string to $text in LiteWarez code



    <<edit
    Realised this is going to remove any tags in posts aswell, I will make a complete mod when litewarez code works

  4.     
    #3
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    yea you can do practically any string manipulation with regex, you just have to know all the modifiers and how there used to your advantage, such as lookahead and behind, and "or plus" stuff and that :/ works a treat if your skilled and willing to have good go at it :/
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  5.     
    #4
    Member
    There is some error in the code litewarez gave i think.

    I started making the complete mod to post, but some error in the function


    Compilation failed: unmatched parentheses at offset 24



    This isnt working in viewtopic either, is it the regex?

    viewtopic.php
    after
    PHP Code: 
    // Replace naughty words in title
    $topic_data['topic_title'] = censor_text($topic_data['topic_title']); 
    add
    PHP Code: 
    $topic_data['topic_title'] = preg_replace("/^(\[A-Z{2}\])/","",$topic_data['topic_title']); 

  6.     
    #5
    Member
    Website's:
    litewarez.net
    okayy thanxx guys .. which is the best way then ?

  7.     
    #6
    Member
    Website's:
    litewarez.net
    tired it .. and dont seem to be workin ? gavo was it just viewtopic u edited

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing SideBar
    By xs123 in forum IP.Board
    Replies: 3
    Last Post: 26th Oct 2011, 09:46 AM
  2. RS removing my files
    By The_BlacK_MOON in forum Legal Issues
    Replies: 33
    Last Post: 13th Aug 2011, 11:26 AM
  3. Removing .co(dot)cc favicon
    By bluejax in forum Webmaster Discussion
    Replies: 5
    Last Post: 12th Jul 2011, 03:24 PM
  4. ( ipb) help removing login box
    By bumilad20 in forum IP.Board
    Replies: 6
    Last Post: 1st Jan 2011, 06:54 PM
  5. TINYPIC Removing pic
    By House_maniac in forum Webmaster Discussion
    Replies: 21
    Last Post: 16th Oct 2010, 05:22 PM

Tags for this Thread

BE SOCIAL