I am using PHPBB 3.2.5 and I can't find any documentation regarding how to display a user's default group name (by code). I am currently modifying a theme and I want to display the user's default group name in a specific area.
How can I do that?
Hard to answer the question, if we don't have all the details, so I'm going to take some guesses... but first - what specific area are you trying to display the group name? It is already displayed on the viewprofile page of the memberlist. The variable you'd be interested in would be {L_USERGROUPS} I believe.
IE:
/memberlist.php?mode=viewprofile&u=123
<!-- IF S_GROUP_OPTIONS --><dt>{L_USERGROUPS}{L_COLON}</dt> <dd><select name="g">{S_GROUP_OPTIONS}</select> <input type="submit" name="submit" value="{L_GO}" class="button2" /></dd><!-- ENDIF -->
Related
I'm trying to add new type of items in Oracle APEX 19.1. I need to have oportunity to use
<input type="number">
Default "Number Field" is just a
<input type="text" ... class="number_field ..." >
I'm not exactly sure why the APEX team decided not to include the "Number" as a Subtype for a Text Field. It likely has to do with cross-browser consistency and may involve future plans for the Number Field type (perhaps that will be enhanced to better meet your needs at some point).
In the meantime, a little bit of JavaScript can achieve the desired result. Add something like this to the page level attribute Execute when Page Loads:
$('#P7_CREDIT_LIMIT').attr('type', 'number');
Just replace the item name with the correct one, but leave the "#" at the beginning.
Are you trying to get the number keyboard on mobile devices? If so, just add inputmode="numeric" to the Custom Attributes field as explained by Stefan Dobre here: https://twitter.com/stefan__dobre/status/1186553984091328512
I have a single article and I want to display a portion of the content to the Registered user group only and the other portion to a Custom user group only.
I'm sure I read an article sometimes int he past year about doing this without a plugin (Though I may be mis-remembering the article)
Is this possible without an extension using something along these lines?
{content group=registered}
You can create a category (with limited access) say Registered. Create another category with restricted access say Paid_Access.
Now for every article create two articles - one in Registered category containing only Intro text and another full article in Paid_Access category.
Create Access Group and Access levels with same name
The hierarchy of the access levels will be as follows:
Public
Registered
Paid_Access
Set the Registered category to access level Registered. Set the Paid_Access category to access level Paid_Access
By default, on Joomla registration every user will be in Registered access level and will be able to only view article intro.
When user make some payment, move the user to Paid_Access access level. Users in this level can view the complete article.
Creating two articles for every new article may be cumbersome, to reduce this pain, you can create a custom form using ChronoForms. This form should have two text areas for the article - one would be for Intro text and another full article (without Intro text). The form while saving, will itself create two articles - one in Registered and another in Paid_Access. Thus your pain of creating two articles will be gone!
It is not possible without a plugin.
Reason : When Joomla is preparing content then there must be a function(code snipet) that detects the Text enclosed in {content} tags and decide what to do with this text and accordingly edits the content.
I have developed a Content Plugin, This will helps you https://github.com/jitendra-khatri/jcontenthider to setup your scenario.
You could do this with CSS if your template adds the access level as a class on the body or html (mine do). Though anyone with firebug or a code inspector could unhide content if they thought to look at the source.
<body class="registered">
// other code up to article content
<div id="articleContent">
// this is now in your article
<div class="hidefrompaid">
// content for registered users
</div>
<div class="hidefromregistered">
// content for paid users
</div>
</div>
...
Then your css would be:
body.registered .hidefromregistered {
display:none;
}
body.paid .hidefrompaid {
display:none;
}
Or if you really want to not show it you could use jQuery to delete the text the user should not see using those same css classed wrappers around the text.
jQuery('body.registered').find('.hidefromregistered').remove();
jQuery('body.paid').find('.hidefrompaid').remove();
I ended up using the jContentHider plugin. While I still had do some work arounds, I got it working the way I want to.
For others interested:
jContentHider on GitHub
We have a website where people can create personal ads in order to find language-partners.
Does anyone have an idea on how to markup these ads using schema.org?
By now we only have rel=author on each author-name of an ad. But it would be good if we could also markup the following elements of the ads:
the ad itself (the div that wraps the ad)
author-image
authoer location/homelocation
creation date
mothertongue
wanted/learn language
description
Thanks in advance for your help!
Uhm, not exactly an expert here, but I think you should wrap all that in a http://schema.org/Person and use the already existing tags for that, assuming the ad links to a user's homepage you can just add the link as a url for the person.
Assuming a div contains all that you just define it as:
<div itemprop="author" itemscope itemtype="http://schema.org/Person">
.... all the properties ....
</div>
If I'm not mistaken all the described properties are already defined in Person, in fact you can find most of them in the example at the bottom of the page, just take a look at http://schema.org/Person
Really can't give you any more information without an already existing markup sample.
I am wondering if you can assign a status to .page or dcr files in teamsite such as new, review, revise, publish and archive so that this would display in the cms system so each item is clearly identified?
I think it's not possible to assign it in the CMS interface. When I try to control the file status, I do it with workflows. For instance, developing a review workflow that creates a dcr, assigns the review to a review user, then finally creates the edition and deploys it to the Livesite server.
Cheers
You could add your own extended attribute to keep the status of the file, but it won't be seen in the main teamsite interface. You'll have to click on the Tag link in order to see what the status of the file is, then do with the file as you wish. But if you have some backend to check the file's extended attribute, you would know the status. You can use either the command line tool iwextattr or use the cssdk api to get the extended attribute.
You can try using metatags. You can add metatags to files using file->tag. Please configure \interwoven\TeamSite\local\config\datacapture.cfg to add fields to the meta tag ui. You can also add the statuses you mentioned as categories in taxonomy and add a field to select taxonomy categories as meta tag values. Use below code for that. Once we add meta tags. You can find those files via LSCS query filter the documents.
<item name="ContentCategories">
<label>Related Categories</label>
<description>Select other locations on the site where you would like this content to be visible.</description>
<textarea required="f" rows="8" cols="70" wrap="virtual" maxlength="250" readonly="t">
<cgi-callout url="/iw-cc/livesite/taxonomyexplorer/Taxonomy.do?categoryTypeId=Content Categories&method=loadTaxonomyExplorer&selectMode=multiple" label="Select Related Categories..." window-features="width=495,height=375,resizable=no,toolbar=no,scrollbars=yes,status=no"/>
</textarea>
</item>
I need to show the text in the tooltips as per the user langguage.
I am using
s:textfield name="userName" title="This is the name of the user"/
How do i pick up the text "This is the name of the user" from a property file based on locale.
Struts2 textfiled already have parameter namely tooltip.All you need to use struts2 build in mechanism to fetch tool tip as per user locale.
here is what you have to do
<s:textfield name="myTextFiled" key="field.key" tooltip="%{getText('field.tooltip')}"/>
Please refer to the official documents for more details.
textfield