News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Reseller

Started by Diego Andrés, July 30, 2014, 11:08:08 AM

Previous topic - Next topic

peterwaalker

#160
How can I make user profile avatar on post page to show custom names,  admin or moderator or VIP and other level acquired from post counts. All are not displaying. You can not tell who is administrator or moderator etc.
Please help

hitsme

find in Display.template.php
     
// Show the member's custom title, if they have one.
if (!empty($message['member']['title']))
echo '
<li class="title">', $message['member']['title'], '</li>';

Add after:

   

// Show the member's primary group (like 'Administrator') if they have one.
if (!empty($message['member']['group']))
echo '
<li class="membergroup">', $message['member']['group'], '</li>';

Search:

   

      // Show the stars if they are not in a group.
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';

Add before:

     

   // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li class="postgroup">', $message['member']['post_group'], '</li>';

peterwaalker

@hitsme, thanks a lot. Let me check and get back to you.

peterwaalker

Worked greatly. Excellent... Splendid
Thank you @hits me. the user post_avatar field is now wonderful.

peterwaalker

two more things i want you to help me on.
Please i want

1. On user profile, how can i add things like the below on the user ?

    Hello, peterwaalker
    Profile
    2 New message, out of 68
    Show unread posts since last visit.
    Show new replies to your posts.
    May 01, 2015, 05:40:12 PM

See how it is currently displaying on my forum below




2. How can i make the links on the post page blue? All links on the post-pages are grey colours same with texts. I cannot distinguish texts from links. It makes posted messages poor in reading.



3. User online does not show time and date




Thank you for your support. I appreciate

Gluz

1.- In /Themes/Reseller/index.template.php search:
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<img src="', $context['user']['avatar']['href'], '" class="avatar img-thumbnail" alt="*" />';
echo'
<ul class="reset">
<li class="user">', $context['user']['name'], '</li>
<li><a href="', $scripturl, '?action=profile">', $txt['profile'], '</a></li>
<li><a href="', $scripturl, '?action=profile;area=forumprofile">', $txt['forumprofile'], '</a></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
                echo '
</ul>';
}


and replace for:
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<img src="', $context['user']['avatar']['href'], '" class="avatar img-thumbnail" alt="*" />';
echo'
<ul class="reset">
<li class="user">', $txt['hello_member'], ' <b>', $context['user']['name'], '</b></li>
<li><a href="', $scripturl, '?action=profile">', $txt['profile'], '</a></li>
<li><a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', ($context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase']), '</a>, ', $context['user']['unread_messages'], ' ', ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']), '.</li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
                echo '
</ul>';
}


I didn't add the date 'cause that requires an extra query afaik, but this should be what you want.


2.- Links in the post or links in general in the layout?

To change links in the post:
In /Themes/Reseller/css/index.css search the section of bbc_link and repalce for:
.bbc_link:link, .bbc_link:visited {
    border-bottom: 1px solid #0000FF;
    color: #0000FF;
}


For links in general, at the very beginning of the index.css file change just the color of the links with:
a:link, a:visited
{
color: #0000FF;


You can change the exact color(#0000FF what I suggest) for the HEX RGB color that you want.

3.- As others said, maybe another MOD screw up with the layout there...

peterwaalker

#166
Quote from: Gluz on May 03, 2015, 08:22:15 PM
1.- In /Themes/Reseller/index.template.php search:
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<img src="', $context['user']['avatar']['href'], '" class="avatar img-thumbnail" alt="*" />';
echo'
<ul class="reset">
<li class="user">', $context['user']['name'], '</li>
<li><a href="', $scripturl, '?action=profile">', $txt['profile'], '</a></li>
<li><a href="', $scripturl, '?action=profile;area=forumprofile">', $txt['forumprofile'], '</a></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
                echo '
</ul>';
}


and replace for:
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<img src="', $context['user']['avatar']['href'], '" class="avatar img-thumbnail" alt="*" />';
echo'
<ul class="reset">
<li class="user">', $txt['hello_member'], ' <b>', $context['user']['name'], '</b></li>
<li><a href="', $scripturl, '?action=profile">', $txt['profile'], '</a></li>
<li><a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', ($context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase']), '</a>, ', $context['user']['unread_messages'], ' ', ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']), '.</li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
                echo '
</ul>';
}


I didn't add the date 'cause that requires an extra query afaik, but this should be what you want.


2.- Links in the post or links in general in the layout?

To change links in the post:
In /Themes/Reseller/css/index.css search the section of bbc_link and repalce for:
.bbc_link:link, .bbc_link:visited {
    border-bottom: 1px solid #0000FF;
    color: #0000FF;
}


For links in general, at the very beginning of the index.css file change just the color of the links with:
a:link, a:visited
{
color: #0000FF;


You can change the exact color(#0000FF what I suggest) for the HEX RGB color that you want.

3.- As others said, maybe another MOD screw up with the layout there...



It worked again like charm. Infact you are good. Thank you for helping me.

3. - As for the unknown mod that screw up users online, I do not know how to retrace my steps so as to find out the actual mod in question.
4. - How can I change the body background color to blue. I'm done with the Nav bar, header, body?, and footer area.

peterwaalker

#167
4. schematic Picture attachment

5. How to include again the search box below the header see attachment number two

peterwaalker

For background color I think I should be looking for this code below but does not know the actual CSS file in reseller CSS folder.

/* The main body of the entire forum. */
body
{
    background-color: #E5E5E8;
    margin: 0px;
    padding: 12px 30px 4px 30px;
}


I need help

nattasan

Dear All,

Please tell me how can i move Recent Posts of SMF 2.0.8 at the board index from bottom to the top?

Thank you very much  :)

peterwaalker

Quote from: nattasan on May 12, 2015, 09:48:38 AM
Dear All,

Please tell me how can i move Recent Posts of SMF 2.0.8 at the board index from bottom to the top?

Thank you very much  :)

To move recent post board index from bottom to top just install a mod can do.
There is no need waiting for support here. If you encounter any error during installation, ask questions in the mods support area.
Visit this link: http://custom.simplemachines.org/mods/index.php?mod=1081

babalola olasehinde

thanks for this theme , i have gone through page one to the last to implement some of the things said how 2 questions i have are

1. how can only replace that ? mark avatar with a new avatar which would serve as default


2. on the footer  where we have facebook icon , twitter icon etc , there is a grey colour background there that is not making the facebook and other to be clear , how can that be modify so everyone can see the facebook easily?

Gluz

The ? is an image, to change, replace the image in /Themes/Reseller/images/noavatar.png

The footer color is in /Themes/Reseller/css/reseller.css
Search for:
footer
{
margin-top: 20px;
background: #34495e;


and replace the background color for the color you want.

For my site, I remove that line, so the footer is the same color as the forum background.

babalola olasehinde

@Gluz thanks it worked

pls see the screenshot below and tell where i can see the file to edit , i need to change the colour in the index page

babalola olasehinde

how can one reduce the font and font size of a new thread ( i.e new topic) ? its always too big both for pc and mobile user

also how can one reduce the 'reply' and 'view' images ( i.e the eye) of a thread ? its always too large

ameo

you could just remove reply and view images, instead - in Display.template.php edit to:

   // Show the topic information - icon, subject, etc.
   echo '
         <div id="forumposts">
            <div class="display-info">
               <h1 class="animated slideInDown">
                  ', $context['subject'], '
               </h1>
               <ul class="reset info navbar-right">
                  <li class="replies"> '. $context['real_num_replies'] .' '. $txt['replies'] .'</li>   
                  <li class="amp">&nbsp;&</li>         
                  <li class="views"> '. $context['num_views'], ' '. $txt['views'] .'</li>
               </ul>
            <>';




That background color is so nice, but oh, if you really wanna change it in index.css of your theme find:
background-color: #eee;    and change to your hex value


If you think that TITLE of your thread is too big (I hope that's what you think,coz it's unclear to me),
go to reseller.css and find

font-size: 36px;

& change to smaller number.
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

Xpresskonami

#176
This topic helps a lot !!!!!

Please how can I make the "profile , Forum profile, Recent unread Topic & Unread topic" at the header to be in Horizontal I don't want it to be in vertical.


Xpresskonami

Am still waiting for reply please!!!!!!!!!

ameo

your picture has 0 kb, you did something wrong.
also, you should try asking in developers forum support page about that,
since it looks like he doesn't come here often: http://smftricks.com/index.php?board=40.0

btw. your logo is hideous. brown/beige background is a serious no no on this colorscheme. sorry, but it's true.
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

Xpresskonami

Whenever am trying to install new mods. It did not go into Themes/Reseller/Display.templates.php

It only go to Themes/default/Display.template.php

What is the solution to that????????

Advertisement: