|
Welcome,
Guest
|
|
This has not been tested on 1.02 yet
I have created a new function for an extended userProfile. It made it more easy for me to make the profile look anyway I wish. What it does: It loads all of the users information into variables such as - $user->registerDate - $user->hits and allows you to place tabs wherever you want such as - $userViewTabs["cb_tabmain"]; - $userViewTabs["cb_middle"]; How to use it:
Note 1: You may or may not want to use want to use the Dateformat, avatar, and online status code in xtdUserProfile.php. You can remove this if you would like. Chuck PS - I make no warranties and am not held liable with anything this code does for or against you. It is released as GNU GPL. |
|
The topic has been locked.
|
|
radio,
You can create a profile like http://www.mingleville.com/xL15Ax? with something like the following: Here are two good links to look at SQL and Arrays: SQL: www.keithjbrown.co.uk/vworks/mysql/mysql_p5.php Arrays: www.desilva.biz/arrays/multidimen.html Post edited by: chucktrukk, at: 2006/12/01 17:34 |
|
The topic has been locked.
|
|
Okey iv started to get somewhere now, I am however still haveing a little trouble with the styleing text in the top position next to avator, I would usualy style this in the external css but i cant, can i use inline or something? I want to change the color font and size of the text, I am also have trouble posistioning the tabs in the knew right hand coloumb.
chucktrukk wrote: radio, You can create a profile like http://www.mingleville.com/xL15Ax? with something like the following: Here are two good links to look at SQL and Arrays: SQL: www.keithjbrown.co.uk/vworks/mysql/mysql_p5.php Arrays: www.desilva.biz/arrays/multidimen.html Post edited by: chucktrukk, at: 2006/12/01 17:34 Post edited by: radio, at: 2006/12/04 04:09 |
|
Interested in improving Joomla as a social networking platform? If yes join joomlaplazza.com
The topic has been locked.
|
|
radio,
You can use an external CSS for this page. The Joomla index file is loaded, so any CSS in here will be loaded. But you can also use any inline CSS for this as well. You dont have to use any of my code. It was just an example. |
|
The topic has been locked.
|
|
Yeah i know i dont have to use it mate, but since i could'nt have done it myself, and it does what i want then i may as well use it,
Could you give me an example of how to style this part using inline css? I cant figure out how to style it in my template css file because they are not in any of the normal tabs or feilds: Name: <?php echo $user->firstname; ?> Age: <?php echo $user->age; ?> Gender: <?php echo $user->gender; ?> <br/> Town/City: <?php echo $user->city; ?> Country: <?php echo $user->country; ?> <br/> Links here, such as: Send a Message, Donate Points , Add to Buddy List, Add to Block List </td> </tr> <tr> <td colspan="2"> <div style="float:right; width:125px;"> This is <?php echo $user->username; ?>'s Profile </div> ID also like to chnage the color of the line running across the page at this part: This is <?php echo $user->username; ?>'s Profile </div> Sorry for the hassle mate im almost their |
|
Interested in improving Joomla as a social networking platform? If yes join joomlaplazza.com
The topic has been locked.
|
|
radio wrote:
Name: <?php echo $user->firstname; ?> Age: <?php echo $user->age; ?> Gender: <?php echo $user->gender; ?> <br/> Town/City: <?php echo $user->city; ?> Country: <?php echo $user->country; ?> <br/> Links here, such as: Send a Message, Donate Points , Add to Buddy List, Add to Block List </td> </tr> <tr> <td colspan="2"> <div style="float:right; width:125px;"> This is <?php echo $user->username; ?>'s Profile </div> ID also like to chnage the color of the line running across the page at this part: This is <?php echo $user->username; ?>'s Profile Radio, If it was me, I wouldn't do inline styles. I would do the following: If you want a consistent look for all of name, age, gender, etc. do the following: <div class="userinfo"> <span class="title">Name: </span> <span class="attribute"><?php echo $user->firstname; ?></span> <br/> <span class="title">Age: </span> <span class="attribute"><?php echo $user->age; ?></span> etc... </div> Then in your CSS create the following styles: div.userinfo { background: ; padding: ; /* etc.. */ } div.userinfo .title { color: ; padding: ; /* etc.. */ } div.userinfo .attribute { color: ; padding: ; /* etc.. */ } That is how I would do it. Or you can use inline styles such as <span style="color: #000; padding: 10px;">Something here</span> But when developing for a J! site, I have found keeping everything in the template.css file makes things easier (for me). I usually use inline styles when I am working on layout, then port it to the template_css.css when I am finished. Hope that helps. Chuck PS - I am no CSS or PHP guru. I am light-years behind beat and the group. A resource I use daily is: www.w3schools.com/css/default.asp Post edited by: chucktrukk, at: 2006/12/04 22:47 |
|
The topic has been locked.
|



