Please help me these.
My forum is phpBB3 and link to on my profile.
Thank you!
Alex.
Last edited by AlexisMcDevin on December 30th 2014, 1:57 pm; edited 2 times in total
SLGray wrote:Do you mean that you want guests to not see the posts?
$(function(){
if($("#logout").length<1) {
count = parseInt(my_getcookie("count")) || 0;
count < 0?my_setcookie("count",++count):location.href='URL login page';
}
});
function getParameter(name) { // function use parameters
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
getParameter('url') // return www.google.com
$(function(){
Ā Ā Ā Ā Ā Ā Ā var x = "/login /register";
Ā Ā Ā var y = x.split(" ");
for (var i = 0; i < y.length; i++) {
Ā Ā Ā Ā Ā Ā if (window.location.pathname == y[i]) return;Ā Ā Ā Ā
};
Ā Ā Ā if(_userdata.session_logged_in <= 0) {
Ā Ā Ā Ā Ā Ā
Ā Ā Ā Ā Ā Ā Ā count = parseInt(my_getcookie("count")) || 0;
Ā Ā Ā Ā Ā Ā Ā if(count < 10){
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā my_setcookie("count",++count);
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā
Ā Ā Ā Ā Ā Ā Ā }else{
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā var hhh = location.href;
Ā Ā Ā Ā my_setcookie("mylasturl",hhh);
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā location.href='/login?change_version=invision&keep_theme=2';
};
Ā Ā Ā }else{
Ā Ā Ā lastur = my_getcookie("mylasturl");
Ā Ā Ā if (lastur == ""){}else{
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā location.href=lastur;
my_setcookie("mylasturl","");
Ā Ā Ā Ā Ā Ā Ā };
Ā Ā Ā };
});
Ā
Ā if(count < 10){
$(function(){
themsg = "You Have Reached The View Limit You Must Signup To Continue Viewing";
var x = "/login /register";
var y = x.split(" ");
for (var i = 0; i < y.length; i++) {
if (window.location.pathname == y[i]) return;
};
if(_userdata.session_logged_in <= 0) {
count = parseInt(my_getcookie("count")) || 0;
if(count < 10){
my_setcookie("count",++count);
}else{
alert(themsg);
var hhh = location.href;
my_setcookie("mylasturl",hhh);
location.href='/login?change_version=invision&keep_theme=2';
};
}else{
lastur = my_getcookie("mylasturl");
if (lastur == ""){}else{
location.href=lastur;
my_setcookie("mylasturl","");
};
};
});
$(function(){
themsg = "You Have Reached The View Limit You Must Signup To Continue Viewing";
var x = "/login /register";
var y = x.split(" ");
for (var i = 0; i < y.length; i++) {
if (window.location.pathname == y[i]) return;
};
if(_userdata.session_logged_in <= 0) {
count = parseInt(my_getcookie("count")) || 0;
if(count < 10){
my_setcookie("count",++count, 10000);
}else{
alert(themsg);
var hhh = location.href;
my_setcookie("mylasturl",hhh, 10000);
location.href='/login?change_version=invision&keep_theme=2';
};
}else{
lastur = my_getcookie("mylasturl");
if (lastur == ""){}else{
location.href=lastur;
my_setcookie("mylasturl","", 10000);
};
};
});