The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Avatar next to quick Reply

View previous topic View next topic Go down

In progress Avatar next to quick Reply

Post by Chocoladesnoepje on 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
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 on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Avatar next to quick Reply

Post by Jekac on 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

Jekac
New Member

Posts : 5
Reputation : 1
Language : Serbian

http://umetnost.fullboards.com

Back to top Go down

View previous topic View next topic Back to top


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