[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!
Get Involved
Locked
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

remove this
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery-1.5.0.min.js"></script>

elpanatibu
Registered User
Posts: 38
Joined: Sun Nov 16, 2008 6:34 pm

Re: [RC2] phpBB Ajax Like

Post 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>

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

you missed something or you have duplicate code. provide me firebug error log (more detail on first post).

new777
Registered User
Posts: 94
Joined: Thu Oct 03, 2013 6:51 am

Re: [RC2] phpBB Ajax Like

Post by new777 »

Nevermind, I was a bit brain dead, Mod works great on 3.0.12

User avatar
potku
Registered User
Posts: 860
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [RC2] phpBB Ajax Like

Post 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? :)
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

do you use last version? specially latest function_ajaxlike.php file.

User avatar
potku
Registered User
Posts: 860
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [RC2] phpBB Ajax Like

Post 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
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx

Danielx64
Registered User
Posts: 1369
Joined: Wed Nov 04, 2009 5:51 am
Location: In a server room in Australia
Name: Daniel
Contact:

Re: [RC2] phpBB Ajax Like

Post by Danielx64 »

^ That and maybe a change log as well?
Please note that I will not be porting any of my mods to phpBB 3.1. Sorry for the inconvenience this may cause.
Image

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post 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.

bitbay
Registered User
Posts: 1
Joined: Sun Oct 06, 2013 4:41 pm

Re: [RC2] phpBB Ajax Like

Post 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!

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post 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.

TheDani
Registered User
Posts: 356
Joined: Tue Apr 10, 2012 12:48 pm

Re: [RC2] phpBB Ajax Like

Post by TheDani »

delete

new777
Registered User
Posts: 94
Joined: Thu Oct 03, 2013 6:51 am

Guests Posts - Re: [RC2] phpBB Ajax Like

Post 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

TheDani
Registered User
Posts: 356
Joined: Tue Apr 10, 2012 12:48 pm

Re: [RC2] phpBB Ajax Like

Post 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)

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC2] phpBB Ajax Like

Post by emosbat »

you missed inserting ajaxlike modifies in file. maybe missed modification of common_function.php

Locked

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