Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISSQ General Support
Author Message
mijohnst
New Member
New Member



Joined: Sep 05, 2004
Posts: 8

PostPosted: Sun Sep 05, 2004 4:06 pm Reply with quote

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
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Sep 05, 2004 4:11 pm Reply with quote

I (Raven) wrote this. Thanks for the kudos Wink

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 kaching!$.
 
View user's profile Send private message
mijohnst







PostPosted: Mon Sep 06, 2004 1:04 pm Reply with quote

Raven,

You're awesome. I love how this script works. Smile 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. Smile Thanks again for the fast response. Smile

Mike

PS) You can check out what I'm doing with your script at www.weemonsters.net/ and click on stocks.
 
Raven







PostPosted: Mon Sep 06, 2004 1:12 pm Reply with quote

Donations are good - I like donations Wink

Keep me posted. We can help, for sure RavensScripts
 
mijohnst







PostPosted: Tue Sep 07, 2004 11:02 pm Reply with quote

Raven,

Thanks so much for your help. Smile 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... Smile 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







PostPosted: Tue Sep 07, 2004 11:20 pm Reply with quote

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







PostPosted: Wed Sep 08, 2004 12:54 pm Reply with quote

Raven,

Thanks for the great response speed... Smile 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. Smile 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!

RavensScripts
 
Raven







PostPosted: Thu Sep 09, 2004 1:40 pm Reply with quote

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 Wink
 
mijohnst







PostPosted: Thu Sep 09, 2004 7:26 pm Reply with quote

Thank you Raven!!
RavensScripts
 
mijohnst







PostPosted: Tue Sep 14, 2004 11:31 pm Reply with quote

Just wonder if you've had a chance to work on it. Smile Not pushing you, just excited. Smile
 
Raven







PostPosted: Wed Sep 15, 2004 4:03 am Reply with quote

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







PostPosted: Wed Sep 15, 2004 7:21 am Reply with quote

Okay, give this a shot Wink

Find
Code:
if (!isset($username)) $username = "";
and change it to
Code:
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 Smile
 
mijohnst







PostPosted: Wed Sep 15, 2004 10:03 pm Reply with quote

Wow Raven! This is exactly what I wanted. Smile Thank you so much for taking the time to do this!
 
mijohnst







PostPosted: Tue Oct 05, 2004 11:00 am Reply with quote

I think I found a bug... Smile 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







PostPosted: Tue Oct 05, 2004 11:18 am Reply with quote

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISSQ General Support

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©