guest viewing codes
4 posters
Page 1 of 1
guest viewing codes
hello all
i need a code for guest to view topics for few seconds then a fade box opens to register
any help ?
thanks
i need a code for guest to view topics for few seconds then a fade box opens to register
any help ?
thanks
Re: guest viewing codes
Hello mist3r0us_b0y,
You could try this:
AP > Modules > Javascript codes management > create a new script
Name: what you wish
Placement: In the topics
You could try this:
AP > Modules > Javascript codes management > create a new script
Name: what you wish
Placement: In the topics
- Code:
setTimeout(function(){
if (!document.getElementById('logout')){
jQuery('body').append('<div style="position:fixed;left:0;right:0;top:0;bottom:0;z-index:500;background:rgba(0,0,0, 0.5)"></div><div style="top:40%;left:35%;right:35%;padding:4px;position:fixed;z-index:900;background:#D1D1D1;border-radius:5px;box-shadow:0px 0px 2px rgba(0,0,0, 0.5) inset;text-align:center;height:100px;"><div style="margin:10%;">Please <a href="/login">login</a> or <a href="/register">register</a>.</div></div>');
}
}, 3000);
Re: guest viewing codes
Come on, Seth, you can do better than that, what happened to slideUp and slideDown for stylish animations?
And guests would be stuck on that pop up forever unless they would directly remove it from the document or click a link, which is not always what a guest desires.
And guests would be stuck on that pop up forever unless they would directly remove it from the document or click a link, which is not always what a guest desires.
Re: guest viewing codes
If you wish for a code that you can close then you can have it here:
- Code:
setTimeout(function(){
if (!document.getElementById('logout')){
jQuery('body').append('<div id="popup-filter" style="cursor:pointer;position:fixed;left:0;right:0;top:0;bottom:0;z-index:500;background:rgba(0,0,0, 0.5)"></div><div id="pop-container" style="top:40%;left:35%;right:35%;padding:4px;position:fixed;z-index:900;background:#D1D1D1;border-radius:5px;box-shadow:0px 0px 2px rgba(0,0,0, 0.5) inset;text-align:center;height:100px;"><div style="margin:10%;">Please <a href="/login">login</a> or <a href="/register">register</a>.</div></div>');
jQuery('#popup-filter').click(function(){ jQuery('#popup-filter, #pop-container').remove(); });
}
}, 3000);
Re: guest viewing codes
Good morning SethC1995,SethC1995 wrote:If you wish for a code that you can close then you can have it here:I wrote a quick code to see if it is what the user wants. If you would wish to add to the code for the user, feel free.
- Code:
setTimeout(function(){
if (!document.getElementById('logout')){
jQuery('body').append('<div id="popup-filter" style="cursor:pointer;position:fixed;left:0;right:0;top:0;bottom:0;z-index:500;background:rgba(0,0,0, 0.5)"></div><div id="pop-container" style="top:40%;left:35%;right:35%;padding:4px;position:fixed;z-index:900;background:#D1D1D1;border-radius:5px;box-shadow:0px 0px 2px rgba(0,0,0, 0.5) inset;text-align:center;height:100px;"><div style="margin:10%;">Please <a href="/login">login</a> or <a href="/register">register</a>.</div></div>');
jQuery('#popup-filter').click(function(){ jQuery('#popup-filter, #pop-container').remove(); });
}
}, 3000);
Nice script, is it possible to make it after this delay to send the guest back in the board index?
Best Regards,
Dark-Avenger
Re: guest viewing codes
Of course, with this:
Tick in the topics only
Tick in the topics only
- Code:
setTimeout(function(){
if (!document.getElementById('logout')) { window.location.href = "/forum" }
}, 3000);
Re: guest viewing codes
Hello angi ,
this works with punbb ?
and please very urgent answer for this issue isnt fixed yet
https://help.forumotion.com/t128596-quick-reply
cause memebers cnt post in my forum
help me thanks
this works with punbb ?
and please very urgent answer for this issue isnt fixed yet
https://help.forumotion.com/t128596-quick-reply
cause memebers cnt post in my forum
help me thanks
Re: guest viewing codes
ok thats great
and how about it will redirect to login page automatically ?
thanks
and how about it will redirect to login page automatically ?
thanks
Similar topics
» Can you control guest's seeing ads on a Paid forum?
» Unwanted Advertisements When Viewing As A Guest
» "Guest" viewing Admin only boards
» Guest Viewing Restricted Area of Forum
» user viewing..
» Unwanted Advertisements When Viewing As A Guest
» "Guest" viewing Admin only boards
» Guest Viewing Restricted Area of Forum
» user viewing..
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum