DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 6855--------------------------------------------------
Request Popup box
DIR By: terrel8125
Date: October 23, 2012, 8:38 am
---------------------------------------------------------
I would like to find a code for a popup box or alert box for my
forums can someone help me please
#Post#: 6863--------------------------------------------------
Re: Request Popup box
DIR By: Griff Grof
Date: October 23, 2012, 2:19 pm
---------------------------------------------------------
Good idea, I think a code for this would be useful :)
#Post#: 6866--------------------------------------------------
Re: Request Popup box
DIR By: Andrew
Date: October 23, 2012, 9:14 pm
---------------------------------------------------------
What would be the purpose of the alert box? Making a code for
this would be fairly simple. Would you want it to display
everywhere each time the page is refreshed?
#Post#: 6870--------------------------------------------------
Re: Request Popup box
DIR By: terrel8125
Date: October 23, 2012, 9:59 pm
---------------------------------------------------------
no just every 24 hours for each member since i created the
forums for an rsps (runescape private server) i want them to
have a reminder to vote every 24 hours.
#Post#: 6884--------------------------------------------------
Re: Request Popup box
DIR By: starlitnightfalls
Date: October 25, 2012, 6:13 pm
---------------------------------------------------------
This is a great suggestion. I would find something like that
very useful in my forum.
#Post#: 6885--------------------------------------------------
Re: Request Popup box
DIR By: xboi209
Date: October 25, 2012, 8:19 pm
---------------------------------------------------------
I can't seem to produce a code for this easily, I doubt it will
be much use anyways because it's not like I log in one day and
log in the next exactly 24 hours after the first time, most
users would miss the message being sent out.
#Post#: 6886--------------------------------------------------
Re: Request Popup box
DIR By: terrel8125
Date: October 25, 2012, 9:00 pm
---------------------------------------------------------
I found the code and dont worry it happens when they come onto
the forums so its diff for every ip.. idk how the code writers
managed it but it worked... i asked my members if when they
logged on if they got a pop up request and they said they did
so... it worked..
Code is this!
Put that in your meta tag section of the forums(unfortunately i
was unable to find a popup where u could customize it with your
own text this is just a link to a url so ull have to make an
entire new page for the custom text sorry)
--- Code ---
<<script type="text/javascript">
//Time controlled Pop-under window- By JavaScriptKit.com
//This credit notice must stay intact for use
//Visit
HTML http://www.javascriptkit.com
for this script and 400+
more!
//1) specify URLs to randomly select from and pop-under:
//To display a single URL, just remove all but the first entry
below:
var popunder=new Array()
popunder[0]="
HTML http://www.freewarejava.com
"
popunder[1]="
HTML http://www.dynamicdrive.com
"
popunder[2]="
HTML http://www.webmasterpick.com
"
popunder[3]="
HTML http://www.codingforums.com
"
//2) specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var
winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"
//3) Control frequency of the pop up:
//"always", for every time page loads OR
//"x hours" for once per x hours, where x is an integer (ie:
12 hours)
var popfrequency="24 hours"
///No editing beyond here required/////
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset,
end))
}
}
return returnvalue;
}
function resetcookie(){
var expireDate = new Date()
expireDate.setHours(expireDate.getHours()-10)
document.cookie = "tcpopunder=;path=/;expires=" +
expireDate.toGMTString()
}
function loadornot(){
if (get_cookie('tcpopunder')==''){
loadpopunder()
var expireDate = new Date()
expireDate.setHours(expireDate.getHours()+parseInt(popfrequency))
document.cookie =
"tcpopunder="+parseInt(popfrequency)+";path=/;expires=" +
expireDate.toGMTString()
}
}
function loadpopunder(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"",winfeatures)
win2.blur()
window.focus()
}
if (popfrequency=="always"){
resetcookie()
loadpopunder()
}
else{
if (get_cookie('tcpopunder')!=parseInt(popfrequency))
resetcookie()
loadornot()
}
</script>
--- End Code ---
* Moderator edit: Added code tags
*****************************************************
Page 1 of 1