How can I remove...

Started by XHIBIT911, September 04, 2012, 07:32:48 PM

Previous topic - Next topic

XHIBIT911

A few months ago i was searching for unique codes here in the forums and ran across a slideshow for the aeva photo gallery.
Everything works just fine as illustrated here on my homepage: http://pshomesource.com/home/

But I no longer what the text to show or the thin red line or the view album button to be visible.
In fact I only want the images with nothing more.
How can I remove that ?

mashby

http://pshomesource.com/home/slideshow/css/slideshow.css
To remove the red line, edit the above:
.slideshow-captions{background:#000;bottom:0;color:#FFF;left:0;overflow:hidden;position:absolute;text-indent:0px;text-align:left;width:100%;height:350px;z-index:10000;border-top:solid 4px #980000;}
Remove the last part, so it's this:
.slideshow-captions{background:#000;bottom:0;color:#FFF;left:0;overflow:hidden;position:absolute;text-indent:0px;text-align:left;width:100%;height:350px;z-index:10000;}I cannot see text or the view album button though.
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

Actually I want to remove that entire opaque bar underneath the red line so that only the images show without the shaded area whatsoever

mashby

Hmm...as a guest, maybe I am not allowed to see what your screen shot is showing. I just see a black area under the red bar with a first/previous/play_pause/next/last button bar. I imagine the code/content is in a block in PortaMx. Using Firebug, I can see you have this in there somehow:
var myShow = new Slideshow('show', data, {captions: true, controller: true, thumbnails: false, delay: 5000, duration: 2000 });Maybe edit that to be:
var myShow = new Slideshow('show', data, {captions: false, controller: false, thumbnails: false, delay: 5000, duration: 2000 });Guessing of course. :)
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

Wowww...I logged out and as a guest I see the image and the opaque shaded area under the red bar. Theres also a button that says view album to the bottom right thats visible to me even as a guest.

Are you at least able to see the images ?
And that edit seems like it wont remove that entire opaque block that slides in for the next image will it ?
I want the entire thing gone so only the pictures show

mashby

I don't see any images at all. I'm using Firefox. Tried in IE8 and Opera, too. Just a black box. Is this the first image?
http://pshomesource.com/home/index.php?action=media;sa=media;in=142
QuoteThe image "http://pshomesource.com/home/index.php?action=media;sa=media;in=142" cannot be displayed because it contains errors.
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

Yup....thats the first (most recent image)...and everyone else sees them ok

mashby

Not sure who everyone else is, but not sure it matters. I don't see a Media menu on your site as a guest.
http://pshomesource.com/home/index.php?action=media
That's what I think is the URL to it.
QuoteSorry, but you are not allowed to access the gallery
So that might explain why I am not seeing any images.

In the center block on your home page, what is the code you have in there?
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

The media button has been renamed to database...let me dig up the code

mashby

Whatever it's labeled, guests are not allowed to view/access it, so your home page block should either be restricted to members (or whoever can view the media gallery), or the media gallery should be visible to guests. None of this discussion though will fix the things you may want though. :)
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

Ok wow...guests were not able to see the media in permissions. I know I had that set correctly asnd I believe my idiot host support fiddled around with some settings last week.
Anyway Ive reset it so guests ARE able to view and I now suspect I was only able to see it after logging out because my browser cached it


heres the PHP code

/* PHOTO GALLERY PLUS v1.2 - Intended for use with  *** PortaMX and Aeva***
    visit: http://portamx.com/2052/mootools-animated-slide-show-block/ SMF/PortaMX support of this adapted version.
    Slideshow is a javascript class for Mootools 1.2 to stream and animate the presentation of images on your website.
    Copyright (c) 2008 by Aeron Glemann (http://www.electricprism.com/aeron/).  (Freeware)
    This package was adapted to work with SMF and no part of the original script was modified in any way.
    PHOTO GALLERY PLUS is an alternative to viewing pictures on a SMF website and is intended as a package add-on for Simple Portal.

    Respected applications and developers concerning this modification:
        Aeva Media    - Developed by Nao/Gilles (c) Noisen.com / SMF-Media.com
        Simple Portal - Developed by The Simple Portal Team - v2.3.1 (c)2008-2009   (http://simpleportal.net/)
        Slideshow     - Developed by Aeron Glemann  (c)2008 (http://www.electricprism.com/aeron/)           
        Several code edits were done thanks to Louis Lester for SMF 2.0 and AEVA Gallery   with permission from original author.                           */


/* >>>>>>>START - User supplied info<<<<<<< */


/* Enter total number of pics to view for forum */
$total_pics = 15;

/* Set 'true' for recent display and 'false' for random display in forum photos */
$type0 = true;

/* Enter total number of pics to view for aeva */
$total_pics_aeva = 6;

/* Set 'true' for recent display and 'false' for random display in aeva media */
$type1 = true;

/* Enter topic id to view pics from
- set to 0 for whole forum
- board id in next version */
$topic_id = 0;

/* Settings for Forum or Aeva Pics:
1 - Strictly Forum Photo Attachments
2 - Strictly Aeva Photo Gallery
3 - Use both Forum and Aeva Pics */
$gallery_type = 2;

/* Other specific settings can be adjusted in: / slideshow / settings.php    */

/* >>>>>>>END - User supplied info<<<<<<<  */


global $boarddir;
   /*  Grab the photo viewer file. */
   if (file_exists('slideshow/photo_viewer.php'))
{
require_once('slideshow/photo_viewer.php');
$gallery_type = (int)$gallery_type;
photo_gallery_v1a($total_pics, $total_pics_aeva, $type0, $type1, $topic_id, $gallery_type);
}
else
   {
      echo 'You do not have PHOTO GALLERY PLUS installed... Please install the necessary package! ... ';
      echo 'Visit askusaquestion.net for support.';
      return;
   }

mashby

Sweet. I can see pictures now! :)

Quote/* Other specific settings can be adjusted in: / slideshow / settings.php    */
Can you attach that file?
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

Maaaan I cant thank you enough for pointing that out...I had no clue guests weren't allowed permission to view the gallery and when they said they "adjusted" some settings, I assumed it was server side.
Thats the 2nd time they've monkeyed around with my admin settings and didnt reset them

mashby

No problem, dude. OK, that file didn't have what I thought would be in it, so...mind attaching this one next?
Hmm...never mind. There seems to be some variables that are being set that this file would be overwritten with anyway.
This is the bit that makes the images display, but I'm not sure how based on the code in the block you provided:
//<![CDATA[
window.addEvent('domready', function(){
var data = {
'http://pshomesource.com/home/index.php?action=media;sa=media;in=142': { caption: '<h3>Home Images of The Week</h3><p>Who&#039;se ready for Home Tycoon ?</p><p>Uploaded by: ILLUMIN-X<a href="http://pshomesource.com/home/index.php?action=media;sa=album;id=24" title="open link" class="open" >View Album</a></p>' },
'http://pshomesource.com/home/index.php?action=media;sa=media;in=141': { caption: '<h3>Home Images of The Week</h3><p>Horsin&#039; around with a LOOT Portable EOD</p><p>Uploaded by: ILLUMIN-X<a href="http://pshomesource.com/home/index.php?action=media;sa=album;id=24" title="open link" class="open" >View Album</a></p>' },
'http://pshomesource.com/home/index.php?action=media;sa=media;in=140': { caption: '<h3>Home Images of The Week</h3><p>The Harbor Bistro Cafe &amp;amp; Diner: By Whusler&lt;br /&gt;</p><p>Uploaded by: ILLUMIN-X<a href="http://pshomesource.com/home/index.php?action=media;sa=album;id=24" title="open link" class="open" >View Album</a></p>' },
'http://pshomesource.com/home/index.php?action=media;sa=media;in=139': { caption: '<h3>Home Images of The Week</h3><p>Evil Bunnies don&#039;t die, they multiply.</p><p>Uploaded by: ILLUMIN-X<a href="http://pshomesource.com/home/index.php?action=media;sa=album;id=24" title="open link" class="open" >View Album</a></p>' },
'http://pshomesource.com/home/index.php?action=media;sa=media;in=138': { caption: '<h3>Home Images of The Week</h3><p>Beware of the Evil Bunnies</p><p>Uploaded by: ILLUMIN-X<a href="http://pshomesource.com/home/index.php?action=media;sa=album;id=24" title="open link" class="open" >View Album</a></p>' },
'http://pshomesource.com/home/index.php?action=media;sa=media;in=137': { caption: '<h3>Home Images of The Week</h3><p>The Itchy Heinie&#039;s, coming to a public space near you.</p><p>Uploaded by: ILLUMIN-X<a href="http://pshomesource.com/home/index.php?action=media;sa=album;id=24" title="open link" class="open" >View Album</a></p>' },
'http://pshomesource.com/home/index.php?action=media;sa=media;in=136': { caption: '<h3>Home Images of The Week</h3><p>Awesome Sauce !!! MzShottiGirl323&#039;s Harbor Studio Hair Salon</p><p>Uploaded by: ILLUMIN-X<a href="http://pshomesource.com/home/index.php?action=media;sa=album;id=24" title="open link" class="open" >View Album</a></p>' }
};
var myShow = new Slideshow('show', data, {captions: true, controller: true, thumbnails: false, delay: 5000, duration: 2000 });
});
//]]>
That last line has the captions enabled. Might you know how that gets there?
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

LOL....thats like a BB rattling around in a balloon to me.
I dont have the foggiest...could it be the CSS ?

mashby

CSS might be OK, but it would be a lot easier to edit the variables that make that slideshow work. How about this file just for fun?
slideshow/photo_viewer.php
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

OK server side I glanced at this and noticed something.
text/html my_slideshow.html
HTML document text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Slideshow 2!</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="author" content="Aeron Glemann (http://www.electricprism.com/aeron/)" /> <link rel="stylesheet" type="text/css" href="css/slideshow.css" media="screen" /> <script type="text/javascript" src="js/mootools.js"></script> <script type="text/javascript" src="js/slideshow.js"></script> <script type="text/javascript"> //<![CDATA[ window.addEvent('domready', function(){ var data = { '1.jpg': { caption: 'Volcano Asención in Ometepe, Nicaragua.' }, '2.jpg': { caption: 'A Ceibu tree.' }, '3.jpg': { caption: 'The view from Volcano Maderas.' }, '4.jpg': { caption: 'Beer and ice cream.' } }; var myShow = new Slideshow('show', data, {controller: true, height: 300, hu: 'slideshow_images/', thumbnails: true, width: 400}); }); //]]> </script> </head> <body> <div id="show" class="slideshow" style="overflow: hidden;"> <img src="slideshow_images/1.jpg" alt="Volcano Asención in Ometepe, Nicaragua." /> </div> </body> </html>



Also heres the PHP:



mashby

PHP file attached...not sure if this will work or not, but worth a shot.

CSS indeed might work if all else fails...
.slideshow-captions{display:none;}
That did the trick with Firebug...still isn't the "ideal" way, but it should work. :)
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911

OK so that was for the CSS php ?

mashby

Try the PHP file first. If that works, you don't need to edit the CSS file. :) If the PHP file doesn't work, the edit to the CSS should.
Always be a little kinder than necessary.
- James M. Barrie

Advertisement: