davidw
22 Jun 2006, 16:42
Ok, here's another small hack that I threw together. It should be an easy one. I have tested this in both Firefox and IE and both work - other than those two I don't know.
This is handy for a website that allows its members to choose a color for anything - for example: allowing the user to change their username color (I used a hack for this).
I would rate this an easy modification - most everyone should be able to install this.
Don't forget to change www.yourwebsite.com with your domain name/location.
Step 1: Upload the entire ColorPicker folder to your website - remember where you have uploaded it to. The best place for this is in your root folder as in http://www.yourwebsite.com/ColorPicker/
Step 2: Create a reference to the colorpicker however you choose.
Add a reference from any page:
FIND:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ADD BEFORE
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Find the location on the page where you want to add the link and then do one of the following
For a button, add this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
For a javascript text link, add this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Ultimately, you could directly link the page itself (located in the folder).
Temporary demo location:
http://www.christianboards.org/popup.php
All I did was make use of the reference location edits (above) and put them in a fresh php file.
This is handy for a website that allows its members to choose a color for anything - for example: allowing the user to change their username color (I used a hack for this).
I would rate this an easy modification - most everyone should be able to install this.
Don't forget to change www.yourwebsite.com with your domain name/location.
Step 1: Upload the entire ColorPicker folder to your website - remember where you have uploaded it to. The best place for this is in your root folder as in http://www.yourwebsite.com/ColorPicker/
Step 2: Create a reference to the colorpicker however you choose.
Add a reference from any page:
FIND:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ADD BEFORE
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Find the location on the page where you want to add the link and then do one of the following
For a button, add this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
For a javascript text link, add this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Ultimately, you could directly link the page itself (located in the folder).
Temporary demo location:
http://www.christianboards.org/popup.php
All I did was make use of the reference location edits (above) and put them in a fresh php file.