TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-11-2007, 04:22 AM   #1 (permalink)
The Acquainted
 
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
Andrew is on a distinguished road
Default 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
Send a message via AIM to Andrew Send a message via MSN to Andrew
Andrew is offline  
Reply With Quote
Old 12-11-2007, 04:46 AM   #2 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Necessity is the mother of invention.
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
Old 12-11-2007, 05:06 AM   #3 (permalink)
The Acquainted
 
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
Andrew is on a distinguished road
Default

Yeah, but I can't find anything that would be useful to make which could be considered necessary or needed. :(
Send a message via AIM to Andrew Send a message via MSN to Andrew
Andrew is offline  
Reply With Quote
Old 12-11-2007, 10:12 AM   #4 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

Maybe you could write some tutorials on how to write classes you've already written! :)
maZtah is offline  
Reply With Quote
Old 12-11-2007, 10:35 AM   #5 (permalink)
The Wanderer
 
Join Date: Sep 2007
Posts: 11
Thanks: 0
Chaos King is on a distinguished road
Default

Quote:
Originally Posted by Andrew View Post
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
Chaos King is offline  
Reply With Quote
Old 12-11-2007, 02:17 PM   #6 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Quote:
Originally Posted by maZtah View Post
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
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-11-2007, 02:26 PM   #7 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Quote:
Originally Posted by Haris View Post
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.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
Haris (12-11-2007)
Old 12-11-2007, 03:20 PM   #8 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-11-2007, 03:33 PM   #9 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

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.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 12-11-2007, 04:14 PM   #10 (permalink)
The Wanderer
 
Join Date: Sep 2007
Posts: 11
Thanks: 0
Chaos King is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
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.
Chaos King is offline  
Reply With Quote
Old 12-11-2007, 04:41 PM   #11 (permalink)
Super Moderator
Advanced Programmer 
 
bluesaga's Avatar
 
Join Date: Sep 2007
Posts: 165
Thanks: 0
bluesaga is on a distinguished road
Default

How about a nice string cleaning class? Removing html, attributes etc?
__________________
Halo 3 Cheats
bluesaga is offline  
Reply With Quote
Old 12-11-2007, 07:04 PM   #12 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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!
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-11-2007, 09:52 PM   #13 (permalink)
The Wanderer
 
Join Date: Sep 2007
Posts: 11
Thanks: 0
Chaos King is on a distinguished road
Default

Quote:
Originally Posted by ReSpawN View Post
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.
Chaos King is offline  
Reply With Quote
Old 12-12-2007, 12:39 AM   #14 (permalink)
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default

Quote:
Originally Posted by Chaos King View Post
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...
CMellor is offline  
Reply With Quote
Old 12-12-2007, 12:49 AM   #15 (permalink)
The Wanderer
 
Join Date: Sep 2007
Posts: 11
Thanks: 0
Chaos King is on a distinguished road
Default

Quote:
Originally Posted by CMellor View Post
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.
Chaos King is offline  
Reply With Quote
Old 12-13-2007, 05:12 AM   #16 (permalink)
The Acquainted
 
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
Andrew is on a distinguished road
Default

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.
Send a message via AIM to Andrew Send a message via MSN to Andrew
Andrew is offline  
Reply With Quote
Old 12-13-2007, 09:52 AM   #17 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Quote:
Originally Posted by Andrew View Post
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"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:59 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design