Redirection Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
5 posters

    Redirection

    PorkyPine V10
    PorkyPine V10
    Forumember


    Male Posts : 387
    Reputation : 19
    Language : English, Spanish, French, Japanese

    Redirection Empty Redirection

    Post by PorkyPine V10 May 12th 2012, 9:32 pm

    hello,

    i was wondering if there is a code that would redirect ONLY guests to a certain page

    thanks in advance


    Last edited by PorkyPine V10 on May 12th 2012, 10:04 pm; edited 1 time in total
    Ryanette
    Ryanette
    Forumember


    Male Posts : 135
    Reputation : 2
    Language : English (British)
    Location : England, United Kingdom

    Redirection Empty Re: Redirection

    Post by Ryanette May 12th 2012, 9:41 pm

    PorkyPine V10 wrote:hello,

    i was wondering if there is a could that would redirect ONLY guests to a certain page

    thanks in advance
    Put a meta tag in a "widget" and set it to "guests" only
    PorkyPine V10
    PorkyPine V10
    Forumember


    Male Posts : 387
    Reputation : 19
    Language : English, Spanish, French, Japanese

    Redirection Empty Re: Redirection

    Post by PorkyPine V10 May 12th 2012, 9:42 pm

    sorry, but i dont know what a meta is, would u mind explaining?
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Redirection Empty Re: Redirection

    Post by LGforum May 13th 2012, 12:50 am

    Putting this in an announcement would be a quick redirection:
    Code:

    <script>
    var guest = '{USERNAME*}';
    if(guest == 'Guest') window.location = 'redirection url';
    </script>
    (remove the * when placing it on your board)
    Ahkrir
    Ahkrir
    Forumember


    Male Posts : 288
    Reputation : 14
    Language : English
    Location : The Netherlands

    Redirection Empty Re: Redirection

    Post by Ahkrir May 13th 2012, 10:53 pm

    I think it's solved, because that code is working here ;-)
    PorkyPine V10
    PorkyPine V10
    Forumember


    Male Posts : 387
    Reputation : 19
    Language : English, Spanish, French, Japanese

    Redirection Empty Re: Redirection

    Post by PorkyPine V10 May 13th 2012, 11:32 pm

    good for you,

    but the code is not working for me
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    Redirection Empty Re: Redirection

    Post by kirk May 15th 2012, 3:51 pm

    PorkyPine V10 wrote:good for you,

    but the code is not working for me

    did you add the link to where you want it to redirect ?
    'redirection url';

    Since you are using punbb i would place it in the top of the overall header template, and i am not sure if you have to change user name to guest?
    PorkyPine V10
    PorkyPine V10
    Forumember


    Male Posts : 387
    Reputation : 19
    Language : English, Spanish, French, Japanese

    Redirection Empty Re: Redirection

    Post by PorkyPine V10 May 16th 2012, 2:48 am

    one question:

    if a guest gets redirected to the page i want him/her to, and they try to login or register, would redirect them back or affect them in a way like that?

    and my text got really BIG somehow