Different Icon for each main forum (unexpected behaviour)

Go down

Solved Different Icon for each main forum (unexpected behaviour)

Post by Kusaha on June 17th 2016, 8:36 pm

Technical Details


Forum version : #PunBB
Position : Founder
Concerned browser(s) : Mozilla Firefox
Who the problem concerns : All members
When the problem appeared : When clicking on a category that has sub forums
Forum link : http://revelation.hungarianforum.com/

Description of problem

I tried to make different icon for each main forum category (Általános, Kasztok etc.) I tought I finally found a solution, I came across a bug that I couldn't solve anyhow. So the problem is when I click on a category that has sub forums in it, it's going to tranfer all the custom icons to that page as well, and I don't want it to happen.

To see the error in action visit: http://revelation.hungarianforum.com/ and either on "Kasztok" or "Dungeon/Boss" category. (Yes, my forum is in hungarian sorry about that)

Screenshots:

The "good part", aka the main page


The "bad part" aka a random category with subforums in it


Cause: The forum somewhy calls the "index_box" on those categories that has sub forums


What I did to achieve this state:
Added this code to the "index_box" template
Code:

<div class="iconcontainer">
<!--Hírek-->
  <a href="http://revelation.hungarianforum.com/f5-hirek">
    <div style="position: absolute; left:8px;top:105px;">
      <img src="https://i.lithi.io/83Cs.png" align="middle"/></div></a>
 
 <!--Általános-->
  <a href="http://revelation.hungarianforum.com/f1-altalanos">
    <div style="position: absolute; left:8px;top:163px;">
      <img src="https://i.lithi.io/XQPB.png" align="middle"/></div></a>
 
  <!--Szervezett események-->
    <a href="http://revelation.hungarianforum.com/f7-szervezett-esemenyek">
    <div style="position: absolute; left:8px;top:290px;">
      <img src="https://i.lithi.io/p2BY.png" align="middle"/></div></a>
</div>


And added this code to the CSS file:

Code:
.iconcontainer {position: relative; width: 0px; height: 0px;}


What I want to happen?
I want the custom icons to only appear on the main page of the forum.


Last edited by Kusaha on June 22nd 2016, 11:20 pm; edited 1 time in total
avatar
Kusaha
New Member

Posts : 2
Reputation : 1
Language : Hungarian

http://revelation.hungarianforum.com/

Back to top Go down

Solved Re: Different Icon for each main forum (unexpected behaviour)

Post by Kusaha on June 19th 2016, 8:36 pm

:bump: I really hate bumping a thread, but I desperately need some help and I don't know where else I could get some
avatar
Kusaha
New Member

Posts : 2
Reputation : 1
Language : Hungarian

http://revelation.hungarianforum.com/

Back to top Go down

Solved Re: Different Icon for each main forum (unexpected behaviour)

Post by Ace 1 on June 22nd 2016, 10:34 pm

I don't understand the problem. Perhaps you could screenshot it?
avatar
Ace 1
Helper
Helper

Male Posts : 842
Reputation : 63
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: Different Icon for each main forum (unexpected behaviour)

Post by APE on June 23rd 2016, 9:04 pm

is this now solved @Kusaha



avatar
APE
Administrator
Administrator

Male Posts : 12330
Reputation : 1284
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Different Icon for each main forum (unexpected behaviour)

Post by APE on June 26th 2016, 6:44 pm

as no reply i will now lock this Smile
Problem solved & topic archived.
Please read our forum rules: ESF General Rules



avatar
APE
Administrator
Administrator

Male Posts : 12330
Reputation : 1284
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum