Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Writing a forum - test it out!

Author
Message
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 1st May 2004 16:39 Edited at: 1st May 2004 16:40
Hi,

(Some of you may remember this)

I've been writing my own forum in PHP for the last 13 days - you can check it out here

http://www.davidtattersall.me.uk/pb2

Please do sign up (it's v quick) and post a message!

So far I've got

- Quick, very quick (1 query for a whole board view page, 2 less than apollo atm)
- Flexible BBcode:
[ u r l = x y z ] l i n k n a m e [ / u r l ]
[ u r l ] x y z [ / u r l ]
(Same for href)

- Very nice avatar selector!
- All the usualy features
- Highlighting of NEW, UPDATED and VIEWED topics plues telling you when you last viewed it.

On my list is

- Quoting that works every time
- PMs
- Uploading files
- Forum Search
- Stats, such as topic views and replies

Have you got anything that you really wished was in a forum? Any niggles about the forums currently out? Let me know

ps - I have taken a bit of inspriation from Apollo. In RIch's own words, "Imitation is the sincerest form of flattery"!

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
SubNova
20
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 1st May 2004 21:24
Maybe a Projects section in everyone's profile, to put screens, code, etc in...like a treasure chest for a user.

Death by skill, not by force.-Iron Condor
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 1st May 2004 21:32
I wrote my own forum once. Tell me though, how did u get the viewed/posted icon to work?

"All programmers are playwrites and all computers are lousy actors" -Anon
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st May 2004 21:45
@David

Looks very nice, but its hard to say how fast the board is as there are nowhere near the number of threads.

Although the query count is sometimes more on Apollo, the total execution time on Apollo is much faster.

BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games. - Plus URL download, win dialogs.
Over 140 new commands
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 1st May 2004 22:24
speed is not an issue.

Chances are this forum is run off a 3Ghz Pentium with a couple of gigs of RAM.

David would be lucky to have 1.5Ghz, and will most probably be used by 30+ other websites.

Also its not so much the number of queries, but the size of em...

Whats so good about living anywho?
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 1st May 2004 22:45
Martyn - actually, this server isn't anywhere close to that spec and as well as running the forum it has to run all of the web sites as well (which are _very_ traffic heavy).

But you're right, the number of queries isn't really the issue, it's the ability at which they query - what indexes are being used, how much memory do the tables take up? Are they fixed or dynamic length? etc.

Cheers,

Rich

With our species on the edge of extermination,
with no prospect but a horrible death,
we actually played games.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 1st May 2004 22:48
Some comments for David

Looking nice indeed, obviously still some things left to do on it (views, etc) but it's definitely getting there. I like the contents of the "hidden" board 0

Cheers,

Rich

With our species on the edge of extermination,
with no prospect but a horrible death,
we actually played games.
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 2nd May 2004 05:43
There's an edit button to the bottom left of your post Rich, use it!


"Computers are useless they can only give you answers."
Lord Ozzum
20
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 2nd May 2004 05:46
j00 n00b R1<h, $0|\/|31 m@y b@n j00
lol, j/k...

Was Mr X
We're off to never-never land!!!
Welcome to the Electric Funeral!!!
Manticore Night
20
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 2nd May 2004 08:59
@Exeat: Being Sarcastic to an Admin . Your either really brave or REALLY REALLY REEEAAALY stupid. Personaly, I think it's the second one.

It's amazing how much TV has raised us. (Bart Simpson)
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 2nd May 2004 09:06
@ MN, I can vouch for Exeat and he is not stupid, stupid!
He posted what he did as he has a repoire on these forums and Rich knows he was only joking and if it didn't give it away before I will point it out again that he said at the end of the line meaning "wink wink" as in "HA HA funny - only joking"

get a clue


** DBP_NETLIB_v1 PLUGIN - FULL VERSION RELEASED! ** Mooooooo!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd May 2004 21:31
Quote: "Maybe a Projects section in everyone's profile, to put screens, code, etc in...like a treasure chest for a user."


Probably will, I might fuse it with the upload feature.

Quote: "I wrote my own forum once. Tell me though, how did u get the viewed/posted icon to work? "


I asked this before Basically, whenever somebody views a topic a row is created in a topic_views table. When I query the DB for the topics in each board I use the LEFT JOIN statement to join any of the rows in the topic_views table that were created by the current user to their respective topics. In the end I end up with an array with all the standard topic info plus when the user last viewed the topic. From there I can calculate whether there have been any new posts.

Quote: "@David

Looks very nice, but its hard to say how fast the board is as there are nowhere near the number of threads.

Although the query count is sometimes more on Apollo, the total execution time on Apollo is much faster."


I didn't mean to start any argument here - I was simply proud that I'd managed to do it in one query! I did not, in any way, intend to put Rich down

Quote: "Looking nice indeed, obviously still some things left to do on it (views, etc) but it's definitely getting there. I like the contents of the "hidden" board 0 "


Cheers Yep, all thta rubbish is there because I changed "topic_id" to "topicid" and forgot to update it in the create topics query, so I ended up with alot of topics disappearing!

Quote: "@Exeat: Being Sarcastic to an Admin . Your either really brave or REALLY REALLY REEEAAALY stupid. Personaly, I think it's the second one."


You suck up Admins aren't Gods, well not yet...

Thanks for the comments guys, I'm back off to code

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd May 2004 21:34
Oh, and, RobK, thanks for your comments

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
Lord Ozzum
20
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 2nd May 2004 21:51
EDIT BUTTON!!!!
lol

You forgot to read your fortune cookie. It says you're sh!t out of luck.
Welcome to the Electric Funeral!!!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd May 2004 22:00


"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
Lord Ozzum
20
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 2nd May 2004 22:11


You forgot to read your fortune cookie. It says you're sh!t out of luck.
Welcome to the Electric Funeral!!!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 2nd May 2004 22:29
Cool thanks..

Your forum looks very professional.

"All programmers are playwrites and all computers are lousy actors" -Anon
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd May 2004 22:48
Thank you

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 3rd May 2004 00:31
Okay, (sorry for double post)

I've got a forum search feature working.

As suggested by RobK, there's now the infrastructure in place to allow users to hide the Key to Icons, to display signatures as text only, and to hide all signatures - However not coded!

(If a sig is text-only, links won't be removed: just written as [LINKwww.whatever.com link name)

For tomorrow:

- Code user preferences
- Number of replies, number of views for topics
- Number of posts in forum, highlighting forums where there's been new activity

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra

Login to post a reply

Server time is: 2024-09-21 21:06:34
Your offset time is: 2024-09-21 21:06:34