I'm using Drupal 6.22 and the installation is at localhost.
Basic Tutorial: The DDBlock was installed according to the tutorial and after the installation and configuration, I reviewed all the steps several times:
Installation - I downloaded, installed and activated:
- DDBlock;
- jQuery Update;
- jQuery Easy plug-in.
DDBlock configuration was made according to the tutorial configuration in 10 steps:
Configuration in 10 steps:
- I created and added a block called Highlights;
- I set the block to use as input the image folder;
- I configured DDBlock to use the images folder (images/ddblock);
- The path of the file system is set to 'sites/default/files' in Drupal;
- I created a folder of images taking into account the relative path of Drupal (sites/default/files/images/ddblock);
- In DDBlock settings, I added the pages where I want the block to be displayed;
- I enabled the block to be displayed in the content of the pages (admin/build/block);
- Finally, I added 5 images in its folder (named: a.png; b.png; c.png; d.png; e.png);
Result: The block is displayed but the images do not appear.
As there was no positive result, I was to the advanced tutorial:
Advanced tutorial
- I started checking to see if the modules were installed, enabled and configured (DDBlock, jQuery Update, CCK, Views, FileField, Imagefield and Image API);
- I downloaded the themes folder (upright10-50.zip), CCK and Views Export files;
- I installed the themes folder inside the theme used as standard (sites/all/themes/my_theme/custom);
- I copied and pasted the functions of preprocessing to the file template.php
- I replaced the name [THEME_NAME] with the name of my theme, removing even the brackets;
- When I tried to create the kind of content, I received the following error message when I tried open the page admin/content/types:
Parse error: parse error in C:\wamp\www\mail\sites\all\themes\mailfrance\template.php on line 234
Obviously, this error started to occur after changing the file template.php.
By removing the preprocessing settings, the site back up and running normally.
I observe, then, I have two problems: The images do not appear with the basic tutorial and I can not install DDBlock with the advanced tutorial.
Below is my file template.txt for possible analysis.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | chrome.png | 60.28 KB | astutonet |
| #6 | firefox.png | 25.18 KB | astutonet |
| #5 | opera-log.txt | 1.92 KB | astutonet |
| template.txt | 11.55 KB | astutonet |
Comments
Comment #1
ppblaauw commentedDo you have a link to your site, to see why the basic slideshow is not working?
For the advanced options:
line 234 should be: ?> instead of <?php and you need to remove ?> from line: 357 (the last line)
Clear the cache after making the changes.
Hope this helps you further, please let me know.
Comment #2
astutonetOk, I'll make changes as indicated.
Note, however, that this site is on localhost, as I said at the start of the topic.
If there are any information that might help, please let me know that I will convey the information.
Thank you.
Comment #3
astutonetI made changes to the file template.php, as indicated. All pages of the site seem to function normally ...
I continued the advanced installation, picking up where I left off previously: I was creating the kind of content.
- I tried to import the code from news_item_cck_export.txt, but I got the following error message:
"The import data is not valid import text."- I started creating the kind of content manually, following the instructions found here;
During the configuration of the text fields (pager_item_text and slide_text), I received the following error message:
The default value PHP code returned an incorrect value.
Expected format:
return array(
0 => array('value' => value for value),
// You'll usually want to stop here. Provide more values
// if you want your 'default value' to be multi-valued:
1 => array('value' => value for value),
2 => ...
);
Returned value:
- Text fields were created, but could not configure them as the tutorial. Still, I spent the next steps;
- I imported the file Views_export.txt and when I tried save the view, I received the following error messages:
1 - user warning: Unknown column 'view_php' in 'field list' query: INSERT INTO views_view (name, description, tag, view_php, base_table, is_cacheable) VALUES ('news_items', 'News items used for a Dynamic display block slideshow.', 'slideshow', '', 'node', 0) in C:\wamp\www\mail\sites\all\modules\views\includes\view.inc on line 1649.
2 - The view news_items has been saved.
3 - The requested page could not be found.
Simply The View is not created. It is as if nothing had happened.
For these reasons, I left to continue the installation and configuration of DDBlock.
Any ideas?
Edited:
I also tried adding a new page in the view, with a proper address, as a way to resolve this issue, but I hadn't success.
In my research, in line 1649 of views.inc, the content is:
db_query ($ query, $ values);It seems that something is blocking the sending of view for the database.
Note: This is a problem whith the module VIEW. I need to solve this first...
Comment #4
astutonetI managed to solve the problem with the Views module and perform the advanced installation of the DDBlock module.
I hoped that, on the page where I stated that the DDBlock would be displayed, a box appears with the images that I stated when I created all 5 pages of content and that they was changing from time to time.
But that's not what happened. All the new items DDBlock are displayed in sequence on the same page and plain.
I believe this may be related to "Result: The block is displayed but the images do not appear." above.
Any ideas?
Comment #5
astutonetI really like the features that this module offers so I will be persistent in installing it.
Well, I use Opera 11.11 to browse the site that I am building and one of advantage this browser is the Error Console.
I had forgotten this detail and when I opened the console of errors today, I found many errors. So I cleared the history, I closed the console, I open the site with the DDBlock installed and navigated to the page where the slide should appear (and continue to insist not appear).
After that, I opened the error console and ... Bingo!
I do not know much about programming, but it seems that there are some conflicts that are preventing the display of images.
Following is the errors log of the Opera.
Any ideas?
Thank you.
Comment #6
astutonetAfter #5, I decided to research the problem with other browsers and I believe I discovered the existence of a bug in DDBlock module.
As can be seen in the file opera-log.txt above, there is an error on line 197, column 8, of the ddblock.js file.
The same error is ppointed by the developer tool (F12) of the IE9, in Google Chrome and Firefox, as can be seen on the images below.
Now, I need of the help of experts. This really is a bug?
How can we solve this problem?
Comment #7
ppblaauw commentedProbably you have a value in the custom jquery field which is not in json syntax.
Probably some html is inserted in the field by a wysiwyg editor. (you can see it when using show plain text for the field)
Best not to use a wysiwyg editor for this field (disable wysiwyg for this field)
Hope this helps you further, please let me know
Comment #8
astutonetWe found the problem.
Wysiwyg editors insert unwanted tags in fields that are empty.
In this case, I was using CKEditor in the site where I installed the DDBlock module.
When I was setting the blocks, even though I add any information in the field of Custom Options of the jQuery Cycle Plugin, the editor inserts a
<br />tag that caused the error and prevented the display of images.I uninstalled the editor, removing all items, views, and blocks and restarted the installation and configuration from scratch.
The images and the block now appear.
Thank you.
Comment #9
ppblaauw commentedSet status to fixed.
Comment #10
astutonetTip: How to use the DDBlock module on a site with CKEditor.
As you can see above, the DDBlock module can't be used in conjunction with Wysiwyg editors, however, you can keep the two modules on the same site, without conflicts between them.
For this, you must disable the rich text editor in the pages of DDBlock.
In the case of CKEditor, browse to admin > settings > CKEditor.
In 'Global Settings', click on edit.
In 'Visibility Settings', make sure that the 'Exclude' option was selected.
In the 'Fields to exclude/include', add the following line:
admin/build/block/configure/ddblock/*Thus the CKEditor is unavailable for the blocks of DDBlock and will not cause more errors.
I believe these instructions should be part of the installation tutorial. If users of other editors can contribute with specific instructions, it will be easier for everyone.