I will be releasing a new module shortly that will allow keys similar to the keys used in the templates in HTML blocks on a page.
Keys like this <bx_text:_language_key /> for inserting a language key is available for use in a template, but not a html block.
In my mod the key looks like this [bx_text:_language_key /]. Slightly different becuse the tiny_mce editor strips the other out.
Anyhow. I have a bunch of keys available and am looking for suggestions on what other information should be made available for easy insertion into a html block via a key. That is suggestions within reason. Commonly used information.
Here is a current list.
Key | Description | |
[bx_text:_language_key /] | _language_key will be translated using language file(function _t()) and inserted. | |
[bx_url_root /] | The value of $GLOBALS['site']['url'] variable will be inserted. | |
[bx_url_admin /] | The value of $GLOBALS['site']['url_admin'] variable will be inserted. | |
[bx_member_id /] | The logged in members ID will be inserted. | |
[bx_nickname:ID /] | The nickname of the member ID will be inserted. | |
[bx_profile_link:ID /] | The link to member profile for member ID will be inserted. | |
[bx_member_icon /] | The members 32x32px icon will be inserted. Border, status icon and popup included. | |
[bx_member_thumbnail /] | The members 64x64px thumbnail will be inserted. Border, status icon and popup included. | |
[bx_member_avatar_small /] | The members 32x32px avatar will be inserted. Image only. | |
[bx_member_avatar_medium /] | The members 64x64px avatar will be inserted. Image only. | |
[bx_first_name /] | The logged in members first name will be inserted. | |
[bx_last_name /] | The logged in members last name will be inserted. | |
[bx_email /] | The logged in members email address will be inserted. | |
[bx_sex /] | The logged in members sex will be inserted. | |
[bx_looking_for /] | The logged in members profile looking for data will be inserted. | |
[bx_headline /] | The logged in members profile headline will be inserted. | |
[bx_description_me /] | The logged in members profile description will be inserted. | |
[bx_country /] | The logged in members country will be inserted. | |
[bx_city /] | The logged in members city will be inserted. | |
[bx_date_of_birth /] | The logged in members date of birth will be inserted. | |
[bx_date_reg /] | The logged in members date registered will be inserted. | |
[bx_date_last_edit /] | The logged in members date their profile was last edited will be inserted. | |
[bx_date_last_login /] | The logged in members date of last login will be inserted. | |
[bx_tags /] | The logged in members profile tags will be inserted. | |
[bx_user_status_message /] | The logged in members status message will be inserted. | |
[bx_height /] | The logged in members height will be inserted. | |
[bx_weight /] | The logged in members weight will be inserted. | |
[bx_income /] | The logged in members income will be inserted. | |
[bx_occupation /] | The logged in members occupation will be inserted. | |
[bx_religion /] | The logged in members religion will be inserted. | |
[bx_education /] | The logged in members education will be inserted. | |
[bx_relationship_status /] | The logged in members relationship status will be inserted. | |
[bx_hobbies /] | The logged in members hobbies will be inserted. | |
[bx_interests /] | The logged in members interests will be inserted. | |
[bx_ethnicity /] | The logged in members ethnicity will be inserted. | |
[bx_favorite_sites /] | The logged in members favorite_sites will be inserted. | |
[bx_favorite_music /] | The logged in members favorite_music will be inserted. | |
[bx_favorite_films /] | The logged in members favorite_films will be inserted. | |
[bx_favorite_books /] | The logged in members favorite_books will be inserted. | |
[bx_date /] | The date will be inserted. | |
[bx_ip_address /] | The visitors IP address will be inserted. |
I plan on having a demo page up soon to show the results. Some tests are already being done on the home page of my site, but those are just development tests. A better page will be done soon.
Post your thoughs on useful common information.