RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 01, 2008, 04:54:01 pm
+  RSGallery2 Support Forums
|-+  Developers corner
| |-+  Developer Lobby
| | |-+  Highslide JS possible for template
Advanced search
  « previous next »
Pages 1 2
Author
Topic: Highslide JS possible for template  (Read 20632 times)
« on: May 04, 2007, 03:14:57 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

it is a creative commons javascript, so we cannot include it in the component (commercial websites have to pay a fee)

http://vikjavev.no/highslide/

another joomla project is already using it:
http://demo.joomlaprodigy.com/index.php?option=com_content&task=view&id=7&Itemid=29
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #1
« on: May 24, 2007, 02:44:17 am »
piran
Guest

That site's use of highslide correctly uses arrow key navigational
and does so directly from the displayed thumbnail. As opposed
to RSG2 which fudges the issue by clicking into a resized image
from which a further click is necessary to go into highslide,
whilst somewhere along the way losing arrow key navigation;~/

I intend to purchase a license if the RSG2 templates can more
successfully utilise highslide technology, so the commercial aspect
is not relevant for me here.

Am attempting to cajole the default template into working this
variant but seem to have come across a problem not least of my
own understanding of the inner workings. For instance...
Quote
<a href="<?php echo imgUtils::getImgOriginal( $item['name'] );?>"><img border="1" alt="test only" title="test only" width="<?php echo $thumb_width; ?>" class="highslide" onclick="return hs.expand(this)" src="<?php echo imgUtils::getImgThumb($row->name); ?>" /></a>
...is not achieving my objective. It leaves me not with a URL
but in the image directory (Apache ModIndex fashion).
However it did get me at least to the original section;~)
How do I get it to return the actual filename as well?

----best wishes, Robert
Logged
 
Reply #2
« on: May 24, 2007, 04:23:50 am »
piran
Guest

[img.utils.php]
Code:
     /**
      * @param string name of the image
      * @param boolean return a local path instead of URL
      * @return complete URL of the image
      */
    function getImgOriginal($name, $local=false){
        global $mosConfig_live_site, $rsgConfig;
       
        $locale = $local? JPATH_ROOT : $mosConfig_live_site;
       
        // if original image exists return that, otherwise $keepOriginalImage is false
        // and and we return the display image instead.
        if( file_exists( JPATH_ROOT.$rsgConfig->get('imgPath_original') . '/' . $name )){
            return $locale . $rsgConfig->get('imgPath_original') . '/' . 'test/' . rawurlencode($name);
        }else {
            return $locale . $rsgConfig->get('imgPath_display') . '/' . rawurlencode( imgUtils::getImgNameDisplay( $name ));
        }
    }

Why doesn't this bit...
Code:
rawurlencode($name)
...append the actual filename.index onto the end of the string?
I just end up with a directory listing of the /original/ directory.

----best wishes, Robert
Logged
 
Reply #3
« on: May 24, 2007, 07:53:13 am »
Jonah Offline
Administrator
Hero Member
*****
Posts: 1413



imgUtils::getImgNameDisplay( $name ); returns the actual file name.

$name should always be the name of the original file as it was stored by RSG2.  Thumbnails and display images are currently always saved as jpeg's and so they are named by appending .jpg onto the original filename.

If your missing the name something else is wrong...
Logged

Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.
 
Reply #4
« on: May 24, 2007, 07:57:46 am »
piran
Guest

imgUtils::getImgNameDisplay( $name ); returns the actual file name
in the superClean template (yours?) but it doesn't work in the
tables template which seems to be the undeclared default one
in which 'everything' is supposed to work.

Thank you for the explanation of the strange, error-looking, way
that RSG2 files are saved out as .jpg.jpg I was going to ask just
as soon as I could stir some meaningful dialogue up in this forum;~)

----best wishes, Robert
Logged
 
Reply #5
« on: May 24, 2007, 01:05:52 pm »
piran
Guest

Jonah----

With your words ringing in my ears I set about work.
Have had MUCH more success with YOUR template;~)
The highslide thing is now working properly in it;
it is triggered from the actual thumb (not via an
intermediate fudged thumbnail); multiple iterations
appear onscreen and, finally most importantly, the
keyboard arrow navigation works wonderfully.

I have to go out very shortly to an outdoor
theatre event but should have details for
you later - certainly by tomorrow.

