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:34:38 AM
+  RSGallery2 Support Forums Advanced search
  Show Posts
Pages: [1]
1  RSgallery2 support forums / Display and Templates / Re: How do I move "Latest images" to top? on: February 28, 2008, 06:05:50 PM
I'm baaaack...I only work on my website on Thursdays, so here I am. Thank you for the suggestion Jonah, but that isn't working either...

Line 28 is:
Code:
if( $this->pageNav ):

And when I remove it and upload my new gallery.php file I get this error:

Parse error: syntax error, unexpected T_ENDIF in /home/clicker/public_html/components/com_rsgallery2/templates/semantic/html/gallery.php on line 76

So I look at line 76,
Quote
<?php endif; ?>
and for "fun" I deleted it to see what that would do. That was bad, it broke the entire gallery page and displayed everything without CSS.

So I am still back where I started and I'm fairly close to just giving up on this.

As a final attempt, can anyone post the entire Semantic template gallery.php file with the latest/random images positioned to display above the galleries? I'm curious to compare that with my file to see what I'm doing wrong, and to see if your file works with my site. Anyone?
2  RSgallery2 support forums / Display and Templates / Re: rsgallery2 jsn epic on: February 28, 2008, 05:40:55 PM
I am also using JSN Epic, but on Joomla! 1.0.13 Stable and I have no problems. Maybe there is a conflict in the newer version of Joomla?
3  RSgallery2 support forums / Display and Templates / Re: SOLVED: Hide/Remove Upload Date under Latest/Random images? on: February 28, 2008, 05:38:41 PM
I apologize for hijacking a SOLVED thread, but I'm confused. I also want to hide the upload date under latest images, but I'm not using Meta template, I'm using Semantic. I didn't see the code to edit in my template's display.class.php file. Can anyone help?
4  RSgallery2 support forums / Display and Templates / Re: How do I move "Latest images" to top? on: February 21, 2008, 07:29:57 PM
Okay, let's get the eye-rolling exasperation out of the way...  Roll Eyes
Believe it or not, I do have a brain...and I've done this with a previous install of RSGallery2.

Here's my existing code of gallery.php, which displays Random Images at the bottom of the page:

Code:
<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php

global $ItemId;

//Show My Galleries link
if ($rsgConfig->get('show_mygalleries')) {
echo $this->showRsgHeader();
}
//show search box
$this->showSearchBox();

//Show introduction text
?>

<div class="intro_text"><?php echo $rsgConfig->get('intro_text');?></div>



<?php
//Show limitbox
if( $this->pageNav ):
?>

<div class="rsg2-pagenav-limitbox">
<?php echo $this->getGalleryLimitBox(); ?>
</div>



<?php
endif;

foreach( 
$this->kids as $kid ):
?>

<div class="rsg_galleryblock">
<div class="rsg2-galleryList-status"><?php echo $kid->status;?></div>
<div class="rsg2-galleryList-thumb">
<?php echo $kid->thumbHTML?>
</div>
<div class="rsg2-galleryList-text">
<?php echo $kid->galleryName;?>
<span class='rsg2-galleryList-newImages'>
<sup><?php if( $this->gallery->hasNewImages() ) echo _RSGALLERY_NEW?></sup>
</span>
<?php echo $this->_showGalleryDetails$kid );?>
<div class="rsg2-galleryList-description"><?php echo $kid->description;?>
</div>
</div>
<div class="rsg_sub_url_single">
<?php $this->_subGalleryList$kid ); ?>
</div>
</div>
<?php
endforeach;
?>

<div class="rsg2-clr"></div>

<?php
if($this->gallery->id == 0){

// show random and latest only in the top gallery 

//Show block with random images 
$this->showImages("random"5);
//Show block with latest images
$this->showImages("latest"5);
}
if( 
$this->pageNav ):
?>


<div class="rsg2-pageNav">
<?php echo $this->getGalleryPageLinks(); ?>
<br/>
<?php echo $this->getGalleryPagesCounter(); ?>
</div>
<div class='rsg2-clr'>&nbsp;</div>
<?php endif; ?>

And here is the change I am making, moving the block of code that Ronald highlighted and placing it directly beneath the //Show introduction text div. When I upload this it breaks my entire main gallery page, displaying only the Random Images block and none of the galleries. What am I doing wrong?

Code:
<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php

global $ItemId;

//Show My Galleries link
if ($rsgConfig->get('show_mygalleries')) {
echo $this->showRsgHeader();
}
//show search box
$this->showSearchBox();

//Show introduction text
?>

<div class="intro_text"><?php echo $rsgConfig->get('intro_text');?></div>

<?php
if($this->gallery->id == 0){

// show random and latest only in the top gallery 

//Show block with random images 
$this->showImages("random"5);
//Show block with latest images
$this->showImages("latest"5);
}
if( 
$this->pageNav ):
?>


<?php
//Show limitbox
if( $this->pageNav ):
?>

<div class="rsg2-pagenav-limitbox">
<?php echo $this->getGalleryLimitBox(); ?>
</div>



<?php
endif;

foreach( 
$this->kids as $kid ):
?>

<div class="rsg_galleryblock">
<div class="rsg2-galleryList-status"><?php echo $kid->status;?></div>
<div class="rsg2-galleryList-thumb">
<?php echo $kid->thumbHTML?>
</div>
<div class="rsg2-galleryList-text">
<?php echo $kid->galleryName;?>
<span class='rsg2-galleryList-newImages'>
<sup><?php if( $this->gallery->hasNewImages() ) echo _RSGALLERY_NEW?></sup>
</span>
<?php echo $this->_showGalleryDetails$kid );?>
<div class="rsg2-galleryList-description"><?php echo $kid->description;?>
</div>
</div>
<div class="rsg_sub_url_single">
<?php $this->_subGalleryList$kid ); ?>
</div>
</div>
<?php
endforeach;
?>

<div class="rsg2-clr"></div>



<div class="rsg2-pageNav">
<?php echo $this->getGalleryPageLinks(); ?>
<br/>
<?php echo $this->getGalleryPagesCounter(); ?>
</div>
<div class='rsg2-clr'>&nbsp;</div>
<?php endif; ?>

5  RSgallery2 support forums / Display and Templates / Re: How do I move "Latest images" to top? on: February 13, 2008, 05:43:33 PM
This isn't working for me, what am I doing wrong?

I moved the above mentioned code block directly under this code block

Quote
//Show introduction text
?>
<div class="intro_text"><?php echo $rsgConfig->get('intro_text');?></div>

And when I viewed my main gallery page all the galleries disappeared and only the "latest images" box showed up.

Where exactly should I place the latest images code block so it appears at the top of the page?
6  RSgallery2 support forums / RSgallery2 bugs & problems / Re: [solved] Error when using the batch upload on: February 13, 2008, 05:34:42 PM
Sorry to bump a thread marked [solved], but I don't want to start a new thread with the exact same topic.

I contacted my hosting provider and she said:

Quote
The way to go is to put a text file named php.ini in the same folder as the script(s) for which you're setting the value. Php.ini should contain this line:

upload_max_filesize = 8M (or whatever suits you best...)

So I've created the php.ini file with the values I need, but where exactly do I put it? Looking through my com_rsgallery2 directory I'm not sure where it goes. TA2 wrote above to put it in "every folder". Every folder?

RSGallery2 FAQ states:
Quote
I can't upload large images or zip files.

PHP has a number of settings that limit file uploads. You will need to ask your hosting provider to change these settings in the file php.ini. If you are hosting your own site, please read the PHP manual on Handling File Uploads and Common Pitfalls.  The following are suggested minimums:

max_execution_time: 300
memory_limit: 32MB
post_max_size: 32MB
upload_max_filesize: 32MB

The last three should be higher than the largest zip file you want to upload.

Is that the correct syntax to use? All the other examples I've seen use equal signs and M for megabytes, not MB.

Please help!
7  RSGallery2 / Meta Forum / Re: Trouble with login/posting on: February 05, 2008, 08:41:13 PM
No worries. I just created a new username. Thanks for checking up.
Pages: [1]