HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


How do eliminate all Avatar functionality from a Theme?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#76130 (In Topic #15719)

Community saint

I have disabled everything I can find related to Avatars, but I am still seeing the member name and a blank Avatar box for every news or blog entry.

Basically I want the avatar functionality to become invisible to users regardless of whether they are logged in or not.

Any advice would be welcome

thanks

mike
Back to the top
 
Posted
Rating:
#76131
Avatar

Uninstall avatars addon. I think that'll make avatars spots be replaced by photos. I can't remember off-hand what happens if you uninstall photos too. But if you don't want avatars, makes sense to uninstall addon as then you just have templating to concern yourself with and edit avatar page will be gone.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76133

Community saint

both the avatars and the photos addons are already uninstalled.

I also used Translate/Re-phrase… to eliminate the "Avatar" label which was appearing on each entry.

I assume that it is up to me to edit the templates one by one to get rid of the empty avatar boxes.


Back to the top
 
Posted
Rating:
#76134
Avatar

maybe attach some screenshots so we can see what you mean. I think you shouldn't have to deal with this, but I don't have time to run tests – data might let me send you a quick fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76137

Community saint

Clearly I need to learn how to handle images … after a few edits, deletes, etc ….

Below is an snapshot of the screen produced by main_news_block.

In IE you even get an ugly "missing image" icon in the middle of the box.

One workaround might be to give everyone a boring, transparent avatar …


 


Last edit: by baycroft
Back to the top
 
Posted
Rating:
#76138
Avatar

That's odd, shouldn't be happening according to the code I'm looking at. I might have fixed it though.
I can explain the gap, I'll get that fixed.

Easiest thing for you to do now is to edit the NEWS_PIECE_SUMMARY template. Pretty much everything about <h3> can be removed (not the first line).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76139

Community saint

OK. So clearly I'm going to have to spend some more time with this editor … or figure out how to work with the source … I have a feeling that previewing messages with codeboxes reformats the source message. But that is another story.

So looking at the code, \<h3\> wraps the link to the news story.

It looks to me like I should remove the following which will impact the future use of AVATARS which is OK for me, but it is probably a bug from your perspective.

            {+START,IF_NON_EMPTY,{$AVATAR*,{SUBMITTER}}}
                <img src="{$AVATAR*,{SUBMITTER}}" title="{!AVATAR}" alt="{!AVATAR}" />
            {+END}

So $AVATAR must have a value for this to trigger. And looking in the browser source I find:

<div class="newscat_img_member">   [snip…]     <img src="http://192.168.1.5/IFIweb/themes/default/images/ocf_default_avatars/default_set/cool_flare.png" title="" alt="" />   [snip…]
div>

Seems that the "title" and "alt" values are empty, but we are clearly picking up a reference to cool_flair.png.
Back to the top
 
Posted
Rating:
#76140
Avatar

Hi,

It'd help me a lot if you could record a little Jing video of you having an issue in the WYSIWYG editor so I can see exactly how it happens.

Regarding this, I think at some point I probably fixed a bug whereby $AVATAR didn't return blank if the addons were removed, as that's what the latest github code does. But as I say just rip it out of that news template for now.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76141
Avatar

Community saint

Suggestion:

If all you want to achieve is to remove the 'img', 'author' and 'member details' from each of your news and blog entries, why not zap it in your CSS?

Change in news.css:

Code

.newscat_img_author, .newscat_img_member {
    float: right;
    padding: 7px 7px 7px 12px;
    width: 100px;
}
to

Code

.newscat_img_author, .newscat_img_member {
    float: right;
    padding: 0;
    width: 0;
    visibility: hidden;
}

That should target only that element in the 'news' and 'blog' categories.

However, if you want to remove AVATARS sitewide, then I have to admit to it being above my pay grade, and you'd best work it out with Chris!

 :thumbs:


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: