| Team SILO Forum | |||
|
Forum Rules Staff Team Introduce Yourself Team SILO Wiki Main Page Follow Us! Stumble Upon Delicious Digg Myspace Youtube |
[ Click Here! ] For Full Download and Feedback |
Team SILO Lead Staff [DemonDog] Founder/Lead Designer/Admin [Vulcan] Founder/Global Moderator [HJKDillon] Global Moderator [Reapertura] Global Moderator [hawksghetto] Global Moderator AV Team [xXd34thm3t4131fXx] |
|
| Welcome to Team SILO. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Simple Image Viewer; ~Easy Set-up~ | |
|---|---|
| Tweet Topic Started: Apr 16 2010, 11:21 AM (373 Views) | |
| DemonDog | Apr 16 2010, 11:21 AM Post #1 |
|
~Speedy Silence~
|
1. Troubleshooting - add ?diag after your script when calling it (e.g. phpshow.php?diag) to get some diagnosis for common problems. 2. Parameters (like 15 pics per page and the times used for blending) can be changed easily, just open the php file with a text editor and have a look at the first few lines. Important parameters are:
3. A simple way to personalize the page design is to create your own stylesheet. When you open the php file one of the first lines is this one: $stylesheet="<link rel=\"stylesheet\" type=\"text/css\" href=\"$SCRIPT_NAME?css\">"; Just change the href address to your file, e.g. href=\"http://panmental.de/browser/phpshow.css\". Note that quotation marks need to be escaped (\"). You might want to start with the original stylesheet and only replace parts - it contains comments and explains e.g. how to hide control elements. 4. Incorportating the slideshow into your existing web page is no problem as long as you use it as a stand-alone, i.e. if you leave it unchanged and call it as a frame or iframe. Should you however want to add html to the script file and put anything before the <?PHP tag you need to set $GD_WORKAROUND="oldGD"; and $allowZip=false;. These constraints are imposed by html/php as headers can be sent only once; Thus modes which require image or zip headers will no longer work, as the html header gets sent before the script kicks in! (Note that changes within the PHP code, i.e. to the parameters are no problem.) 5. Do you want to display descriptive texts or even links along with photos? This is easy to do with the listing assistant. After you have the phpshow script on your server call it in your web browser, adding ?lister at the end. So, if the script is at http://panmental.de/photo/slideshow.php enter http://panmental.de/photo/slideshow.php?lister in your browser. The listing assistant will display all images from that directory along with text boxes. Simply enter your description or link next to the corresponding photo. When you are done with annotating click the button to download the xml file. Afterwards you only have to upload this xml file to that photo directory on your server. 6. Actually instead of placing the original script in all photo directories you can put dummy scripts with the following content there (NO html around the php tags, 3. from above applies!):
Like this you need to save the script itself only in one place while from every directory you only have a pointer to the full script - saves space and allows for simple changing. To make the script behave different depending on the directory it is run from you can also overwrite variables in each dummy script, e.g. add to the dummy script:
7. To run the script as an embedded or iFrame in an exisiting web page as shown here on the right you need to do the following: First get script running as described above, then set the parameter $hideControlElements=true; - either in the main script or, which might make more sense, in a dummy script only. Then add the following line to your existing web page, with all capital letters replaced to fit your needs: <iframe src="http://YOURDOMAIN.COM/PHOTOS/SCRIPT.php?newGD&slides&0" width="X" height="Y" scrolling="no" allowtransparency="true" name="slideshow" frameborder="0"> <p>Uh oh, embedded frames are not supported by your browser!</p> </iframe> Additionally you might want to add CSS information to the iframe, as style="float:right; margin-left:15px; margin-bottom:5px;" 8. Want to design your own controls for the slideshow module? External iFrame control from within your page is easy to realize! Try this to control the iFrame above right: << || >> The html for this in your main page would be
Edited by DemonDog, Apr 16 2010, 11:23 AM.
|
|
Youtube Channel | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
![]() Our users say it best: "Zetaboards is the best forum service I have ever used." |
|
| « Previous Topic · PHP Examples · Next Topic » |
| Track Topic · E-mail Topic |
7:47 PM Jul 10
|
Quote of the Moment |
|
|
||
|
Team SILO Affiliates [ Click to Affiliate ] [ Show All Affiliates ] |
| Please support us by clicking our vote buttons everyday! | |
Theme Designed by McKee91
Forum Elements used from Brawl Domain
Hosted for free by ZetaBoards · Privacy Policy



phpshow.php (72.18 KB)




7:47 PM Jul 10