 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
IRC Channel
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
 |
|
 |
12-11-2007, 04:22 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
|
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
|
|
|
12-11-2007, 04:46 AM
|
#2 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Posts: 360
Thanks: 24
|
Necessity is the mother of invention.
__________________
Necessity is the mother of invention.
My blog
|
|
|
|
12-11-2007, 05:06 AM
|
#3 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
|
Yeah, but I can't find anything that would be useful to make which could be considered necessary or needed. :(
|
|
|
12-11-2007, 10:12 AM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
Maybe you could write some tutorials on how to write classes you've already written! :)
|
|
|
|
12-11-2007, 10:35 AM
|
#5 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 11
Thanks: 0
|
Quote:
Originally Posted by Andrew
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 
|
|
|
|
12-11-2007, 02:17 PM
|
#6 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Quote:
Originally Posted by maZtah
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
|
|
|
12-11-2007, 02:26 PM
|
#7 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
Quote:
Originally Posted by Haris
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.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
|
The Following User Says Thank You to Wildhoney For This Useful Post:
|
|
12-11-2007, 03:20 PM
|
#8 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
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.
|
|
|
12-11-2007, 03:33 PM
|
#9 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
What do you mean by a relative time class? Do you mean like: "10 days ago", "1 week ago", etcetera...? Or something entirely different?
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
12-11-2007, 04:14 PM
|
#10 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 11
Thanks: 0
|
Quote:
Originally Posted by Wildhoney
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.
|
|
|
|
12-11-2007, 04:41 PM
|
#11 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Posts: 165
Thanks: 0
|
How about a nice string cleaning class? Removing html, attributes etc?
|
|
|
|
12-11-2007, 07:04 PM
|
#12 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
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! 
|
|
|
12-11-2007, 09:52 PM
|
#13 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 11
Thanks: 0
|
Quote:
Originally Posted by ReSpawN
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. 
|
|
|
|
12-12-2007, 12:39 AM
|
#14 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
|
Quote:
Originally Posted by Chaos King
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.
__________________
Not quite a n00b...
|
|
|
|
12-12-2007, 12:49 AM
|
#15 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 11
Thanks: 0
|
Quote:
Originally Posted by CMellor
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. 
|
|
|
|
12-13-2007, 05:12 AM
|
#16 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
|
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.
|
|
|
12-13-2007, 09:52 AM
|
#17 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Quote:
Originally Posted by Andrew
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.
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|