Guest Pop Up
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Guest Pop Up
Een oud MOD'je van me: (paar dingen verandert sinds 2.0.3)
*removed*
Veranderen (zoals template includen xtra dingen erbij plakken) mag best zolang je Copyright phpBB-NL maar laat staan.
*removed*
Veranderen (zoals template includen xtra dingen erbij plakken) mag best zolang je Copyright phpBB-NL maar laat staan.
- SpEeDFrEaK
- Berichten: 84
- Lid geworden op: 19 nov 2002, 14:17
- Locatie: Nederland ergens :P
- Contacteer:
Re: Guest Pop Up
Dat zou je wel willen dat deze van jou was. Deze is namelijk rechtstreeks geripped van phpbbhacks.com: http://www.phpbbhacks.com/download.php?id=603.::Neo::. schreef:Een oud MOD'je van me: (paar dingen verandert sinds 2.0.3)
http://www.phpbb-nl.com/download/pafile ... =file&id=1
Veranderen (zoals template includen xtra dingen erbij plakken) mag best zolang je Copyright phpBB-NL maar laat staan.
Vind ik wel triest hoor...
- SpEeDFrEaK
- Berichten: 84
- Lid geworden op: 19 nov 2002, 14:17
- Locatie: Nederland ergens :P
- Contacteer:
- DaMnNaTiOn
- Berichten: 2555
- Lid geworden op: 11 dec 2002, 18:29
- Locatie: localhost
- Contacteer:
- DaMnNaTiOn
- Berichten: 2555
- Lid geworden op: 11 dec 2002, 18:29
- Locatie: localhost
- Contacteer:
- DaMnNaTiOn
- Berichten: 2555
- Lid geworden op: 11 dec 2002, 18:29
- Locatie: localhost
- Contacteer:
errug slordig... de gast krijgt dus nu na iedere klik een popup...
Ik heb wat zitten knutselen, de snelle oplossing is in popup.tpl de volgende regel bijvoegen:
na 5 seconden sluit de popup zichzelf weer.
---
De mooie oplossing zou natuurlijk zijn dat er een cookie wordt gemaakt, zodat de gast maar één keer de popup krijgt. Heeft iemand daar ideeen over ?
---
extraatje bij mekaar gejat van http://www.24fun.com
En dan is utilpopupfly2.js
(let op de regel die begint met "popwindow=window" is één regel !!! )
Ik heb wat zitten knutselen, de snelle oplossing is in popup.tpl de volgende regel bijvoegen:
Code: Selecteer alles
<BODY onLoad="setTimeout(window.close, 5000)">
---
De mooie oplossing zou natuurlijk zijn dat er een cookie wordt gemaakt, zodat de gast maar één keer de popup krijgt. Heeft iemand daar ideeen over ?
---
extraatje bij mekaar gejat van http://www.24fun.com
Code: Selecteer alles
#
#-----[ OPEN FILE: ]------------------------------------------
# templates/xxx/overall_header.tpl
[FIND:]
{L_LOGIN_LOGOUT}</a>
[ADD AFTER:]
Code: Selecteer alles
<script>
// CREDITS:
// New Flying Popup Generator
// By Urs Dudli and Peter Gehrig
// Copyright (c) 2001 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com
// info@24fun.com
// 4/6/2001
// IMPORTANT:
// If you add the Flying Popup to a script-library or script-archive
// you have to add a highly visible link to
// http://www.24fun.com on the webpage
// where this script will be featured
// tisdirection="horitop"
// tisdirection="horimiddle"
// tisdirection="horibottom"
// tisdirection="vertileft"
// tisdirection="vertimiddle"
// tisdirection="vertiright"
var tistoolbar="no"
var tislocation="no"
var tisdirectories="no"
var tisstatus="no"
var tismenubar="no"
var tisscrollbars="no"
var tisresizable="no"
var tisurl="http://jouwdomein/XXX/templates/***/popup.tpl"
var tiswidth="200"
var tisheight="200"
var tisdirection="horitop"
</script>
<script src="http://www.jouwdomein/XXX/templates/***/utilpopupfly2.js"></script>
Code: Selecteer alles
var popwindow
var thistoolbar
var thislocation
var thisdirectories
var thisstatus
var thismenubar
var thisscrollbars
var thisresizable
var thisurl
var thiswidth
var thisheight
var thisdirection
var thistopposition
var thisleftposition
var pause=20
var stepfactor=20
var stepx
var stepy
var marginpadding=23
var startleft=0
var endleft=0
var starttop=0
var endtop=0
var marginleft=0
var margintop=0
var marginright
var marginbottom
var timer
function openpopup() {
thistoolbar=tistoolbar
thislocation=tislocation
thisdirectories=tisdirectories
thisstatus=tisstatus
thismenubar=tismenubar
thisscrollbars=tisscrollbars
thisresizable=tisresizable
thisurl=tisurl
thiswidth=tiswidth
thisheight=tisheight
thisdirection=tisdirection
marginright=screen.width
marginbottom=screen.height
if (thisdirection=="horitop") {
startleft=marginleft
endleft=marginright-thiswidth-marginpadding
starttop=marginpadding
endtop=starttop
stepx=stepfactor
stepy=0
}
if (thisdirection=="horimiddle") {
startleft=marginleft
endleft=marginright-thiswidth-marginpadding
starttop=Math.round((marginbottom-thisheight)/2)
endtop=starttop
stepx=stepfactor
stepy=0
}
if (thisdirection=="horibottom") {
startleft=marginleft
endleft=marginright-thiswidth-marginpadding
starttop=marginbottom-thisheight-2*marginpadding
endtop=starttop
stepx=stepfactor
stepy=0
}
if (thisdirection=="vertileft") {
startleft=marginleft
endleft=startleft
starttop=marginpadding
endtop=marginbottom-thisheight-2*marginpadding
stepx=0
stepy=stepfactor
}
if (thisdirection=="vertimiddle") {
startleft=Math.round((marginright-thiswidth)/2)
endleft=startleft
starttop=marginpadding
endtop=marginbottom-thisheight-2*marginpadding
stepx=0
stepy=stepfactor
}
if (thisdirection=="vertiright") {
startleft=marginright-thiswidth-marginpadding
endleft=marginright-thiswidth-marginpadding
starttop=marginpadding
endtop=marginbottom-thisheight-2*marginpadding
stepx=0
stepy=stepfactor
}
popwindow=window.open(thisurl, "newwindow", "toolbar="+thistoolbar+",location="+
thislocation+",directories="+thisdirectories+",status="+thisstatus+
",menubar="+thismenubar+",scrollbars="+thisscrollbars+
",resizable="+thisresizable+",width="+thiswidth+",height="+
thisheight+",top="+starttop+",left="+startleft+"")
movewindow()
popwindow.focus()
}
function movewindow() {
if ((starttop<=endtop) && (startleft<=endleft)){
popwindow.moveTo(startleft,starttop)
startleft+=stepx
starttop+=stepy
timer=setTimeout("movewindow()",pause)
}
else {
clearTimeout(timer)
popwindow.moveTo(endleft,endtop)
}
}
window.onload=openpopup
[ps: kijk eens naar de datum]timdb schreef:ik heb hem ook maar ik krijg iets heel vaags kijk maar eens http://www.timforum.wesweb.nl
Wat is er dan zo vaag aan?
Geen support: Copyright is verkeerd!
... Maar ik modereer (nog) niet.