Add a banner for each section .. It appears at the top of the topics
+2
skouliki
كونان2000
6 posters
Page 1 of 1
Add a banner for each section .. It appears at the top of the topics
Hello all
-----------
Add a banner for each section. It appears at the top of the topics
Works on all versions
-------------------
For example, if you have a gamings section
The gamings logo will appear for all topics in the "gamings" section only.
-----------
First put the following code at the top of the template viewtopic_body
- Code:
<div class="logo-posts"></div>
Then put the following code in java
Title : as you like
Placement : In the topics
- Code:
$(function() {
$(".logo-posts").css({
"display": "inline-block",
"width": "100%",
"height": "130px"
});
});
$(function() {
if($('a.nav[href^="/f????-"]').length)
$(".logo-posts").css({
"background": "url(yyyy)"
});
});
|
Replace
|
----------
And in case you want paneer for more than one section
Add a new line to the java code as follows
- Code:
$(function() {
if($('a.nav[href^="/f????-"]').length)
$(".logo-posts").css({
"background": "url(yyyy)"
});
});
|
Replace
|
Thus, repeat the same method for each section
as in the picture
-----------------------------
We hope you like this great little Trick and Tip on how to make the change.
_____________________________________________
Last edited by كونان2000 on September 17th 2024, 5:35 am; edited 3 times in total
skouliki, SarkZKalie, TonnyKamper and hoanglongnhatbao like this post
كونان2000 likes this post
Re: Add a banner for each section .. It appears at the top of the topics
Awesome! Thanks for sharing!
كونان2000 likes this post
Re: Add a banner for each section .. It appears at the top of the topics
Great job as always. This will be greatly used by the members on their forums.
Graphic Design Section Rules || Becoming a Designer || Graphic Requests
Graphics Request Form
Make sure to check out our FREE Graphic's Gallery
No support provided via PM!
كونان2000 likes this post
Re: Add a banner for each section .. It appears at the top of the topics
As always, great content from you
Guest- Guest
Re: Add a banner for each section .. It appears at the top of the topics
Thank you my friends
skouliki Obscure BlackScorpion System32
I'm glad you all like it ! ^^
skouliki Obscure BlackScorpion System32
I'm glad you all like it ! ^^
skouliki, TonnyKamper and Obscure like this post
Re: Add a banner for each section .. It appears at the top of the topics
Brilliant! This code has worked for me, thank you
perlesias- Forumember
- Posts : 218
Reputation : 7
Language : spanish
كونان2000 likes this post
Re: Add a banner for each section .. It appears at the top of the topics
Any picture example?
كونان2000 likes this post
Similar topics
» anyway to restrict what appears in the latest topics
» Avatar in: Lattest Topics, Most Viewed Topics and Most Active Topics Widget!
» A way to decorate the signature section in topics
» Need forum section banner
» Navbar inside banner section
» Avatar in: Lattest Topics, Most Viewed Topics and Most Active Topics Widget!
» A way to decorate the signature section in topics
» Need forum section banner
» Navbar inside banner section
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum