Warning: The author of this contribution does not provide support for it anymore.

jQuery Pack for phpBB

Mobile version - jQuery Pack for phpBB

Mobile version

by io2 » Sun Dec 06, 2015 9:42 pm

I installed ajaxlike in my forum.
It work in desktop version but it don't work in mobile version.
The like button is visible in mobile version but it don't work.
I also added the jquery pack code in mobile template.
Please you help me.
io2
Registered User
Posts: 8
Joined: Sun Dec 06, 2015 8:22 pm
Contact:

Re: Mobile version

by Anonymous » Wed Nov 22, 2017 5:39 pm

Hello,

I am finding this to be true for me as well. I am running phpBB 3.0.12, and have installed the corresponding jQuery version. Looks like the installation process install the files for the prosilver style only, and I have a mobile style also. I installed this using AutoMod, so I'm sure there is a manual way to do this for the mobile style I have, but don't feel confident enough to do it. Can this jQuery Pack be modified to look for a style of a different name?
Anonymous
I am too lazy to register
Posts: 3110
Joined: Thu Mar 15, 2007 6:50 am
Contact:

Re: Mobile version

by Anonymous » Wed Nov 22, 2017 8:31 pm

Hello,

Just an update to my last post. I was able to get the jQuery pack to work with my mobile style. So I've learned that it didn't have anything to do with the fact that my mobile style was for mobile devices, but rather the jQuery pack looks for and modifies both the prosilver style, as well the subsilver2 style. After downloading the jQuery pack, I unzipped the file. I downloaded a find and replace app, fnr.exe (just google that - no installation required. Single file app). I then used that app to replace every instance of "subsilver2" with "art_mobile" (which is the name of my style in the Styles folder). There was also 1 folder named subsilver2 in the jquery zip that I had to change manually to art_mobile. I think there were 2 files changed, with 5 total instances, plus the folder. I then zipped all the contents back together, and uploaded it to my site. Again, I have previously installed AutoMOD, which I used to install this jQuery mod. I did have to uninstall the jQuery mod, because I had already installed it without the edits, and then reinstall my new modified zip. However, this did not completely work. There were 2 more things I had to change: the overall_header.html, and overall_footer.html files that were in my art_mobile styles/templates folder. If you open the jquery_pack_for_phpbb_1_0_4 folder, you'll see a file called install_mod.xml. Open this is an editor of your choosing. Search for:

<find><![CDATA[<head>]]></find>
<action type="after-add"><![CDATA[

and take all of the code after that:
"<!-- IF JQPACK_ENABLE -->
<!-- IF JQPACK_AT_HEADER -->
<!-- jQuery Pac.................
......................rypack/jquery-ui.js'>\x3C/script>");</script>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- /jQuery Pack for phpBB -->
<!-- ENDIF -->
<!-- ENDIF -->

and paste into your overall_header.html file right AFTER the <head> tag (on a new line). Search for the text "overall_footer.html", and you'll see something similar. Just past that text in your overall_footer.html file BEFORE the </body> tag. I ended up making these changes after reinstalling the jQuery mod, and I did not have to reinstall the MOD. I just needed that code in my header and footer files. I hope this helps.
Anonymous
I am too lazy to register
Posts: 3110
Joined: Thu Mar 15, 2007 6:50 am
Contact: