Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 11:36:20 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155531 Posts in 21713 Topics by 7738 Members
Latest Member: Pattieardathfe
* Home Help Search Login Register
Pages: 1 [2] 3 4 ... 7   Go Down
Print
Author Topic: New module: Caption Slider  (Read 17389 times)
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #25 on: January 13, 2010, 05:33:44 PM »

Indeed missed it. Thnx!

But still the same issue. Empty template.

Looking in the source code...the code ends where normally <?php showslider('banner'); ?> would begin...

Strange....veeeeeee ery strange  huh
Logged

...:: Bake the Unbakable ::...
doc
Guest
« Reply #26 on: January 13, 2010, 06:07:54 PM »

@Boudi:

Have you enabled error reporting? In about 98% a page is appearing, an error in a template or module occurs and PHP throws and error message. When error reporting is deactivated (WB backend -> advanced settings), a white page is shown instead. So turn it on check the error message and post it here.

Doc
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #27 on: January 13, 2010, 06:44:46 PM »

Here it is:

WITHOUT the <?php showslider('banner'); ?> code:

Code:
Notice: Undefined variable: blocks in /var/www/vhosts/domains.nl/httpdocs/modules/droplets/droplets.php(41) : eval()'d code on line 9

WITH the <?php showslider('banner'); ?> code:

Code:
Fatal error: Call to undefined function showslider() in /var/www/vhosts/domains.nl/httpdocs/templates/main/index.php on line 85
Logged

...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #28 on: January 13, 2010, 10:20:13 PM »

This errormessage tells me the snippet is not installed.

Did you install the module the "normal" way? (upload the zip in the backend)
Or did you upload by FTP and activate it in the backend?

The installation should install both the admin-tool and the snippet at once. I can imagine it might go wrong when you do it the ftp way.

R
Logged

Professional WebsiteBaker Solutions
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #29 on: January 14, 2010, 12:27:21 AM »

I installed it the normal way, through the back-end.

First it worked perfectly. Then, (the only thing I did) I reloaded the modules.
After that I got this error.

What I will do is delete the mod, install it again and check if it then will work fine again.

Boudi
Logged

...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #30 on: January 14, 2010, 09:39:55 AM »

I think it will.
The module reload probably does not find the snippet installer.
I will have a look to see if this can be fixed in a future version.

R
Logged

Professional WebsiteBaker Solutions
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #31 on: January 14, 2010, 09:44:01 AM »

Indeed. Just installed it again and worked like an angel. I keep my hands of the reload thing.

When this site is done I will give the url on the website showcase.

Btw..it is truly a great mod.  smiley

Boudi
Logged

...:: Bake the Unbakable ::...
terrajohn

Offline Offline

Posts: 43


« Reply #32 on: January 17, 2010, 09:27:58 PM »

I just want to have it installed in one single page. Is there a way to do so? Using the code section or so?
Put it into the template for just one page doesn't just seems right  rolleyes
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #33 on: January 17, 2010, 09:30:14 PM »

Create a template for that single page Wink
Logged

...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #34 on: January 17, 2010, 10:50:05 PM »

I just want to have it installed in one single page. Is there a way to do so? Using the code section or so?
Put it into the template for just one page doesn't just seems right  rolleyes
It actually is designed for that.
Just add the pageid(s) in the snippetcall of the pages you want it to appear.

If the CaptionSlider should not be used on every page (i.e. only on your homepage) you can tell the snippet by adding a list of page-id's where the slider should be included.
To do this, use a second parameter with a comma-seperated list of page-id's like this exaple: <?php showslider( 'capslide' , '1,5,34' ); ?>. Now the images will only be showed on pages 1, 5 and 34.
The snippetcode is already loaded from disk (standard behavior of snippets). The call is lightweight, a quick test and nothing else is executed if the pageid is given and not matching the current page.

But then.. If you really want, you could also use a code section or create a droplet to run it on a single page.

Ruud
Logged

Professional WebsiteBaker Solutions
terrajohn

Offline Offline

Posts: 43


« Reply #35 on: January 18, 2010, 10:58:36 AM »

ok - thanks.
How do I use the code or snippet thing?
 I inserted the jsquery script in my template, but when calling the slider, through a code section on a page, doesn't seem to work

here the line I put in my template file
Code:
<script type="text/javascript" src="<?php echo WB_URL?>/include/jquery/jquery-min.js"></script>

here the line I used on my page
Code:
<?php showslider('testslider'); ?>

What do I do wrong?
Logged
terrajohn

Offline Offline

Posts: 43


« Reply #36 on: January 18, 2010, 11:01:38 AM »

solved - apparently the groupsname can't be two words - stupid of me

BTW - is there a way to get the caption not on the left side, but on the bottom?
« Last Edit: January 18, 2010, 11:14:04 AM by terrajohn » Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #37 on: January 18, 2010, 11:39:08 AM »

solved - apparently the groupsname can't be two words - stupid of me
Not true, The groupname can be multiple words.
Just remember they should be the same in both the admintool as the snippet call.

BTW - is there a way to get the caption not on the left side, but on the bottom?
Sure, that should be possible by changing the snippet. But it will not be easy.  cool

As I wrote before, I hope others will create snippets that will use the admintool imagelibrary with different jquery slider/fader/you_name_it scripts.
There are lots of these scripts out there, the all just need images and text (and the correct html output).
It would be great if at some time we would have a wide choice of snippets with different styles and functionality.
Logged

Professional WebsiteBaker Solutions
terrajohn

Offline Offline

Posts: 43


« Reply #38 on: January 19, 2010, 09:52:43 AM »

I totally agree - If I had more programmer skills I would indeed try to work on that... But currently I'm only good (and even that  grin) in mesh-up things
Logged
Waldschwein
Guest
« Reply #39 on: January 26, 2010, 02:16:08 PM »

Hello Ruud,

with this module is a problem in the upgrade_script of the current WB 2.8.1 RC3.
It's a bit tricky, because in fact the upgrade_script is not covering this module art of creating database entries (I think it's the first...) but changing the upgrade_script of WB because of one module... Hmm, ok, if there is any discussion needed, contact best aldus.

The problem:
After upgrading from a SVN site to RC3 via upgrade_script or reload_modules in admin there's in frontend on a slidersite a white site with the following error:
Code:
"Fatal error: Call to undefined function showslider() in ***/modules/x_fast_template_2/include.php(1308) : eval()'d code on line 1"

The problem is:
When being installed the module creates two database entries like in the table wb_addons
Code:
(124, 'module', 'capslider/snippet', 'ShowSlider', 'This snippet displays a banner.', 'snippet', '0.1.3', '2.7.x', 'Ruud Eisinga (Ruud)', 'GNU General Public License'),
(125, 'module', 'capslider', 'CaptionSlider', 'This tool allows you to create a slider with images and captions. Use the snippet in the template to activate the slider.', 'tool', '0.1.1', '2.8.x', 'Ruud', 'GPL'),
But after upgrade_script / reload menues one is missing:
Code:
(157, 'module', 'capslider', 'CaptionSlider', 'This tool allows you to create a slider with images and captions. Use the snippet in the template to activate the slider.', 'tool', '0.1.1', '2.8.x', 'Ruud', 'GPL'),

Yours Michael
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #40 on: January 26, 2010, 02:27:15 PM »

I used a nice trick where the snippet was installed together with the admin-tool.
Unfortunately this only works on the install routine.

Upgrading or reloading modules will make the snippet to be uninstalled.
I have been working on finding the best solution, but didn't finish that yet.
I will keep you posted on the progress.
Logged

Professional WebsiteBaker Solutions
aldus

Offline Offline

Posts: 1238


« Reply #41 on: January 26, 2010, 02:59:04 PM »

Hello Ruud

As for a first quick one i think an addition in the info.php like
Code:
<?php
if (function_exists("db_add_key_value")) {
    
load_module(WB_PATH.'/modules/capslider/snippet');
}
?>

could do the trick, as the function is only declared in the "calling" upgrade.php and
this script is only reading the info.php of the module.
Otherwise we have to tought the upgrade.php witch is imho no good idea.

Kind regards
Aldus
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #42 on: January 26, 2010, 04:07:56 PM »

I was thinking towards a quick check in the addons table to see if it is installed.
That could be done when opening the admintool. So if the system is upgraded, or modules reloaded, the first time the admintool is used the snippet will be reinstalled.

I was also thinking on a method of upgrading (only) the snippet. That will be an even bigger challenge.
Any idea's on that? smiley
Logged

Professional WebsiteBaker Solutions
aldus

Offline Offline

Posts: 1238


« Reply #43 on: January 26, 2010, 04:45:56 PM »

Hm  ... personaly i'm not a __big__ fan of these situations,
where you know that a query is only needed one time real and the rest will be unneeded.
Or in other words one "true, upgrade" and the rest "false, don't" ... fore ever ...
But that's my own

As for the upgrade itself i can't find yet why this e.g. souldn't work
Code:
<?php
/**
 *    upgrade only the code-snippet
 *
 */
$result $database->query("SELECT * from " TABLE_PREFIX "addons where directory='capslider/snippet' and type= 'module'");
if (
$result) {
    if (
$result->numRows() == 0) {
        
load_moduledirname(__FILE__)."/snippet/"true);
    } else {
        
upgrade_moduledirname(__FILE__)."/snippet/"true);
    }
}
?>


exept, that the version-numbers of the tool-module and the snippet are differ. Hm ...
To get the upgrade to work the versionnumber of the modul must be also incremented,
even if you haven't touch the code itselft ... hm

Regards
Aldus
Logged
joycesf

Offline Offline

Posts: 13


« Reply #44 on: February 09, 2010, 10:13:50 PM »

Hello Ruud,

I am using your mod but when I added a new mod like gallery lightbox i lost the caption slider and vice versa?  do you know what causing it? 

Thanks
Joyce
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #45 on: February 09, 2010, 10:26:32 PM »

I am using your mod but when I added a new mod like gallery lightbox i lost the caption slider and vice versa?  do you know what causing it? 

Multiple modules using jQuery their own way could bring problems.
Can we have a look at your specific problem?
Logged

Professional WebsiteBaker Solutions
oeh

Offline Offline

Posts: 190



« Reply #46 on: February 09, 2010, 11:09:16 PM »

Norwegian language file.
Logged

Good bye ;-{(
oeh ;-}>
joycesf

Offline Offline

Posts: 13


« Reply #47 on: February 12, 2010, 10:38:47 AM »

Hi Ruud... You are right... so I went and look for another gallery and that seems to solve the problem Smiley

Thanks for this great Mod Smiley

I am using your mod but when I added a new mod like gallery lightbox i lost the caption slider and vice versa?  do you know what causing it? 

Multiple modules using jQuery their own way could bring problems.
Can we have a look at your specific problem?
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #48 on: February 16, 2010, 04:57:03 PM »

Live example!

On this new website I placed the Caption Slider.

Boudi
Logged

...:: Bake the Unbakable ::...
Vincent

Offline Offline

Posts: 360


WWW
« Reply #49 on: February 23, 2010, 09:26:27 PM »

Hi bakers,

Since I updated a website to WB 2.8.1 the capslider doesn't work anymore.
When I put the error level to E-ALL, I get this message:

Code:
Parse error: syntax error, unexpected $end in ..../modules/code/view.php(30) : eval()'d code on line 1

Strange. I updated the module, re-installed it, overwrote the code/view.php but the problem stays. Does anyone have a clue? Thanks in advance.

Vincent
Logged
Pages: 1 [2] 3 4 ... 7   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!