PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
junkingusa
New Member
New Member


Joined: Feb 21, 2005
Posts: 9

PostPosted: Mon Feb 21, 2005 5:27 pm Reply with quote Back to top

Hoplessly lost here! .. I'm writting a new module for phpnuke 7.5.

My first problem is that I'm trying to include a javascript color picker. I downloaded Tigra Color Picker
Only registered users can see links on this board!
Get registered or login to the forums!


but it is confussing me. I will freely admit that I know nothing about javascripts. I saw the instructions on wraping some code around it but not sure what to do then.


well phoooy, I tried to show the code example and I was accused of a hack attack! and I did use the code brackets ... darn, what do I do now?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Feb 21, 2005 9:20 pm Reply with quote Back to top

Make sure your script tags are modified (to post) like <scr ipt>
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
junkingusa
New Member
New Member


Joined: Feb 21, 2005
Posts: 9

PostPosted: Tue Feb 22, 2005 9:15 am Reply with quote Back to top

Thanks! ... I thought I had figured out the problem, fixed it and it still doesn't work! grrrr ... There is a whole lot of code in this so I don't want to paste it all, I'll just copy in what I think is revelant and maybe you can tell me what I messed up! Or; maybe it just wont work in phpnuke?

This is what I put in my_header.php .. I did change the path to the full path ...

Code:
<sc---t language=Java----- src="picker.js"></sc----t>


one of the things I tried was to copy the entire content of picker.js into my_header, but that didn't make any difference.

There is a file called picker.html that the path is in picker.js, I changed it to use the full url to point to the correct picker.html that contains in part this code:

Code:


<form>
<tr><td align="center">
<select name="type" onchange="P.C(this.selectedIndex)" class="s">
   <option>Web Safe Palette</option>
   <option>Windows System Palette</option>
   <option>Grey Scale Palette</option>
   <option>Mac OS Palette</option>
</select>
</td></tr>
<tr><td align="center">
<sc---t language="JavaS-----">
   var P = opener.TCP;
   onload = "P.show(P.initPalette)";
   document.forms[0].elements[0].selectedIndex = P.initPalette;
   P.draw(window, document);
</sc---t>




then this is what I inserted into my file, where I want it to show up.

Code:

echo "< input type=\"text\" name=\"input0\">"
. "<a href=\"javas-----:TCP.popup(document.forms['tcp_test'].elements['input0'])\"><img alt=\"Click Here to Pick up the color\" src=\"modules/$module_name/img/sel.gif\"></a>";



Which is where I hope that I messed it up. It does show up ok, but when clicking on the icon I get an error ...

any ideas? Thank you!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Feb 22, 2005 12:07 pm Reply with quote Back to top

Please zip/rar and email it to me at raven (at) ravenphpscripts (dot) com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
junkingusa
New Member
New Member


Joined: Feb 21, 2005
Posts: 9

PostPosted: Tue Feb 22, 2005 12:22 pm Reply with quote Back to top

Thanks Raven, what all do you want in the zip? The original color picker files and my page that I want to insert it at? ...
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Feb 22, 2005 12:36 pm Reply with quote Back to top

Yes.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
junkingusa
New Member
New Member


Joined: Feb 21, 2005
Posts: 9

PostPosted: Tue Feb 22, 2005 12:44 pm Reply with quote Back to top

OK, it's on it's way! ... Thank you again!
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum