Tags for forum and chat:
This tags allow you to display date of last message, name of
last subscriber or count of messages (for chat count of on-line users)
right in link on forum or chat, or anywhere on your WAP.
Tags for forum:
:forum-ID/function:
forum is tag descriptor (function name)
ID is forum ID (optional parameter if is tag located right in link on forum). ID can contains also more than 1 value (example: 1,2,3)
function Can have one of 11 values:
name - name of last subscriber
tname - name of last subscriber (only text wihtout link, icon and color)
name-link - name of last subscriber (link on user profile or send private message form)
date - date of last message
text - text of last message
count - count of messages in forum
theme - the name of actual theme (only for forum structured on themes)
theme-link - the name of actual theme (only for forum structured on themes), with link on actual theme in forum
th_count - count of themes in selected forum (only for forum structured on themes)
today_thlist - list of new themes for last 1 day (24 hours)
today_thcount - count of new themes for last 1 day (24 hours)
today_msgcount - count of new messages for last 1 day (24 hours)
status - user status (on-line/off-line)
form/SiteID - display form for adding messages into forum. As a SiteID set ID, where will be user redirected after submit new message. (If you use "f" as SiteID, user will be redirected to a current forum)
smallform/SiteID - same as previous tag, but this tag using one line input tag instead of textarea
Example: As forum name write forum (:forum-count:). On WAP will be displayed e.g.: forum (12)
Functions name, name-link, date, text, theme, theme-link can be supplemented for a sequence number. Example:
:forum-1234/name/1: - this will display name of last subscriber
:forum-1234/name/2: - this will display name of second subscriber
Functions today_thlist, today_thcount, today_msgcount can be supplemented for a count of days. Example:
:forum-1234/today_thlist/7: - this tag will display list of themes for last 7 days
Now something more about parameter ID. Imagine, that you want forum where under link on forum will be text with name and date of last message.
From last examlpe we have created link on new forum so do following:
Add text under forum which will contains e.g.:
Last message was added by user :forum-1234/name: :br: message was added: :forum-1234/date:
Where do I have ID 1234 from?
At the bottom of every forum is text Forum ID: xxxx (Forum ID: 1234)
similarly is it in chat with two differences:
1. chat syntax is:
:chat-ID/function:
2. function count displaying count of on-line users on chat.
For chat you can also use tags to display names of on-line users on chat.
Syntax of the tag is:
:chat-online:parameters;chatID:/chat-online
Parameters can contain following values:
r - names will be displayed on new lines, in the opposite case will be betwen names commas.
o - name will be displayed as link. If user click on this link, he will be redirected on site with add new private message to user on chat.
m - names will be ordered alphabetically. In the opposite case names will be ordered by last refresh in chat.
Setting of any parameter is not mandatory. In case not setting of any of parameter, default values will be used. More paramneters can be separated by comma.
chatID
You can also display name of users from more chats on one place. In this case separate chat IDs by comma.
Example
:chat-online:1,2:/chat-online:
this will display users on chats with ID 1 and 2
:chat-online:r,o;1:/chat-online:
This will display users on chat ID 1 and every name will be on new line and user will be able to click on the name
Elective tag for forum:
Syntax of tag:
:forumlist:PARAMETERS::LINE_FORMAT::DELIMITER:/forumlist:
Parameters have following format:
Parameter1=value, parameter2=value
Available parameters:
f - forum/forums ID
t - time format for time variable (%time%)
l - limit parameter. l parameter can have numberic value (1 - 200). It is maximal count of messages for one site.
s - site parameter. This parameter is useful, if you want to separate list on more sites. For example if you want to display list with first 10 messages set parameter l on 10 and parameter s on 1, if you want to display next 10 messages (11-20) leave parameter l on 10 and parameter s set on 2.
o - order parameter can have two values: n (new first) and o (old first): o=n
For Line format can be used following variables:
%name% - User name
%tname% - User name (only text without color,icon,...)
%lname% - User name (link)
%time% - time of the message
%text% - text
%ip% - IP adress
%ipx% - IP adress (in format 123.123.123.xxx)
%browser% - browser
%flag% - flag
%country1% - Whole name of coutry %country2% - abbreviation of country (2 letters) %country3% - abbreviation of country (3 letters)
%prvar-N% - value from profile where N is variable ID. For example if you want to display information from ::var-1:: use %prvar-1%
%urlpicture% - URL of picture from profile. This variable generate only URL, not whole picture code!!! It means, that must be used with HTML code. Example: <img src="%urlpicture%"/>
%urlprcom% - URL of the link to profile comments. This variable generate only URL, not whole link code!!!
%urlpm% - URL of the link to send Private message. This variable generate only URL, not whole link code!!!
Example:
:forumlist:f=1234 1235,o=n::%name% (%time%)<br/>%text%::<hr/>:/forumlist:
TIP: Use value c as forum ID (f=c) if you wanna display comments from user's profile. If you wanna display comments of selected user use parameter x=u and specify user name instead of DELIMITER.
Tags for forum:
:forum-ID/function:
forum is tag descriptor (function name)
ID is forum ID (optional parameter if is tag located right in link on forum). ID can contains also more than 1 value (example: 1,2,3)
function Can have one of 11 values:
name - name of last subscriber
tname - name of last subscriber (only text wihtout link, icon and color)
name-link - name of last subscriber (link on user profile or send private message form)
date - date of last message
text - text of last message
count - count of messages in forum
theme - the name of actual theme (only for forum structured on themes)
theme-link - the name of actual theme (only for forum structured on themes), with link on actual theme in forum
th_count - count of themes in selected forum (only for forum structured on themes)
today_thlist - list of new themes for last 1 day (24 hours)
today_thcount - count of new themes for last 1 day (24 hours)
today_msgcount - count of new messages for last 1 day (24 hours)
status - user status (on-line/off-line)
form/SiteID - display form for adding messages into forum. As a SiteID set ID, where will be user redirected after submit new message. (If you use "f" as SiteID, user will be redirected to a current forum)
smallform/SiteID - same as previous tag, but this tag using one line input tag instead of textarea
Example: As forum name write forum (:forum-count:). On WAP will be displayed e.g.: forum (12)
Functions name, name-link, date, text, theme, theme-link can be supplemented for a sequence number. Example:
:forum-1234/name/1: - this will display name of last subscriber
:forum-1234/name/2: - this will display name of second subscriber
Functions today_thlist, today_thcount, today_msgcount can be supplemented for a count of days. Example:
:forum-1234/today_thlist/7: - this tag will display list of themes for last 7 days
Now something more about parameter ID. Imagine, that you want forum where under link on forum will be text with name and date of last message.
From last examlpe we have created link on new forum so do following:
Add text under forum which will contains e.g.:
Last message was added by user :forum-1234/name: :br: message was added: :forum-1234/date:
Where do I have ID 1234 from?
At the bottom of every forum is text Forum ID: xxxx (Forum ID: 1234)
similarly is it in chat with two differences:
1. chat syntax is:
:chat-ID/function:
2. function count displaying count of on-line users on chat.
For chat you can also use tags to display names of on-line users on chat.
Syntax of the tag is:
:chat-online:parameters;chatID:/chat-online
Parameters can contain following values:
r - names will be displayed on new lines, in the opposite case will be betwen names commas.
o - name will be displayed as link. If user click on this link, he will be redirected on site with add new private message to user on chat.
m - names will be ordered alphabetically. In the opposite case names will be ordered by last refresh in chat.
Setting of any parameter is not mandatory. In case not setting of any of parameter, default values will be used. More paramneters can be separated by comma.
chatID
You can also display name of users from more chats on one place. In this case separate chat IDs by comma.
Example
:chat-online:1,2:/chat-online:
this will display users on chats with ID 1 and 2
:chat-online:r,o;1:/chat-online:
This will display users on chat ID 1 and every name will be on new line and user will be able to click on the name
Elective tag for forum:
Syntax of tag:
:forumlist:PARAMETERS::LINE_FORMAT::DELIMITER:/forumlist:
Parameters have following format:
Parameter1=value, parameter2=value
Available parameters:
f - forum/forums ID
t - time format for time variable (%time%)
l - limit parameter. l parameter can have numberic value (1 - 200). It is maximal count of messages for one site.
s - site parameter. This parameter is useful, if you want to separate list on more sites. For example if you want to display list with first 10 messages set parameter l on 10 and parameter s on 1, if you want to display next 10 messages (11-20) leave parameter l on 10 and parameter s set on 2.
o - order parameter can have two values: n (new first) and o (old first): o=n
For Line format can be used following variables:
%name% - User name
%tname% - User name (only text without color,icon,...)
%lname% - User name (link)
%time% - time of the message
%text% - text
%ip% - IP adress
%ipx% - IP adress (in format 123.123.123.xxx)
%browser% - browser
%flag% - flag
%country1% - Whole name of coutry %country2% - abbreviation of country (2 letters) %country3% - abbreviation of country (3 letters)
%prvar-N% - value from profile where N is variable ID. For example if you want to display information from ::var-1:: use %prvar-1%
%urlpicture% - URL of picture from profile. This variable generate only URL, not whole picture code!!! It means, that must be used with HTML code. Example: <img src="%urlpicture%"/>
%urlprcom% - URL of the link to profile comments. This variable generate only URL, not whole link code!!!
%urlpm% - URL of the link to send Private message. This variable generate only URL, not whole link code!!!
Example:
:forumlist:f=1234 1235,o=n::%name% (%time%)<br/>%text%::<hr/>:/forumlist:
TIP: Use value c as forum ID (f=c) if you wanna display comments from user's profile. If you wanna display comments of selected user use parameter x=u and specify user name instead of DELIMITER.
========================================================================
Tag for optional colors:
For insert select menu, which allows to your users select
own background color, text color and links color, use tag :userstyle:
Tag syntax:
:userstyle:colors1:name1;colors2:name2;colors3:name3;text_on_button:/userstyle:
:userstyle:background_color,text_color,links_color:name;text_on_button:/userstyle:
Example:
:userstyle:#000000,#ffffff,#aaaaaa:Black;#009900,#aaaaaa,#999999:Green;Change colors:/userstyle:
Display:
This select menu is working only in WAP2(xhtml) version
Tag syntax:
:userstyle:colors1:name1;colors2:name2;colors3:name3;text_on_button:/userstyle:
:userstyle:background_color,text_color,links_color:name;text_on_button:/userstyle:
Example:
:userstyle:#000000,#ffffff,#aaaaaa:Black;#009900,#aaaaaa,#999999:Green;Change colors:/userstyle:
Display:
===============================================
===============================================
Tags for random content:
Content, which will be displayed casually is possible to insert with tags :rand-beg: :rand: :rand-end:
Tag syntax:
:rand-beg:random content 1:rand:random content 2:rand:random content 3:rand-end:
number of random contents is not limited.
Example (WML code):
:rand-beg:<a href="http://domain1.com">link1</a>:rand:<a href="http://domain2.com">link2</a>:rand:<a href="http://domain3.com">link2</a>:rand-end:
Random tags you can use in all types of items (links, sites, text, forum, WML code,...)
Example (in link on new site):
Click on :rand-beg:new:rand:best:rand-end: site
TIP: if you want to display random number from selected interval of numbers you can use this format of random tag:
:rand-beg:NN-NN:rand-end:
Example:
:rand-beg:10-100:rand-end:
TIP2:If you want to display same value from last generated random tag, use @ in :rand-beg:@:rand-end: tag.
Example:
First number: :rand-beg:10-100:rand-end:, Same number: :rand-beg:@:rand-end:
Result:
First number: 63, Same number: 63
===============================================Tag syntax:
:rand-beg:random content 1:rand:random content 2:rand:random content 3:rand-end:
number of random contents is not limited.
Example (WML code):
:rand-beg:<a href="http://domain1.com">link1</a>:rand:<a href="http://domain2.com">link2</a>:rand:<a href="http://domain3.com">link2</a>:rand-end:
Random tags you can use in all types of items (links, sites, text, forum, WML code,...)
Example (in link on new site):
Click on :rand-beg:new:rand:best:rand-end: site
TIP: if you want to display random number from selected interval of numbers you can use this format of random tag:
:rand-beg:NN-NN:rand-end:
Example:
:rand-beg:10-100:rand-end:
TIP2:If you want to display same value from last generated random tag, use @ in :rand-beg:@:rand-end: tag.
Example:
First number: :rand-beg:10-100:rand-end:, Same number: :rand-beg:@:rand-end:
Result:
First number: 63, Same number: 63
===============================================
This comment has been removed by the author.
ReplyDelete