Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 11 12 13 14 Next > End >>
Re:Age Plugin - Shows age at stats menu
Date: 2008/09/18 00:37 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 527
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

Re:Age Plugin - Shows age at stats menu
Date: 2008/09/18 01:43 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 527
graphgraph
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.
File Attachment:
File name: plug_agev0-76640c62bb8cd7f72018042f4b382174.zip
File size:2060 bytes

AllMySocials
"Where social networks come together"
www.allmysocials.com
Click here to see the profile of this user 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
graphgraph
krileon wrote:
File Attachment:
File name: plug_agev0-76640c62bb8cd7f72018042f4b382174.zip
File size:2060 bytes


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.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Age Plugin - Shows age at stats menu
Date: 2008/09/20 22:09 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 527
graphgraph
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).
File Attachment:
File name: cb_age_v04.zip
File size:2341 bytes


Post edited by: krileon, at: 2008/09/20 22:11
AllMySocials
"Where social networks come together"
www.allmysocials.com
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 11 12 13 14 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login