MyBB Community Forums

Full Version: Make entire TD link to thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OK, so, basically I'd like to make the entire TD which contains the thread name lead to the index of the thread. Obviously I want to make the page links, username links, etc link to the proper places. I tried using display: inline-block with a 90% width and that helped a lot, but it messes up the pagination and unread-arrow links. Anyone got any clever ideas?
Assuming you're talking about the listing on forumdisplay.php, do the following edits to forumdisplay_thread:

Add this to any TD you want to redirect when clicked on:
onclick="window.location='{$thread['threadlink']}'"

This uses JS as far as I know, but it should work in all browsers.
It worked! Thanks!
No problem Smile
Obviously this can be implemented elsewhere, just a matter of using the right variables.
Yeah, I'm going to go through search displays etc tomorrow and maybe make the table cells change color on hover (though I find this really obnoxious, so maybe the pointer cursor is feedback enough).