hi i have been able to rearrange the items under a members avatar in the display.template.php however is there a way i can clean this up a bit see image
what i would like to do is either put some boxxes around the items or one box around everything or even simply put lines in between the items
thanks in advance
i have attached the display template just in case
Which items would you like boxes around?
The icons below of the text, or both?
ok i will try to explain it the best i can
i would like a box around each item
posts
joined date
country
then a single box around the thank you info
then a box around the last log in
if not boxxes a line seperating each would be ok also i am no sure how it would look but once i see how it is done i can play with it
thanks alot
Give me a few minutes, let me see what I can do :)
sweet thanks
I have added something for the Avatar only, so you can see what it looks like, the code is
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<form><fieldset><legend><li class="avatar" style="overflow: auto;">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li></legend></fieldset></form>';
Also attached.
thats perfect but what exactly did u add what part of the code
I used the HTML Legend tag, usually, it would span across the entire area, since the area where the user information is is small, spanning the entire area is not too bad, since the content spans the area too.
look for the form, fieldset and legend tags and apply to the other objects, its pretty simple.
P.S send a screen shot of the new layout :P
well if i even knew what the hell you were talking about that would prolly help anywho the only difference i see is the
</a>
</li></legend></fieldset></form>';
i tried adding that after the date registered
//Show date registered
echo '<li>', $txt['join_date'], ': ', timeformat($message['member']['registered_timestamp'] ,'%b %d %Y'), '</li>';
</a>
</li></legend></fieldset></form>';
and i get parse error
syntax error, unexpected '<'
That happened because you added html outside of the echo''
Tip: start where the Tip is ie." // Show date registered"
You can only add HTML after and echo inside the ' and 'so...
1. find the echo' add html after that and before the final ';
//Show date registered
echo '<form><fieldset><legend><li>', $txt['join_date'], ': ', timeformat($message['member']['registered_timestamp'] ,'%b %d %Y'), '</li>';
</a>
</li></legend></fieldset></form>';
well thanks for the help man but it just is not workin for me i just replaced the code that wasthere with the code you posted and it gave me an error again then i tried doing what you say and no error but no box either
thanks for trying tho appreciate it
With a little more practice you will get it, If you like I can do them for you, just give me a day or so, I'm doing other things too
i found a perfect example the boxxes are a lil dark but this is exactly what i am trying to achieve
Just to let you know, I had made those legend tags go around everything in the user information area their.
Mine looked just like that, when it was almost complete.
ok i have benn playing with it but i cannot get it to work i am pretty much fed up man are you going to have time to do the edits for me ?
Yes, I will do them, I just lost all the edits I had, attach a fresh copy of your Display.Template.php I will grab it later and attach it back, do not make any more modifications until Im done with it as upon re uploading of my attachment you will lose any changes you have made, including mods.
thanks man i appreciate this i have made some changes since you last loked at it i am attachng a current file and here is a pic of what it exactly looks like now
you know on another subject can you tell me lookin at this picture do you see how the award image is off i think it should be under the word awards do you know how to fix that
sorry for bein a pia
keep in mind all that is right below the avatar
thanks again
you would find where the Awards mod has edited the file and once again inside the echo, after the code for the awards mod, you would add a <br />
// Any custom fields for standard placement?
if (!empty($message['member']['custom_fields']))
{
foreach ($message['member']['custom_fields'] as $custom)
if (empty($custom['placement']) || empty($custom['value']))
echo '
<li class="custom">', $custom['title'], ': ', $custom['value'], '</li>'<br />;
}
that is the code as you can see i added that to the end and i get a parse error i am really not understanding what i am doing wrong man this doesnt seem that hard
the error shows syntax error, unexpected '>'
// Any custom fields for standard placement?
if (!empty($message['member']['custom_fields']))
{
foreach ($message['member']['custom_fields'] as $custom)
if (empty($custom['placement']) || empty($custom['value']))
echo '
<li class="custom">', $custom['title'], ': ', $custom['value'], '</li><br />';
Give the above code a try ;)
inserted the code good news is no errors
bad news no change maybe it is controlled somewhere else i will put a post up in the mod support post
That's not the right area to add the line space, search the file for the awards mod, its labeled there.
OK will take a look tomorrow man thanks
sattninja did any of the posts help?
no still havent got it but no big deal