News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

adding some lines or boxxes

Started by sattninja, June 22, 2010, 08:37:22 PM

Previous topic - Next topic

sattninja

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
Running Rc4

ɔɔɔɔɔɔuɥoɾ

Which items would you like boxes around?
The icons below of the text, or both?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

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

Running Rc4

ɔɔɔɔɔɔuɥoɾ

Give me a few minutes, let me see what I can do :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

Running Rc4

ɔɔɔɔɔɔuɥoɾ

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.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

thats perfect but what exactly did u add what part of the code
Running Rc4

ɔɔɔɔɔɔuɥoɾ

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


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

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 '<'
Running Rc4

ɔɔɔɔɔɔuɥoɾ

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>';


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

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
Running Rc4

ɔɔɔɔɔɔuɥoɾ

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


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

i found a perfect example the boxxes are a lil dark but this is exactly what i am trying to achieve

Running Rc4

ɔɔɔɔɔɔuɥoɾ

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.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

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 ?
Running Rc4

ɔɔɔɔɔɔuɥoɾ

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.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

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

Running Rc4

sattninja

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
Running Rc4

ɔɔɔɔɔɔuɥoɾ

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 />


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

// 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 '>'
Running Rc4

CapadY

// 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 ;)
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

sattninja

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
Running Rc4

ɔɔɔɔɔɔuɥoɾ

That's not the right area to add the line space, search the file for the awards mod, its labeled there.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sattninja

OK will take a look tomorrow man thanks
Running Rc4

I B D

sattninja did any of the posts help?

sattninja

no still havent got it but no big deal
Running Rc4

Advertisement: