Page 1 of 9

[!] New Forum Features!!

PostPosted: Sun Feb 08, 2009 6:39 am
by smeggypants
Greetings Smegstas!!!

It's been a long night programming in those wonderful languages of SQL and PHP.

The right hand list of latest topics on the main page is a great feature. But for ages I've wanted to see which topics I've fully read and those which have unread posts. And I'm sure many of you have too!!

It wasn't easy. It involved some nifty database programming and a few beers, but at last I've cracked it!!

The first version worked, but was too inefficient. Page took long to load, so after much optimisation I've managed to add this feature with only adding a massive 0.006 of a second to the page loading time. Woo Hoo! :thumb: :thumb:

Bit bollocks to the technical stuff, what it means is now the topics that have new posts you haven't read have a RED icon and those you've read have a grey icon. It can't get simpler than that!!!

The other new little feature in the front page topic list is that Announcements are now prefixed with a Φ character so it's easy to note when there are new forum announcements. This topic should be prefixed with one. It's the Greek letter Phi btw.

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 10:43 pm
by Stanley Tweedle
Great Smeggy thanks. :)

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 10:46 pm
by Deb Arkle
It's a huge improvement, much more user friendly - good stuff! :clap: :clap: :clap:

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 10:49 pm
by Whirliegig
sometimes it doesnt display properly for me though....?

seems to be the first time I log in, then its ok after that.

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 10:53 pm
by smeggypants
Whirliegig wrote:sometimes it doesnt display properly for me though....?

seems to be the first time I log in, then its ok after that.



hmmm? Any specifics on what goes wrong so I can trouble shoot?

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 10:57 pm
by Whirliegig
yeah the boxes dont show up, i get a line of text instead

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:11 pm
by whimsical oracle
good job smeggy, thanks for your hard work :thumb:

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:19 pm
by smeggypants
Whirliegig wrote:yeah the boxes dont show up, i get a line of text instead


What does the text say?

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:23 pm
by Raffles
Parse error: parse error, unexpected $ in /var/www/html/includes/template.php(527) : eval()'d code on line 547

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:26 pm
by smeggypants
Raffles wrote:Parse error: parse error, unexpected $ in /var/www/html/includes/template.php(527) : eval()'d code on line 547


where does this appear?

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:31 pm
by Raffles
upper left corner of the forum index page.

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:31 pm
by Raffles
gone now though

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:33 pm
by Whirliegig
mmm..thats not what i get

I get a line of text above every topic in the Delicious New Writings box, and no boxes.

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:34 pm
by smeggypants
Whirliegig wrote:mmm..thats not what i get

I get a line of text above every topic in the Delicious New Writings box, and no boxes.


What does the text say?

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:38 pm
by Whirliegig
this is what I get if Im not logged in.
then after I log in, it displays properly


# viewtopic.php?f=16&t=8533&view=unread#unread View the latest post I got a recored letter from the police t ...
# viewtopic.php?f=11&t=9721&view=unread#unread View the latest post William Roache's wife dies suddenly at 5 ...
# viewtopic.php?f=50&t=9710&view=unread#unread View the latest post Crime Books (Detective Novels)
# viewtopic.php?f=16&t=9712&view=unread#unread View the latest post How stupid are the council....pathetic!! ...
# viewtopic.php?f=16&t=216&view=unread#unread View the latest post Gary Glitter has a Heart Attack.
# viewtopic.php?f=18&t=9713&view=unread#unread View the latest post Fascinating Fact of the Day!
# viewtopic.php?f=43&t=9720&view=unread#unread View the latest post Oddball Hotels
# viewtopic.php?f=18&t=1501&view=unread#unread View the latest post How is everyone doing?
# viewtopic.php?f=16&t=9659&view=unread#unread View the latest post Is sex really best for women in their 40 ...
# viewtopic.php?f=139&t=9719&view=unread#unread View the latest post [Game] Asteroids2
# viewtopic.php?f=139&t=9718&view=unread#unread View the latest post [Game] SuperMario Rampage
# viewtopic.php?f=22&t=9533&view=unread#unread View the latest post Which sports are popular where you live?
# viewtopic.php?f=139&t=9717&view=unread#unread View the latest post [Game] Pacman
# viewtopic.php?f=16&t=9511&view=unread#unread View the latest post UK cold snap brings winter back
# viewtopic.php?f=18&t=758&view=unread#unread View the latest post The goodnight thread...
# viewtopic.php?f=2&t=9716&view=unread#unread View the latest post Hi-Tech ID cards - Lo-Tech brains
# viewtopic.php?f=16&t=9715&view=unread#unread View the latest post Schools CCTV is judged intru

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:43 pm
by smeggypants
Whirliegig wrote:this is what I get if Im not logged in.
then after I log in, it displays properly


# viewtopic.php?f=16&t=8533&view=unread#unread View the latest post I got a recored letter from the police t ...
# viewtopic.php?f=11&t=9721&view=unread#unread View the latest post William Roache's wife dies suddenly at 5 ...
# viewtopic.php?f=50&t=9710&view=unread#unread View the latest post Crime Books (Detective Novels)
# viewtopic.php?f=16&t=9712&view=unread#unread View the latest post How stupid are the council....pathetic!! ...
# viewtopic.php?f=16&t=216&view=unread#unread View the latest post Gary Glitter has a Heart Attack.
# viewtopic.php?f=18&t=9713&view=unread#unread View the latest post Fascinating Fact of the Day!
# viewtopic.php?f=43&t=9720&view=unread#unread View the latest post Oddball Hotels
# viewtopic.php?f=18&t=1501&view=unread#unread View the latest post How is everyone doing?
# viewtopic.php?f=16&t=9659&view=unread#unread View the latest post Is sex really best for women in their 40 ...
# viewtopic.php?f=139&t=9719&view=unread#unread View the latest post [Game] Asteroids2
# viewtopic.php?f=139&t=9718&view=unread#unread View the latest post [Game] SuperMario Rampage
# viewtopic.php?f=22&t=9533&view=unread#unread View the latest post Which sports are popular where you live?
# viewtopic.php?f=139&t=9717&view=unread#unread View the latest post [Game] Pacman
# viewtopic.php?f=16&t=9511&view=unread#unread View the latest post UK cold snap brings winter back
# viewtopic.php?f=18&t=758&view=unread#unread View the latest post The goodnight thread...
# viewtopic.php?f=2&t=9716&view=unread#unread View the latest post Hi-Tech ID cards - Lo-Tech brains
# viewtopic.php?f=16&t=9715&view=unread#unread View the latest post Schools CCTV is judged intru



Ahhh Ok, from your previous post it seemed the problem happened when you first logged in.

It works OK here when not logged in. I'll go and see what could be the problem.

New Topic List Feature!!

PostPosted: Sun Feb 08, 2009 11:58 pm
by smeggypants
I had a look. I can't find anything that would cause that. The text you are seeing is the URL of the topic ( view first unread ) - which if you are a guest it would show for all topics.

Bizarre. Is this 100% repeateable. Is that safari? Safari PC, and Firefox and IE7 wok fine here when I'm logged out or nin

New Topic List Feature!!

PostPosted: Mon Feb 09, 2009 11:23 pm
by smeggypants
Hye whirlie are you still getting the lines oftext when not logged in?

New Topic List Feature!!

PostPosted: Tue Feb 10, 2009 2:03 am
by smeggypants
My next quest is to add a feature where we can page back through the topics. Loving this PHP programming game :)

New Topic List Feature!!

PostPosted: Tue Feb 10, 2009 2:55 am
by smeggypants
Oh well that wasn't so bad....

You now have 5 buttons on the bar below the right hand list of topics. Which means almost instant access to the newest 250 topics.