[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!
Suggested Hosts
Locked
hm14
Registered User
Posts: 4
Joined: Wed Jan 15, 2014 11:56 pm

Re: [RC2] phpBB Ajax Like

Post by hm14 » Thu Jan 16, 2014 10:20 am

Yes.

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

corycubbage
Registered User
Posts: 20
Joined: Wed Nov 27, 2013 9:09 pm

Re: [RC2] phpBB Ajax Like

Post by corycubbage » Thu Jan 16, 2014 9:21 pm

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.

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

Re: [RC2] phpBB Ajax Like

Post by emosbat » Fri Jan 17, 2014 8:22 am

you didn't copied files in theme folder.

hm14
Registered User
Posts: 4
Joined: Wed Jan 15, 2014 11:56 pm

Re: [RC2] phpBB Ajax Like

Post by hm14 » Fri Jan 17, 2014 2:07 pm

I or corycubbage?

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

Re: [RC2] phpBB Ajax Like

Post by emosbat » Fri Jan 17, 2014 2:57 pm

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.

corycubbage
Registered User
Posts: 20
Joined: Wed Nov 27, 2013 9:09 pm

Re: [RC2] phpBB Ajax Like

Post by corycubbage » Fri Jan 17, 2014 3:49 pm

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>

hm14
Registered User
Posts: 4
Joined: Wed Jan 15, 2014 11:56 pm

Re: [RC2] phpBB Ajax Like

Post by hm14 » Fri Jan 17, 2014 5:31 pm

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:

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

Re: [RC2] phpBB Ajax Like

Post by emosbat » Fri Jan 17, 2014 5:53 pm

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

corycubbage
Registered User
Posts: 20
Joined: Wed Nov 27, 2013 9:09 pm

Re: [RC2] phpBB Ajax Like

Post by corycubbage » Fri Jan 17, 2014 7:49 pm

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)

corycubbage
Registered User
Posts: 20
Joined: Wed Nov 27, 2013 9:09 pm

Re: [RC2] phpBB Ajax Like

Post by corycubbage » Fri Jan 17, 2014 8:12 pm

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.

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

Re: [RC2] phpBB Ajax Like

Post by emosbat » Sat Jan 18, 2014 8:21 am

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

corycubbage
Registered User
Posts: 20
Joined: Wed Nov 27, 2013 9:09 pm

Re: [RC2] phpBB Ajax Like

Post by corycubbage » Wed Jan 22, 2014 3:27 am

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.

God knows
Registered User
Posts: 15
Joined: Sun Aug 18, 2013 7:39 am

Re: [RC2] phpBB Ajax Like

Post by God knows » Thu Jan 23, 2014 6:55 pm

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!

entonox
Registered User
Posts: 24
Joined: Fri Jan 17, 2014 10:51 am

Re: [RC2] phpBB Ajax Like

Post by entonox » Tue Jan 28, 2014 9:42 am

I have made a Dutch translation for the latest version (language: nl_x_formal) is anybody interested in hosting this? (emosbat?) :?:

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

Re: [RC2] phpBB Ajax Like

Post by emosbat » Tue Jan 28, 2014 11:50 am

send me link and I will add it to first post ;)

Locked

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