[RC] cBB Blockgets v1.0.4

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
User avatar
canidev
Registered User
Posts: 208
Joined: Sun Jun 26, 2011 5:40 pm
Location: Spain

Re: [RC] cBB Blockgets v1.0.4

Post by canidev »

Hi
Jessica wrote:I updated a couple of days ago and thought it went okay but apparently not. The portal's messed up...
I think that this is for problems in javascript. In the Chrome console appears 3 errors.

Code: Select all

Uncaught TypeError: Object [object Object] has no method 'live' home.php:351
Uncaught TypeError: Object [object Object] has no method 'blg_accordion' home.php:313
2
Uncaught TypeError: Cannot call method 'apply' of undefined scroll-startstop.events.jquery.js:20
The second problem is for the "reputation system addon". This addon is for cBB Blockgets 1.0.2 and its not 100% compatible with 1.0.4. To solve, do this:
1. Open styles/{your style}/template/blockgets/block/reputation_system_addon.html
2. Find:

Code: Select all

.blg_accordion({
3. Replace with:

Code: Select all

.accordion({
The other errors are outside cBB Blockgets.
Mathieu M. wrote: For 1. : phpBB 3.1 doesn't provide a way to extend default templates ?.
Yes, phpBB 3.1 have "events" in templates but, this event system is not compatible with this mod.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica

Re: [RC] cBB Blockgets v1.0.4

Post by Jessica »

I have another issue...but I am not 100% it was the result of updating to v1.0.4.

I have modified my board to add lightboxes when posts are submitted, UCP changes are saved. I also put the terms of use and privacy policy in a lightbox. I also "ajaxified" mod tools so that messages like confirmation messages would appear in the lightbox. But after updating, the messages no longer appear in the box.

Any suggestions on how it happened? :/

This should help; it's the instructions I followed for adding the lightboxes: http://forum.dion-designs.com/t8682/phpbb3-ajax/
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
canidev
Registered User
Posts: 208
Joined: Sun Jun 26, 2011 5:40 pm
Location: Spain

Re: [RC] cBB Blockgets v1.0.4

Post by canidev »

Hi,

I think that your problem is not relative to cBB Blockgets. I think that its a conflict with various ajax request.
The "ajaxify lightbox" adds some code in "overall_header.html". In this code you can see this:

Code: Select all

                    $.get(this.href+'&ajax=y',function(data){
                        $('#msg-ajax').html(data);
                        set_ajaxbox();
                    });
I do some test with this code in your forum and, if you delete "ajax=y" or change "ajax" for another word, the "get" function returns the content of the page but, with the "ajax" param, the function returns a empty page.
cBB blockgets don't use the "ajax" param so I dare say it has nothing to do.

I think that if you change "ajax=y" for "aj=y" (for example) in the code (there are two changes) and you change the same value in "includes/functions.php" you solve the problem.

Code: Select all

		'NOAJAX'			=> (request_var('ajax', '') == '') ? true : false,
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica

Re: [RC] cBB Blockgets v1.0.4

Post by Jessica »

These keep appearing in the Error log:

cBB Blockgets: The file ./styles/prosilver/template/viewforum_body.html can't be adapted for errors in the install file.
cBB Blockgets: The file ./styles/prosilver/template/viewtopic_body.html can't be adapted for errors in the install file.
cBB Blockgets: The file ./styles/prosilver/template/arcade/index_body.html can't be adapted for errors in the install file.
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
sakkiotto
Registered User
Posts: 236
Joined: Mon Jun 13, 2005 9:45 pm

Re: [RC] cBB Blockgets v1.0.4

Post by sakkiotto »

Jessica wrote:These keep appearing in the Error log:

cBB Blockgets: The file ./styles/prosilver/template/viewforum_body.html can't be adapted for errors in the install file.
cBB Blockgets: The file ./styles/prosilver/template/viewtopic_body.html can't be adapted for errors in the install file.
cBB Blockgets: The file ./styles/prosilver/template/arcade/index_body.html can't be adapted for errors in the install file.
me too... have u resolv Jessica?
User avatar
kmakoto
Registered User
Posts: 234
Joined: Mon Mar 01, 2010 11:35 pm

Re: [RC] cBB Blockgets v1.0.4

Post by kmakoto »

Code: Select all

cBB Blockgets: The file ./styles/prosilver/template/viewforum_body.html can't be adapted for errors in the install file.
cBB Blockgets: The file ./styles/prosilver/template/viewtopic_body.html can't be adapted for errors in the install file.
cBB Blockgets: The file ./styles/prosilver/template/arcade/index_body.html can't be adapted for errors in the install file.
view in template/prosilver/blockgets/instal.xml

view lines in conflic and changed

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