some questions (General)

by mlf_fan, Saturday, April 21, 2007, 03:32 (6213 days ago)

A couple of things

1. Is it possible to colour threads as viewed, once viewed in multi-thread [image] ?

2. Instead of complete threads in each post, is there a way to only show posts made below it?
With huge threads visitors get tired of scrolling down to read the bottom threads.

With these things my forum will be perfect. I tried myself but ended up breaking the code. Anyone help?

locked
7138 views
Avatar

some questions

by Alex ⌂, Saturday, April 21, 2007, 11:49 (6213 days ago) @ mlf_fan

1. Is it possible to colour threads as viewed, once viewed in multi-thread [image]

Good idea! So far this is done by the browser history so an own mechanism for doing this would be necessary (e.g. cookie based). I'll think about it.

2. Instead of complete threads in each post, is there a way to only show posts made below it?
With huge threads visitors get tired of scrolling down to read the bottom threads.

Personally, I find it more clearly laid out if you have the complete thread "at hand". But you're right, it should at least be an option.

There's just one line to change if you want to do it by yourself:
includes/entry.inc.php, line 92:

replace

if(isset($child_array)) $tree[] = tree($entrydata['tid'], $child_array);

by

if(isset($child_array)) $tree[] = tree($entrydata['id'], $child_array);

Alex

locked
6473 views

some questions

by mlf_fan, Saturday, April 21, 2007, 21:18 (6213 days ago) @ Alex

wow didn't expect such a quick reply.

Good idea! So far this is done by the browser history so an own mechanism for doing this would be necessary (e.g. cookie based). I'll think about it.

I've done the code, using a comma delimited cookie when viewing multithreads. Then when in index or entry exploding the cookie and changing the class if tids match. The only problem is I couldn't work out how modify smarty to show it. :(

There's just one line to change if you want to do it by yourself:
includes/entry.inc.php, line 92:

replace

if(isset($child_array)) $tree[] = tree($entrydata['tid'], $child_array);

by

if(isset($child_array)) $tree[] = tree($entrydata['id'], $child_array);

thanks i'll try this


One thing I changed on my board, that others may find helpful is the headers sent. Before my board sent a no-store cache header, i think this may be default in php. In firefox if you browse a post then click back you loose your original scroll position, plus if you're writing a post and accidentally navigate off the page when you press back your post has disappeared.

To change the header open php.ini and change 'session.cache_limiter' to equal nothing, restart web server. Then add to the top of index.php

header("Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0");

This what I did to make it work, there is probably an easier way that doesn't involve editing the php.ini. Maybe something for a future update?

- mlf_fan

locked
6297 views

some questions

by mlf_fan, Saturday, April 21, 2007, 21:31 (6213 days ago) @ Alex

There's just one line to change if you want to do it by yourself:
includes/entry.inc.php, line 92:

replace

if(isset($child_array)) $tree[] = tree($entrydata['tid'], $child_array);

by

if(isset($child_array)) $tree[] = tree($entrydata['id'], $child_array);

this didn't work exactly, it cuts off replies made to posts earlier in the thread. I want the structure to remain the same, just not to show higher up posts.

This forum software does it like this: http://b4.boards2go.com/boards/board.cgi?&user=tamalpa

Is a quick fix possible?

locked
6476 views

RSS Feed of thread