Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
March 18, 2010, 08:58:05 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem Website Baker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
110337
Posts in
15934
Topics by
9292
Members
Latest Member:
a52de940fu
WebsiteBaker Community Forum
English
Archive (posts up to 2007)
(Moderators:
Argos
,
BerndJM
)
Slideshow Mod
Pages:
[
1
]
2
Author
Topic: Slideshow Mod (Read 13468 times)
hudge
Offline
Posts: 173
Slideshow Mod
«
on:
November 22, 2005, 02:28:09 AM »
So I almost got this done. I am having 2 problems that I know of:
1. my paths to the images are not dynamic. Would like to use something like WB_URL/modules/slideshow/back.png
2. I cant get either [TITLE] [DESCRIPTION] to show you in “footer”
thanks for the help will paypal $20 who can clean it up and make the above work.
here is where I got the code... look at the great possibilities
http://www.barelyfitz.com/projects/slideshow/
Here is my working file
http://www.hudge.com/contributes/slideshow.zip
Logged
: Member of the Baker's Dozen :
Baking at 350˚ for 2 hours now...
Bramus
Forum Team
Offline
Posts: 484
Re: Slideshow Mod
«
Reply #1 on:
November 22, 2005, 09:25:29 AM »
how to install this one, i only get errors in line 60 of modules/index.php
Logged
BRAMUS.NL Internet Services
Webhosting - VPS - Domeinregistratie - Webdesign
WebsiteBaker Supported on Linux with DirectAdmin!
hudge
Offline
Posts: 173
Re: Slideshow Mod
«
Reply #2 on:
November 22, 2005, 07:27:01 PM »
The install works fine to my knowledge I have installed it on 2 sites to test. You simply go to addons then Modules then Install Module.... just like any other mod.
Good luck would like to get some feedback and help.
Logged
: Member of the Baker's Dozen :
Baking at 350˚ for 2 hours now...
hudge
Offline
Posts: 173
Re: Slideshow Mod
«
Reply #3 on:
November 29, 2005, 08:51:10 PM »
Anyone there that can help on this it is almost done. I figured out it is the loop part is wrong. got the photos working just cant get the description yet.
Thanks. I will paypal some $$ to you if you can solve it hit me up if you are interested.
Logged
: Member of the Baker's Dozen :
Baking at 350˚ for 2 hours now...
pcwacht
Guest
Re: Slideshow Mod
«
Reply #4 on:
November 29, 2005, 09:23:07 PM »
If you wanna paypal to me, give it to Ryan
Just had a wee look, what I see is in view.php:
Code:
// Replace vars with values
$vars = array('[PAGE_TITLE]', '[THUMB]', '[TITLE]', '[DESCRIPTION]', '[LINK]', '[DATE]', '[TIME]', '[USER_ID]', '[USERNAME]', '[DISPLAY_NAME]', '[EMAIL]', '[TEXT_READ_MORE]');
So I presume you need TITLE, THUMB and DESCRIPTION in the loop
In add.php (where you set the default loop settings)
I only see:
Code:
$image_loop = addslashes('[THUMB]');
Try changing it to something like:
Code:
$image_loop = addslashes('[THUMB]<br /><center>[TITLE]<br />[DESCRIPTION]</center>');
But since you work with tables it might be nicer to get the tumb, title and description each in a cell underneath each other. This can be accomplished by generating tables in the horizontal row each containing the vertical 3 bits
So maybe something like this would be better?
Code:
$image_loop = addslashes('<table><tr><td align="center">[THUMB]</td></tr><tr><td align="center">[TITLE]</td></tr><tr><td align="center">[DESCRIPTION]</td></tr></table>');
Good luck,
John
Logged
burki
Offline
Posts: 136
bake...bake...
Re: Slideshow Mod
«
Reply #5 on:
December 16, 2005, 04:44:11 PM »
your mod works well
but is there a way to change the pictures automatic... i need something like that and it would be very helpfull
for my sons bmx site (im building always a animated gif ) and thats not realy the way!
thanks
Logged
CHEERS
pcwacht
Guest
Re: Slideshow Mod
«
Reply #6 on:
December 19, 2005, 09:20:21 AM »
Slideshow module
improved settings:
- header and footer (stuff before and after the slides)
- navigation for the previous next icons
- position of navigation (Top, Bottom, Both or None)
- filter (choose your transition works only in IE browsers)
- autoplay (starts the slides)
- repeat (repeats the slides)
- time out (milleseconds between slides)
- prefetch (preloads nr. of pictures -1 loads them all)
- resize uploads (needs GD2)
The thumb will be shown and the original image will be linked to. Choose none for imagedisplay.
Should be 2.5.x and 2.6.x compatible.
Let me know if there are any bugs.
John
«
Last Edit: December 19, 2005, 02:24:52 PM by pcwacht
»
Logged
Hans
Offline
Posts: 498
Re: Slideshow Mod
«
Reply #7 on:
December 19, 2005, 10:17:32 AM »
Hi John,
thanks a lot.
It seems like the settings aren't saved: size, filter. Also, after saving, I get this message: Unknown column 'autoplay' in 'field list'
Description is shown, the title isn't.
Besides that everything seems to be okay.
Hans
«
Last Edit: December 19, 2005, 10:26:54 AM by Hans
»
Logged
Hans - Nijmegen - The Netherlands
pcwacht
Guest
Re: Slideshow Mod
«
Reply #8 on:
December 19, 2005, 10:48:53 AM »
Small error in install.php, the field autoplay wasn't made
Attached a new version above, please retry.
John
Logged
Hans
Offline
Posts: 498
Re: Slideshow Mod
«
Reply #9 on:
December 19, 2005, 12:24:06 PM »
Hi John,
it's getting better all the time (The Beatles). Only: the header is still missing.
Don't what caused this but I altered a description, giving it a linebreak AND changed the dimensions (settings > resize images to). Then all pictures were lost. In look into that further.
Oh.. and i saw that image display could be set to none. Unless I missed something, I didn't see an option for that.
Hans
[Edit] It was the linebreak in the descriptionfield that caused the loss of the pictures. Changing the dimensions was okay as far as this concerns, although they didn't change, there were no pictures lost because of that.
«
Last Edit: December 19, 2005, 12:33:25 PM by Hans
»
Logged
Hans - Nijmegen - The Netherlands
pcwacht
Guest
Re: Slideshow Mod
«
Reply #10 on:
December 19, 2005, 12:45:55 PM »
The picture description is added to some javascript. That doesn't understand linebreaks as in HTML. So my guess is the output was broken there.
Header is still missing? What do you mean? Is it missing in settings or is it missing in output?
Try changing the header to:
<div align=center>Hello<br> and see what it does
Image display setting to none? Allso here, what do you mean, there is no option for image display
The 'none' options are:
- Navigation position -> there can be no navigation (choose autoplay!)
- Filter: -> no filter
- Resize Image To: -> none will give the original images.
John
Logged
Hans
Offline
Posts: 498
Re: Slideshow Mod
«
Reply #11 on:
December 19, 2005, 01:24:37 PM »
Header: sorry I ment
Title
(Add image)
The header is fine, only when I add "<br />Foto's copyright Hans 2006" before the </div> in the footer (settings) nothing shows.
Image dispay: I think I mis-read something here.
So, all that's left is a missing title and the footer (unless I did it the wrong way) , as far as I can see.
Everything else works perfect.
Great addition to the modules. Thanks again (and sorry for my unclear information)
Hans
«
Last Edit: December 19, 2005, 01:35:16 PM by Hans
»
Logged
Hans - Nijmegen - The Netherlands
pcwacht
Guest
Re: Slideshow Mod
«
Reply #12 on:
December 19, 2005, 02:24:15 PM »
add image:
title - image = pure for admin
title - description = for frontend, no text won't display. Text is java so do NOT enter HTML
footer, my bad, see attachment (update overwrite view.php)
John
«
Last Edit: December 27, 2005, 03:11:38 PM by pcwacht
»
Logged
hudge
Offline
Posts: 173
Re: Slideshow Mod
«
Reply #13 on:
December 22, 2005, 08:51:53 AM »
thanks for posting John.
great job!
Logged
: Member of the Baker's Dozen :
Baking at 350˚ for 2 hours now...
burki
Offline
Posts: 136
bake...bake...
Re: Slideshow Mod
«
Reply #14 on:
December 22, 2005, 07:53:20 PM »
WOW john... thats christmas for me
a perfect job, dont know how to say thanks...
Logged
CHEERS
pcwacht
Guest
Re: Slideshow Mod
«
Reply #15 on:
December 22, 2005, 09:19:03 PM »
couldn't have done it without Hudge...
John
Logged
Tzvook
Offline
Posts: 22
Re: Slideshow Mod
«
Reply #16 on:
December 26, 2005, 10:24:47 PM »
Problem with JavaScript - it won't get Cartridge-return (Enter) in the photo description.
the textarea needs to be turned into a regular field .... or ..... maybe someone has a wiser solution ....
Logged
pcwacht
Guest
Re: Slideshow Mod
«
Reply #17 on:
December 27, 2005, 11:51:54 AM »
Javascript doesn't use <br> wich is HTML
Try \r\n (or /r/n)
The description is made in javascript, look at html source of your page, you'll see
John
Logged
Tzvook
Offline
Posts: 22
Re: Slideshow Mod
«
Reply #18 on:
December 27, 2005, 02:29:17 PM »
10x for reply John
but you misunderstood what I meant
Of course JS use \r\n and not <br>'s ..... I just wanted to let users of this module know, that it uses a textarea (which gives them the ability to use new lines .... thus will give mistakes in the fronEnd pages (javaScript issue) .
IE: new lines in description will make all images dissapere from the site.
One solution is simply turning the textarea into a regular <input type="text"> field with no ability to create new lines ....
Logged
pcwacht
Guest
Re: Slideshow Mod
«
Reply #19 on:
December 27, 2005, 03:07:17 PM »
K updated
Thanks....
John
«
Last Edit: December 27, 2005, 03:11:17 PM by pcwacht
»
Logged
uchr
Offline
Posts: 74
Re: Slideshow Mod
«
Reply #20 on:
December 29, 2005, 02:13:58 PM »
It is posible to use newlines i the descriptions
if you change line 53 in view.php
from:
Code:
$image_description = $image['description'];
to:
Code:
$image_description = $image['description'];
// Change description newlines to html <br>
$image_description = str_replace("\r\n", "<br>", $image_description);
$image_description = str_replace("\n", "<br>", $image_description);
$image_description = str_replace("\r", "<br>", $image_description);
UCHR
Logged
Shakey
Offline
Posts: 8
Re: Slideshow Mod
«
Reply #21 on:
December 29, 2005, 09:50:56 PM »
I just d/l-ed it. I'll install and check it out when I get home.
Looks like it's going to be exactly what I need.
Logged
pcwacht
Guest
Re: Slideshow Mod
«
Reply #22 on:
December 30, 2005, 08:03:18 PM »
Did another check on the description field,
You can enter plain html there
So something like:
Code:
This is line ONE<br>This is line two<br><b>A bold line</b><br>
Works
As is <a href= etc....>click here</a>
John
Logged
Tzvook
Offline
Posts: 22
Re: Slideshow Mod
«
Reply #23 on:
January 01, 2006, 11:28:49 AM »
Quote from: uchr on December 29, 2005, 02:13:58 PM
It is posible to use newlines i the descriptions
if you change line 53 in view.php
........
10x uchr .... that solved this issue
Logged
soodanim
Offline
Posts: 28
Re: Slideshow Mod
«
Reply #24 on:
January 18, 2006, 04:47:13 AM »
Quick question...
When Slideshow is selected and u go to the "Manage sections" it doesn't show up in the list.
So if you want to remove it from a page you have used it from you can't.....
HELP
Pretty new to all this so wouldn't even know where to start looking to fix it.
Logged
Pages:
[
1
]
2
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
Loading...