|
|
Re:replacement tags
|
|
Date: 2008/01/07 22:12
|
By: jucar115
|
Status: User
|
|
|
Karma: -1  
|
|
Fresh Joomlapolitan  | Posts: 17 |   | |
|
beat wrote: It's that you can use a replacement syntax in quite some places:
[fieldname]
e.g. in the title tab description:
[username] is from [cb_town] and his occupation is [cb_occupation].
Lots more things are possible, please see the full CB documentation, and there is still some more documentation and examples to come for this.
You can use this in:
- field and tab titles - field and tab descriptions - delimiter fields
and quite some other places 
Gives you quite some flexibility in user profiles.
You can display there:
- any field values - any menu item - any status item providing styling, string manipulations, and personalizations.
---> [fieldname] will be replaced everywhere (except in field contents) by the field, like in emails
---> [menu]menupath[/menu] will be replaced everywhere by the menu. so adding the menu "upload your photo" just below the no photo is easy. This is in addition of normal menu that you can unpublish...
example: put this in description of photo, and set parameter of tab to have description below photo:
| Code: | [menu] _UE_MENU_EDIT : _UE_UPDATEAVATAR [/menu]
|
---> [status]statuspath[/status] allows to put specific statuses where you want, instead or in addition of the normal status area.
in some cases, styling tags are available:
href="url" for special links
target="_blank" to open new window
title="" for hovers
class="" for styling with a CSS class in a stylesheet
style="" for inserting inline CSS style
images can also be used instead of text of a menu item with:
img="url" for specifying image
caption="text" for the alt text and tooltip ?
The example above could be personalized to be different than the standard CB menu item, like this:
| Code: | <span class="yourCSSclassForYourStyling">[menu class="yourCSSclassForYourStyling" caption="&91;edit your photo&93;" img="" ] _UE_MENU_EDIT : _UE_UPDATEAVATAR [/menu]</span>
|
a few examples that you could put in description of an empty tab (no fields): (with other html around for nice formatting):
To display connections:
| Code: | [status]_UE_MENU_STATUS:_UE_CONNECTION:_UE_CONNECTION[/status]
|
To display the member since status:
| Code: | [status]_UE_MENU_STATUS: _UE_MEMBERSINCE: _UE_MEMBERSINCE[/status]
|
We are currently updating the full documentation further with all of these nice things...Your CB profiles can become very flexible...
Check the full doc by subscribing, you will also receive the doc updates as they become available
Hii.. i use the Tab Age from Dj Trail.. what is the tag for this..
I wish this: [fieldname]'s [Tab Age! no age field but i'm no using de age field] year old... blablabla..
thanks! Colombiano al 100% Orgulloso de mi patria!
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:replacement tags
|
|
Date: 2008/02/22 09:58
|
By: DMA
|
Status:
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 2 |   | |
|
Hi!
First, CB what a great addition to Joomla!
I'm trying to use replacement tags but I can't find any info in the documentation...
beat wrote: We are currently updating the full documentation further with all of these nice things...Your CB profiles can become very flexible... 
I would like the "report user" to show under the user photo like in this post
magickz wrote: Hello, I am playing around with these replacement tags. As you can see it works fine under the user photo.
but I don't know what tags to use. Is there a list of tags somewhere?
/DMA
|
|
The administrator has disabled public write access. |
|
|
|
Re:replacement tags
|
|
Date: 2008/02/22 11:47
|
By: magickz
|
Status:
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 22 |   | |
|
Hi DMA,
i just inserted the following code in the description field of the portrait tab:
[menu] _UE_MENU_MODERATE : _UE_REPORTUSER [/menu]
Greetings. Martin
Post edited by: magickz, at: 2008/02/22 11:47
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:replacement tags
|
|
Date: 2008/02/22 12:23
|
By: DMA
|
Status:
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 2 |   | |
|
Thanks Martin!
|
|
The administrator has disabled public write access. |
|
|