Page 38 of 51

Re: [RC2] phpBB Ajax Like

Posted: Sat Sep 28, 2013 6:52 am
by emosbat
remove this
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery-1.5.0.min.js"></script>

Re: [RC2] phpBB Ajax Like

Posted: Sat Sep 28, 2013 7:36 am
by elpanatibu
emosbat wrote:remove this
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery-1.5.0.min.js"></script>
if i do that, mchat stop work. the second time when a try send any text doesn't send with the send button. only it work with key enter of the keyboard.

when i remove this from viewtopic_body, the mod work great. all the funtions. except the effect in who like this post.

Code: Select all

<script type="text/javascript">
// <![CDATA[
$jqpack_JQuery(function() {
	load_tips('.ajaxlike_tooltip');
});
// ]]>
</script>

Re: [RC2] phpBB Ajax Like

Posted: Sun Sep 29, 2013 3:07 pm
by emosbat
you missed something or you have duplicate code. provide me firebug error log (more detail on first post).

Re: [RC2] phpBB Ajax Like

Posted: Thu Oct 03, 2013 7:41 am
by new777
Nevermind, I was a bit brain dead, Mod works great on 3.0.12

Re: [RC2] phpBB Ajax Like

Posted: Thu Oct 03, 2013 8:35 pm
by potku
I'm sorry if this has been covered before. In that case, I need to hone my search skills...

How about not-so-everyday characters? We have a user in whose last name the character é appears. If he likes a post, it reads é instead of that particular letter. The same goes for our funny Scandinavian alphabet (for example the letter ö).

Any thoughts on that? :)

Re: [RC2] phpBB Ajax Like

Posted: Fri Oct 04, 2013 7:23 am
by emosbat
do you use last version? specially latest function_ajaxlike.php file.

Re: [RC2] phpBB Ajax Like

Posted: Sat Oct 05, 2013 5:18 pm
by potku
Well, that sounds good then. :)

Is there a list of changes from version to the next? That way I wouldn't have to reinstall the whole MOD. :D

Re: [RC2] phpBB Ajax Like

Posted: Sat Oct 05, 2013 11:39 pm
by Danielx64
^ That and maybe a change log as well?

Re: [RC2] phpBB Ajax Like

Posted: Sun Oct 06, 2013 8:02 am
by emosbat
unfortunately because of lot of changes in each version I didnt wrote a change log but you can see commits in gethub for changes.

Re: [RC2] phpBB Ajax Like

Posted: Sun Oct 06, 2013 5:09 pm
by bitbay
My English is not good... excuse me :(

First of all.. congratulation Great Mod!!!

I'have installed on my local test phpbb installation and work great in in every circumstance, but on mobile browser (Android Gingerbread) notification not work.

The problem seem to be this piece of code in common.js

Code: Select all

function ajaxlike_init_notify(interval, callback_url)
{

ajaxlike_notificationsbox(callback_url); // page load notify

setInterval(function(){ajaxlike_notificationsbox(callback_url)},interval);

}
I make some test If I use this modification to the code, work but only in the page where I received the like, because there is a problem with the url that is the same that is in the browser bar and not viewtopic.php etc....
for example:
before my modification the request url is the same in every page
correct url: Request URL:http://localhost/viewtopic.php?ajaxlike ... like_data=

after my modification Request Url vary on browser bar URL basis
Wrong Url:Request URL:http://localhost/ajaxlike_rnd=138107861 ... like_data=

Code: Select all

$(function ajaxlike_init_notify(interval, callback_url)
{

ajaxlike_notificationsbox(callback_url); // page load notify

setInterval(function(){ajaxlike_notificationsbox(callback_url)},interval);

});
Please, can you help me?
Thank you!

Re: [RC2] phpBB Ajax Like

Posted: Mon Oct 07, 2013 8:32 am
by emosbat
this mod is not tested on mobile phones. it is possible that your phone do not understand some part of javascript code specially the callback_urlparameter that set callback URL.

Re: [RC2] phpBB Ajax Like

Posted: Wed Oct 09, 2013 8:20 pm
by TheDani
delete

Guests Posts - Re: [RC2] phpBB Ajax Like

Posted: Sun Oct 13, 2013 1:46 am
by new777
Hi, sorry if this has been mentioned before, but I could not find it.

I have guests post ON. Members can like any post including those made by Guests.
The problem is that the Like count goes to every Guest post, meaning if Like 1 Guests post all Guests posts are liked, which of course is not the intention.

So,
1. I need to either have the Like option OFF for guests posts (not visible under Guests posts)
2. or the counter works correct for guests (each guests is different, seen as "sub-member")

My guess is the first option, since I think the second might not be possible or a "Mission Impossible", but prefered.

I thought of a 3rd option. Remove the Like lines from the profile in viewtopic_body.html for Guest posts.

Code: Select all

<!-- ajaxlike -->
		<!-- IF postrow.U_POST_AUTHOR -->
		<dd><strong>{L_AL_LIKE_COUNT_TEXT}:</strong> {postrow.LIKES} <!-- IF postrow.LIKES > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
		<dd><strong>{L_AL_LIKED_COUNT_TEXT}:</strong> {postrow.LIKED} <!-- IF postrow.LIKED > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
		<!-- ENDIF -->
		<!-- ajaxlike -->
Nevermind, solved it, see above

Re: [RC2] phpBB Ajax Like

Posted: Mon Oct 14, 2013 8:24 pm
by TheDani
I get a warning at the top when I view a user's profile

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/memberlist.php on line 670: Undefined variable: ajaxlike_enable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4861: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4863: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4864: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4865: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)

Re: [RC2] phpBB Ajax Like

Posted: Tue Oct 15, 2013 8:11 am
by emosbat
you missed inserting ajaxlike modifies in file. maybe missed modification of common_function.php