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.

Avatar next to quick Reply

3 posters

Go down

In progress Avatar next to quick Reply

Post by Chocoladesnoepje July 2nd 2015, 9:20 pm

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link :

Description of problem

Hi all,

Is there a way with javascript or CSS to completly hide the widgets on the left side, without disabeling them for use in other codes?

I am trying to add the user avatar next to the quick reply box so that would solve the problem too!

Thanks in advance!
Chocoladesnoepje
Chocoladesnoepje
Forumember

Male Posts : 33
Reputation : 1
Language : Dutch
Location : Belgium

Back to top Go down

In progress Re: Avatar next to quick Reply

Post by Ange Tuteur July 3rd 2015, 3:00 am

Hi @Chocoladesnoepje,

Depending on where the widgets are, you can use the following CSS rules to hide the columns.
Display > Colors > CSS stylesheet

Right column :
Code:
#right { display:none }

Left column :
Code:
#left { display:none }

As for the quick reply avatar, you can do the following. Firstly, add the following to your stylesheet :
Code:
#quick_reply { position:relative }
#quickAvatar {
  position:absolute;
  top:50%;
  left:10px;
  margin-top:-50px;
}

#quickAvatar img {
  max-height:100px;
  max-width:100px;
}

Then go to Administration Panel > Modules > JavaScript codes management > Create a new script

Placement : In the topics
Paste the following code and click submit :
Code:
$(function() {
  var quick = document.getElementById('quick_reply'), avatar = document.createElement('DIV');
  avatar.id = 'quickAvatar';
  avatar.innerHTML = _userdata.avatar;
  quick && quick.insertBefore(avatar, quick.firstChild);
});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Avatar next to quick Reply

Post by Jekac July 14th 2015, 7:10 am

My forum is #phpBB2 , is there a code for doing it for this version too ? because i tried with this, and doesn't work, i think it's because of a type of a forum Smile
avatar
Jekac
New Member

Posts : 5
Reputation : 1
Language : Serbian

http://umetnost.fullboards.com

Back to top Go down

Back to top


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