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

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 21, 2008, 04:14:27 pm
+  RSGallery2 Support Forums Advanced search
  Show Posts
Pages: [1]
1  RSGallery2 / Gallery Showcase / Re: Family Photo Gallery on: February 16, 2008, 11:28:50 pm
Roger-

Sorry I didn't respond sooner. I have been temporarily unavailable for the past couple of weeks. Thanks for the interest in the gallery. It was rather simple to get the effect. I simply made a change to line 20, in the thumbs_table.php for the semantic template. Changes made are as follows:

Old Code:
<a href="<?php echo sefRelToAbs( "index.php?option=com_rsgallery2&amp;Itemid=$Itemid&amp;page=inline&amp;id=".$item->id ); ?>">
<img alt="<?php echo htmlspecialchars(stripslashes($item->descr), ENT_QUOTES); ?>" src="<?php echo $thumb->url(); ?>" /></a>


Replaced with:
<a href="<?php echo imgUtils::getImgOriginal( $item->name ); ?>" rel="rokzoom" title="<?php echo htmlspecialchars(stripslashes($item->descr), ENT_QUOTES); ?>"><img alt="<?php echo htmlspecialchars(stripslashes($item->descr), ENT_QUOTES); ?>" src="<?php echo $thumb->url(); ?>" /></a>

RSGallery2 version: 1.14.0
Joomla! version: 1.0.14


Chad
2  RSgallery2 support forums / RSgallery2 bugs & problems / Edit function 1.14.0 (SVN 378) on: December 30, 2007, 01:56:10 pm
I checked around the forums and didn't find anything too similar to the issue I had. What is happening is when I am viewing "My Galleries" and decide to edit a particular sub-gallery, upon saving it changes the parent id of the main gallery in the jos_rsgallery2_galleries table. Consequently, the gallery, sub-galleries, and images then disappear from the site entirely.

I can still access the "My Galleries" page; however, my main gallery and all sub-galleries are no longer listed in the "My Galleries" tab. The original images are shown in the "My Images" tab, but are not accessible. Also, the galleries, sub-galleries and images  are still accounted for in the "User Information" section.

I assumed if they were still showing in the "User Information" section, there must still be a database entry for them. I was able to bring the galleries and images back to life by manually changing the parent id number of my main gallery back to "0" with phpMyAdmin.

This SVN is behind the nightly builds quite a ways, and the issue may not be occurring in the latest build. Just a little hesitant to update to the latest SVN and risk breaking things. Thanks!

RSGallery2 version:  1.14.0 (SVN 378)
PHP version:  4.4.7
MySQL version:  4.1.22-standard-log
Joomla! version: 1.0.13

Chad
3  RSgallery2 support forums / Display and Templates / Re: [SOLVED]function showRSPath on: December 30, 2007, 12:03:06 am
A quick update...

After modifying the code to produce the pathway I was after, I noticed any lower most sub-gallery was being displayed as a link. For example:

Home > Photos > Gallery > Sub-Gallery   <-- all were links

I obviously didn't need the current location to be linked. In particular if the pathway is going to be used for navigational purposes. I ended up modifying a bit more code to eliminate the last position in the pathway...or the current location from being turned into a link.

line 839 of display.class.php in the meta template:

link
Code:
if ( $gallery->id == $currentGallery && empty($item) ) {

no link
Code:
if ( $gallery->id == $currentGallery ) {


Chad
4  RSGallery2 / Gallery Showcase / Family Photo Gallery on: December 29, 2007, 11:47:06 pm
My family photo gallery. Not many images uploaded yet, template and component undergoing slight modifications. Modified the image popups to use Rocket Theme's mootools based "Rokzoom". Been working on XHTML validation for a few components, RSGallery2 is one I haven't had to mess with. Great component. Thanks!

http://mckissick.net/component/option,com_rsgallery2/Itemid,96/


Chad
5  RSgallery2 support forums / Display and Templates / Re: gallery list background color on: December 28, 2007, 06:51:30 pm
Quote
But rather than telling it to set to MY particular background color, couldn't I remove the color altogether and let my template's background "shine through?"

Not sure...I would assume if the CSS rule for the background color were to be removed it should assume the J! templates styling. Comment it out or remove it, and see what happens. IIRC, the Semantic template didn't have any background color referenced in the stylesheets...and it assumed my templates background color.


Chad
6  RSgallery2 support forums / Display and Templates / Re: function showRSPath on: December 28, 2007, 06:43:21 pm
john-

Thanks for that...not sure how I overlooked it. I guessed I must have missed it while poking around at the files. I commented out the code regarding $item_title in the showRSPathway section of the Meta tempates display.class.php . It did the job I was after. Thanks!

If the code can be overridden in the semantic template, I may do some experimentation with combining the code to eliminate having to look so many places. Don't know if it will cause issues...but only one way to find out.  Cool

Code:
if (!empty($item)) {
$mainframe->appendPathWay( $item->title );
}

Thanks again!


Chad
7  RSgallery2 support forums / Display and Templates / Re: function showRSPath on: December 28, 2007, 11:25:51 am
Ok...maybe I might be somewhat confused. I went through just about every file that has anything to do with RSGallery2 and the pathway...or at least I believe I have. Anyrate, the only files that have any code in them that deal with the pathway (at least with the current template) is the semantic template index.php and config.rsgallery2.php.

I have been trying different ways to get my goal worked out...but keep hitting brick walls. I can completely remove $rsgDisplay->showRSPathWay(); from the index.php and the pathway completely disappears. Which...is obvious. However I do not want to completely remove the pathway from the gallery.

I have also toyed with config.rsgallery2.php. Meaning, making small changes to the code with no results other than when I removed or tweaked the wrong lines the site completely bombed out. There is a line at the end of the pathway section, which I believe is adding the image title to the pathway.

 
Code:
if (!empty($imgid)) {
            $database->setQuery('SELECT title FROM #__rsgallery2_files WHERE id = "'. $imgid . '"');
            $imgTitle = $database->loadResult();
            $mainframe->appendPathWay($imgTitle);
        }    // if

If I remove this bit of code, or comment it out...nothing changes. I have even tried completely commenting out the entire section, and even removing it. Still no change. The only change is if I toy with the before mentioned line in the index.php . There's nothing substantial there...just to show the pathway.

Are there any other files involved with appending the image title to the pathway, other than those I have mentioned? Seems strange to me I can completely remove the section regarding the pathway...and it still appears. It is obviously being called from somewhere else...but damned if I can find it. As a side note...I did download a nightly build and made comparisons between the files mentioned above...but didn't notice any differences.

Hopefully I am not missing anything completely obvious. Any input greatly appreciated. Thanks!


Chad
8  RSgallery2 support forums / Display and Templates / Re: gallery list background color on: December 28, 2007, 09:19:38 am
Yes...indeed I did read what I was replying to.

/components/com_rsgallery2/templates/semantic/css/template.css

.rsg_galleryblock, .rsg_galleryblock_double_1, .rsg_galleryblock_double_2{
border: 1px #999999 solid;
padding:8px;
float:left;
position:relative;
margin:0 0 10px 0;
vertical-align:top;
background: #000;
}

Without knowing what template you are using...that's just a shot in the dark.


Chad
9  RSgallery2 support forums / Display and Templates / Re: gallery list background color on: December 28, 2007, 07:38:24 am
Quote
if anyone knows how to do such a basic thing

To do such a basic thing, download firebug, or even the Firefox web developer toolbar. Use the "View CSS Information" from the drop down menu. That will tell you exactly what lines to edit, where they can be found and give a link to the style sheets so you can view them in another window. Too easy.

"Tom, Tom...firebug!"


Chad
10  RSgallery2 support forums / Display and Templates / [SOLVED]function showRSPath on: December 28, 2007, 04:29:52 am
I am doing a little tweaking to the RSGallery2 component for my site. Everything is moving fairly well, minus one issue I have not been able to work out. The issue I am having is the display of the pathway. The pathway works, however it appends the first image title in the particular sub-gallery to the pathway when viewing that sub-gallery. For example:

Home  >  Main Gallery Page  >  Gallery  >  Sub-Gallery  >  Image Title

I think I have looked just about everywhere I can think of to change this, but haven't quite put my finger on it at the moment. The files I have investigated have been config.rsgallery2.php, display.class.php (semantic template), and a few others that didn't contain any 'showRSPath' code. I am going to assume the code I need to be looking at is within config.rsgallery2.php (function showRSPath), but can't quite figure out what the code needs to be replaced with to change this. It's not affecting the site, but just a minor annoyance. Any information to kick me in the right direction would be greatly appreciated. System information below. Thanks!

Joomla! version: 1.0.13
Php version: 4.4.7
MySQL version: 4.1.22
RSGallery2 version: 1.14.0 (SVN 378)


Chad
Pages: [1]