The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Redirection

View previous topic View next topic Go down

Redirection

Post by PorkyPine V10 on 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

PorkyPine V10
Forumember

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

http://gfx-creators.forumotion.com/

Back to top Go down

Re: Redirection

Post by Ryanette on 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

Ryanette
Forumember

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

http://www.devforumz.com

Back to top Go down

Re: Redirection

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

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

PorkyPine V10
Forumember

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

http://gfx-creators.forumotion.com/

Back to top Go down

Re: Redirection

Post by LGforum on 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)

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Redirection

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

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

Ahkrir
Forumember

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

http://smarterweb.go-board.com/forum

Back to top Go down

Re: Redirection

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

good for you,

but the code is not working for me

PorkyPine V10
Forumember

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

http://gfx-creators.forumotion.com/

Back to top Go down

Re: Redirection

Post by kirk on 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?

kirk
Forumaster

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

Back to top Go down

Re: Redirection

Post by PorkyPine V10 on 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

PorkyPine V10
Forumember

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

http://gfx-creators.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum