[RC2] phpBB Ajax Like

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC2] phpBB Ajax Like

Post by mladiucitelj »

I'm not asking about conflicts :)

Just want to know if there is a point of using both of them, because I like them both, but can't decide it :)
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

mladiucitelj wrote:I'm not asking about conflicts :)

Just want to know if there is a point of using both of them, because I like them both, but can't decide it :)
so then give it a try if you find it confusing you or your users then disable one of them ;)
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC2] phpBB Ajax Like

Post by mladiucitelj »

I know :)

Well, they are both some kind of rating system. Oh, well, we'll see :)
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System
User avatar
Ali@php
Registered User
Posts: 62
Joined: Fri Sep 09, 2011 11:17 am
Name: Ali Faraji
Contact:

[Add-on] Top Users on Top Five MOD

Post by Ali@php »

Author: Ali@php
Description: This add-on adds new box to top five MOD which is displaying top users, Based on their like count.
Screenshot: http://www.phpbbpersian.com/images/mods ... p-five.jpg
Download (compatible with AutoMod): https://github.com/phpbbpersian/Top-Use ... p?raw=true
Github: https://github.com/phpbbpersian/Top-User-Addon

Installation (manually):

Important note: Before installing this add-on, You should install both phpBB Ajax Like and Top Five MODS.

open: includes/top_five.php

Find:

Code: Select all

}
?>
Add before:

Code: Select all

	// phpBB ajax like Add-on
	$sql_array = array(
		'SELECT'    => 'COUNT(l.poster_id) as user_likes, u.user_id, u.username, u.user_colour',

		'FROM'      => array(
			LIKES_TABLE => 'l',
			USERS_TABLE    => 'u'
		),

		'WHERE'     =>  'l.poster_id = u.user_id',
			
		'GROUP_BY'  => 'l.poster_id',

		'ORDER_BY'  => 'user_likes DESC',
	);
	$sql = $db->sql_build_query('SELECT', $sql_array);
	$result = $db->sql_query_limit($sql, 5);
		while ($row = $db->sql_fetchrow($result))
	{
		$template->assign_block_vars('toplikes', array(
		'LIKECOUNT'		=> $row['user_likes'] > 1 ? sprintf($user->lang['USER_LIKES'], $row['user_likes']) : sprintf($user->lang['USER_LIKE'], $row['user_likes']),
		'USERNAME' => $row['username'],
		'USERCOLOUR' => $row['user_colour'],
		'USERLINK' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . $row['user_id'] . ''),
		));
	}
	$db->sql_freeresult($result);
Open: language/en/mods/top_five.php

Find:

Code: Select all

));

?>
Add before:

Code: Select all

	'TOP_FIVE_LIKES'    => 'Top Users',
	'USER_LIKE' 		=> 'This user has received %s like',
	'USER_LIKES' 		=> 'This user has received %s likes',
Open: styles/prosilver/template/top_five_body.html

Find:

Code: Select all

			<th style="width: 50%;">{L_NEWEST_TOPICS}</th>
			<th style="width: 20%;">{L_TOP_FIVE_ACTIVE}</th>
			<th style="width: 30%;">{L_TOP_FIVE_NEWEST}</th>
Replace with:

Code: Select all

			<th style="width: 30%;">{L_NEWEST_TOPICS}</th>
			<th style="width: 20%;">{L_TOP_FIVE_ACTIVE}</th>
			<th style="width: 20%;">{L_TOP_FIVE_NEWEST}</th>
			<th style="30%">{L_TOP_FIVE_LIKES}</th>
Find:

Code: Select all

					<td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br />&nbsp;&nbsp;{L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
Add after:

Code: Select all

					<td valign="top"><!-- BEGIN toplikes --><a class="username-coloured" style="color:#{toplikes.USERCOLOUR}" href="{toplikes.USERLINK}">{toplikes.USERNAME}</a><br />&nbsp;&nbsp;{toplikes.LIKECOUNT}<br /><!-- END toplikes --></td>
Don't forget to purge template cache.
Last edited by Ali@php on Thu Jan 03, 2013 11:35 am, edited 2 times in total.
User avatar
zigic
Registered User
Posts: 169
Joined: Tue Dec 25, 2012 7:15 pm

Re: [RC2] phpBB Ajax Like

Post by zigic »

zigic wrote: Im using subsilver, you said it's supported, but on http://phpbblab.emosbat.com/ajaxlike/ looks funny if I change the style in UCP to subsilver. Is there any other place to put that, like shown in attached picture?
Image
When is the "official" and stable-final release of this mod? and will it support subsilver2 (like it should, not like now) or not?

Keep up the good work :)
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [Add-on] Top Users on Top Five MOD

