Understanding Forumlist Tag in Wapka

In this lengthy tutorial I will try to illustrate all uses of wapka forumlist tag. I will show you how to and when use this code.. Keep reading!

Forum help you to gather info or comment from the users, remember that users have the best suggestion about your services. This tutorial was requested by wapkatutor user some days ago, now I am adding it on his request.
After this tutorial, you will be able to use :forumlist: tags in wapka and also will be able to allow users to read or write comments on your site as like all other forums.. :)
You need to do the following in order to learn the wapka forumlist tag..


  1. Login to your free wapka account
  2. Goto Admin Mode
  3. Add the new forum via ES > Forum
    1. Write Forum Name: Demo
    2. Forum Type: Simple
    3. Item will be visible for: In admin mode
    4. It should look like this picture..
  4. Now click the created forum and note down its forum ID, You can find the forum ID at the bottom right of the forum site under the EDIT SITE Link.. like this picture, instead of black marked space you will see the forum ID
  5. Now goto the main page of your site, and add the following code via ES > WML/xHTML code

    In above code change XXXXXX with the noted Forum ID. Add this code and check what it displayed... It will display nothing at this time.. Now to add new messages in our forum we need to add the form to add messages, add the following code via ES > WML/xHTML code

    Change ID with the noted forum ID in above code.. After that add new message via the form and immediately you will see the message via code in :forumlist: that we have added above..
  6. Now if you like you can change the :forumlist:--------:/forumlist: code that we used in step 5. For this purpose you need to understand this tag, lets do it in this step..
    1. Forumlist code starts with :forumlist: and ends on :/forumlist:
    2. We seperate the DELIMITERS, LINE_FORMAT and PARAMETERS with the :: i.e. :forumlist:PARAMETERS::LINE_FORMAT::DELIMITERS:/forumlist:
    3. Now instead of PARAMETERS we can use following values. You can separate two or more values with a comma..
      1. f=ID ID can be any Forum ID. Like f=12345. You can add two forum by separating with a space, like f=12345 123456
      2. t=TIME_FORMAT this defines the time format for %time% in LINE_FORMAT.. Like you can use t=-- this will display time as 1 minute ago, two weeks ago etc
      3. l=1-200 This will define the number of messages in one page. Minimum messages is 1 and maximum messages are 200 per page. You can use l=0 if you like only count of messages.. For example, l=2 this will display the two messages only.
      4. s=PAGES You can set the target page with this value.. 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.
      5. o=ORDER order parameter can have two values: n (new first) and o (old first).. So if you want to display the old messages first set o=o and set o=n if you wanted to display new messages first.
      6. Now you can write more parameter by using this code: :forumlist:f=ID,o=n,s=1,l=1::LINE_FORMAT::DELIMITERS:forumlist:
        You can see that we have separated values via comma. You can reorder it as you like but always separate it with comma and parameter should be used before the ::.
    4. For Line format can be used following variables. All variables have different values stored in wapka server. Thats why wapka has lots more than you can imagine.
      1. %name% User name of the user who added the message. If you will add the message than your username will be administrator
      2. %tname% User name only text without Icons or colors etc.
      3. %lname% Adds the link to user profile who has added the message, if its administrator then user will goto the new PM page.
      4. %time% Time of message
      5. %text% Text of the message or body of the message
      6. %ip% IP address of the user who has added the message.
      7. %ipx% IP address of the user who added the message but last three digits hidden.
      8. %browser% Browser of the user. i.e. Opera Mini etc
      9. %flag% Flag of the users country..
      10. %country1% Full country name.. i.e. Pakistan, India etc
      11. %country2% Abbreviation of country 2 letters.
      12. %country3% Abbreviation of country 3 letters.
      13. %prvar-N% Profile variable from user profile, I will add tutorial on profile variable but not in this tutorial..
      14. %urlpicture% URL of picture from profile. This variable generate only URL, not whole picture code!!! It means, that must be used with HTML image code. i.e.

      15. %urlprcom% This varialbe create the link to user profile comments who added the message.. This tag must be used with HTML link/anchor tag.i.e.

      16. %urlpm% Same like %rcom% but it creates link to the user Private Mwssages if he/she is your reg. member.
    5. Instead of DELIMITERS you can use any HTML code like line beak. Actually this is the separator adding space.. i.e you can add anthing that you wanna use as separator.. It can be line break, hard line, simple text or any other thing..
  7. You can do whatever you like in wapka forumlist just follow the rules.. :)

I hope my hard work will be work for you and I want you to be master of :forumlist: after reading this tutorial.. Somehow if you don't understand anything or something write coment and I will be there.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam aliquam massa quis mauris sollicitudin commodo venenatis ligula commodo.

Related Posts

0 comments:

Post a Comment