Welcome, Guest. Please Login or Register.
May 13, 2025, 09:47:35 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Some Help Please « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Some Help Please  (Read 534 times)
Valconeye
Full Member
***
Posts: 190


Some Help Please
« on: April 26, 2003, 11:11:52 AM »
Reply with quote

The only thing i need help with is to have a menu link open up a diff page, like a window, look at my code.

I am having some trouble with some things, there are only 2 actions so far in the .mod  when i run i get an error with the subs, and im not sure if what i have edited in the template will work either, i know the code for that chat works just fine, check it our here, http://www.warcraftwars.com/chat.html and choose java chat.

Mod Code
<edit file>
Sources/Subs.php
</edit file>

<search for>
      $yymenu .= "$menusep<a href=\"$cgi;action=profile;user=$euser\">$img[profile]</a>";
</search for>

<add after>
      $yymenu .= "$menusep<a onfocus=this.blur()
     onclick="NewWindow(this.href,'test','800','500','no','center');return false"
     href="http://www.warcraftwars.com/cgi-bin/Java/chat.html">Java Chat</a>";
</add after>

<edit file>
template.php
</edit file>

<search for>
</body>
</search for>

<add before>
<script language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
</add before>
« Last Edit: April 26, 2003, 11:45:32 AM by Valconeye » Logged
Valconeye
Full Member
***
Posts: 190


Re:Some Help Please
« Reply #1 on: April 27, 2003, 01:16:28 AM »
Reply with quote

12 hours since i posted this, no one can help?
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Some Help Please
« Reply #2 on: April 27, 2003, 02:23:47 AM »
Reply with quote

this is not coded properly:
     $yymenu .= "$menusep<a onfocus=this.blur()
     onclick="NewWindow(this.href,'test','800','500','no','center');return false"
     href="http://www.warcraftwars.com/cgi-bin/Java/chat.html">Java Chat</a>";
should be:      $yymenu .= "$menusep<a onfocus=\"this.blur()\" onclick=\"NewWindow(this.href,'test','800','500','no','center');return false;\" href=\"http://www.warcraftwars.com/cgi-bin/Java/chat.html\">Java Chat</a>";
hope i dont miss a quote...
i didnt check the js code
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Valconeye
Full Member
***
Posts: 190


Re:Some Help Please
« Reply #3 on: April 27, 2003, 03:25:27 AM »
Reply with quote

sweet thanks! you can goto my forum to check out what it does, http://www.warcraftwars.com/forum/  and ill release this into a mod.
« Last Edit: April 27, 2003, 03:26:30 AM by Valconeye » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Some Help Please « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.074 seconds with 21 queries.