Home Tour Demo FAQ App Gallery Buy Now    
Home > Chapter: Template Tags

{TRACK} : How to set counter to track page views, search results and profile views?

Setting counter to track page views:You can track the page view of your template by using {TRACK:group_name} tag. Just set the {TRACK:group_name} tag into your template and give a 'group_name'. By using 'group_name' you can view the tracked counter i...


{ANALYTICS} : How do I put Google Analytics code in my site?

Sign up to Google and get your Analtics code. The code that will be starting with UA-.. will be your id.write {ANALYTICS:UA-...} where you normallay put analytics code and google analytics code will be added to your site.Google analytics code is gene...


{fieldname} : How to show a filed value on listings or displays?

Shows any data from the application database on display and listing pages. It can also display data using relations. Example: {firstName} Shows the first name of the user on the profile page. You should write the exact question name in brackets. You...


{FORM} : How to include an entry form on a template?

In order to display the forms you have created on form builder, you should use {FORM} tag. For example {FORM:profile} will display the registration form. Form tag requires to have exact form name as a second parameter. You can find your forms ex...


{SEARCHFORM} : How to include search forms?

If you want to include search forms on your templates you can use {SEARCHFORM} tag. Create your search form using Application Manager, then put it on any page. Example: {SEARCHFORM:artist_search}This tag is basically an alias to {FORM} tag. So, it ca...


{UPDATEFORM} : How to include an update form on a template?

Every entry form created on memberkit will automatically have an update form. You can include an update form with {UPDATEFORM} tag. It's basically the same as Entry form tag {FORM}. You need to specify form name as a second argument. {UPDATEFORM:prof...


{ENTRYFIELD} : How do I include a form to show only specific questions?

With {ENTRYFIELD} tag you can display only specified question on your page. It's basically the same as {FORM} tag but it only shows the given questions. {ENTRYFIELD:profile:username,email,password} will only show Username, Password and Email fields o...


{UPDATEFIELD} : How do I include an update form to show only specific questions?

With {UPDATEFIELD} tag you can display only specified question on your page. It's basically the same as {UPDATEFORM} tag but it only shows the given questions. {UPDATEFIELD:profile:username,email,password} will only show Username, Password and Em...


{QUERY} : How to include a query on a template?

Query database and get results. You can create your queries using the Query Builder on the Application manager. Once you created a query, put it in the page to call results. Then you should use LOOP or DISPLAY tags to show the result(s).For exampl...


{QUERY:self_entries} : How to show only logged-in user's entries in a listing?

There are predefined queries. One of them is "self_entries". When you include this query above your listing it will only display the logged-in users entries on the listing.For example:{QUERY:self_entries}{LOOP:blog_posts}   ....{LOOP:end}Th...


{QUERY:owner_entries} : How to show entries on currently listed user's entries in a nested listing?

There are predefined queries. One of them is "owner_entries". This query is suitable for using in nested listings when you include this query within your listing it will only display the currently displayed user's entries on the inner listing.For ex...


{LOOP} : How to create listings?

In order to list entries on your database you need to use {LOOP} tag. LOOP tag consist of three parts.1) LOOP:form_name2) LOOP:else (optional)3) LOOP:end (must)Let me explain this to you with an example. Let's say you wanted to list blog post on your...


{PAGING} : How to display page numbers on a page?

If you want to limit the results on a page and show page numbers below your listing you need to use {PAGING} tag. Memberkit only shows 10 results per page by default. So if you have 100 results on an application you need to show page numbers ...


{DISPLAY} : How to show details on an entry?

In order to display results on your item details page you need to use {DISPLAY} tag. It's quite similar to LOOP tag only differance is DISPLAY tag prints only one result at a time.For example:{DISPLAY:profile}  Username: {username}  E-mail:...


{SUMMARY} : How to get short version of entred text?

On some applications such as Blog or Articles some fields may contain very long contents. These long entries will not be suitable for your listings, because it just doesn't make sense to place full content on a listing. You can get a summary of ...


{COMMENT:count} : How to display comment count on an entry?

You may want to display how many comment an entry has. In order to do this you should use{COMMENT:count} tag. For example:On your listing if you write [Comments ( {COMMENT:count} )]. It will print out [Comments (15)] for each item with their comment ...


{USER} : How to show logged-in users information on templates?

{USER:firstName} Shows logged on user's first name on any page.You can access any profile information of logged-in user by using this tag.For example:<a href="../profile/details.html?if_login={USER:username}">  &...


{OWNER} : How do I display the information of poster of the entry?

If you want to display the profile information of the poster of displayed entry out side the {DISPLAY} tag. You need to use {OWNER:fieldName} tag.You can already display poster information by using login relation. For instance:{DISPLAY:table} &n...


{TEMPLATE} : How to include a template in another page?

If you need to use a template as a part of another template, you can include it with {TEMPLATE:folder/template_name.html} tag.This tag simply included the template in another without using it's layout, includes only the content of the template.You sh...


{IF} : How to use IF statements

To make minor changes on the page depending on conditions, you can use IF tags.IF tags are consist of three parts 1) Condition 2) else ( else if) 3) End 1) Condition: This is where you place your conditions, if the condition is correct then c...


{COMMENT:public/member} : How to use {COMMENT} tag?

There are three types of comment: Regular comment (comment), Star Rating (rating) and Comment and Rating combined review (review). With comment tag you can set what Members can do and what public can do. Second argument of {COMMENT} tag defines this ...


{SORTLINK} : How to add sort links on listings

{SORTLINK} prints a link to sort results by a particular field on a listing page.Usage: {SORTLINK:Car Year:carYear} First parameters is the text of your link and second is the field that you want to sort your listing.Another example:{SORTLINK:Sort pr...


{RANDOM_RESULT } : How to list entries in random order?

{RANDOM_RESULT} tag returns random results from an application database. You can then use LOOP tag to show these results. You can also define the number of results like the following: {RANDOM_RESULT:profile:4} Example:{RANDOM_RESULT:profile:4...


{QUESTION_TITLE } : How get a fileds question displayed in form builder?

You can get the value of a field just by writing it's name but if you want to get the question of that fields just like in the entry form you can use {QUESTION_TITLE} tag. When you provide a field name to this tag it will bring the question for this ...


{VIDEO} : How to display a video player?

{VIDEO} tag will print a video player for uploaded video. If uploaded video is a Flash video (FLV) video tag will bring a suitable player for this video type. You can also show the video player in specific dimensions using {VIDEO:videoUpload:400:350...


{COMMENT:rating_average } : How to display rating average of an entry?

You may want to display how rating average of an entry. In order to do this you should use{COMMENT:rating_average} tag. For example:On your listing if you write {COMMENT:rating_average}. It will print out the rating average in rating stars format.


{CLIPIMG} : How to change image size without changing the image's form?

Let's say you have an image with 800x600 dimensions and you wanted to display the image in 200x200 dimensions. If you do this you image will be shrink and loose it's shape. If you want to resize your image without losing it's shape you should us...


{IMG} : How to display image upload?

If you want to display uploaded image without writing HTML codes you can use {IMG} tag. IMG tag can accept dimensions such as {IMG:imageField:Width:Height}.Examples:{IMG:profilePicture:200} will print profile picture and set its width and height to 2...


{AGE} : How to display users age by users birthdate?

On your site you may want to display users' ages. But it's not a good idea to ask directly their ages because this value will not be updated through the years. Instead you can ask their birth dates and Memberkit can calculate their age. In order to d...


{GRAVATAR} : How to get user's picture from gravatar.com

If you are avare of the Gravatar (Globally Recognized Avatar) service you will know what to do with this tag. If user has a gravatar account you can access users global avatar and display it on your site next to user entries. In order to get user's a...


{URLENCODE} : How to place values inside a link?

When you want to pass a user generated entry into a URL. You should encode the value in order to prevent any problems.This is called URLENCODING by encoding you can safely carry any value with your URL. In order to do this you should use {URLENCODE:f...


{LINK} : How to get a link of uploaded file?

If you want to have a direct link to uploaded file you can use {LINK:uploadField} tag.This tag simply links to uploaded file and set the file name as link text.For example:{LINK:profilePicture} will print: ="http://yoursite.com/uploads/profile/userna...


{FILENAME} : How to get only the filename of the upload?

If you need to get only the file name of uploaded file instead of a full url you can use {FILENAME:uploadField} tag.This tag simply extracts the file name from full upload URL and prints on the screen.For example:{FILENAME:profilePicture} will print ...


{FORMATDATE} : How to display beautiful dates?

To be able to search or sort dates Memberkit have to keep them in database format which is hard to read and looks quite ugly.It actually looks like this: 2009-03-16 11:47:11 we want to see it as March 16, 2009 at 11:47 in order to do this you can use...


{GET} : How to get URL paramaters on a page?

In order to use passed URL parameters on your page you can use {GET:paramemetrName} tag. This tag will extract given parameter name from URL and print it on screen. Such as {GET:firstName} will extract firstName from this URL page.html?firstName=John ...


{POST} : How to get POSTED values on a page?

Just like {GET} tag reads URL paramaters, {POST:parameterName} tag reads the posted values on your page.For example:Let's say you have two pages, first page has a form in it which asks users first and last names.Page 1page2.html" method="post">&nbs...


{SET} : How to set a value like it was passed from URL

{SET:parameterName:value} tag is simply the reverse action of {GET} and {POST} tags. They were reading the request parameters, with SET tag you can set request parameters on your template.For example:Instead of sending RPP  from URL as ?rpp=10 y...


{PLURALIZE} : How to pluralize the field value?

On some cases you may want to have pluralized version of user genereted entry, you can get this by {PLURALIZE:fieldName} tag.For example: On your entry form if user entered "Category" to "type" field and if you write {PLURALIZE:type} on your template...


{FULL_URL} : How to print my domain on templates?

If you have two domains assigned to one site you just can not write one of the domains on your templates it should be dynamically populated according to current URL. You can dynamically get your domain as {FULL_URL} tag. Example:{FULL_URL} will print...


{LIVE_URL} : How to print published site URL on a page?

{LIVE_URL} tag is quite the similar as {FULL_URL} tag, only differance is LIVE_URL tag prints the published site URL instead of domain.Example:{LIVE_URL} will print http://yoursite.com/members/


{IGNORE} : How to stop Memberkit to change Javascript codes?

Memberkit will scan through your templates and changes all occurances of {...} tags. Memberkit tags look like javascript objects and sometimes our template engine can confuse this tags and may remove your Javascript codes from published site.In order...


{FIXHTTP} : How do I fix missing HTTP prefixes on user entred URLS?

If you have a question which asks URL on your form, users will definitely enter wrong URLs such as: www.example.com or example.com. These URLs will create problems because browsers will think they are folders on your server and redirect users to http...


{FIXTEXTAREA} : How to secure and fix textarea entries?

In order to display the text area entries in HTML format, you need to use {FIXTEXTAREA:textareaField} tag. Normally if you leave text area entries untouched content will be printed as a single line. No formatting will be applied on entered text.This ...


{COUNTONLINES} : How to show online user count?

If you want to display how many users are online on your site, you should use {COUNTONLINES} tag.{COUNTONLINES} will print 15 as a count of online users on your site. Example:Currently {COUNTONLINES} users are online.


{MONEYFORMAT} : How to print price amount in money format?

{MONEYFORMAT:fieldName} will do this for you. This tag will format the entered number as a price value. ,For example: 13785 will be formatted as 13,785.00 254784.89965 will be formatted as 254,784.89You can use this tag as: {price} wil...


{NUMBERFORMAT} : How to format a number with grouped thousands?

You can use {NUMBERFORMAT:fieldName} tag to do this. This tag will print a regular number in grouped thousands format.For example: 123456 will be converted to 123,456 1547 will be converted to 1,547You can use this tag as:{number} will prin...


{MD5} : How to get MD5 hash of field value?

{MD5:fieldName} will to this for you. This tag will convert a field value to MD5 hash string.For example: Hello World will be converted to b10a8db164e0754105b7a99be72e3fe5Usage:  {MD5:password} will print b10a8db164e0754105b7a99be72e3fe5&nb...


{PRINTCOUNT} : How to display total of entries of a form?

{PRINTCOUNT:formName} tag will work like {LOOP} tag but it will only print the count of results accourding to your query.   {PRINTCOUNT} tag will print the result in parentheses as (total) if result is 0 then it will print nothing For examp...


{VIDEOCOVER} : How to display a screenshot of a video?

If you have FFMPEG installed on your server Memberkit will try to convert videos to FLV (Flash Video) format and Memberkit will take a screenshot of the video while converting. You can access this screenshot by using {VIDEOCOVER:uploadFiled} tag.If M...


{AUDIO} : How to play uploaded MP3 files?

Memberkit uses default video player to play audio files. You can use {AUDIO:audioUpload} tag to play uploaded MP3 files.If you want to use uploaded audio with another player you can access the file path with regular fieldName tag ( {audioUpload}...


{Preventing automatic link completion} : How do I prevent automatic link completion?

Memberkit processes the links in every development page (pages under dev folder). If you want to prevent automatic link completion you should write the link as:< a ignore="yes" h r e f="p a g e. h t m l "> p a g e 1 < / a >ignore="yes" sh...



Search in articles

Customer Log-in | Support Forums | User Guide | Free Form Builder | Contact Memberkit Team