zangerbanger
03-23-2003, 03:02 AM
I'm currently using Greymatter for my blog and I want the individual entry pages to appear in a pop-up window. How do I do this? Which template do I edit?
|
View Full Version : Greymatter Pop-Ups zangerbanger 03-23-2003, 03:02 AM I'm currently using Greymatter for my blog and I want the individual entry pages to appear in a pop-up window. How do I do this? Which template do I edit? starlet 03-23-2003, 02:23 PM So that when people comment it'll open in a popup you mean? (like my site) or do you mean something else? zangerbanger 03-23-2003, 06:32 PM Yes! So people comment in a separate pop-up. I'm afraid I might screw something up if I accidently edit the wrong template. starlet 03-23-2003, 11:18 PM Firstly add this between the <head> tags (edit templates > edit main index related templates > the first 'box') <script language="javascript"> var win = null; function pop(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',status=yes,scrollbars='+scroll+' ,resizable=no' win = window.open(mypage,myname,settings) } </script> Then in edit templates > edit karma and comment related templates > {{commentslink}} Template put this <a href="{{pagelink}}" onclick="pop(this.href,'comment','400','375','yes');return false">{{commentstatussmart}}</a> I think thats how its done anyway, its been a while! zangerbanger 03-24-2003, 01:51 AM It doesn't seem to be working and I have no idea why... starlet 03-24-2003, 01:06 PM Be sure to take out any silly line breaks the forum puts in code... |