laserlight wrote:I was asking you to suggest your own ideas. You might want to tackle things one step at a time: how would you implement a private messaging system?
Horizon88 wrote:Chances are you'd want to use an SQL database, sessions, and the header() function.
Dysan wrote:Hi,
Using PHP, how would you go about creating a simple PM system,
- that every time the page loads,
- checks if any new messages have been sent, and
- navigates to a page upon finding new messages
(e.g. http://www.google.co.uk
Hi Dysan.
Halojoy here.
================================
Every time page loads
checks if any new messages have been sent
this is the normal. when somebody comes at http://phpbuilder.com/board
and starts a new SESSION or Login, then vBulletin Board will check for any PM
and alert you in some way, that you have messages
think that line puzzles us,
Laserlight and Horizon88 and me, HALOJOY can better hep if we would understand this idea you have
Because normally when you get New PM from somebody,
there is no other website involved. Like when we get a PM at http://phpbuilder.com/board/
I will try to find some of those TUTORIALS I have learnt so much from.
By http://www.google.com/ ... but of course!
It is a fact, that I have studied several PM-systems, in detail.
Some Standalone Private Messages systems and several forums add-on PM systems.
For example Joomla, I think, and for sure http://www.punBB.org/
has got MODS, Plugins to enable PM.
In the case of punBB forum software,
it is to STAY Light and FAST in compare with such as vBulletin Board, phpBB2, phpBB3 and Simple Machines Forum.
Chief developer. R. Andersson (from Sweden like me) has always rejected requests to add PM-feature.
I will submit a couple of links for you to explore.
I found them helpful and
I have even used (copied and paste 😃 ) some lines of their PHP Code
for my own custom standalone PM-System.
I be back.
I have not time to search My PHP Bookmarks right now.
My firefox bookmarks file is 10.5 MBytes, currently .....
Often we can get a good idea, when see how other did.
Then we write our own Idea and borrow some ideas (read: code!) from them.
To get the best System for our needs.
So we do only have to re-invent or improve The Wheel to like 67.13%
now that we can use 32.87% from the part, where they happend to have one good day of writing php code.
Regards 🙂
halojoy, Sweden
PS.
The module I used, for my own standalone working PM-System uses a SQL database called MySQL (Made in Sweden! freeware), like Horizon88 pointed to in his reply.
Maybe you can find some other similar system to re-write and modify.
Chipmunk is good code, but was old PHP 4 from beginning (may be modernized even more)
They also have a free Guestbook and free Chipmunk CMS ....
Anyway ...
Screenshot here: PM System page structure
Download here: Chipmunk Forums PHP Script & other Free nice PHP Scripts
Regards
halojoy