News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Dynamic Memberlist 3.0

Started by Antechinus, March 19, 2009, 11:50:07 AM

Previous topic - Next topic

H0MiCiDE

still looking for a resolution, can someone help me out :)

Arantor

All we know is you want to change the colour of something. Might be useful if you said what you wanted to change it to.

Also please note that we aren't mind readers and can't just know what you want it to do without you telling us...

vbgamer45

I feel like a mind reader most of the time in IT... from sales people to clients people give me a couple words and need to figure out or has me ask for more information which they should have provided in the first place instead of having to go back and forth wasting time.
Funny fact when I built a support system I decided to try to force people enter a minimum number of words to force people to explain more... people ended just putting in jibberish after there couple word reply ending up having to scrap that idea.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

H0MiCiDE

Quote from: Arantor on July 18, 2017, 08:56:52 AM
All we know is you want to change the colour of something. Might be useful if you said what you wanted to change it to.

Also please note that we aren't mind readers and can't just know what you want it to do without you telling us...

How much more information can I give, I've already described it to the best of my ability. I remember before that a memberblock image was included with the download but now it's no longer available. I am trying to change the color of the memberblock to a darker color to better fit the theme.

Arantor

There are 16,777,216 possible colours. More guidance than "darker" is kind of needed. And that's before we get into whether it's a gradient between colours.

H0MiCiDE

Quote from: Arantor on July 19, 2017, 08:45:29 AM
There are 16,777,216 possible colours. More guidance than "darker" is kind of needed. And that's before we get into whether it's a gradient between colours.

Forget about what color I want, I just want to know how can I change it to any color. As stateed before the mod used to come with a memberblock image that would change the color when you replaced it with the image in the package now it's no longer included, all I'm trying to do is figure out how to change the color doesn't matter which color for now just want to know how to change it

Deaks

well the background is a gradiented image so in index.css look for .memblock reset and you need to alter this code

background-image: linear-gradient(to top, #E3EDF7 0, #fff 100%);

Now if you can tell me more like what color etc then I can tell you better
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

H0MiCiDE

Quote from: BryanD on July 20, 2017, 01:20:41 PM
well the background is a gradiented image so in index.css look for .memblock reset and you need to alter this code

background-image: linear-gradient(to top, #E3EDF7 0, #fff 100%);

Now if you can tell me more like what color etc then I can tell you better

so the block is no longer an image? I want to make it a dark color to match with the overall look of the forum preferably a solid color, don't want the gradient effect.
Thanks!

H0MiCiDE

Quote from: Antechinus on March 19, 2009, 11:50:07 AM

       
  • Block background image changed to a png for better compression.
  • Memberblock_images.zip added to the download page.
  • Memberblock_images.zip contains a PSD (dark and light defaults) plus png images for the Outline and Mystic Jade themes.
  • Turkish language strings added ( thanks to [Daydreamer] ).
The memberblock used to be an image you could edit to change the color now it is no longer the case, any solutions?

H0MiCiDE

nevermind i figured it out, can a mod delete all of my recent post in this thread including this one?

shadav

#290
sorry but I need a bit of help  ??? O:)

so this worked fine on a modified curve theme but not so much for a modified NightBreeze theme, 2.0.15

thank you for any help, attached a picture to show what happened

[edit] nevermind I figured it out, this theme has an index.min.css file that I needed to also add the css too :D
thanks anyways

Antechinus

Yes he does that with his themes. Good idea, but a bit of a trap if you're not expecting it.

Reefer

#292
I've gone through this thread but can't find the answer to my small problem...
Attached is a pic of my memberlist, which displays Avatars in a 'faded' form, not the same as the darker contrast in the original Avatar? (compared in the same pic)... can someone direct me to what I need to do to fix this please?


Antechinus

Sure. I threw in a bit of CSS to fade the avatars if the member is not online. So online = no fade, offline = faded.
If you don't want that effect, find this bit in index.css:


.avatar_block .offline_avatar {
opacity: 0.7;
}


...and remove the opacity line.

You can use the same bit of code to do other things for online and offline if you want to.
For example, this would put a green border around the avatar if the member was online:

/* Invisible border for offline members. */
.avatar_block .offline_avatar {
border: 4px solid transparent;
}
.avatar_block .avatar {
width: auto;
height: auto;
/* Adjust these to suit preferred maximum avatar size. */
max-width: 120px;
max-height: 120px;
/* Green border by for online members. */
border-color: green;
}

Reefer


Korotana365

Is this mod still reapirable?

Dynamic_Memberlist_3_0

https://custom.simplemachines.org/mods/index.php?mod=1718

is not working on 2.0.17 and has  errors ..is there anyway to repair it?

is there a similar on to it pls ?
******After the Final No is a YES!******

shadav

need a bit more info, how is it not working, what errors?

I use this mod just fine on several 2.0.17 forums

do you mean when you try to install it gives you errors? you'll need to fix those errors as either your template is different than the default template, or you have installed mods that changed things...so you will need to edit this mod to work with your theme and other mods

Kindred

I just installed this on 2.0.17 and it works just fine
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Grammy

Well, phooey.  I did manual edits and got this to display just fine in 2.1RC3 beautifully, with no errors....  as long as I didn't have Custom Profile icons appearing in the memberlist.  Once I changed the settings to show them there, the error log blew up.   :(

This is gonna take a while.....  *sigh* 

(Love this mod and love Antechinus.  So if I can sort it, it'll be worth it.)   :)

Mike66

This looks great and I tried installing, but it failed on ./Themes/default/Memberlist.template.php

The Test Failed boxes gave me:
1. Add after
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */
// The Dynamic_Memberlist template replaces the standard SMF template.
// The relevant css classes are at the end of default/css/index.css.
// The following section is the separate page for the search function.
 
function template_search()
{
global $context, $settings, $options, $scripturl, $txt;

// Start the submission form for search, show the header bar with view/search links.
echo '
<form id="mlist_form" action="', $scripturl, '?action=mlist;sa=search" method="post" accept-charset="', $context['character_set'], '">
<div class="cat_bar">
<h3 class="catbg">';

foreach ($context['sort_links'] as $link)
{
echo '
<a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">', $link['label'], '</a>';
}

// Close the header bar then display the input boxes for the search form.
echo '
</h3>
</div>
<div class="roundframe">
<label for="search">', $txt['search_for'], '<input id="search" type="text" name="search" value="', $context['old_search'], '" size="35" /></label><input id="submit" type="submit" name="submit" class="button_submit" value="' . $txt['search'] . '" />
<ul class="reset">';

foreach ($context['search_fields'] as $id => $title)
{
echo '

<li>
<label for="fields-', $id, '"><input type="checkbox" name="fields[]" id="fields-', $id, '" value="', $id, '" ', in_array($id, $context['search_defaults']) ? 'checked="checked"' : '', ' class="input_check" /> ', $title, '</label>
</li>';
}
echo '
</ul>
</div>
</form>';
}

// This next section is the main memberlist.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;

// Show the header bar with view/search links.
echo '
<div id="mlist_wrapper">
<div class="cat_bar">
<h3 class="catbg">';

foreach ($context['sort_links'] as $link)
{
echo '
<a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">', $link['label'], '</a>';
}

echo '
</h3>
</div>';

// Display page numbers and the a-z links for sorting by name, if not a result of a search.
if (!isset($context['old_search']))
{
echo '

<div class="pagesection">
<div class="pagelinks">', $context['page_index'], '</div>
<div id="mlist_letters">', $context['letter_links'] . '</div>
</div>
<ul id="mlist_sort_links">';

// Display each of the buttons for sorting options.
foreach ($context['columns'] as $column)
{
// This is a selected option, so it has an icon.
if ($column['selected'])
echo '
<li><a href="' . $column['href'] . '" rel="nofollow">' . $column['label'] . ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" style="vertical-align: middle;" alt="" /></a></li>';

// This is just some button. Show the link and be done with it.
else
echo '
<li>', $column['link'], '</li>';
}

echo '
</ul>';
}

// If this is a result of a search then just show the page numbers.
else
echo '
<div class="pagesection"><div class="pagelinks">', $context['page_index'], '</div></div>';

// This <ul> contains the individual member blocks.
echo '
<ul id="blocksbox">';

foreach ($context['members'] as $member)
{
echo '

<li class="member_block" >
<ul class="reset smalltext">
<li class="member_link"><h4>',$member['link'] , '</h4></li>
<li class="avatar_block">';
// The avatar
echo '
<a href="'.$scripturl.'?action=profile;u='.$member['id'].'" title="',$txt['profile_of'],' ', $member['name'],' "', $member['online']['is_online'] ? '' : ' class="offline_avatar"', '>
', !empty($member['avatar']['image']) ? $member['avatar']['image'] : '<img src="'. $settings['images_url'] . '/default_avatar_block.png" class="avatar" alt="" />', '
</a>
</li>
<li class="membergroup">';

// Show the member's primary group (like 'Administrator') if they have one.
if (isset($member['group']) && $member['group'] != '')
echo '
', $member['group'];
else
echo '
', $member['post_group'];
echo '
</li>';

// Number of posts, and date registered, on two separate lines.
echo '
<li class="postcount">
', $txt['posts_made'] ,':&nbsp;', $member['posts'], '
</li>
<li class="registered_date">
',$txt['joined'] ,':&nbsp;', $member['registered_date'], '
</li>
<li class="im_icons">';

if ($context['can_send_pm'] )
echo '
<a href="' . $member['online']['href'] . '" title="' . $member['online']['text'] . ' | ',$txt['pm_menu_send'] ,' ">
<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" />
</a>';
// Don't show the email address if they want it hidden.
if (in_array($member['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
', $member['show_email'] == 'no' ? '' : '<a href="' . $scripturl . '?action=emailuser;sa=email;uid=' . $member['id'] . '" rel="nofollow"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . ' ' . $member['name'] . '" /></a>', '';
// Website, if any.
if ($member['website']['url'] != '' && !isset($context['disabled_fields']['website']))
echo '
', $member['website']['url'] != '' ? '<a href="' . $member['website']['url'] . '" target="_blank" class="new_win"><img src="' . $settings['images_url'] . '/www.gif" alt="' . $member['website']['title'] . '" title="' . $member['website']['title'] . '" /></a>' : '', '';
// ICQ?
if (!isset($context['disabled_fields']['icq']))
echo '
', $member['icq']['link'], '';
// AIM?
if (!isset($context['disabled_fields']['aim']))
echo '
', $member['aim']['link'], '';
// YIM?
if (!isset($context['disabled_fields']['yim']))
echo '
', $member['yim']['link'], '';

// The following code is for compatibility with the Quick Buddies mod.
// It will not cause any errors if that mod is not installed.
// Can they add this member as a buddy?
if (!empty($modSettings['qb_on_memberlist']) && $context['user']['is_logged'] && $member['id'] <> $context['user']['id'])
{
$is_buddy = in_array( ($id = $member['id']), $user_info['buddies']);
echo '
<a href="', $scripturl, '?action=buddy;u=', $member['id'], ';' . $tmp_mlist . ';', $context['session_var'], '=', $context['session_id'], '"><img src="', $settings['images_url'], '/', ($is_buddy ? 'del' : 'add'), '_buddy.png" title="', str_replace('%s', $member['name'], $txt['buddy_' . ($is_buddy ? 'remove' : 'add')]), '" alt="'. ($is_buddy ? '-' : '+') . '" />';
}

echo'
</li>
</ul>
</li>';
}

echo '
</ul>';

// Display page numbers, then close the wrapper div.
echo '
<div class="pagesection"><div class="pagelinks">', $context['page_index'], '</div></div>
</div>';

}

/*

2. Add Before
?>
*/

Not sure why  :(

What I'd really like to do, is run this mod on one alternative theme and not the default, but I don't know if that is even possible?
Actually, it should be, as we don't use the default theme, so as long as I only tick the boxes for the theme that I'd like it to work on I should be fine?

Cheers
Mike

PS: my current Memberlist template attached.

Advertisement: