
05-19-2009, 02:44 PM
|
|
|
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by powerful_rogue
Thank you everyone.
Lynne, I think we must have had our wires crossed as I now know what you mean! originally I was talking more along the lines of an alert box, however now you mentioned templates Im presuming your talking about an actual pop up window!
Ive just started to have a little play and come across a problem. Ive put the following code into the headinclude template
PHP Code:
<if condition="$post['postcount'] = '5'">
<script language="JavaScript" type="text/javascript">
window.open("win1.html","Window1",
"menubar=no,width=430,height=360,toolbar=no");
</script></if>
However it seems to disregard the =5. Ive got a post count on my test forum of 2000+ and it still shows the pop up.
Ive also tried <5 (less then 5) and yet it still shows, but if I change it to >5 (greater then) it dosent show
Im going to get some sleep as just come off a night shift, then a trip down to the library to get some books out! Ive tried once before to learn, but gave up because I started to get confused, but Im more determined then anything now! I think im going to struggle when it comes to adding fields in the admincp to control the mod, but one step at a time!
|
Change the = to ==.
= is for setting a value to something,
== is for comparison
|