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

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1.     
    #1
    Member
    Website's:
    litewarez.net

    Talking 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

    [Rs] , [[hf] etc and to get rid of it ?
    bumilad20 Reviewed by bumilad20 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

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    Warez-Town.info latestrelease.org freakshare.biz
    which forum script u use in ur forum like Vbulletin, IPB, Phpbb ???

  4.     
    #3
    Member
    Website's:
    titanwarez.com ddlworld.info downloadshell.net letsemo.info themusicin.com
    unmmm u want to skip prefix ?

  5.     
    #4
    Member
    Website's:
    litewarez.net
    ooh my bad ,, phpbb dude 3.0.7

  6.     
    #5
    Member
    Do you mean for new topics posted or go through and delete them out of topic names that have already been posted ?
    Signature too big, removed by staff.

  7.     
    #6
    Pure Awesomeness!
    I think he just wants to remove the [RS]/[HF] tags from the title.



  8.     
    #7
    Respected Developer
    Website's:
    wrzc.org
    Someplace in the posting.php or newthread.php whatever the file is called you'll have to add a line of code like

    PHP Code: 
    $title preg_replace('[RS]'''$title); 
    You can run it through a loop if you've loads.

    PHP Code: 
    // This removes [RS] [HF] [HF RS] [FS] [MU] RS HF FS from titles
    $removes = array('[RS]''[HF]''[HF RS]''[FS]''[MU]''RS''HF''FS');
    while (
    $removes as $revove)
    {
    $title preg_replace($remove''$title);

    I have something like this built into LinkzBot for vB and IPB but I just haven't got round to learning PHPBB's framework to release it for PHPBB yet.

    Sorry I can't be of any more help
    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

  9.     
    #8
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    MR Happy, you need to examine the speed of your code, your running preg repalce lots of times when you only need to run it once

    PHP Code: 
    preg_replace("/(\[[RS|HF|FS|MU]\])?/","",$string); //UNTESTED 
    or you cauld possibly do something like

    PHP Code: 
    preg_replace("/^(\[A-Z{2}\])/","",$string); 
    what this is doing is its only looking at the start of the line for the brace and if it finds an open brace it then looks for 2 letters that are upper-case, and that is followed by a closing brace. these are very strict characteristics of host prefixing rules.

    if your worried about tags that have lower case then you could poss just add a i after the last slash in the compilation to make it case Insensitive.
    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


  10.     
    #9
    Respected Developer
    Website's:
    wrzc.org
    Quote Originally Posted by litewarez View Post
    MR Happy, you need to examine the speed of your code, your running preg repalce lots of times when you only need to run it once

    PHP Code: 
    preg_replace("/\([[RS|HF|FS|MU]\])?/","",$string); //UNTESTED 
    I have it so they can enter their own prefixes they want removed in linkzbot which is saved to the DB settings as an array. It would be near impossible to convert individual user preferences to a usable regex that's why I have it the way I have it but yes your is way faster.

    EDIT: Actually you have an error
    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

  11.     
    #10
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    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 
    EDIT: Actually you have an error
    what you want me to do, give you a cookie lol. i did say untested, example purposes and all that shizzle

    yea i was escaping the capture brace, change that now :/
    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


Page 1 of 2 12 LastLast

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