Page 42 of 51

Re: [RC2] phpBB Ajax Like

Posted: Thu Jan 16, 2014 10:20 am
by hm14
Yes.

Does the mod only "looks perfect" with avatars on the right side?

Re: [RC2] phpBB Ajax Like

Posted: Thu Jan 16, 2014 9:21 pm
by corycubbage
I'm using absolution theme and i commented out the other jquery in the overall footer. when I load the page the Like "button" appears as text link, not a button. When I click on it I get "ajaxlike_like is not defined" in firebug.

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 8:22 am
by emosbat
you didn't copied files in theme folder.

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 2:07 pm
by hm14
I or corycubbage?

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 2:57 pm
by emosbat
hm14 wrote:I or corycubbage?
yours is not from MOD, you may inserted modification incorrectly in your theme. it is a design problem. if you think that happen from this MOD, first remove modifications from that template file and then re-insert them correctly.

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 3:49 pm
by corycubbage
You're right, I missed copying the CSS file. I had only uploaded the images folder!

Now ... the new problem of "Error: `jQuery Pack for phpBB` MOD not found." pops up on every page.

I went into the overall_header and disabled the following jquery files, here is what the block looks like now

Code: Select all

</script>

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
<!-- ajaxlike --> 
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/jquery.tipsy.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/common.js"></script>
<!-- ajaxlike --> 
<!-- 
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.tipsy.js"></script>

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.hoverIntent.min.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.cookie.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.collapse.js"
I have the latest query pack installed and everything is enabled in the options.

in Firebug the first error on each page is:

Code: Select all

ReferenceError: jQuery is not defined
	

})(jQuery);
I verified i applied the jquery pack to my style (absolution) because it says it's already been applied.

Only three jquery scripts are defined, the rest are inactive:

Code: Select all

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/jquery.tipsy.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/common.js"></script>

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 5:31 pm
by hm14
emosbat wrote:
hm14 wrote:I or corycubbage?
yours is not from MOD, you may inserted modification incorrectly in your theme. it is a design problem. if you think that happen from this MOD, first remove modifications from that template file and then re-insert them correctly.
The question is how? :cry:

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 5:53 pm
by emosbat
@corycubbage
make sure jquery pack is applied in your theme. send source code of page you got error.

@hm14
open xml file in browser and follow commands:
https://www.phpbb.com/kb/article/how-to ... ification/
or ask for more help in forum.

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 7:49 pm
by corycubbage
I believe that it is being applied in the theme. Which specific line am I looking for? The stylesheet.css has

Code: Select all

@import url("ajaxlike.css"); /* ajaxlike */
and my overall_header.html has:

Code: Select all

<!-- ajaxlike -->
<link href="{T_SUPER_TEMPLATE_PATH}/ajaxlike/css/cupertino/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="{T_SUPER_TEMPLATE_PATH}/ajaxlike/css/tipsy.css" rel="stylesheet" type="text/css" />
<!-- ajaxlike -->
My errors on the page are:

Code: Select all

ReferenceError: jQuery is not defined
	

})(jQuery);

jquery.tipsy.js (line 258)
ReferenceError: $ is not defined
	

$(function(){

viewto...#p11266 (line 86)
ReferenceError: $jqpack_JQuery is not defined
	

$jqpack_JQuery(function() {

viewto...#p11266 (line 1963)
TypeError: $(...).tipsy is not a function
	

$('.tip').tipsy({fade: true, gravity: 's'});

viewto...#p11266 (line 1993)

Re: [RC2] phpBB Ajax Like

Posted: Fri Jan 17, 2014 8:12 pm
by corycubbage
Ahh.. Ok I think I found it.

The following block was missing somehow from overall_header.html

Code: Select all

<!-- IF JQPACK_ENABLE -->
<!-- IF JQPACK_AT_HEADER -->
<!-- jQuery Pack for phpBB -->
<!-- IF JQPACK_USE_GOOGLE -->
<script type="text/javascript">window.jQuery || document.write("\x3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'>\x3C/script>");</script>
<!-- ELSE -->
<script type="text/javascript">window.jQuery || document.write("\x3Cscript src='{ROOT_PATH}jquerypack/jquery.js'>\x3C/script>");</script>
<!-- ENDIF -->
<!-- IF JQPACK_NO_CONFLICT -->
<script type="text/javascript">

	// you may use `$jqpack_JQuery` instead of `$` and `jQuery` in your MODs.
	var $jqpack_JQuery = $.noConflict();

	if(!window.$) {
		window.$ = $jqpack_JQuery;
	}
	if(!window.jQuery) {
		window.jQuery = $jqpack_JQuery;
	}

</script>
<!-- ENDIF -->
<!-- IF JQPACK_UI_ENABLE -->
<!-- IF JQPACK_USE_GOOGLE -->
<script type="text/javascript">window.jQuery.ui || document.write("\x3Cscript src='//ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js'>\x3C/script>");</script>
<!-- ELSE -->
<script type="text/javascript">window.jQuery.ui || document.write("\x3Cscript src='{ROOT_PATH}jquerypack/jquery-ui.js'>\x3C/script>");</script>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- /jQuery Pack for phpBB -->
<!-- ENDIF -->
<!-- ENDIF -->
Looks like we're working, but getting an error still that i don't think is related to ajax-like

Code: Select all

TypeError: $(...).hoverIntent is not a function
	

},function(){
That is one of the jquery's i disabled. Is it safe to enable it?

Also - when you click on the X new like(s) received, is it supposed to do something? It doesn't go anywhere.

Re: [RC2] phpBB Ajax Like

Posted: Sat Jan 18, 2014 8:21 am
by emosbat
you may removed all .js tags? add this one:
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.hoverIntent.min.js"></script>

just remove duplicate jquery.js tags not other .js like hoverintent.js, etc...

Re: [RC2] phpBB Ajax Like

Posted: Wed Jan 22, 2014 3:27 am
by corycubbage
Ok everything is now working properly except when I click on the notification at the top about new likes. When I click on that a white popup appears titled "List of new likes" and it box says "loading..."

It sits there loading indefinitely.

Re: [RC2] phpBB Ajax Like

Posted: Thu Jan 23, 2014 6:55 pm
by God knows
I have installed Jquery Pack for phpBB & phpBB Ajax Like. Everything seems to be working fine.

I am facing a problem with these two mods. After sometimes, the following error will be thrown:
Image

After clicking OK, then everything goes fine and that error will not be thrown anymore.

The error occurs in the following cases:
- After clearing the browser's history
- When I load my board on a new browser
- When there is slow internet connection.

Here are my MODs settings:

Image

Image

Is there no way to disable that error???

or may be it should only be shown to administrator instead of telling everybody that Jquery pack is not found!

Re: [RC2] phpBB Ajax Like

Posted: Tue Jan 28, 2014 9:42 am
by entonox
I have made a Dutch translation for the latest version (language: nl_x_formal) is anybody interested in hosting this? (emosbat?) :?:

Re: [RC2] phpBB Ajax Like

Posted: Tue Jan 28, 2014 11:50 am
by emosbat
send me link and I will add it to first post ;)