Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Login
Register
News
:
December 01, 2008, 04:36:19 pm
RSGallery2 Support Forums
RSgallery2 support forums
Display and Templates
(Moderators:
Jonah
,
Tomislav Ribicic
,
Daniel Tulp
,
Ronald Smit
)
variant of the highslide fancy popup
« previous
next »
Topic Tools
Search this topic
Pages
1
Author
Topic: variant of the highslide fancy popup (Read 1914 times)
«
on:
May 23, 2007, 09:44:42 am »
piran
Guest
variant of the highslide fancy popup
Working on a variant of the highslide fancy popup to show
the fancy images directly from the thumbnail matrix. As
opposed to effectively 'doing' a popup of 'none' followed
by another click to invoke the fancy popup. Does that
make sense? Here's another try: the album's matrix of
thumbnails to click straight into a highslide display.
Been to the author's site and d/l the latest version -
currently at some v3.1.10 (2007 May 22). Read his
copious documentation, perused his bare-bones samples
and gasped at the excellence of the mechanics of his site.
His highslide views link to each other using the left/right
arrow keys or similar onscreen click points. I noticed this
too on a JoomlaProdigy site posting and raised the issue
here in a separate posting on this forum - no response.
So I have set about trying to resolve the programming
complexity to generate a highslide-based fancy popup
variant for my use under RSG2.
Got the new version of highslide running under RSG2
1.13.0 svn25 using the apparent default template along
with my own Joolma template. The call catching works,
the magnifier cursor, the expanding and contracting,
the shadowy control bar mechanism... everything runs
the way the existing popup works.
The bit I haven't been able to resolve is the tweaking
of the section of the display.class.php file (that displays
the matrix 5col x 4row = 20thumbs) but nothing then results.
RSG2 1.13.0 svn25 :: default tables template
[display.class.php]
WAS
case 'table':
$cols = $rsgConfig->get( 'display_thumbs_colsPerPage' );
$i = 0;
?>
<table id='rsg2-thumbsList'>
<?php foreach( $rows as $row ): ?>
<?php if( $i % $cols== 0) echo "<tr>\n"; ?>
<td>
<!--<div class="img-shadow">-->
<a href="<?php global $Itemid; echo sefRelToAbs( "index.php?option=com_rsgallery2&Itemid=$Itemid&page=inline&id=".$row->id."&catid=".$row->gallery_id."&limitstart=".$limitstart++ ); ?>">
<img border="1" alt="test only" title="test only" width="<?php echo $thumb_width; ?>" src="<?php echo imgUtils::getImgThumb($row->name); ?>" />
</a>
<!--</div>-->
<div class="clr"></div>
<?php if($rsgConfig->get("display_thumbs_showImgName")): ?>
<span class='rsg2_thumb_name'>
<?php echo htmlspecialchars(stripslashes($row->title), ENT_QUOTES); ?>
</span>
<?php endif; ?>
<?php if( $allowEdit ): ?>
<div id='rsg2-adminButtons'>
<a href="<?php echo sefRelToAbs("index.php?option=com_rsgallery2&Itemid=$Itemid&page=edit_image&id=".$row->id); ?>"><img src="<?php echo $mosConfig_live_site; ?>/administrator/images/edit_f2.png" alt="" border="0" height="15" /></a>
<a href="#" onClick="if(window.confirm('<?php echo _RSGALLERY_DELIMAGE_TEXT;?>')) location='<?php echo sefRelToAbs("index.php?option=com_rsgallery2&Itemid=$Itemid&page=delete_image&id=".$row->id); ?>'"><img src="<?php echo $mosConfig_live_site; ?>/administrator/images/delete_f2.png" alt="" border="0" height="15" /></a>
</div>
<?php endif; ?>
</td>
<?php if( ++$i % $cols == 0) echo "</tr>\n"; ?>
<?php endforeach; ?>
<?php if( $i % $cols != 0) echo "</tr>\n"; ?>
</table>
<?php
break;
NOW
case 'table':
$cols = $rsgConfig->get( 'display_thumbs_colsPerPage' );
$i = 0;
?>
<table id='rsg2-thumbsList'>
<?php foreach( $rows as $row ): ?>
<?php if( $i % $cols== 0) echo "<tr>\n"; ?>
<td>
<!--<div class="img-shadow">-->
<a href="<?php
echo imgUtils::getImgOriginal($image['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>
<!--</div>-->
<div class="clr"></div>
<?php if($rsgConfig->get("display_thumbs_showImgName")): ?>
<span class='rsg2_thumb_name'>
<?php echo htmlspecialchars(stripslashes($row->title), ENT_QUOTES); ?>
</span>
<?php endif; ?>
<?php if( $allowEdit ): ?>
<div id='rsg2-adminButtons'>
<a href="<?php echo sefRelToAbs("index.php?option=com_rsgallery2&Itemid=$Itemid&page=edit_image&id=".$row->id); ?>"><img src="<?php echo $mosConfig_live_site; ?>/administrator/images/edit_f2.png" alt="" border="0" height="15" /></a>
<a href="#" onClick="if(window.confirm('<?php echo _RSGALLERY_DELIMAGE_TEXT;?>')) location='<?php echo sefRelToAbs("index.php?option=com_rsgallery2&Itemid=$Itemid&page=delete_image&id=".$row->id); ?>'"><img src="<?php echo $mosConfig_live_site; ?>/administrator/images/delete_f2.png" alt="" border="0" height="15" /></a>
</div>
<?php endif; ?>
</td>
<?php if( ++$i % $cols == 0) echo "</tr>\n"; ?>
<?php endforeach; ?>
<?php if( $i % $cols != 0) echo "</tr>\n"; ?>
</table>
<?php
break;
The magnifier glass cursor click over the thumb works
but while the resulting filename is initially pathed OK
but is missing the specific name.index and so the
entire directory is listed (Apache ModIndex style).
Suggestions?
----best wishes, Robert
[postedit: forgot to include the change]
«
Last Edit: May 23, 2007, 06:57:02 pm by Robert Harlow
»
Logged
Pages
1
« previous
next »
Jump to:
Please select a destination:
-----------------------------
RSgallery2 support forums
-----------------------------
=> RSgallery2 bugs & problems
===> Resolved Issues
===> Known Issues
=> Features
=> Display and Templates
=> RSgallery2 modules and plugins (mambots)
-----------------------------
RSGallery2
-----------------------------
=> General discussion
=> Gallery Showcase
=> Template directory
=> Meta Forum
=> Duplicate Threads
-----------------------------
Language translations
-----------------------------
=> General language and translation questions
=> Chinese
=> Danish
=> Dutch
=> English
=> French
=> German
=> Greek
=> Polish
=> Spanish
=> Other languages
=> New translations
-----------------------------
Developers corner
-----------------------------
=> Developer Lobby
=> Nightly Builds for RSGallery2 in Joomla 1.5
=> J15Backport [Closed]
=> Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened!
Print
Advanced search
Powered by SMF 1.1.7
|
SMF © 2006-2008, Simple Machines LLC
Pn-Pn Theme by koni.
Loading...