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

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : August 30, 2008, 03:38:46 AM
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Superclean questions
Advanced search
  « previous next »
Pages 1
Author
Topic: Superclean questions  (Read 2184 times)
« on: February 24, 2008, 05:19:46 AM »
Roger Barnes Offline
Newbie
*
Posts: 8

View Profile Email

Does the superclean template not show any categories at all?  All I get is thumbnails of one category (no category info at all).  I don't even get to choose which category it displays either.  Something isn't right with the template, that's for sure.

What I am looking for is the category information like "Semantic" but once you get to the thumbnails, I would like to go right to the lightbox popup.  I don't want the intermediate picture.

Can someone please help me figure it out?
Logged
 
Reply #1
« on: February 27, 2008, 09:11:27 AM »
JC Offline
Newbie
*
Posts: 10

View Profile Email

Does the superclean template not show any categories at all?  All I get is thumbnails of one category (no category info at all).  I don't even get to choose which category it displays either.  Something isn't right with the template, that's for sure.


I would also like to know if it's possible to display categories in Gallery home when using superclean. Anyone anyone  Huh

jc
Logged
 
Reply #2
« on: July 22, 2008, 06:05:16 PM »
jungica Offline
Newbie
*
Posts: 4

View Profile Email

ok, here we go.

first, change the line 20 in /components/com_rsgallery2/templates/semantic/html/semantic/html/thumbs_table.php to this:

Code:
<a href="<?php echo imgUtils::getImgOriginal$item->name ); ?>" rel="lightbox" title="<?php echo $item->title;?>">

second, put this lines into /components/com_rsgallery2/templates/semantic/index.html after

Code:
$template_dir = JURI_SITE . "/components/com_rsgallery2/templates/" . $rsgConfig->get('template');

insert:

Code:
$lightbox_dir = JURI_SITE . "/components/com_rsgallery2/lib/lightbox_plus";

and

after
Code:
$doc->addStyleSheet($template_dir."/css/template.css","text/css");

insert

Code:
$doc->addStyleSheet($lightbox_dir."/lightbox.css","text/css");
$doc->addScript( $lightbox_dir."/spica.js" );
$doc->addScript( $lightbox_dir."/lightbox_plus.js" );

done.




Logged
 
Reply #3
« on: July 27, 2008, 11:54:28 PM »
altoidboy Offline
Newbie
*
Posts: 10

View Profile Email

thanks jungica! so it sounds like you're showing us how to mod semantic to incorporate lightbox, rather than modding superclean to display galleries. is that right?

i tried your steps, but the very first one doesn't work. for a start, line 20 is:

Code:
<div class="img-shadow">

and i'm sure you didn't intend for us to replace that.

the next line (line 21) is:

Code:
<a href="<?php echo JRoute::_"index.php?option=com_rsgallery2&page=inline&id=".$item->id ."&Itemid=$Itemid" ); ?>">

but if i replace this with your replacement code:

Code:
<a href="<?php echo imgUtils::getImgOriginal$item->name ); ?>" rel="lightbox" title="<?php echo $item->title;?>">

it breaks the whole thing and i get an error:

Code:
Parse error: syntax error, unexpected T_VARIABLE in /home/myusername/public_html/components/com_rsgallery2/templates/semantic/html/thumbs_table.php on line 21

help!
« Last Edit: July 28, 2008, 03:21:20 AM by altoidboy » Logged
 
Print  Pages 1
« previous next »
Jump to: