Forums

[Plugin: User Community] Customizing the width by changing the font size in css (14 posts)

  1. leeharvey8
    Member
    Posted 3 years ago #

    I love this new plugin! But it was a little wide for my blog. The good news is that it was easily changed. I am not sure if this topic has been posted yet but I wanted to post it just in case...
    For all the noobs out there...I wanted to share a CSS tip to change the width of the table by reducing the font size.
    http://www.thefalseoswalds.com/community

    To make all the text smaller, just add this anywhere to the "style.css" file that came with the plugin....

    tbody {font-size:11px;}

    To customize the links...

    A:link {font-size:11px;}

    A:visited {font-size:11px;}

    I hope this helps.

  2. Txanny
    Member
    Posted 3 years ago #

    Thanks for sharing leeharvey.

    I will add another tip to this one ;)

    To prevent your custom style to be overriden when updating the plugin, do the following:

    1. Copy or move the style.css file outside the plugin folder. Place it anywhere you want except the plugin folder.

    2. Crete a PHP file in the plugins folder and call it as you wany, for example: community-customs.php.

    3. Place this text in the file (write in the URL to your style.css file where it says http://yoursite.com/path_to/style.css):

    <?php
    /*
    Plugin Name:	My Customs
    Plugin URI:	http://example.org
    Description:	My custom filters.
    Version:	1.0
    Author:		Your Name
    Author URI:	http://example.org
    */
    
    function replace_community_style( $url ) {
    	return 'http://yoursite.com/path_to/style.css';
    }
    add_filter('akucom_style_url', 'replace_community_style');
    ?>

    4. Activate the plugin, and the style file will be replaced by your custom and don't worry about updating ;)

  3. piloter
    Member
    Posted 3 years ago #

    IMHO, one more good option might be "profile-list" table configuration ability. I prefer to show only username and avatar in this table.

    For styling ability unnumbered lists could be better solution.

    <ul class="profile-list">
    	<li class="leeharvey8">leeharvey8</li>
    	<li class="Txanny">Txanny</li>
    	<li class="piloter">piloter</li>
    </li>

    and add Definition Lists for more details

    <ul class="profile-list">
    	<li class="Txanny">
    		<dl>
    			<dt>Txanny</dt>
    			<dd class="avatar"><img src=".." alt="Txanny avatar" /></dd>
    			<dd class="role">Administrator</dd>
    			<dd class="posts">12 posts</dd>
    			<dd class="comments">98 comments</dd>
    		</dl>
    	</li>
    	...
    </li>
  4. Txanny
    Member
    Posted 3 years ago #

    I like this last proposal. About adding detaliled definition lists, will be really useful to customize the list style by not using tables. Paerhaps I will implement it for a soon release.

    Just I don't see the utility to set a class by user_id (perhaps I would use IDs that can ve referenced on a link).

    Any way, some sort of template system for the list, profile and gallery is planned for in some release, don't cant say when, but it will be betwen 0.6 and 0.8. Probably an array or object with all data will be passed to the template to let you to set the fields you want with the style you prefer.

  5. tjmapes
    Member
    Posted 3 years ago #

    Amazing plugin! It solved basically EVERYTHING I was looking for for my community purposes. I wish there was an ability to build user roles and display them on different pages etc.... IE: Artists, Non-Artists :)

    any thoughts Txanny....
    and who is in your avatar? I've seen that guy before...an actor right?

  6. Txanny
    Member
    Posted 3 years ago #

    Well, to build user roles, you can use my Capability Manager plugin that does just that. You can create or copy roles and manage the capabilities assigned to each role (Community capabilities start with AKUC). http://wordpress.org/extend/plugins/capsman/

    About the new idea to have a page for each role, or to choose on which page to display each role, will be taken into consideration. I added it to this feature request: http://alkivia.org/tracker/view.php?id=27

    About the avatar, it's me, and I'm not an actor ;) Perhaps you've seen it on other sites, as it's my usual picture.

  7. tjmapes
    Member
    Posted 3 years ago #

    @Txanny - Thank you for your reply. I never have seen the capsman plugin. I'm going to go try it out now! Thank you so much again for your responses.

    TJ

  8. cfisher
    Member
    Posted 2 years ago #

    When I change the font size in the plugin's style.css using the CSS suggestion above: A:link {font-size:11px;}, it changes my font size system wide (for example, my website name that appears in the site header). Is there a way to make it specific only to the U.C. table? Thanks! Chris

  9. Txanny
    Member
    Posted 2 years ago #

    You can use:

    table.profile-list a:link {
          font-size: 11px;
    }
  10. dorah
    Member
    Posted 2 years ago #

    Any way, some sort of template system for the list, profile and gallery is planned for in some release, don't cant say when, but it will be betwen 0.6 and 0.8.

    Same as Piloter ... basically, only the name and the avatar are essential for a multi-author's blog !

    Again, thanks a lot for your amazing plug in !

    dorah
    (popingay.com)

  11. seajma
    Member
    Posted 2 years ago #

    Hello all,

    I would like to replace the "website" column in the user directory and replace with one of the custom user profile fields that came with this plugin. I believe the one I would use is the AIM line. I'd like it to pull what's in that line, which in my case says "breed". so my table would look like this:
    Avatar Name Role Breed Member Since
    img Fido subscr Pug date

    I tried to change it in the profile.php with poor results.
    Any suggestions would be greatly appreciated!

  12. philipholm
    Member
    Posted 2 years ago #

    I want exactly what Sejma wants. Please help me.
    It's an awesome plugin!

  13. philipholm
    Member
    Posted 2 years ago #

    I actually figured it out on my own. This is how you do to make the custom information appear in the list of users.

    <?php foreach ($users as $user ) : ?>
     <?php $userdata = get_userdata($user['ID']); ?>
    
    	<?php echo $userdata->yim; ?>
    	<?php echo $userdata->aim; ?>
    	<?php echo $userdata->jabber; ?>
    
    <?php endforeach; ?>

    What I can't seem to figure out is how to print the full name instead of user namne. I would be really happy if someone would help me with that. I've tried the code below, but it doesn't work.

    <?php echo $userdata->aoc_full_name; ?>

  14. Txanny
    Member
    Posted 2 years ago #

    Now the plugin uses templates and have more data available than when seajma asked.

    Look at the userlist template, found on the templates dir, and starting with 'userlist-'.

    You have a $users array with all user info. Just take a look to this array and choose the output you want.

    To see the array content, you can output it on the template with something like that:

    echo '<pre>'; print_r($users); echo '</pre>';

Topic Closed

This topic has been closed to new replies.

About this Topic