Author |
Message |
mijohnst
New Member


Joined: Sep 05, 2004
Posts: 8
|
Posted:
Sun Sep 05, 2004 4:06 pm |
|
I really like how this looks, so great job to the person who wrote it! I'm not using any nuke and just running off a plain website. I saw that I have to provide my own way of authenticating my username and password with yahoo. Has anyone else already done this? I'd love to keep using KISSQ, but I'm not a programmer wouldn't even know where to begin on this. Thanks!
Mike |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Sep 05, 2004 4:11 pm |
|
I (Raven) wrote this. Thanks for the kudos
Yes, there are many who have done this. They usually have a site with a membership script of some kind already in place. If you have none, you might take a look at http://hotscripts.com for many suggestions. if none meet your needs, I or some others here would be willing (and able) to write you the facility for $. |
|
|
|
 |
mijohnst

|
Posted:
Mon Sep 06, 2004 1:04 pm |
|
Raven,
You're awesome. I love how this script works. I will spend some time looking at hotscripts.com (that's where I found your awesome program) and if I can't find anything that works, I'd be very happy if someone could help me. I'll even donate $20's to your support. Thanks again for the fast response.
Mike
PS) You can check out what I'm doing with your script at www.weemonsters.net/ and click on stocks. |
|
|
|
 |
Raven

|
Posted:
Mon Sep 06, 2004 1:12 pm |
|
Donations are good - I like donations
Keep me posted. We can help, for sure  |
|
|
|
 |
mijohnst

|
Posted:
Tue Sep 07, 2004 11:02 pm |
|
Raven,
Thanks so much for your help. I really couldn't find anything on how to make a login for the stock ticker to work on my site. I guess it's because I don't really know what I'm looking for. Anyway, I've donated $20 from my mijohnst@weemonsters.net email address. I think you have a great nuke and with that I had a need to set this kind of site up... Would you mind helping me out in finding a way to reach my yahoo finance place? Thanks again for your help and keep up the great work!
Mike |
|
|
|
 |
Raven

|
Posted:
Tue Sep 07, 2004 11:20 pm |
|
I'm heading into bed but I'll contact you tomorrow. Are you just wanting to be able to display your personal picks? If that's all the that's pretty easy. And thanks for the donation! |
|
|
|
 |
mijohnst

|
Posted:
Wed Sep 08, 2004 12:54 pm |
|
Raven,
Thanks for the great response speed... I think it would be awesome if anyone who came to my site could put in the symbol number and see what any stock is going for, but if I could at least just put mine in, that would be good enough. I like to track about 10 stocks. Besides, I don't think anyone would come to my site just for stock info when there are tons of sites that already do it. Thanks again!!
Mike
PS) I don't need this right away. My first son was born on Monday and this has become a side job!
 |
|
|
|
 |
Raven

|
Posted:
Thu Sep 09, 2004 1:40 pm |
|
I had thrown together a quick-n-dirty fix for you but I really wasn't happy with it. So, I'm working on a more formal presentation and I will release it then - shortly  |
|
|
|
 |
mijohnst

|
Posted:
Thu Sep 09, 2004 7:26 pm |
|
Thank you Raven!!
 |
|
|
|
 |
mijohnst

|
Posted:
Tue Sep 14, 2004 11:31 pm |
|
Just wonder if you've had a chance to work on it. Not pushing you, just excited.  |
|
|
|
 |
Raven

|
Posted:
Wed Sep 15, 2004 4:03 am |
|
I may have to fall back on the other fix. I've been exceptionally busy since I last responded. I'll try to take a look at this todat. |
|
|
|
 |
Raven

|
Posted:
Wed Sep 15, 2004 7:21 am |
|
Okay, give this a shot
FindCode:if (!isset($username)) $username = "";
| and change it toCode:if (!isset($username)) $username = "";
// Begin quick and dirty hack to allow an admin to maintain a portfolio without a registration system
$submit = strip_tags($HTTP_POST_VARS[actionSubmit]);
$username = 'USERNAME'; //Change this to your username in your portfolio table
$userpass = 'PassWord';
if ($submit=="Update Portfolio"||$submit=="Add to Portfolio"||$submit=="Delete From Portfolio") {
if (!($_SERVER['PHP_AUTH_USER']==$username && $_SERVER['PHP_AUTH_PW']==$userpass)) {
header("WWW-Authenticate: Basic realm=Restricted");
header("HTTP/1.0 401 Unauthorized");
die('Authorization is required for this function.');
}
}
// End quick and dirty hack to allow an admin to maintain a portfolio without a registration system
|
Now this is not a secure way to do this. The reason is that your username and password are hardcoded into the script. While noone will be able to know this infor unless they can read your index.html file, you should probably store it in a file somewhere else and read the file into the script. But, it is reasonably safe. Let me know  |
|
|
|
 |
mijohnst

|
Posted:
Wed Sep 15, 2004 10:03 pm |
|
Wow Raven! This is exactly what I wanted. Thank you so much for taking the time to do this! |
|
|
|
 |
mijohnst

|
Posted:
Tue Oct 05, 2004 11:00 am |
|
I think I found a bug... When I try to remove a symbol I get this error:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/mjjohnst/public_html/stocks/index.php on line 369
ERROR while deleting record. |
|
|
|
 |
Raven

|
Posted:
Tue Oct 05, 2004 11:18 am |
|
It works perfectly here. I also know it is working on thousands of non-nuke sites, so I would suspect that something else is causing it, Maybe the user code is somehow interferring? Pleas post what line 369 is. |
|
|
|
 |
|