replacement tags

12 years 3 months ago #42379 by Roland
Hello,

what is a replacement tag and how does it work?

Thanks for new CB!!!! It works fine great!!!

www.simple-quality.de - The Quality-Web-Portal
12 years 3 months ago #42559 by beat
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:1][menu] _UE_MENU_EDIT : _UE_UPDATEAVATAR [/menu]
[/code:1]

---> [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:1]<span class="yourCSSclassForYourStyling">[menu class="yourCSSclassForYourStyling" caption="&91;edit your photo&93;" img="" ] _UE_MENU_EDIT : _UE_UPDATEAVATAR [/menu]</span>
[/code:1]


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:1][status]_UE_MENU_STATUS:_UE_CONNECTION:_UE_CONNECTION[/status]
[/code:1]

To display the member since status:

[code:1][status]_UE_MENU_STATUS: _UE_MEMBERSINCE: _UE_MEMBERSINCE[/status]
[/code:1]

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

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
12 years 3 months ago #42665 by Roland
Hello Beat,

something that I have learned from you:

============== NO OPEN QUESTIONS ABOVE THIS LINE ==============

Thanks... :) :laugh:

Post edited by: Roland, at: 2007/08/12 09:41

www.simple-quality.de - The Quality-Web-Portal
12 years 1 month ago #46741 by magickz
Hello, I am playing around with these replacement tags. As you can see it works fine under the user photo.




But if I use it as a tab title (right area) it seems to make a problem.

Post edited by: magickz, at: 2007/09/27 11:12
Attachments:
12 years 1 month ago #46963 by magickz
I would like to rearrange and replace some menu topics with icons or buttons on my profile pages. And I guess with the replacement tags I can realize what I want.

Ok, I will see first, if I find an answer in my fresh printed documentation :whistle:
12 years 1 month ago #46969 by nant
magickz wrote:

I would like to rearrange and replace some menu topics with icons or buttons on my profile pages. And I guess with the replacement tags I can realize what I want.

Ok, I will see first, if I find an answer in my fresh printed documentation :whistle:


Hope it works for you - I have identified some issues and mentioned them to Beat.
Moderators: beatnantkrileon
Time to create page: 0.520 seconds
Facebook Twitter Google LinkedIn