More wapka functions4

 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! 


===============================================

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

10 comments:

  1. my website is beeter than ur's smileashok.blogspot.in with 1 crore viewers

    ReplyDelete
  2. http://live-tv-mobile.wapka.me
    http://live-tv-mobile.wapka.me
    http://live-tv-mobile.wapka.me
    http://live-tv-mobile.wapka.me

    ReplyDelete
  3. Thanks for sharing, Nice article @

    New Latest Technology Tricks !!

    www.techfetz.blogspot.com
    http://techfetz.blogspot.com

    * Mobile Tricks
    * Computer Tricks
    * Online Jobs
    * Earn Money Online
    * Latest Technology News
    * Internet Tips

    ReplyDelete
  4. Thanks dude, click #best naijapuse.xtgem.com

    ReplyDelete
  5. this article help me up and i hope it will help all wapmaster who is looking for this info.........
    check out more
    How To Add Wapka Last Update Manager Code Wapka Latest Updates Paging Code

    ReplyDelete