Post by emosbat »

Ali@php wrote:Author: Ali@php
Description: This add-on adds new box to top five MOD which is displaying top users, Based on their like count.
Screenshot: http://www.phpbbpersian.com/images/mods ... p-five.jpg
Installation:
great! thanks Ali :mrgreen:
could you make automod for this so I add it in next update to addons .
Last edited by emosbat on Thu Jan 03, 2013 8:38 am, edited 2 times in total.
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

zigic wrote: When is the "official" and stable-final release of this mod? and will it support subsilver2 (like it should, not like now) or not?

Keep up the good work :)
thanks.
I sent current version for validation few months ago but phpbb validation proccess is slow!
subsilver2 is currently supported as you see, but I will not countine supporting it my self as you see it have strange and incorrect result when using automod! but welcome any contribute that continue supporting this theme and any other theme.
User avatar
Ali@php
Registered User
Posts: 62
Joined: Fri Sep 09, 2011 11:17 am
Name: Ali Faraji
Contact:

Re: [Add-on] Top Users on Top Five MOD

Post by Ali@php »

emosbat wrote:
Ali@php wrote:Author: Ali@php
Description: This add-on adds new box to top five MOD which is displaying top users, Based on their like count.
Screenshot: http://www.phpbbpersian.com/images/mods ... p-five.jpg
Installation:
great! thanks Ali :mrgreen:
could you make automod for this so I add it in next update to addons .
AutoMod compatible MODX file added to the post ;)
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

nice :mrgreen: just added to package.
User avatar
zigic
Registered User
Posts: 169
Joined: Tue Dec 25, 2012 7:15 pm

Re: [RC2] phpBB Ajax Like

Post by zigic »

emosbat wrote:
zigic wrote: When is the "official" and stable-final release of this mod? and will it support subsilver2 (like it should, not like now) or not?

Keep up the good work :)
thanks.
I sent current version for validation few months ago but phpbb validation proccess is slow!
subsilver2 is currently supported as you see, but I will not countine supporting it my self as you see it have strange and incorrect result when using automod! but welcome any contribute that continue supporting this theme and any other theme.
Well then you should remove supported for subsilver2.
I guess I'll have to consider using prosilver though I like subsilver much more..
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

not very soon, I do not completely leave it without finding a good contributer to support it ;)
yops
Registered User
Posts: 29
Joined: Tue Jun 28, 2011 8:56 am

Re: [RC2] phpBB Ajax Like

Post by yops »

I use subsilver2 and it works just perfect!
User avatar
zigic
Registered User
Posts: 169
Joined: Tue Dec 25, 2012 7:15 pm

Re: [RC2] phpBB Ajax Like

Post by zigic »

yops wrote:I use subsilver2 and it works just perfect!
Really? Can you give me some print screen of your forum and this mod "in action"?
You can send it to me in PM if you don't want to publish it public.

Thanks :)
User avatar
zigic
Registered User
Posts: 169
Joined: Tue Dec 25, 2012 7:15 pm

Re: [RC2] phpBB Ajax Like

Post by zigic »

Does this mod have problems with signatures? Check your website or this picture:
Image
nomad05
Registered User
Posts: 16
Joined: Fri Dec 28, 2012 10:04 am

Re: [RC2] phpBB Ajax Like

Post by nomad05 »

I couldnt get this MOD to work with Lucid Lime Theme. I copied over the prosilver images to the correct locations but no image shows. The rest of the MOD worked ok in Lucid Lime. Permissions were correct and theme -cache refreshed...

UPDATE: Got it working. I copied the images over before I installed it. Last time I did it in reverse.
Last edited by nomad05 on Fri Jan 04, 2013 7:25 am, edited 1 time in total.
Locked

Return to “[3.0.x] MODs in Development”