The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Different Icon for each main forum (unexpected behaviour)

3 posters

Go down

Solved Different Icon for each main forum (unexpected behaviour)

Post by Kusaha 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:

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
Kusaha
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 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
Kusaha
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 June 22nd 2016, 10:34 pm

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

Male Posts : 843
Reputation : 64
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 June 23rd 2016, 9:04 pm

is this now solved @Kusaha


Different Icon for each main forum (unexpected behaviour) Left1212Different Icon for each main forum (unexpected behaviour) Center11Different Icon for each main forum (unexpected behaviour) Right112
Different Icon for each main forum (unexpected behaviour) Ape_b110
Different Icon for each main forum (unexpected behaviour) Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19075
Reputation : 1988
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 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


Different Icon for each main forum (unexpected behaviour) Left1212Different Icon for each main forum (unexpected behaviour) Center11Different Icon for each main forum (unexpected behaviour) Right112
Different Icon for each main forum (unexpected behaviour) Ape_b110
Different Icon for each main forum (unexpected behaviour) Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19075
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Back to top

- Similar topics

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