Jump to content

Dragosvr92

Members
  • Posts

    276
  • Joined

  • Last visited

Posts posted by Dragosvr92

  1. I think my eyes are going to fall out from all the searches ive made to find a solution for this that works on a shared host.

     

    I tried this... but it doesnt work.

    RewriteEngine  on
    CheckSpelling on

    The only Rough solution i got is to do the case manually with an internal redirect. Like this.

    RewriteEngine on
    RewriteBase /~quux/
    RewriteRule ^foo\.html$ bar.html

    Is there absolutely no way to mention [a-z] and [A-Z] into a RewriteRule to get this done?

     

    I find it terribly stupid from Apache not to provide a simple solution for this.

     

     

     

  2. I have a page where i link dynamic images that show the status/data of a game server.

    Server name, number of players, map thats playing, etc.

    Im trying to reduce the server load without reloading the page everytime to reload an image.

     

    Cant i just reload a certain part of a page?

    Reload/refresh all contents inside a div?

  3. I just tried this for the reload button but it doesnt seem to work and reload the image.

    <!DOCTYPE html>
    <html>
    <head>
    <script>
    function reloadPage()
      {
      document.getElementById("refresh").reload();
      }
    </script>
    </head>
    <body>
    
    <input type="button" value="Reload page" onclick="reloadPage()">
    
    <img id="refresh" src="img.png">
    
    </body>
    </html>
    
  4. Hello,

     

    I am trying to crop some bits from the right and left side of an image.

    I managed to do this using the clip property but i come across another problem. 

    The image seems to get out of the div it is inside of after i change the position from relative to absolute or fixed.

     

    Please look at the url bellow to get an idea of what i want.......

    The first image should look like the one below but with that U and G removed....

     

     

    http://www.rising-dead.com/forums/servers.php

     

    Apologizes for the lame way i explained it.

     

    Please let me know if you are confused somewhere and ill try to explain better.

  5. Uummh... Sorry but what you are saying makes absolutely no sense.

     

    Pretty sure that maybe about 75% of users never need to change their username. So everyone could do what you said.

    Even if all of them would change it. Every user is able to see the first/main username of someone in their name history popup page, from their profile.

    I can see that you never changed yours, and that Jessica changed it once from jesirose. (I'm gonna hack ya both ! ::) )

    Its a joke if they would really go for this "security" option. Usernames are avaivable to the public on all sites.

     

     

    What if the user, as a dumb child, registers the forum with a damn stupid name..

    For example; BigCo*k69. As days-years pass and he realises how dumb it is to use such a name.....

    Do you think he would still want to write this everytime he logs in, after he changed his username as a reminder on how dumb he was??

     

    Or what if he just misspelled his user. When you registered, you could have accidentally wrote "Philiop".

    Would you want to login with that forever just because of a silly spelling mistake.....?

     

     

    I see no point in changing your username and still keeping the first username as a login method. 

     

    PS: How many platforms that function this way are there?

    Not bashing on IP Board. It looks good. The only thing i dont like about it is this issue and that when you right click in the writing area, it displays the menu it shows on a background area, instead of the text menu with cut/copy/paste/etc..

  6. I'm having a webpage that generates a file after you set post a path value(text).

     

    I am using this the code bellow to set its type and its working fine.

     

    header("Content-Type: application/octet-stream; ");
     

    I looked across the internet, and on this page but theres no specification of a .reg file.

    What content type would you recommend for this kind of file?

     

    Should "text/plain" be better....?

  7. @ChristianF: I havent understood how to use your example.

    Whats modulus... My original code doesnt have html entities. It has normal diacritic letters, and they are parsed well using the utf 8 html carset and the file encoding carset to utf 8. When i pasted the code in the hosted file, it replaced the diacritics with the html entities...

     

    @ManicDan: Yeah, i dont really have a serious problem. I will look around your code....

    Thanks

  8. Thanks for your fast answer.

    I consider i was explaining quite accurately.

    I answered to what you asked. Which was, why am i trying to do this. You havent asked how my system works like.

     

    I am using this for a social security number convertor.

    Here, our SSN's have contents about the person assigned to the SSN, and its just not a random number.

     

    Numbers 1 and 2 stand for persons that were born between 1990 and 1999.

    1 stands for male, and two for female.

     

    Would have been interesting if the array system would let you assign a single answer to multiple keys.

    $YearArr = array(
    1,2 => '19',
    3,4 => '18',
    5,6 => '20'
    );

     

    This is my entire page code:

    http://www.rising-dead.com/code.txt

  9. @ManicDan: Are you really serious !?

    I have said WHY !

     

    The thing has duplicate contents, and i wanted to set the keys one and two, to answer the same content, and not specify the content for each key, by repeating it. What dont you understand !? I have said why. Theres no secret.

     

    The question wasnt really, "why" but how to make that possible, if it is possible.

     

    Now you have your array viz.

    Array
    (
    [1/2] => 19
    [3/4] => 18
    [5/6] => 20
    )
    

    we'll be very interested to know how you intend to use it.

    Is that piece of code working....? It isnt here. What are you trying to say :|

     

    @Christian F:

    Your paradox example has nothing to do with scripting.

    Would you put the problem the same way if you use a short string to output the samecontents tens of times in a file?

     

    What real benefit could i have from this? I would rather set keys 1 and 2 to generate the same thing. End. Its that simple.

    It isnt to save memory space.

     

    I was just asking if it is possible to specify more than one array key to display the same contents.

    $YearArr = array(
    1,2 => '19',
    3,4 => '18',
    5,6 => '20'
    );

    If array key 1 and 2, echo 19.......

    It doesnt sound like something impossible to do. The way i currently do it looks messy to me.

    I only use this piece of script in an offline tool i use, and it does the job well, but i want it to be better.

  10. @Jessica, My benefit is that i wont have keys that output duplicate contents.

    @Dan, I have said what i am trying to solve, Not important, i'd just like it not output duplicate contents..................

     

    I havent wrote it as math. I could have used a comma or and "OR" as example, to explain that 1 and 2 are to output the same crap.

    I explained what the actual problem is. I guess i'll keep the code as it is.

  11. If the keys 1 and 2 must output 19, you CANNOT remove duplicates. Your own specs require duplicates.

    Well, i was hoping that it may be possible to do something like this:

    $YearArr = array(
    1/2 => '19',
    3/4 => '18',
    5/6 => '20'
    );

    :-\

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.