Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Add Comments System to User Uploaded Photos in Wapka (Part 1)

Allowing users to leave their Comments on their uploaded Photos or friends photos on your Wapka wapsite, can be fun.


Please note user gallery directory is not applicable to this trick. So create a new file /photo directory Eg. User Photos, write down the directory id Eg.43745443 beceause you will need it later on.


How to add the Photo Comments System to your Wapka wapsite

  • Tools for the job
  1. Photo preview page(create a new a page for it if you don't have one)
  2. Photo comments page(create a new page for it)
  3. Page to redirect users after the submit their comments
  • Lets Begin
  1. Create a new forum(Photo Comments) structured on themes
  2. *. Write the id. of the forum Eg. 34465827
    *. Make the forum visible only in admin mode
    *. Set accesibility for all if you both login and unlogin user to write comments.
  3. Go to the page you added the forum
  4. *. Click > :: EDIT SITE (#) ::
    *. Click > wap2
    *. Click > Syles in forum/chat
    *. Selcet > the Photo Comments forum by clicking Eg. fo:110892313 Photo Comments below Set styles only for:.
    *. scroll down to Other options: select the following options
    *. [tick]hide New theme link
    *. [tick]hide Post reply link
    *. Maximal count of letters in one message (insert 0 for default value):
    [255] this is used to determin the number letters one message can contain. You can change it if you want.
    *. Time format (syntax): [--]
    *. Redirect user, when new message/theme is posted *: [105] write into this box the page id. you want user to redirected to after commenting to a photo.
    *. Click Edit button. To save your settings.
    *.Scroll back to top
    *. Click > Messages in forum under or set own form for:
    *. Now copy bellow codes and past it in your site.
    This is for the first box:
    <a href="profile_8.xhtml?u=::tuser::">::tuser::</a> - <span class="time">::date::</span> <br/>::msg::
    Leave the second box empty:
    This is for the third box:
    <div id="comments">::MESSAGES::</div>
    *. Click set button to save your settings.
  1. Go to your Photo Comments page
    • Add a new exloader and use the following settings
    • URL:
    • http://yourwapkawapsite.wapka.mobi/forum2_theme_id.xhtml?tema=:get-fid(1):&n=:get-n:&usort=n change yourwapkawapsite to your wapsite name and replace id with Photo Comments forum id i told you to write it remember?
    • Select part:
    • select the part you want exloader to display on the comments page. Mine is 40-44 work around it untill you get the right numbers.
    • Display HTML tags (br,b,i,u):
    • br,b,i,u,big,small,a,span,div,hr,
    • Browser (user-agent):
    • leave empty
    • Loading interval:
    • Direct access** now click Edit button to save your settings.
    • Now on the same photo comments page add one of the following codes
    This code is for loged users
    <form method="post" action="forum2_ad_id.xhtml"><input type="hidden" name="meno" value=":user-tname:"/>:admin-hash-input:<script type="text/javascript">dtoken=document.getElementsByName("d_token")[0].value; document.write('<input type="hidden" name="d_token" value="'+dtoken+'"/>');</script><input type="text" name="text" maxlength="255" /> <input type="hidden" name="tema" value=":get-fid(1):"/><input type="hidden" name="ret_s" value="103"/><br/><input type="submit" name="submit" value="Write Comment"/></form>
    change id to your photo comments forum id. and change value=103 to page id you want users to redirected after written their comments.
    This code is for non loged users
    <style type="text/css"> #log {display: no:user-tname:ne; } </style>
    <form method="post" action="forum2_ad_id.xhtml"><input type="hidden" name="meno" value=":user-tname:"/>:admin-hash-input:<script type="text/javascript">dtoken=document.getElementsByName("d_token")[0].value; document.write('<input type="hidden" name="d_token" value="'+dtoken+'"/>');</script><input type="text" name="text" maxlength="255" /> <input type="hidden" name="tema" value=":get-fid(1):"/><input type="hidden" name="ret_s" value="103"/><br/><input type="submit" name="submit" value="Write Comment"/></form>
    This is for both loged and non loged users
    <a href="/forum2_add_id.xhtml?tema=:get-id(1):&get-id=:get-id(1):&get-post=comment:admin-hash-amp:">Comment</a>
  • Add bellow code in same photo comments page
  • Place it bellow the above code
    :paging:m=5, n=:get-n(0):, u=site_:getid-site:.xhtml?get-id=:get-id(520):&get-n=%n%&n=%n%:admin-hash-amp:, ::<a href="site_:getid-site:.xhtml?get-id=:get-id(520):&n=x:admin-hash-amp:">First</a> %prev% · %next% : / paging:
  • Now go to your photo preview page and add this code to link your Photo Comments page
<a href="site_44.xhtml?get-fid=%file_id%&get-user=%user_upl%&get-var=%var-25%:admin-hash-amp:">comments</a>
change site_44 to your photo comments page id.

That's all for part 1 of How to Add Comments System to User Uploaded Photos in Wapka

Write your problems in the comments box and i will answer them.



This post first appeared on Wapka Inspiration - Wapka Howto Guides & Tutoria, please read the originial post: here

Share the post

How to Add Comments System to User Uploaded Photos in Wapka (Part 1)

×

Subscribe to Wapka Inspiration - Wapka Howto Guides & Tutoria

Get updates delivered right to your inbox!

Thank you for your subscription

×