TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Script/Class Ideas? (http://www.talkphp.com/absolute-beginners/1703-script-class-ideas.html)

Andrew 12-11-2007 04:22 AM

Script/Class Ideas?
 
I'm bored, and very uncreative when it comes to thinking of site ideas, so I'm curious if anyone has some ideas for either some useful classes I can make, or a kind of script I can develop (for either resale for a website). Any ideas?

Thanks,
Andrew

Haris 12-11-2007 04:46 AM

Necessity is the mother of invention.

Andrew 12-11-2007 05:06 AM

Yeah, but I can't find anything that would be useful to make which could be considered necessary or needed. :(

maZtah 12-11-2007 10:12 AM

Maybe you could write some tutorials on how to write classes you've already written! :)

Chaos King 12-11-2007 10:35 AM

Quote:

Originally Posted by Andrew (Post 6223)
I'm bored, and very uncreative when it comes to thinking of site ideas, so I'm curious if anyone has some ideas for either some useful classes I can make, or a kind of script I can develop (for either resale for a website). Any ideas?

Thanks,
Andrew

A Relative Time class / function would be nice.

They never get old, and a lot of people need them because they all output different things in different formats :-)

ReSpawN 12-11-2007 02:17 PM

Quote:

Originally Posted by maZtah (Post 6232)
Maybe you could write some tutorials on how to write classes you've already written! :)

That would be nice. Maybe you could smash a buck out of making a tutorialsubsite for Wildhoney? It's just an idea but it might be fun and helpful. Next to that, making another time function could indeed be nice. Maybe with GTM options (like GTM+1) and ofcourse simple formats like H:i:s d-m-Y (dutch) and in reverse (plus the date obviously).

Let's see what you make of that. :D

Wildhoney 12-11-2007 02:26 PM

Quote:

Originally Posted by Haris (Post 6225)
Necessity is the mother of invention.

Haris has wisdom ahead of his years. If all else fails though, how about a mathematics' class to do everything relating to mathematics. After all, PHP has everything scattered all over the place when it comes to maths.

ReSpawN 12-11-2007 03:20 PM

Wildhoney has a good point. But make is useful for a wide range of people. I would not use a mathematical function/class but I WOULD use a timefunction which is more advanced than mine.

So if you're looking for a challenge, do what Wildhoney does. If you are looking for something useful, used all over the web, do the timefunction. :)

IMHO.

Wildhoney 12-11-2007 03:33 PM

What do you mean by a relative time class? Do you mean like: "10 days ago", "1 week ago", etcetera...? Or something entirely different?

Chaos King 12-11-2007 04:14 PM

Quote:

Originally Posted by Wildhoney (Post 6261)
What do you mean by a relative time class? Do you mean like: "10 days ago", "1 week ago", etcetera...? Or something entirely different?

Yes. I have had a few people looking for those, even myself at times when I just need something quick and I end up having to write my own because they all produce formats in which you can't use, or not specific to a project I am working on.

Yes, you can always tweak this and tweak that to make it your own, but sometimes by tweaking it, you make it less efficient than initially creating it that way.

bluesaga 12-11-2007 04:41 PM

How about a nice string cleaning class? Removing html, attributes etc?

ReSpawN 12-11-2007 07:04 PM

Then the more efficient way to do it is perhaps making a template class? I'm still looking for one to use in my CMS.

Anyways next to that, as a reply to Wildhoney and Chaos King, I've been looking for the exact same thing. If scripted to use with defined language sheets like define(_WEEK, 'Week'); (I use my own function suRBB(define(_WEEK, 'Week'));) it is more versatile and can be used by other nationalities.

Let me know what you're going to be working on! :-)

Chaos King 12-11-2007 09:52 PM

Quote:

Originally Posted by ReSpawN (Post 6302)
Anyways next to that, as a reply to Wildhoney and Chaos King, I've been looking for the exact same thing. If scripted to use with defined language sheets like define(_WEEK, 'Week'); (I use my own function suRBB(define(_WEEK, 'Week'));) it is more versatile and can be used by other nationalities.

See guys? I told you. ^^

CMellor 12-12-2007 12:39 AM

Quote:

Originally Posted by Chaos King (Post 6234)
A Relative Time class / function would be nice.

They never get old, and a lot of people need them because they all output different things in different formats :-)

Hey, hope this isn't classed as 'off-topic'

To Chaos King: is this of any use to you? It's not a class, but could easily be put into one.

Chaos King 12-12-2007 12:49 AM

Quote:

Originally Posted by CMellor (Post 6347)
Hey, hope this isn't classed as 'off-topic'

To Chaos King: is this of any use to you? It's not a class, but could easily be put into one.

I wasn't looking for one lol. I was just suggesting at a point or two, I was looking at different methods to see if they would meet a particular project I was developing. Those look good though, good call. 8-)

Andrew 12-13-2007 05:12 AM

Thanks for the ideas! I'm still not amazing at PHP, so the relative time class would be rather difficult, but a nice pagination script would help me, one which can be used for a multitude of results, not just MySQL as Wildhoney was saying in another thread.

ReSpawN 12-13-2007 09:52 AM

Quote:

Originally Posted by Andrew (Post 6432)
Thanks for the ideas! I'm still not amazing at PHP, so the relative time class would be rather difficult, but a nice pagination script would help me, one which can be used for a multitude of results, not just MySQL as Wildhoney was saying in another thread.

There are a LOT of pagination scripts/classes/functions going arround but each one isn't as perfect or complete as the other one. So, if you're going to create one, I suggest you collab with Rendair. He's making one as well with classes and retrieval from the database. Salathe has made a nice suggestion in that topic as well.

I am talking about this topic.


All times are GMT. The time now is 07:52 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0