Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Archived] How to get IPB Like system.



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
  • Description:
Hello, how would I get an IPB styled like system like this?

For Example, how do I make it say the 3 users who have liked it and the 12 others should be how many others liked it

How would I even add this?   http://prntscr.com/5e9i0c


Also when I press like how do I make it say Unlike, for example:  http://prntscr.com/5e9ipl


How would I add that and the like system to be like that altogether, please tell me.

  • Information:
Forum:http://advanced4.forums.fm/Version:PHPBB2
Type:Request a codeTags:system.

Powered by PunBB
Currently 0 users have thanked Nickname1 for this post:

2
Offline

  Shadow

avatar
Administrator
Administrator
@Nickname1 Not possible, requires a server-side PHP coding and MySQL database for storing users who liked that.

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

3
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
Oh okay, scrap that idea then, how do I get the design like that though?

Powered by PunBB
Currently 0 users have thanked Nickname1 for this post:

4
Offline

  Virus

avatar
★Moderator★
★Moderator★
The only thing you can do is to add a simple like system and be done with it! That's how far you can go because you cannot edit the PHP coding and MySQL database.

Powered by PunBB
Currently 0 users have thanked Virus for this post:

5
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
Can you tell me everything what to do to add your system as it looks like a nice IPB one, also make sure to take the little coffee logo on the 0 likes or 1 likes thing for me lol.

Powered by PunBB
Currently 0 users have thanked Nickname1 for this post:

6
Offline

  Virus

avatar
★Moderator★
★Moderator★
Well to add the system go to: Admin Panel > Modules > HMTL & JAVASCRIPT > Javascript codes management, create a new javascript and add the below code with placement: In the topics:
Code:
var avacweb_like_system = {
  dom_ready : false,
  vote_singular : 'Like',
  vote_plural : 'Likes',
  callback : function(vote, new_button) {
      $('.corners-bottom', vote.parentNode.parentNode).before(new_button);
  }
};
$(function() { avacweb_like_system.dom_ready = true; });
$.getScript('http://www.avacweb.net/likesystem');
After that go to: Admin Panel > Display > Pictures and colors > Colors > CSS Stylesheet and add this in your CSS:
Code:
.LGlike {
  background: #105289;
  padding: 3px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-shadow: -1px 0.5px #888;
  box-shadow: 1px 1px 1px #888;
  cursor: pointer;
  margin-right: 4px;
 }
 .LGvote { margin: 0 5px; }
 .LGnovote {
  filter:Alpha(opacity=50);
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
  text-shadow: none;
 }
Now you can style it as you wish. I cannot give you the code we use here because this is an abuse of the forum copyrights. Style the CSS code as you wish and make them the way you want them.

Powered by PunBB
Currently 0 users have thanked Virus for this post:

7
Offline

  Van-Helsing

avatar
★Moderator★
★Moderator★
[aviso="Thread Archived"]Original poster seems to be inactive and did not respond within 7 days in this thread. Because of this, the topic has been Archived.

If you have further questions, please open a new topic.[/aviso]

Powered by PunBB
Currently 0 users have thanked Van-Helsing for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum