Você está na página 1de 32

Spacing:

Write command :br: on place where you want to insert new line point.

Font style:
If you want to format only single words or single group of words use formatting
commands:
One command have two parts - the begin and the end. formatted text have to be
enclosed to pair of commands. If you insert only one of commands, site will not
working!!!
Commands:
:b-beg: text :b-end: - bold text
:i-beg: text :i-end: - italic text
:u-beg: text :u-end: - underlined text
:big-beg: text :big-end: - big text
:small-beg: text :small-end: - small text
Example:
Professional :b-beg:site:b-end: about phones
This will be displayed like:
Professional site about phones

This formatting you cau use in any item (sites,links,texts,forums,...)

Color text formatting (only for WAP2): If you want to change text color, use tag:
:color-CLR:colored text:/color:
For change background color of text use tag:
:bgcolor-CLR:colored text:/bgcolor:
CLR is name of color or color code (e.g.: #000000)
Example:
This text is :color-#990000:red:/color: with :bgcolor-#0000FF:blue
background:/bgcolor:

Icon inserting to text:
To site,link or text you can insert icon from list on this site.
Numeric code is near every icon, which you must insert into command:
:icon-number:
Example for use command with icon:
This is icon :icon-251:

Elective tag for icons in forum,chat,blogs and private messages:
Syntax of tag:
:iconlist:PARAMETERS::LINE_FORMAT::DELIMITER:/iconlist:
Parameters have following format:
Parameter1=value, parameter2=value
Available parameters:
d - database. Available: forum, chat, pm, blogs
l - limit parameter. l parameter can have numberic value (1 - 50). It is maximal count
of icons 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 icons set parameter l on 10 and
parameter s on 1, if you want to display next 10 icons (11-20) leave parameter l on
10 and parameter s set on 2.

For Line format can be used following variables:
%text% - Icon replacement (string).
%icon% - Image of the icon
%url_icon% - URL of the icon (must be used with <img/> xHTML code. Example: <img
src="%url_icon%" />)

Line format can contains text,known values (%...%) or WML/xHTML tags.

With Delimiter you can set text or WML/xHTML tags which will separate icons.

Example:
:iconlist:d=forum,l=10::%icon% - %text%::<br/>:/iconlist:


Time function:
To insert actual time or date you can use pair of commands: :time-beg: a :time-end:
Displayed time you can format to any form from following parameters:
y ... year as two numbers (07)
Y ... year as four numbers (2007)
z ... number of day in year (001-365)
m ... number of month (01-12)
n ... number of month (without begin zero, 1-12)
M ... abbreviation of month name (Jul)
F ... month name (July)
d ... number of day in month (01-31)
j ... number of day in month (without begin zero, 1-31)
t ... number of days in month (28-31)
D ... abbreviation of day in week (Mon)
l ... day name (Monday)
h ... hour (01-12)
g ... hour (without begin zero, 1-12)
H ... hour (01-23)
G ... hour (without begin zero, 1-23)
a ... am/pm
A ... AM/PM
i ... minutes (00-59)
s ... seconds (00-59)
Example: :time-beg:H:i:s:time-end:
display: 19:07:44
Item example: Today is :time-beg:j.n.Y H:i:s:time-end: and it's beautiful day.


Update info functions:
To insert time or date of last update your WAP you can use tag :update:
Syntax of tag:
:update:time_format:/update: - This will display date of update from last updated
item of your WAP site.
:update-SITEID:time_format:/update: - This will display date of update from last
updated item from site ID: SITEID
time_format - More info about this parameter you can get in Time function

Example:
Last update: :update:j.n.Y H:i:s:/update:
or
Homepage last update: :update-0:j.n.Y H:i:s:/update:


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.


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:/userstyl
e:
:userstyle:background_color,text_color,links_color:name;text_on_button:/userst
yle:
Example:
:userstyle:#000000,#ffffff,#aaaaaa:Black;#009900,#aaaaaa,#999999:Green;Change
colors:/userstyle:
Display:
Change colors

This select menu is working only in WAP2(xhtml) version.


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

Tags for private messages:
Tags which allows you to display count of messages in inbox, outbox, trash or new
messages.
Syntax of tag:
:pmcount-BOX:
Variable BOX can have one of 4 values:
in - InBox
out - OutBox
tr - Trash/deleted messages
new - New messages
Example: You have :pmcount-new: new messages.

You can also use :info: tag to display more attractive information about new private
message.
Syntax of tag:
:info-pmnew:IS_VALUE::NO_VALUE:/info:
IS_VALUE - is displayed if user have 1 or more new messages. Can contains also %n%
variable, which will be replaced for actual count of new PM
NO_VALUE - is displayed if user have no new message
Example:
:info-pmnew:You have %n% new private messages::No new private message at the
moment:/info:

For access to private message box can be used tag in link URL.
Syntax of tag:
:pm: or :pm-BOX:
Alternative variable BOX can have one of 4 values:
in - Inbox
out - Outbox
tr - Trash
arch - Archive
new - Write new message

TIP: if you want to create link, to write new message with redefined user name use
this URL tag: :pm-new(USER_NAME):
Or with redefined user name and text use this URL tag: :pm-
new(USER_NAME@@TEXT):


Tags for friends function:
If you want to display informations about friends of your users use tag: :friends-FNC:
Variable FNC can containsone of following values:
-list - List of on-line friends
-ac - Total count of friends
-oc - Count of on-line friends
-act - Count of actived friends
-new - Count of new friend requests
-ref - Count of refused friends

Example: Actual count of your on-line friends is :friends-oc:

You can also use :info: tag to display more attractive information about friends.
Syntax of tag:
:info-FNC:IS_VALUE::NO_VALUE:/info:
FNC can have these values:
frnew - is displaying information about new friend on-line
fronl - is displaying information about all friends on-line
frreq - is displaying information about request of new friend
IS_VALUE - is displayed if is returned value 1 or more. Can contains also %n%
variable, which will be replaced for actual count.
NO_VALUE - is displayed if is returned value 0
Example:
:info-fronl:You have %n% friends on-line::No friend on-line at the moment:/info:


Tags for statistics:
For statistics on your site you can use tag :stats:
Syntax of tag:
:stats-TYPE:
Variable TYPE can contains one of these values:
ru - count of registered users
lastlog-NN - list of last logged users (NN - max. count)
lastlog-NN-link - list of last logged users (NN - max. count) with link. After click on
username will be displayed user profile
lastreg-NN - list of last registered users (NN - max. count)
lastreg-NN-link - list of last registered users (NN - max. count) with link. After click on
username will be displayed user profile
todaylog-NN - list of today logged users (NN - max. count)
todaylog-NN-link - list of today logged users (NN - max. count) with link. After click
on username will be displayed user profile
todayreg-NN - list of today registered users (NN - max. count)
todayreg-NN-link - list of today registered users (NN - max. count) with link. After
click on username will be displayed user profile
users - list of on-line users
users-link - list of on-line users with link. After click on username will be displayed
user profile
phones - list of on-line phones
country - list of on-line countries
olmc - number of the most users on-line (on-line record)
olmc-PARAM - number of the most users on-line for last day,week or month.
Parameter PARAM can contains values t,w or m (t=today,w=week,m=month).
Example: :stats-olmc-w:
olmd - date and time of the most users on-line
olmd-d - only date (without time) of the most users on-line
olmd-PARAM - date and time of the most users on-line for last day,week or month.
Parameter PARAM can contains values t,w or m (t=today,w=week,m=month).
Example: :stats-olmc-w:
usrloc - User name with his location (location is link)
usrloc-link - User name with his location (location and user name is link)
online - count of on-line users (same as function in edit site menu). This tag is not
storing details about on-line record. So if you want to using also tag :stats-olmc/d:,
use original on-line function from edit site menu
online-l - Count of logged on-line users
online-n - Count of nonlogged on-line users
online-NN - Count of on-line users on site ID: NN
ausers-NN - Most active users in forum (NN - max.count)
ausers-NN-link - Most active users in forum (NN - max.count) with link. After click on
username will be displayed user profile

Example: Last logged users on this site: :br: :stats-lastlog-5:

For variables: lastlog, lastreg, todaylog, todayreg you can set NN also for more
sites. Example:
:stats-lastlog-10: This will display records: 0,1,...,10
:stats-lastlog-10/2: This will display records: 11,12,...,20
:stats-lastlog-10/3-link: This will display records (links): 21,22,...,30



Elective tag for user statistics:
Tag :userstats: is designed for advanced users! For beginners is recommended to use
tags from site "Tags for statistics".
Syntax of tag:
:userstats:PARAMETERS::LINE_FORMAT::DELIMITER:/userstats:
Parameters have following format:
Parameter1=value,parameter2=value,parameter3=value
Available parameters:
d - source database parameter.d parameter can have one of 6 values:
-ru: database of registered users
-oa: database of all actually on-line users
-ol: database of on-line users excluding anonym/unlogged users
-on: database of on-line users, only anonym/unlogged users
-fa: database of all friends
-fo: database of on-line friends
o - ordering parameter.o parameter can have one of 6 values (d=ru;oa;ol;on):
-n: order list by name
-dr: order list by date of registration
-dl: order list by date of last login
-cl: order list by count of logins
-cr: order list by count of credits
-t: order by time of last displayed site (only for on-line database: oa,ol)
l - limit parameter. l parameter can have numberic value (1 - 100). It is maximal
count of lines 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 users set parameter l on 10 and
parameter s on 1, if you want to display next 10 users (11-20) leave parameter l on
10 and parameter s set on 2.
a - Anonym name parameter. a parameter is available only for on-line database
(d=oa).
n - No result text parameter. Set this parameter if you suppose, that you result can
have no lines. For example if you displaying list of registered users for last hour.
tl - Login time limit parameter. This parameter must have numeric value in hours.
With this parameter you can display list of users logged for last N hours. Parameter is
available only for registered users database (d=ru)
tr - Registration time limit parameter. This parameter must have numeric value in
hours. With this parameter you can display list of users registeres for last N hours.
Parameter is available only for registered users database (d=ru)
wg - groups parameter. This parameter must have one or more (separated by space
character) numeric values of group ID. Example: "wg=1 3 12". (d=ru;oa;ol;on)
ws - status parameter. This parameter must have one or more (separated by space
character) numeric values of user status: 0=new user, 1=active user, 2=perm.
blocked user, 3=temp. blocked user (d=ru;oa;ol;on)
wp - permission parameter. This parameter must have one or more (separated by
space character) numeric values of admin/moderator permission: 1=usual user,
2=forum/chat moderator, 3=local admin, 4=global admin. (d=ru;oa;ol;on)
wc - credit parameter. This parameter must have two numeric values separated by
hyphen. If wc parameter is set, then are displayed only users from credit interval n1-
n2. For example, if you want to display users with more than 10 credits but with less
than 100 credits set wc=10-100 (d=ru;oa;ol;on)
wl - location parameter. This parameter must have one or more (separated by space
character) values of site/forum/chat ID, where in case of forum insert in front of
forum ID characterf and in case of chat insert c. Example: "wl=1 f3 c12".
df - date format parameter. With this parameter is possible set own time format for
variables %rcdate% and %lcdate% (for example: df=j.m H:i)
ft - use this parameter, if you wanna display new,active or refused friends. Allowed
values: act, ref, new. (d=fa;fo)
x - this parameter define special option for DELIMITER field. With value s (x=s) is
DELIMITER field used as search field of users.
With value u (x=u) is DELIMITER field used as identifier of user name, especially if you
wanna display data of selected user. (In case of d=fa or d=fo are displayed friends of
selected user)
aau - anonym avatar URL parameter. Picture from this parameter will be used in case
of anonym user in variable %picture% and %urlpicture%. Example:
"aau=http://domain.com/picture.jpg". (d=oa,ol,on)

Only mandatory parameter is source database d. In case of not set others
parameters will be used default values:
o: n
l: 50
s: 1
a: Anonym
n: NO_VALUE
tl: NO_VALUE(max time)
tr: NO_VALUE(max time)

For Line format can be used following variables:
%name% - User name
%tname% - User name (only text. No icons, no color, no picture)
%lname% - User name with link (link on profile or new private message form)
%location% - Location with link of user (if user is off-line will be displayed text "OFF-
LINE" instead of link with location)
%tlocation% - Location without link, only text information
%akttime% - time different of aktual time and time of last visited site
%ipx% - IP adress in format 123.123.123.xxx
%ip% - IP adress of user
%country1% - Whole name of coutry
%country2% - abbreviation of country (2 letters)
%country3% - abbreviation of country (3 letters)
%flag% - Flag of country
%browser% - Browser of user
%ltime% - Last login time of user (hh:mm:ss)
%ldate% - Last login date of user (YYYY-MM-DD)
%lcdate% - Last login time of user (date format from df parameter)
%rtime% - Registration time of user (hh:mm:ss)
%rdate% - Registration date of user (YYYY-MM-DD)
%rcdate% - Registration date of user (date format from df parameter)
%clogin% - Count of logins
%picture% - Picture from profile
%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%" alt="%tname%"/>
%groups% - Group/groups of user
%credit% - actual amount of credit
%prvar-N% - value from profile where N is variable ID. For example if you want to
display information from ::var-1:: use %prvar-1%
%urlprofile% - URL to user profile. This variable generate only URL, not whole link
code!!! It means, that must be used with HTML code. Example: <a
href="%urlprofile%" > %name% </a>
%urlprcom% - URL to user profile comments. This variable generate only URL, not
whole link code!!! It means, that must be used with HTML code. Example: <a
href="%urlprcom%" > %name% </a>
%urlpchat%: - URL to the private chat with the user
%urlpm% - URL to send new private message to the user. This variable generate only
URL, not whole link code!!! It means, that must be used with HTML code.
Example: <a href="%urlpm%" > %name% </a>
%status% - user status (on-line/off-line)
%cprcom% - count of comments in profile
%urlfradd% - URL to add user as a friend. This variable generate only URL, not whole
link code!!! It means, that must be used with HTML code. Example: <a
href="%urlfradd%" > Add to my friends list </a>
%urlpopup% - URL to send new POP-UP message
%block_time% - Elapsed time of blocked user
%block_reason% - The reason, why was user temporarily blocked
%rights% - User rights (user,moderator,admin)
%sn% - Serial number of displayed row
%acc% - Link to activate new friend (d=fa;fo)
%ref% - Link to refuse friend (d=fa;fo)
%gfcount% - Displaying count of files in user's gallery.
%vote% - Displaying result of voting from profile

Line format can contains text,known values (%...%) or WML/xHTML tags

With Delimiter you can set text or WML/xHTML tags which will separate user
records.

TIP: Set parameter l=0 if you want to display only count of lines from result. In this
case is LINE_FORMAT and DELIMITER ignored

Examples:
Example 1: List of registered users ordered by name. Will be displayed only first 10
users. One line will contains user name and country flag.
Code example: :userstats:d=ru,o=n,l=10::%name% %flag%::<br/>:/userstats:
Result example:
Ann [FLAG]
Jane [FLAG]
John [FLAG]
Mike [FLAG]
...
Example 2: List of on-line users ordered by time of last visited site. In case of anonym
user will be displayed text "non-logged user". One line will contains user name with
link, browser and bold IP adress.
Code example: :userstats:d=oa,o=t,a=non-logged user::%lname% %browser%
(<b>%ip%</b>)::<br/>:/userstats:
Result example:
Ann Nokia 6230 (123.12.123.12)
Sarah LG B2050 (234.23.234.23)
non-logged user Nokia E66 (111.22.111.22)
...
Example 3: List of users logged for last 24 hours ordered by date of last login. All
users will be on one line separated by comma. In case of no user logged for last 24
hours will be displayed text "No user today".
Code example :userstats:d=ru,o=dl,n=No user today,tl=24::%name%::, :/userstats:
Result example:
John, Joe, Noe, Ann

Example 4: Searching users via elective tag
Code example:
<form method="get" action="site_100.xhtml">
<input type="text" name="get-search" value=":get-search:" />
<input type="submit" value="Search user" /></form>
:userstats:d=ru,x=s,n=user not found::%lname%:: :get-search: :/userstats:
Result is search form. Variable "get-search" is transferring input from user (minimal 2
characters are required) and result is list of searched users.



Tags for user details:
If you want to display details about user oneself use tag :user-FNC:
Variable FNC can contain's one of following values:
name - user name with icon,color,...
tname - User name in the text form (without icon, color,...)
ftheme - count of created themes in forum
fmsg - count of messages in forum
csites - Count of displayed sites in actual session
time - Total time of actual session
credit - Amount of user's credit
groups - Groups of user.
count - Count of logins.
prcom-FNC - Last comment from profile (FNC can have one of these values: date,
name or text)
prvar-N - Information from profile. For example if you want to display information
from ::var-1:: use :user-prvar-1:

Example:
Time, which user spent on site:
:user-time:

If you want to edit users profile anywhere on your site use tag :eprofile:
Tag syntax:
:eprofile-SITE_ID:VARIABLES@@SUBMIT_BUTTON_TEXT:/eprofile:
SITE_ID - ID of site, where will be user redirected after submit profile details.
VARIABLES - more about variables read in profile edit site.
SUBMIT_BUTTON_TEXT - text on submit button.
Example: :eprofile-10: Name: ::var-1::@@Set your name:/eprofile:
TIP1: - SITE_ID can be used also in this format: ID1-ID2. ID1 is used, when profile is
updated successfully and ID2 is used, when mandatory field is not filled.
TIP2: In VARIABLES area can be used ::photo::, if you wanna allow your user update
profile photo via this form.

If you want to edit free group anywhere on your site, use tag: :egroup:
Tag syntax:
:egroup:PARAMETERS:/egroup:
Parameters:
g - group or groups ID (g=1,2,3)
s - site ID, where will be user redirected
sx - site ID, where will be user redirected in case of error (empty mandatory field).
b - button text (b=change group)
t - display type: select or checkbox (t=select)
Example:
:egroup:g=1,2,3;s=0;b=continue;t=checkbox:/egroup:

You can also use :info: tag to display more attractive information about user.
Syntax of tag:
:info-FNC:IS_VALUE::NO_VALUE:/info:
FNC can have this value:
comnew - is displaying information about count of new comments in profile
pchat - is displaying count or names of users waiting in private chat (with this
function can IS_VALUE contains also variable %user% to display name/s of waiting
user/s)
popup - is displaying count new pop-up messages (If you wanna use default wapka
form with user name, use tag :info-popup:-:/info:)

IS_VALUE - is displayed if is returned value 1 or more. Can contains also %n%
variable, which will be replaced for actual count.
NO_VALUE - is displayed if is returned value 0
Example:
:info-comnew:You have %n% new comments::No new comments at the
moment:/info:
TIP: you can define also more FNC values: FNC,FNC,FNC
Example::info-comnew,pmnew:You have %n% new events::no new event:/info:



Tags for files:
To create link on file for download use tag:
:file-FILE_ID:
Example: :file-1:
Note: ID of every uploaded file you can find in file manager

Tags displaying informations about file:
Tag syntax:
:fstat-FUNCTION-FILE_ID:
Variable FUNCTION can have following values:
name - File name
dl - Total count of downloads
dltoday - Today count of downloads
added - Date of file upload
last - Date of last file download
browser - Name of last browser, which downloaded file
user - Name of last user, which downloaded file
size - File size
uploader - Name of user, who uploaded file (if file was uploaded by File Uploader
function)
dirname - Directory name (instead of FILE_ID use directory name)
Example: File size is: :fstat-size-1:

Tags displaying informations about last uploaded file by user
Tag syntax:
:fustat-FUNCTION:
Variable function can have following values:
user - Name of user which added file
size - File size
name - File name
date - Date of file upload

Tag displaying summary informations about files:
Tag syntax:
:ftstat-FUNCTION:
Variable FUNCTION can have following values:
count - Count of all uploaded files
size - Size of all uploaded files
dl - Count of downloads of all files
dlsize - Total traffic.
maxupl - actual maximal size of file

Elective tag for files:
Tag :filelist: is designed for advanced users! For beginners is recommended to use
above tags.
Syntax of tag:
:filelist:PARAMETERS::LINE_FORMAT::DELIMITER:/filelist:
Parameters have following format:
Parameter1=value,parameter2=value,parameter3=value
Available parameters:
o - ordering parameter. o parameter can has 5 values:
-n: order list by file name
-s: order list by file size (the biggest first)
-d: order list by count of downloads
-tl: order list by last download time (last downloaded first)
-tu: order list by time or upload (new first)
d - directory parameter. This parameter must have one or more (separated by space
character) values of directory ID. If you want to display files from User upload
directory skip this parameter
If you want to display files from User gallery, use directory ID "g" (d=g)
l - limit parameter. l parameter can have numeric value (1 - 50). It is maximal count of
lines (files) 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 files set parameter l on 10 and
parameter s on 1, if you want to display next 10 files (11-20) leave parameter l on 10
and parameter s set on 2.
n - No value parameter. This parameter contain's text, whis is displayed, if no file is
not displayed.
credit - this parameter define, how many credits will be increased or decreased from
users account for download of file (credit=-10)
ucredit - this parameter define, how many credits will be increased or decreased from
users account of user, who uloaded file (ucredit=10)
nc - set value of this parameter to 1 (nc=1) if you don't wanna update counters of file
when is downloaded (useful for picture previews)
tu - With this parameter is possible to display files uploaded for last XX hours. For
example tu=5 displays only files uploaded for last 5 hours.
dc - default comment parameter. Value from this parameter will be used instead of
%comment% if %comment% is empty
x - this parameter define special option for DELIMITER field.
- With value s (x=s) is DELIMITER field used as search field of files.
- With value u (x=u) is DELIMITER field used as field, where you can set user name.
With this option you can display files uploaded by selected user
- With value i (x=i) is DELIMITER field used as field, where you can set File ID
(from %file_id%). With this option you can display only one selected file

Default values of parameter (if it's not set):
o: n
d: [User uploads]
l: 20
s: 1

For Line parameter can be used following variables:
%name% - File name
%lname% - File name (link)
%url% - URL of file, must be used with <a> xHTML code. Example: <a
href="%url%">%name%</a>
%size% - Size of file
%count% - Count of downloads
%time_added% - Time, when file was uploaded (DD.MM.YYYY HH:MM:SS)
%time_downl% - Time, when file was last time downloaded (DD.MM.YYYY
HH:MM:SS)
%user_upl% - User, who uploaded file
%luser_upl% - User, who uploaded file (link)
%user_last% - User, who last time downloaded file
%luser_last% - User, who last time downloaded file (link)
%comment% - comment of file
%file_id% - File ID
%file_type% - Content-type of the file
%wcode% - WCODE code
%del% - Create link to remove file uploaded by user. Only owner(uploader) or
moderator(with edit profile permission) can remove file and only files from gallery
(d=g) is possible to remove with this link!
%del-SiteID% Same as %del%, but user will be redirected to SiteID, when file is
removed
%var-ID% Text variable
%var-ID(f=FUNCTION)% File variable. Function f can contains these values: img,
link, url, id (img is file in IMG HTML code, link is file in A HTML code, url is URL
of the file, idis file ID from file manager)
%sn% - Serial number of displayed row

Line format can contains text,known values (%...%) or WML/xHTML tags.

With Delimiter you can set text or WML/xHTML tags which will separate files.

Example:
:filelist:o=s, d=1 2 5, n=no files available::<b>%lname%</b><br/>Size:
%size%::<hr/>:/filelist:

Example 2 (simple gallery):
1. Add File uploader with Directory: [x] User gallery
2. Add tag :filelist: d=g,x=u :: %lname% %del-0% :: :get-user: :/filelist: (user is
redirected to the homepage if remove file)
3. Into the autocontent of your profile add code: <a href="site_ID.xhtml?get-
user=:getid-profile::admin-hash-amp:">Gallery</a>
4. That's all, but make sure, that :filelist: from point 2. is in same site ID, as
site_ID.xhtml from point 3.!

Tips:
1. Use parameter l=0 if you wanna display count of files instead of the list.
1. Use parameter l=-1 if you wanna display total size of files instead of the list.

IMPORTANT: Make sure, that you own all rights and licences to publish uploaded
files, otherwise your site can be blocked by admin according to Wapka.Mobi terms of
service


Blogs:
For blogs in your site are needed 2 wapka tags:
1. URL tag :usr-blog:. This tag is creating link to the new blog form where user can
submit own blog.

2. Elective tag :bloglist:PARAMETERS::LINE_FORMAT::DELIMITER:/bloglist:
Parameters have following format:
Parameter1=value,parameter2=value,parameter3=value
Available parameters:
o - ordering parameter:
-n: new blogs first
-o: old blogs first
l - limit parameter.l parameter can have numberic value (1 - 100). It is maximal count
of lines 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 blogs set parameter l on 10 and
parameter s on 1, if you want to display next 10 blogs (11-20) leave parameter l on
10 and parameter s set on 2.
n - No result text parameter. Set this parameter if you suppose, that you result can
have no lines.
t - time format parameter for %time% variable.
v - enable/disable counter for blogs. Set this parameter to 1 v=1 if you wanna
increase count of visits (%views% variable)
x - this parameter define special option for DELIMITER field.
- with value (x=u) is DELIMITER field used as users name identificator. You can
display blogs from selected user.
- with walue (x=i) is DELIMITER field used as blog id identificator (from %id%
variable). You can display details of selected blog by his ID.

For Line format can be used following variables:
%name% - User name
%tname% - User name (only text. No icons, no color, no picture)
%lname% - User name with link (link on profile or new private message form)
%time% - The time, when blog was created (default format is j.m H:i, it's possible to
change it in t parameter)
%text% - Full text of blog
%text-N% - Part of blog text (%text-50% displays first 50 letters of blog text)
%title% - Blog title
%views% - Count of views (counter is updated, only if parameter v=1)
%id% - Blog ID. (useful if you wanna use parameter x=i)
%del% - Link to delete blog (only moderator or user who created blog can see this
link)
%edit% - Link to edit blog (only moderator or user who created blog can see this link)
%comments_url% - URL of comments for blog (It's only URL, must be used in xHTML
code)
%comments_count% - Count of comments
%sn% - serial number/line identifier

Line format can contains text,known values (%...%) or WML/xHTML tags

With Delimiter you can set text or WML/xHTML tags which will separate blogs.

TIP: Set parameter l=0 if you want to display only count of lines from result. In this
case is LINE_FORMAT and DELIMITER ignored

Example: <a href=":url-usr-blog:">Create new blog</a><br/>
:bloglist:o=n,l=10::%sn%. <a href="site_100.xhtml?get-blog=%id%:admin-hash-
amp:"><b>%title%</b></a><br/> <small>Created by: %name%</small><br/> %text-
50%...::<hr/>:/bloglist:




Info tag for admin:
:admin-FNC:
This tag can display some details needed by admin (you).
FNC can have following variables:
fn - count of new files uploaded by users.
un - count of new registered users waiting to accept by admin
spam - count of reported SPAM
hash-amp - generate hash string important to keep session in admin mode.
(&hash=XXXXX)
hash-qm - generate hash string important to keep session in admin mode.
(?hash=XXXXX)
hash-input - generate hash string with <input /> important to keep session in admin
mode (<input type="hidden" name="hash" value="XXXXX" />)
Example: Users waiting to accept: :admin-un:

This tag should be visible only in admin mode, you can set this option in items
visibility part of admin mode!


Last Update is a new function to Wapmasters. With it, you can add and manage the
latest content in your site simply.
What's more, by using Deployment tools/list-update tag, it becomes easy to show
these latest content to your users.
Usage:
Tag :list-update: is designed for advanced users! For beginners is recommended to
use Deployment tools.
Syntax of tag:
:list-update:PARAMETERS::LINE_FORMAT::DELIMITER:/list-update:
Parameters have following format:
Parameter1=value,parameter2=value,parameter3=value
Available parameters:
parameters values description
o ordering parameter. o parameter can has 4 values:

ca order list by create time ASC.

cd order list by create time DESC

la order list by lastupdate time ASC.

ld order list by lastupdate time DESC.
n
No value parameter. This parameter contain's text, whis is displayed, if no record is
not displayed.
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 updates set parameter l on 10 and
parameter s on 1, if you want to display next 10 updates (11-20) leave parameter l on
10 and parameter s set on 2.
l
limit parameter. l parameter can have numeric value (1 - 50). It is maximal count of
lines (updates) for one site
t
Displayed time you can format to any form from following parameters: Example: Y-
m-d H:i:s, will display: 2012-12-12 18:18:51

y year as two numbers (12)

Y year as four numbers (2012)

z number of day in year (001-365)

m number of month (01-12)

n number of month (without begin zero, 1-12)

M abbreviation of month name (Jul)

F month name (July)

d number of day in month (01-31)

j number of day in month (without begin zero, 1-31)

t number of days in month (28-31)

D abbreviation of day in week (Mon)

l day name (Monday)

h hour (01-12)

g hour (without begin zero, 1-12)

H hour (01-23)

G hour (without begin zero, 1-23)

a am/pm

A AM/PM

i minutes (00-59)

s seconds (00-59)
Default values of parameter (if it's not set):
parameter default value
o cd
l 10
s 1
t m-d-Y H:i:s
For Line parameter can be used following variables:
variables description
%title% displayed title
%time_create% Time, when record was created (DD.MM.YYYY HH:MM:SS)
%time_lastupdate% Time, when record was last updated (DD.MM.YYYY HH:MM:SS)
%url_tag%
URL of update, must be used with xHTML code. Example: <a
href="%url_tag%">%title%</a>
%icon% the displayed icon
Line format can contains text,known values (%...%) or WML/xHTML tags.
Example:
simple
item
:list-update:n=no last update available::%time_create% <b>%title%</b><a
href="%url_tag%">[check]</a>%icon%::<br/>:/list-update:
works with :list-update:s=:geti-number(1):,l=5,o=cd,t=H:i:s,n=no last update
paging
tags
available::%time_create% <b>%title%</b><a
href="%url_tag%">[check]</a>%icon%::<br />:/list-update:
:paging: n=:geti-number(1):, u=site_0.%ext%?get-number=%n% :: %prev%-%n%-
%n%-%n%-%next% :/paging:







Other tags:
:phone: - display type and manufacturer of phone

:IP: - display IP address of user

:country-n: - display country of user (n:1,2,3,4)
-n=1: whole name of country
-n=2: abbreviation of country (2 letters)
-n=3: abbreviation of country (3 letters)
-n=4: country flag
Example: :country-2: display GB

:search-xxx: - display search form
-xxx=google: google search engine
-xxx=yahoo: yahoo search engine
Example: :search-google:

:picture: - (only in new link)
Use tag :picture: as link name if you want to display link with image on image in link
URL. Link URL must contains link on picture!

:user: - display login name of logged user
:profile_picture: - display picture of user from selected picture in profile
:profile_picture_url: - display picture URL of user from selected picture in profile
(must be used with xHTML code <img src=":profile_picture_url:" />)

:login: - display login form. After login will be user redirect on same site as is login
form. If you want to redirect user on other site use tag: :login-SiteID:.
Example: :login-0:
:login-SiteID:FORMAT:/login: -with this tag you can set own format of login form.
default FORMAT: Login: <br/> %login% <br/> Password: <br/> %pass% <br/> %al%
enable automatic login <br/> %submit%

:include-SiteID: Tag paste whole content of SiteID on actual site.
:include-SiteID-notags: - same as previous tag, but without begin and end <div> tags

:getid-FNC: is useful in autocontent of forum/chat/site/profile. With this you can find
out actual ID.
-FNC=site: Actual Site ID
-FNC=forum: Actual Forum ID
-FNC=chat: Actual Chat ID
-FNC=url: Actual URL of the site
-FNC=profile: Actual profile user name
Example: Actual site ID is: :getid-site:

:ad:AD_ID@@REPLACEMENT:/ad: is tag to display advertisement.
AD_ID is advertisement ID. You can find this ID in [::EDIT SITE::] / [Advertisement] /
[Manage advertisements]
AD_ID can contains also more IDs separated by comma, in this case system try first
ID and if ad is not received (for low fillrate), then try next ID.
REPLACEMENT is text of HTML code, which is used, if any of advertisements from the
list is not received.

:math,DEC:FUNCTION:/math: is processing mathematical functions.
DEC is count of decimals in the result of :math: function
FUNCTION can contains numbers and these operands: - + * / ( )
Example: :math,2: (2+3)/2 :/math:, result is 2,50



Link on existing site (URL tags):
If you want to create a link on existing site from your WAP create new link and write
command :site-ID: instead of URL. Use site ID as ID, where you want to direct the link
(Site ID is written at the bottom of every site in admin mode).
Example: If you want to make link on home page: :site-0: (Home page has always Site
ID 0)
If you want to create link on previous site, instead of site ID insert character <
Example: site-<:
This way you can put link with text "back" with URL ":site-<:"
on every page (also to autocontent). If you want to create link which will switch
WAP1/WAP2 version insert as site ID character w
Example: (:site-w:)

If you want to create link on existing forum or chat use tags :forum-ID: or :chat-ID:
Example::forum-1:

If you want to create link on registration site use tag instead of URL: :reg:. After
registration will be user redirected on same site as registration link is. If you want to
redirect user on other site use tag :reg-SiteID:. Example: :reg-0:

If you want to create link on sites for logged users settings use this tag instead of link
URL:
:usr-FNC
Variable FNC can have this values:
pass - site to change password
set - site to change settings
profile - site to change user profile
myprofile - view own user profile
logout - site to logout logged user
prcom - site with profile comments
popup - pop-up messages
menu - menu site (:=:)

TIP: You can use tag :usr-FNC: in this form: :usr-FNC-SiteID:
Example: :usr-profile-0: - user will be redirected to the homepage when he edit his
profile

If you want to display site with user friends, use URL tag: :friends:
:friends-new: - site with new friends requests
:friends-act: - site with list of users, for whose I am friend
:friends-ref: - site with refused users

TIP: if you want to use URL tag in xHTML/WML code use tag :url-URLTAG:
Example: <a href=":url-site-0:">Home Page</a>


Transfer values via URL and paging tags:
For transfer values via URL you can use tag :get-VARIABLE:
This tag has 3 optional options:
1. You can set default value: :get-VARIABLE(DEFAULT):. Default value will be used, if no value is transfered via URL
2. For numerical values use format: :geti-VARIABLE:
3. For values, which should be used in URL use format: :getu-VARIABLE:, this tag transform all special chars to URL
correct characters. For example: Hello world -> Hello%20world
4. For allowed values use format :get-VARIABLE(DEFAULT)[ALLOWED_VALUES]:,every value is separated by ";",
see Example 3 for more info.
5. If you wanna transfer values via POST method use format: :getp-VARIABLE: (Variable transfered via POST
method has also format get-VARIABLE=VALUE, not post-VARIABLE=VALUE !).

Variable transfered in URL has format: get-VARIABLE=VALUE
Example 1:
In your homepage add this xHTML code:
<a href="index.xhtml?get-test=Wapka.Mobi">Display text</a>
:get-test:
This code displays link Display text and if user click this link, text Wapka.Mobi will be displayed under this link.
Instead of tag :get-test: will be displayed text, which is located in URL as VALUE of get-test variable (get-
TEST=WAPKA.MOBI)
Example 2:
<form method="get" action="index.xhtml">
Insert your name:
<input type="text" name="get-hello" />
<input type="submit" value="Display name" /></form>
:get-hello(no name):
This code is displaying form, where if user insert his name and confirm, this name is displayed under the form.
Default value is no name if user insert blank name or when form is displayed first time.
Example 3: this code is displaying select menu with list of files from selected directory.
<form method="get" action="index.xhtml">
<select name="get-directory">
<option value="1 2">ALL</option>
<option value="1">pictures</option>
<option value="2">videos</option>
</select>
<input type="submit" value="display files" /></form>
:filelist: d=:get-directory(1 2)[1 2;1;2]: :: %lname% :: <br/> :/filelist:
As you can see, in this example was used :get: tag with ALLOWED_VALUES (:get-directory(1 2)[1 2;1;2]:), to set
allowed values is very important in this case, because hacker can edit URL and change parameters of your :filelist:
tag:
index.xhtml?get-directory=1,credit=100000. With this URL is generated list of files from directory ID 1 and every
download is increasing 100000 credits for user! But if you use :get: tag with defined allowed values and transfered
value is not found in this definition, then is used default value.

Paging tag: This tag is useful as additive for elective tags, this tag is generatig numbers with links.
Syntax:
:paging:PARAMETERS::FORMAT:/paging:
PARAMETERS has following format:
parameter1=value, parameter2=value, parameter3=value
Available parameters:
n - actual page number
m - maximum count of sites
u - form of URL (available variables: %n%,%ext% [%ext% = wml or xhtml or html])
Default FORMAT:
%first%.%prev%.%next%.%last%..%n%.%n%.%n%.%n%.%n%..%nlast%
FORMAT is not mandatory, use blank character if you wanna use this default FORMAT.
Example 1:
:paging:n=:geti-n(1):, m=10, u=index.xhtml?get-n=%n%:admin-hash-amp: :: :/paging:
This tag is generating 10 links:
1.<.>.>>..1.2.3.4.5..10
!IMPORTANT: Is very important to use tag :geti-...: in this case, because user can edit variable get-n in URL and
change your code! For example user use URL index.xhtml?get-n=1,m=100 and generate 100 sites instead of 10!
Example 2
This is example of real use of electrive tag, get and paging tag.
:userstats: l=6, s=:geti-number(1): :: %name% :: <br/> :/userstats:<br/>
:paging: n=:geti-number(1):, m=10, u=site_10.%ext%?get-number=%n% :: %prev%-%n%-%n%-%n%-%next%
:/paging:
The code above displays list of 6 registered users and under this list are 5 links:
John
Mark
Emma
Steve
Frank
Linda
<-1-2-3->
As s parameter of :userstats: tag is used tag :get: with variable name number and default value 1
In this case is again VERY IMPORTANT to use tag :geti-number: instead of :get-number: because hacker can replace
URL from get-number=1 to get-number=1,d=fa or add other parameters and change your elective tag. Tag :geti-...:
displays value 0 if detect string instead of integer value

TIP: parameter m can be calculated automatically if you use elective tag first (:userstats: or :filelist:) and then
:paging: tag without m parameter. In this case is possible to use variable %tnlast% in paging FORMAT, this variable
displays text of the last page (hidden m parameter).



WapBrowser:
URL:
http://

Go!

Function WapBrowser is for more confortable adding of new links. To form you can insert link (URL) of site, from
which you want to take new link. On this site you can move as in your built wap browser (click on links, use
forms,...) but at the bottom of site is link [menu]
After click on this link choose use link from site. Here you have list of every link on this site. Now only click on
link, which you want to add on your site and WapBrowser will transfer you on page for adding new link with filled
values name and URL. Now only set other parameter (formatting, style,...) and it is done.
Why do you need WapBrowser?
Imagine, that you saw on any page a link on a good game, theme or anything else. This link you would like to have
on your site and here is the problem! You can add this link only from your PC, because copy link from any page by
phone is too complicated or impossible. WapBrowser solves this problem. Simply, go on site (by WapBrowser),
select link, which you want to add and it's done :)

Você também pode gostar