#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Oh what have you do...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Script [Solved] Oh what have you done to me?

    Last Post
RSS

ATOMZ
Posts: 7
 ATOMZ
Topic starter
April 20, 2021 11:16 am
(@atomz)
Active Member
Joined: 1 year ago

I know I've been called an "egghead" before, but this is taking it too far! As the pic shows, the widget displaying the members online has turned my gravatar into an oval ! (Possible 'cos it's using a preset height attribute when the width attribute was reduced?)

Also, is it poss to change what 'images' appear below the member's profile widget? I want to remove the RSS and LOGOUT widgets, (the latter is handled by a membership site plugin)

On a slight tangent, a lot of people seem to be asking how to remove the wpForo sidebar. What I did was delete all the widgets in that menu, and use "No title with sidebar" option in post setting. One slight drawback is that the menu seems to extend up into the wp-nav area such that any extra code added to that menu will "break" at the width where the menu should be. (I got around that my shortening the titles used on the buttons)

 wpforo_error.jpg
Topic Tags
members online online users avatar size
4 Replies
Robert
Posts: 8971
Robert - Twitter
 Robert
Admin
April 23, 2021 4:51 am
(@robert)
Support Team
Joined: 6 years ago
Posted by: @atomz

I know I've been called an "egghead" before, but this is taking it too far! As the pic shows, the widget displaying the members online has turned my gravatar into an oval ! (Possible 'cos it's using a preset height attribute when the width attribute was reduced?)

Insert this CSS code in Dashboard > Forums > Settings > Styles > Custom CSS Code textarea, save it, delete all caches, go to forum front-end and press Ctrl+F5:

#wpforo #wpf-widget-online-users .wpforo-widget-content a.onlineavatar, 
#wpf-widget-online-users .wpforo-widget-content a.onlineavatar{
   width: 54px;
   height: 54px;
}
#wpforo #wpf-widget-online-users .wpforo-widget-content a.onlineavatar img, 
#wpf-widget-online-users .wpforo-widget-content a.onlineavatar img{
   width: 50px;
   height: 50px;
}

 

Posted by: @atomz

Also, is it poss to change what 'images' appear below the member's profile widget?

Dashboard > Appearance > Widgets:

 

Posted by: @atomz

I want to remove the RSS and LOGOUT widgets, (the latter is handled by a membership site plugin)

Go to Dashboard > Appearance > Widgets and remove whatever you want from any sidebar you need.

 

Posted by: @atomz

On a slight tangent, a lot of people seem to be asking how to remove the wpForo sidebar.

You don't have wpForo sidebar, the space in the screenshot is just a space for [Add topic] button, it's not a sidebar space. You're using your theme sidebar on the wpForo page, there is no wpForo sidebar there.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

ATOMZ
Posts: 7
 ATOMZ
Topic starter
April 24, 2021 9:28 am
(@atomz)
Active Member
Joined: 1 year ago

Thanks for the reply, and will implement them later.

Just an update. The reason I thought the WPForo bar may be taking up invisible space was because when I added an extra item to the wp_menu bar, it wraps to the next line as there seems to be an "edge" level with the edge of the underlying right indented text. When on a full page template, the bar does extend with no wrap

1 Reply
ATOMZ
 ATOMZ
(@atomz)
Joined: 1 year ago

Active Member
Posts: 7
April 24, 2021 2:21 pm
Reply toATOMZATOMZ

Image CSS works fine - thanks.

I tried amending the Appearance ->Widgets (Hide buttons) ... but unfortunately, that hides ALL the buttons in that row, and not just the RSS / red arrow logout buttons at the end. I'll take a look at the code. If they have ID's, might be able to get away with custom css:

.icon_name{display:none;visibility:hidden}

ATOMZ
Posts: 7
 ATOMZ
Topic starter
April 24, 2021 5:50 pm
(@atomz)
Active Member
Joined: 1 year ago

Cracked it ! (Only taken three hours!) I placed some hidden javascript in the footer tag. That scans the document for the title of "Logout". It then removes the <a> ... </a> tag from start to finish

<script>
var links = document.getElementsByTagName("a");
for (var i = 0; i < links.length; ++i) {
var chk=links[i].title;
if (chk =='Logout'){
links[i].outerHTML='';
break;
}
}
</script>
Robert liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • how to turn off the number of people online or fake people online
    2 weeks ago
  • Avatar Image Too Big Maximum Allowed Size is 2MB
    4 months ago
  • sort users by who is currently logged In
    5 months ago
  • How to increase avatar appearance size in extended layout?
    5 months ago
  • Members on line
    1 year ago
Topic Tags:  members online (1), online users (8), avatar size (4),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Forum description

    By Vijiki, 13 hours ago

  • cant send public messages to friends

    By ReddBeard, 15 hours ago

  • Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    By Noved, 16 hours ago

  • Slight changes to my forum

    By marios, 1 day ago

  • No Wpforo widget

    By Vijiki, 2 days ago

  • Guest to not see recent posts on Recent activity page

    By OMTesla, 2 days ago

Topic Tags

  • css50
  • translation49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • moderation40
  • ultimate member40
  • avatar40
  • forum40
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • forum accesses30
  • spam29
  • phrases28
View all tags (2163)

Recent Posts

  • RE: cant send public messages to friends

    @reddbeard, about Buddy Press Public Messages, you sh...

    By Chris, 2 hours ago

  • RE: Forum description

    @vijiki, Use Custom CSS to hide it on the page.

    By Chris, 3 hours ago

  • RE: How to schedule a topic?

    When will this be available?It'll be a very good featur...

    By Joselito, 14 hours ago

  • RE: Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    Hi @noved, Please read this instruction:/p>

    By Robert, 16 hours ago

  • RE: Guest to not see recent posts on Recent activity page

    @omtesla, Please take a screenshot of your Usergroups...

    By Robert, 17 hours ago

  • RE: Can I permanently set a single user to have all posts moderated?

    @fawp Realistically that might be what happens at the e...

    By Upstart DM, 19 hours ago

  • RE: No Wpforo widget

    @vijiki, To Remove Share Buttons, go to Dashboard >...

    By Chris, 22 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,771 Topics
49.5 K Posts
9 Online
44.5 K Members

Latest Post: cant send public messages to friends Our newest member: d5d2db2281c0 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation