Hello, Quest!
More
Chat
If you get an error during the chat, please Refresh the page!
How to set api data & structure
vikkas · Published on 2022-12-06 17:06:30 (3 days ago )
Hello dev. Today u will know how api spiritually worked. For example: A group,B group,C group. I want to join A group by my id 1234. And i want B,C group to not have my id then <key1>A</key1> <key2>1234</key2>. So let say i want all group to have my id then <key1></key1> <key2>1234</key2>. Another method is i want a post comment lister that store comment,react,reply using one headline here is how it works. <pid>:GET(postid);</pid> <key1>comment</key1>. So if want to comment in each of the comment then <pid>:GET(postid);</pid> <key1>comment</key1> </key2>reply:GET(userid);</key2> in here both post comments count & comments replys count will be combine to gether. look just carmly settle down learn wapka. i also learn wapka too,u r expected to do thesame.
views(0) comment
How to set api data & structure
vikkas · Published on 2022-12-06 17:06:30 (3 days ago )
Hello dev. Today u will know how api spiritually worked. For example: A group,B group,C group. I want to join A group by my id 1234. And i want B,C group to not have my id then <key1>A</key1> <key2>1234</key2>. So let say i want all group to have my id then <key1></key1> <key2>1234</key2>. Another method is i want a post comment lister that store comment,react,reply using one headline here is how it works. <pid>:GET(postid);</pid> <key1>comment</key1>. So if want to comment in each of the comment then <pid>:GET(postid);</pid> <key1>comment</key1> </key2>reply:GET(userid);</key2> in here both post comments count & comments replys count will be combine to gether. look just carmly settle down learn wapka. i also learn wapka too,u r expected to do thesame.
views(0) comment
How to let post visible to people who followed you.
vikkas · Published on 2022-12-06 17:02:03 (3 days ago )
These time no one will even see the post trash half. here we go.

create page called "followers.js"

/statement.js
--Api Data Lister
---configuration
<pid>:GET(owner);</pid>
<key1>followers</key1>
<key2>:VAR(USER_ID);</key2>
---code
document.getElementById(":GET(status);").style.display = "block";
---code(default)
document.getElementById(":GET(status);").style.display = "none";

Now create new page called "private.js"
--New Tag Code
document.getElementById(":GET(status);").style.display = ":GET(owner).IFNE.VAR(USER_ID).THEN(none).ELSE(block);";

we are true now go to newsfeed.html
<div><div id="%id%">news code here</div><script src=":VALUE(%key3%).REPLACE([["private","followers","public"],["/private/?owner=%userid%&status=%id%","/followers/?owner=%userid%&status=%id%","#index"]]);"></script></div>
views(0) comment
How to build different page pattern url structure
vikkas · Published on 2022-12-06 17:00:32 (3 days ago )
Look it is very case sensitive...

/(?<token>[0-9]+)/* - link /index/123456 - :VAR(token);

/(?<token>[a-z]+[0-9]+)/* - link /index/abcdtoz0123456789 - :VAR(token);

/(?<token>[A-Z]+[a-z]+[0-9]+)/* - link /index/ABCabc01239 - :VAR(token);

/(?<token>[a-z-0-9]+)/* - link /index/a1b2c3d4 - :VAR(token);

if multiple then url must be sensitive
/(?<token>[a-z]+)/*/(?<session>[0-9]+)/* - link /index/abcd/012349 - token is: :VAR(token); and session: :VAR(session);

if tripple then url also must be sensitive
/(?<token>[a-z]+)/*/(?<session>[A-Z]+)/*/(?<apikey>[0-9]+)/* - link /index/abcd/ABCDE/012349

if want to reject some number
/(?<token>[0-5]+)/* - link /index/0123456789 - :VAR(token); 6789 will not show

if want start Capital
/(?<token>[A-z]+)/* - link /index/Wapka /index/wapka
views(0) comment
How to set file upload variable
vikkas · Published on 2022-12-06 16:55:07 (3 days ago )
Very easy but is the only permission key for you to edit file. without adding variable in file upload,then it seams the file doen't belongs to you anymore

<'set_var_width>...<'/set_var_width>
<'set_var_height>...<'/set_var_height>
<'set_var_description>...<'/set_var_description>
<'set_var_meta_content>upload<'/set_var_meta_content>
<'set_var_meta_type>...<'/set_var_meta_type>
views(0) comment
Credit user 10point when added comment to post
vikkas · Published on 2022-12-06 16:54:20 (3 days ago )
Yeah,these is how it works
create page called "getpoint.html"

--user editor
---configuration
<'userid>:VAR(USER_ID);<'/userid><'set_point>:POST(pt);<'/set_point>
---code
<'input type="hidden" name="pt" value=":VALUE(%point%).PLUS(10);"/><'button id=":VALUE(%notify%).IFEQ(Success).THEN().ELSE(add);">%notify%<'/button>
<'script>
function submit2() { document.submitForm2.submit2( // Submits the form without the button } setTimeout(function submit2(){ document.getElementById("add").click() }, 0000););
<'/script>

Now in your post comment form just add <'embed src=":VALUE(%notify%).IFEQ(Success).THEN(/getpoint.html).ELSE();" style="width:0px;height:0px;border:0px;margin:0px;"/>

When comment page refresh user will not be credited untill the %notify% says "Success" thats all.
views(0) comment
How to get wapka user info by code without user lister
vikkas · Published on 2022-12-06 16:53:13 (3 days ago )
Yes possible we are going to use angular js to make special and useful even when where we are going to display the user info is not a wapka site.
here we go.

Create page called "import.js".

/import.js
---user lister
----configuration:
<'id>:GET(userid);<'/id>

----code:
var app = angular.module('User', []); app.controller('Information', function($scope) { $scope.Username= "%username%";
$scope.Id= "%id%";
$scope.Avatar= "%avatar%";
$scope.Logindate= "%logindate%";
$scope.Country= ":VALUE(%country%).OR(%var(country)%);";
});
you can add more scopes

Now all is done.
Any page or site just add
<'script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"><'/script> <!!--box block--!!>
<'div ng-app="User" ng-controller="Information">Hello {{Username}},you are welcome to my site and your info:
Username: {{Username}}
Id: {{Id}}
more and more scope. <'/div>then under <'script src="http://mywapkasite.com/import/?userid=1234"><'/script>
<!!--box block--!!>
views(0) comment
list of browsers name in wapka database for :VAR(BROWSER)
vikkas · Published on 2022-12-06 16:31:02 (3 days ago )
-:VAR(BROWSER);
--Opera
--Chrome
--Safari
--Firefox
--Handheld
--Ucweb
views(0) comment
how to build real rating 5 star by %total% count
vikkas · Published on 2022-12-06 16:29:51 (3 days ago )
657
76

 Home » Wapka Codes 2022 » how to build real rating 5 star by %total% count
mario
 mario
 5 months ago
Hello i heard you want to build a rating 5 star image for a content like post,musics,videos

All you need are here.
Step 1
build a page called "count.js"
--/count.js
---Api Data Lister
----configuration:
<'pid>:GET(postid);<'/pid><'limit>1<'/limit><'key1>rates<'/key1>
----code(header):
document.getElementById(":GET(postid);star1).src = ":VALUE(%total%).IFGE(10).THEN(yellowstar.png).ELSE(greystar.png);"
document.getElementById(":GET(postid);star2).src = ":VALUE(%total%).IFGE(20).THEN(yellowstar.png).ELSE(greystar.png);"
document.getElementById(":GET(postid);star3).src = ":VALUE(%total%).IFGE(30).THEN(yellowstar.png).ELSE(greystar.png);"
document.getElementById(":GET(postid);star4).src = ":VALUE(%total%).IFGE(40).THEN(yellowstar.png).ELSE(greystar.png);"
document.getElementById(":GET(postid);star5).src = ":VALUE(%total%).IFGE(50).THEN(yellowstar.png).ELSE(greystar.png);"
----code:
:NULL();

Now create new page called "newsfeed.html" etc.
--/newsfeed.html
---api lister or any
attach
<!!postbox start!!>contents etc <img id="%id%star1"><img id="%id%star2"><img id="%id%star3"><img id="%id%star4"><img id="%id%star5"> then make sure these script is under <script src="/count.js/?postid=%id%"></script>
<!!postbox closed!!> the box of the content you are listing
---attach key1-rates when adding comments,likes,etc pointed to the id api lister data.
views(0) comment
How to display my full users lister in any website.
vikkas · Published on 2022-12-06 16:25:36 (3 days ago )
is possible we need js experience

user.js:

var list = "html code here"
document.getElemetById("userlist").innerHTML = list;

mysite.com/index.html:
<div id="userlist"></div> <script src="/user.js"></script>

file js -userlister
header code:
var list = "

code:
html here

footer code:
"
document.getElementById("userlist").innerHTML = list;
views(0) comment
converts comma separated values ​​to random
vikkas · Published on 2022-12-06 16:15:07 (3 days ago )
value tags: pop, rock, metal, edm :URL_ENCODE(["%var(tags)%"]).REPLACE(["%2C%20", "%22%2C%20%22"]).URL_DECODE.RANDOM.SET(related).NULL; result var(related) : edm (one of the random var tags above)
views(0) comment
Update
Wapka Codes 2022 How to set api data & structure (vikkas)
Wapka Codes 2022 How to set file upload variable (vikkas)
Categorys
2022 merci.wapka.co
Version 1.0