Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    Hello, i am fairly new to all of this and cannot seem to find out how to change the text size for "View as Slideshow" as well as the "Previous" and Next" links. I have been over gallery.css a bunch of times and cannot find it in there. And after trying to manually do it in gallery.php the whole page goes blank when i refresh.

    Any help on where to find these settings would be great. Thanks!!
    • CommentAuthorbjl6d
    • CommentTimeJul 6th 2006 edited
     
    Try this:

    First, open gallery.css and add the following code:
    a.slideshowlink {
    font-size: 24px; /* or whatever size you want */
    }

    Second, go to gallery.php and look for this line (around 666):
    $ss_tag = "<td><a href="$ss_url">View as Slideshow</a></td>";

    Replace that with:
    $ss_tag = "<td><a href="$ss_url" class="slideshowlink">View as Slideshow</a></td>";

    Assuming you want the same font size with your previous/next links, look for these lines (around 179):
    if ($current_picture > 0) {
    $prev_link = '<a accesskey="," href="'.generate_url("picture",$image_list[$current_picture-1]).'">&laquo; Previous</a>';
    };

    if ($current_picture < sizeof($image_list)-1)
    {
    $next_link = '<a accesskey="." href="'.generate_url("picture",$image_list[$current_picture+1]).'">Next &raquo;</a>';
    };


    And replace with:
    if ($current_picture > 0) {
    $prev_link = '<a accesskey="," href="'.generate_url("picture",$image_list[$current_picture-1]).'" class="slideshowlink">&laquo; Previous</a>';
    };

    if ($current_picture < sizeof($image_list)-1)
    {
    $next_link = '<a accesskey="." href="'.generate_url("picture",$image_list[$current_picture+1]).'" class="slideshowlink">Next &raquo;</a>';
    };


    As a caveat, I just set my plogger up and haven't uploaded enough pictures to get the Previous/Next links to show up yet, but I imagine it should work. If you want different sizes, you can create a "a.previousnextlinks" class in your style sheet and replace accordingly.
  2.  
    Ok, i tried what you said, but after the editing, whenever i try to load my index everything comes up blank and i am stuck sitting in front of a white page.

    I am guessing it may have something to do with syntax, but i dont know where or what. I don't know how to add classes...if i am forgetting a step.
  3.  
    nevermind, i found it....it was the table entry in gallery.css

    thanks for your help though!
    • CommentAuthorlocust
    • CommentTimeJul 30th 2006
     
    Your code works fine for me on the next and prev text, but generates a

    Parse error: parse error, unexpected T_STRING in http://....... on line 666

    When i try to change the style of "Slideshow"

    Thanks
    • CommentAuthorKromeKat
    • CommentTimeJul 30th 2006
     
    I just tried out the fix submitted by bjl6d (july 6th) and received the same error that locust has.
    • CommentAuthorKromeKat
    • CommentTimeAug 1st 2006 edited
     
    locust,

    think I go it

    $ss_tag = "<td><a href="$ss_url" class="slideshowlink">View as Slideshow</a></td>";

    Those pesky stripslashsâ?¦

    When added to class="slideshowlink" within the above line of code posted by bjl6d my issue was solved. Now, on to the other issues.

    prost
    • CommentAuthorKromeKat
    • CommentTimeAug 2nd 2006
     
    bjl6d thank you for you help.
    Most appreciated!



    Saúde!
    • CommentAuthorlocust
    • CommentTimeAug 10th 2006
     
    Xcelent. Thx for the help
    • CommentAuthornekko
    • CommentTimeDec 6th 2006
     
    this doesn't work for me; when i make the changes the album will not load and when i change back it does. If I change anything other than what the link refers to (i.e. View as Slideshow") the gallery will not load.
    • CommentAuthornekko
    • CommentTimeDec 7th 2006 edited
     
    ok, I figured out a work-around. I added the following lines to gallery.css

    a:link {
    text-decoration: none;
    color: #39659C;
    }
    a:active {
    color: #39659C;
    text-decoration: none
    }
    a:visited {
    color: #39659C;
    text-decoration: none;
    }
    a:hover {
    text-decoration: underline;
    }