[solved] Click anywhere in row to open forum and topic

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Ideas Centre
onimorza
Registered User
Posts: 5
Joined: Wed Nov 16, 2016 9:07 am

[solved] Click anywhere in row to open forum and topic

Post by onimorza »

Hi,

I'm working with phpbb 3.1.10 with Prosilver template and it's nice to have the color change when hovering over a forum or topic, but I also want it to be entirely clickable.

Therefor in forumlist_body.html I've changed :

Code: Select all

<li class="row">
into:

Code: Select all

<li onclick="location.href='{forumrow.U_VIEWFORUM}';" class="row">
And in viewforum_body.html I've changed :

Code: Select all

<li class="row<!-- IF topicrow.S_ROW_COUNT is even -->
into:

Code: Select all

<li onclick="location.href='{topicrow.U_VIEW_TOPIC}';" class="row<!-- IF topicrow.S_ROW_COUNT is even -->
For clicking a forum it works and sends me to that particular forum or subforum.

But when I click a topic, it sends me to the board index.

What am I missing?

Thank you in advance for thinking with me :roll:
Last edited by onimorza on Fri Nov 18, 2016 12:40 pm, edited 1 time in total.
User avatar
pit-PL
Registered User
Posts: 3212
Joined: Sat Nov 21, 2009 12:24 pm

Re: Click anywhere in row to open forum and topic

Post by pit-PL »

There is no reason why it would not work.
onimorza
Registered User
Posts: 5
Joined: Wed Nov 16, 2016 9:07 am

Re: Click anywhere in row to open forum and topic

Post by onimorza »

That's what I was thinking too..
Weird indeed; I'll triple check everything to see if no small typo sneaked in there..
Thanks anyway!
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Click anywhere in row to open forum and topic

Post by david63 »

If you haven't already done so - purging the cache might help.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
onimorza
Registered User
Posts: 5
Joined: Wed Nov 16, 2016 9:07 am

Re: Click anywhere in row to open forum and topic

Post by onimorza »

Yes I had purged the cache, maybe 10 times even :)
Anyway, I restored a backup of those 2 files and retyped everything checking letter by letter symbol by symbol, and now it seems to be working; there must have been an invisible to me typo in my edited files.
Thanks anyway!

Maybe you can create an extension of this ;)

Return to “[3.1.x] Styles Support & Discussion”