While working on this I seem to have stumbled on
some crazy issue where superClean doesn't 'see'
the top level of the RSG2 galleries and so none of
the sublevels. Seems to be missing catId or something
similar. Not sure if it's all my messing about so I will
need to initialise everything before anything further.

I'm thinking of running the template under a new
name but is that permitted by RSG2 and yourself?
If so how do I convert it and is there a procedure?

----best wishes, Robert
Logged
 
Reply #6
« on: May 24, 2007, 01:48:37 pm »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

as far as I know this is still a GNU/ GPL licensed project, so you can, more or less, do what you want with it when you give credits where credits are due

I'll create a board where everybody can post their templates

compress it in a zip file containing:
css/template.css
index.php
display.class.php
templateDetails.xml

to change the title and other properties, edit the templateDetails.xml file

I'll post similar information in the board I'll create
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #7
« on: May 24, 2007, 03:30:56 pm »
Jonah Offline
Administrator
Hero Member
*****
Posts: 1413



superClean was more of a quick hack to show the possibilities.  I designed it to collapse all subgalleries into one. Please post your template here Piran, name it  superClean2 (or similar) for now.  We might replace superClean with it or include it alongside.

This brings up a question, do we want to be bundling lots of templates or having them as separate downloads?  We should definitely bundle Semantic and Tables, but what about the others?

I'll create a board where everybody can post their templates


Isn't that what the templates forum is for?  Smiley

Code:
Template, CSS, Display
Discuss display issues. Create and post your custom RSG2 templates.

Unless you wanted to split it off into a new forum?  I'm not sure if we have enough 3rd party template developers to warrant that yet.
Logged

Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.
 
Reply #8
« on: May 24, 2007, 05:51:26 pm »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

hmm, well, it would only serve as a directory, not a discussion or support board, this way, all the templates that can be downloaded and installed could be found in one place without having to search through support posts about templates

Quote
I'm not sure if we have enough 3rd party template developers to warrant that yet.
why not start off good, just laying down the foundation on which we can build the metropolis called RSGallery2  Cool
with other words, I think it could also invite people either to produce templates, or to share the ones the create for themselves
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #9
« on: May 25, 2007, 03:44:47 am »
piran
Guest

Have put it here meanwhile, not least because of a odd issue
I was hoping Jonah would look at (resolve) overnight but he
may not have been able to 'see' my site through all the blocks.
When installed the galleries don't show up but their URLs
have to be added in manually to the menu eg as a sub URL.
I didn't notice it during test/development as I was just using
the same thing all the time;~/ Perhaps you could have a
quick look Daniel as I know you have access (usern/passw)?
Logging in auto redirects you to the smallest test dir.
----best wishes, Robert
Logged
 
Reply #10
« on: May 25, 2007, 10:03:24 am »
piran
Guest

(some pathing issues unresolved hereabouts...)
Here is the highslide stuff again, this time with
newly amended settings in the highslide.js file.
----best wishes, Robert
Logged
 
Reply #11
« on: June 01, 2007, 05:15:29 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

you templateDetails.xml file has a flaw in it, it calls itself templateDetails.css
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #12
« on: June 01, 2007, 05:54:15 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

I modified it a bit, it now uses the semantic template for the mainpage, and the hisghslide js to show the gallery thumbs

I also fixed the xml file

edit: example here: http://photo.danieltulp.nl/component/option,com_rsgallery2/Itemid,2/
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #13
« on: June 01, 2007, 06:29:47 am »
piran
Guest

How inventive, I must see;~)
----best wishes, Robert
Logged
 
Reply #14
« on: June 01, 2007, 02:50:05 pm »
piran
Guest

Daniel----
Now I see;~)
I didn't know or realise what that line achieved...
your template class must extend rsgDisplay even if by
extending a different class that extends rsgDisplay. 
you can reuse existing functionality by extending
a different template's rsgDisplay.
...OK, so now I have re-tune my CSS for that
semantic thing too, it sort of cross-links it does
it not? There's a problem or issue. I had set the
default nbr of galleries on frontpage to 5 but my
existing site had some seven sub-galleries being
referenced from the top. It gave a blank screen
until I amended that setting to 10 or 15.
----best wishes, Robert

[postedit]
Include a quoted further explanation
from Jonah's sticky on 'templates'.
« Last Edit: June 01, 2007, 03:03:10 pm by piran » Logged
 
Print  Pages 1 2
« previous next »
Jump to: