WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
Next Prev links in Slideframe (7 posts)

  1. victor_d
    Member
    Posted 3 years ago #

    Hi!
    First of all, thanks for the Pluging! Works like a charm.

    I just have one Problem. I would like to Customize the Links of the Next and Prev Buttons in the Slideshow. I'm Using just 1 Single picture as Gallery with a navigation like this "< 1/5 >"
    Now i want that at 5/5 the next link goes to the next wordpress site instead of starting at 1/5.

    in wppa_function.php i changed at line 1840 :

    if ($this == $that){
    	$wppa['out'] .= '<a href="'.get_permalink(get_adjacent_post(false,'',false)).'" id="next-arrow-'.$wppa['master_occur'].'" class="wppa-nav-text arrow-'.$wppa['master_occur'].'" style="float:right; text-align:right; cursor:pointer; '.__wcs('wppa-nav-text').'"></a>';}
    else {
    	$wppa['out'] .= '<a id="next-arrow-'.$wppa['master_occur'].'" class="wppa-nav-text arrow-'.$wppa['master_occur'].'" style="float:right; text-align:right; cursor:pointer; '.__wcs('wppa-nav-text').'" onclick="wppa_next('.$wppa['master_occur'].')"></a>';}

    the problem is, that i can't find the variables containing the number of photos so i could simply check if its 5/5 or 1/5

    I'm not so good at programming and would be glad if someone could help! Thx a lot

    Victor

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    What is the wppa+ version of the above?

  3. victor_d
    Member
    Posted 3 years ago #

    i'm using 3.0.1

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    It is not as simple as that. The browsing is done in javascript (wppa_slideshow.js).

    If you want the sequence not circular but the ends pointing to different posts, the links must be given to js variables, to execute a document.location = link action there.

    I will consider this as an enhancement request.

  5. victor_d
    Member
    Posted 3 years ago #

    Hi, thanks for youre help!

    I would be really happy if u could enhance it ;)

    But is it really not possible to get it work with my workaround? It would be ok for me - because i need it quick. I just don't know where from i can get the counter variable.

    Victor

  6. victor_d
    Member
    Posted 3 years ago #

    Hi There,
    let me know if you're finished with this, i'll wait :)

    Till then you might considering enhancing the styling - i had a few problems setting the Borders of the browserbar to none; because it'll always take the default value (in this case #eee/ #ddd)
    i had to overwrite it with .wppa-nav {border:none !IMPORTANT;}in the wppa-styles.css in my template dir.

    Furthermore to customize the browserbar to look like this < 1 / 3 > i still have to make changes in the .php files because the default language english isnt costumizable over the .mo files.

    thank you!

  7. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    The browsebar colors are customizable in Table III item 3.
    See my docs and demos site where i changed it in red and blue. Please tell me you have seen it, then i change it back.

    The english language is customizable. Simply set your locale to en_US and only translate what you want in wppa_theme-en_US.po / .mo. It will work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic