Choose your banner at the top of posts
+2
mc nabulsy
كونان2000
6 posters
Page 1 of 1
Choose your banner at the top of posts
Hello All,
Choose your banner at the top of posts
--------------------------------------
This trick allows the user to choose the banner and they want
At the top of the posts (❁´◡`❁)
-----------------------------
WORKS ON THE FOLLOWING FORUM VERSIONS:
PhpBB2
Phpbb3
PunBB
Invision
ModernBB
AwesomeBB
: go to the Administration Panel >> Users & Groups >> Profiles
Add a field
-------------
Make choices as shown in the picture
The field must be at the top of the list (one number)
------------------------------------------------
Copy and paste the codes for your forum.
- All other versions:
Find the next part in viewtopic_body template- Code:
<!-- BEGIN displayed -->
replace it with- Code:
<!-- BEGIN displayed -->
<p-layer class="po-st">
<div class="pos-t">
<div class="avatark">
{postrow.displayed.POSTER_AVATAR}
</div>
</div>
<div align="center"></div>
<div class="cover"></div>
</p-layer>
Javascript
------------
Title : as you like
Placement : In the topics
code- Code:
$(function() {
$('p-layer.po-st').each(function(){
var cover = $(this).find('a').attr('href'),
covero = $(this).find('.cover');
$.get(cover+'/u' , function(d) {
var coverp = $('#profile-advanced-details dl:first, .profile-advanced-stats:first', d);
if (coverp[0]) {
coverp = coverp.html();
$(covero).append('<div class="user-cover">' + coverp + '</div>');
}
});
console.log(cover);
});
});
document.write('<style type="text/css">
.avatark, pos-t {
display: none;
}
p-layer.po-st img {
border-radius: 30px 30px 0px 0px;
border: solid 2px #c5bbbb;
width: 100%;
height: 130px;
}
p-layer.po-st {
font-size: 0;
}
</style>');
Don't forget to save
- phpBB2:
Find the next part in viewtopic_body template- Code:
<!-- BEGIN displayed -->
replace it with- Code:
<!-- BEGIN displayed -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<p-layer class="po-st">
<div class="pos-t">
<div class="avatark">
{postrow.displayed.POSTER_AVATAR}
</div>
</div>
<div align="center"></div>
<div class="cover"></div>
</p-layer>
Javascript
------------
Title : as you like
Placement : In the topics
code- Code:
$(function() {
$('p-layer.po-st').each(function(){
var cover = $(this).find('a').attr('href'),
covero = $(this).find('.cover');
$.get(cover+'/u' , function(d) {
var coverp = $('#profile-advanced-details dl:first, .profile-advanced-stats:first', d);
if (coverp[0]) {
coverp = coverp.html();
$(covero).append('<div class="user-cover">' + coverp + '</div>');
}
});
console.log(cover);
});
});
document.write('<style type="text/css">
.avatark, pos-t {
display: none;
}
dd {
margin-inline-start: 0px;
}
p-layer.po-st img {
border-radius: 30px 30px 0px 0px;
border: solid 1px#c5bbbb;
width: 100%;
height: 130px;
margin-top: 20px;
}
p-layer.po-st {
font-size: 0;
}
</style>');
Don't forget to save
Now users can choose their banner from profile
We hope you like this great Trick
_____________________________
This tutorial was written by @كونان2000,
(The codes were written by @كونان2000, and @omarpop23 code was used in this thread)
Last edited by كونان2000 on August 26th 2023, 6:52 am; edited 5 times in total
skouliki, Ape, YoshiGM, SarkZKalie, TonnyKamper, mc nabulsy and Razor12345 like this post
كونان2000 likes this post
Re: Choose your banner at the top of posts
Please just use the default font, font color, and font size.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
كونان2000 likes this post
Re: Choose your banner at the top of posts
thank you bro ^^mc nabulsy wrote:unique as alwaysthank u bro
I'm glad you liked it
I thought these rules didn't include the (Community Coding and Analysis Zone) sectionSLGray wrote:Please just use the default font, font color, and font size.
The first post has been modified
thank you SLGray ^^
Re: Choose your banner at the top of posts
I did not give you an official warning. I was just letting you know. I have been seeing many post lately with non-default text and formatting.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Choose your banner at the top of posts
thats nice !!
i will test it i hope the facebook profile banner i have , will not going to be conflict with this one
i will test it i hope the facebook profile banner i have , will not going to be conflict with this one
TonnyKamper and كونان2000 like this post
كونان2000 likes this post
كونان2000 likes this post
Re: Choose your banner at the top of posts
thank you @TonnyKamper ^^
thank you @YoshiGM ^^
thank you @skouliki ^^
------------
Thank you my friends
I'm glad you all like it (●'◡'●)
thank you @YoshiGM ^^
thank you @skouliki ^^
If you test the code, tell me the result ^.^thats nice !!
i will test it i hope the facebook profile banner i have , will not going to be conflict with this one
------------
Thank you my friends
I'm glad you all like it (●'◡'●)
skouliki and TonnyKamper like this post
Re: Choose your banner at the top of posts
Nicely done, my man. Very good job.
Could you tell me optimal image size for this?
Could you tell me optimal image size for this?
Guest- Guest
Re: Choose your banner at the top of posts
can this banner be displayed only at the first post of each topic and not at every post ?
TonnyKamper likes this post
Re: Choose your banner at the top of posts
hi @System32 ^^System32 wrote:Nicely done, my man. Very good job.
Could you tell me optimal image size for this?
I think the size of these image is appropriate
https://i.servimg.com/u/f20/16/85/77/67/channe11.jpg
--------------------------
hi @skouliki ^^skouliki wrote:can this banner be displayed only at the first post of each topic and not at every post ?
yes it is possible,
Find the next part in java code
- Code:
$('p-layer.po-st')
replace it with
- Code:
$('p-layer.po-st:first')
skouliki and TonnyKamper like this post
Re: Choose your banner at the top of posts
Last edited by skouliki on November 13th 2022, 5:55 pm; edited 1 time in total
TonnyKamper likes this post
Re: Choose your banner at the top of posts
كونان2000 wrote:hi @System32 ^^System32 wrote:Nicely done, my man. Very good job.
Could you tell me optimal image size for this?
I think the size of these image is appropriate
https://i.servimg.com/u/f20/16/85/77/67/channe11.jpg
So, 1024x170
Guest- Guest
Re: Choose your banner at the top of posts
yesSystem32 wrote:So, 1024x170
yesskouliki wrote:thank you !
so the banner will be shown only to the first post of the topic starter right?
It's great to hear that.. thankskouliki wrote:the code is working without a conflict with the facebook cover profile
The tutorial has nothing to do with this problem,
Unfortunately, this is the default mode
But this problem can be solved with the following code
code css
- Code:
#field_id2 > dd > div.field_uneditable > img {
height: 20px;
}
TonnyKamper likes this post
TonnyKamper and كونان2000 like this post
Similar topics
» Movie vs. Book?
» Choose an Avatar
» Why should I choose a domain name for my forum? and how?
» how to choose a theme for the chatbox?
» Can 1 member choose NOT to see others' signatures?
» Choose an Avatar
» Why should I choose a domain name for my forum? and how?
» how to choose a theme for the chatbox?
» Can 1 member choose NOT to see others' signatures?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum