|
|
Re:Age Plugin - Shows age at stats menu
|
|
Date: 2008/09/18 00:37
|
By: krileon
|
Status:
|
|
|
Karma: 23  
|
|
Gold Joomlapolitan  | Posts: 229 |   | |
|
Man so many unhelpful people. I'm a code hacker and figured this out and 5mins. No one could help these folks out? Here you go:
Go to: | Code: | \components\com_comprofiler\plugin\user\plug_cbagetab\age.php
|
Change:
| Code: |
$agetekst = $params->get('ageText', "Age");
$mi = array(); $mi["_UE_MENU_STATUS"][$params->get('ageText', "Age")]["Age"]=null;
$this->addMenu( array( "position" => "menuList" ,
"arrayPos" => $mi ,
"caption" => $years ,
"url" => "" ,
"target" => "" ,
"img" => null ,
"alt" => null ,
"tooltip" => "") );
|
to:
| Code: |
$agetekst = $params->get('ageText', "Age");
if ($years==!NULL) {
return "<div class='xx' style='xx'>".$agetekst." ".$years."</div>";
}
|
Stylize the div with your own custom class or just use styles.. or use no design at all on it.
It'll now be placed wherever you select it to be placed via the tab options in the backend.
I still have not figured out how to get it to render in a different premade tab (I want mine to show up in a nice little mouse over I've made to display personal info).
When I do figure it out.. I'll probably post it if I don't forget, lol.
Post edited by: krileon, at: 2008/09/18 01:07 AllMySocials "Where social networks come together" www.allmysocials.com
|
|
The administrator has disabled public write access. |
|
|
|
Re:Age Plugin - Shows age at stats menu
|
|
Date: 2008/09/18 01:43
|
By: krileon
|
Status:
|
|
|
Karma: 23  
|
|
Gold Joomlapolitan  | Posts: 229 |   | |
|
Here's my custom version. You can place the tab anywhere you want. It's already styled to look like a normal tab field entry.
It'll be the very first entry of the tab. Sorry, but I'm not program savvy enough to figure out how to give it ordering.
It supports additional field entrys. So change the title to whatever you want. Then simply add your fields to it to have a custom tab or menu with whatever info you want. This can be done from the fields backend. Simply set the field tab to Age (or whatever you changed it to) and walla it'll show within your age tab.
It can be placed anywhere you like and changed to whatever style you want.
The params still work as well. So no problems there. The tab will also hide the age if there is no age to display.
Sorry folks. That's the best I can do. I'm still learning this whole plugin system so I can make a ton of my own custom plugins. AllMySocials "Where social networks come together" www.allmysocials.com
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:Age Plugin - Shows age at stats menu
|
|
Date: 2008/09/20 19:35
|
By: bytebandit01
|
Status: User
|
|
|
Karma: 0  
|
|
Junior Joomlapolitan  | Posts: 34 |   | |
|
krileon wrote:
Position: Right side of middle area <-- this does not work..
i wanted to align Age with Profile, Forum Profile, User Status, Contact Info all of which are positioned - Right side of middle area, with display type - raw display without title. i tried all other positions for Age, but still no go.
|
|
The administrator has disabled public write access. |
|
|
|
Re:Age Plugin - Shows age at stats menu
|
|
Date: 2008/09/20 22:09
|
By: krileon
|
Status:
|
|
|
Karma: 23  
|
|
Gold Joomlapolitan  | Posts: 229 |   | |
|
Default without the hack is the right side. Just use the normal version if that's where you want it.
If you want you can try my newer version, but it also shows zodiac sign (in text not image).
Post edited by: krileon, at: 2008/09/20 22:11 AllMySocials "Where social networks come together" www.allmysocials.com
|
|
The administrator has disabled public write access. |
|
|