Page 1 of 1

[PHP] - how to make mouse hover areas clickable in phpbb2/3

Posted: Wed Oct 07, 2009 3:15 am
by Sethioz
i could not find better title for this, but hopefully it comes in handy for the owners of phpbb2 and phpbb3.
phpbb2 had a blueglass style/theme which i really liked and i have tried to replicate it here with my own colors and stuff.
one thing i was not able to do was this hover thing.
What i mean is the big highlighted area when you move your mouse over the topics/forums and their discriptions (check in my forum on index). now in my forum those areas are clickable and it will take you into the forum/topic. here's how you can do this:

1. go to your "\forum\styles\prosilver\template" folder
2. find viewforum_body.html and forumlist_body.html
3. open them in notepad++ (not notepad)
4. in forumlist_body.html find this:

Code: Select all

<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
and replace it with this:

Code: Select all

<dl class="icon" onclick="window.location.href='{forumrow.U_VIEWFORUM}'" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
5. in viewforum_body.html find this:

Code: Select all

<dl class="icon" style="background-image: url({topicrow.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
and replace it with this:

Code: Select all

<dl class="icon" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'" style="background-image: url({topicrow.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
6. upload both files and you are done.