How to prevent Guest access to Links

Discussion in 'Exploding Rabbit' started by Omicron, Mar 12, 2012.

  1. Omicron

    Omicron Level 9: Spike Top

    I was messing around with BBcode and found an easy way to prevent guests from accessing :link::link: on threads.

    Usually, if you place url tags around an image, the image will be clickable, leading to the specified url.

    However, if the image is an attachment, and not from an image hosting service, it will be converted into a jpeg thumbnail for any guest viewing the thread. This procedure overwrites the specified url to a new one pointing to the full-size image. Upon clicking the image, you're redirected to an error saying "You must be logged in to do that".

    Pretty neat, huh?

    An example of this behavior is the first post of Sonic Boll's new thread. If you click the download button as a guest you're sent to the error screen.


    Code:
    [URL='http://www.mediafire.com/download.php?gv0ttsomt8ama4g'][ATTACH=full]3563[/ATTACH][/URL]
     
    ZeroXBeoulve, Rey D and sbq92 like this.
  2. Faruga

    Faruga Level 12: Super Mod
    Patron

    Really? Can you record a comparison with Camstudio?
     
  3. Omicron

    Omicron Level 9: Spike Top

    Dude, just log off and then click on V V

    downbut.png

    That image.

    Edit: eh, bugs. working on it.

    Edit2: fixed.

    Edit3: green.
     
  4. World 1-1

    World 1-1 Level 6: Lakitu

    Doesn't works if the guy is smart:

    [​IMG]


    :nerd:
     
    SimplyMatt, Rey D and Omicron like this.

Share This Page