21
destrux
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/8 0:16

  • destrux

  • Moderator

  • Posts: 57

  • Since: 2002/6/3 1


sure thing, PM your email address

22
jpboss
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/8 1:17

  • jpboss

  • Just popping in

  • Posts: 5

  • Since: 2003/7/7 2


The thumbnails was all "wierdo" with this hack (I didn't notice if it was before the hack). If the image was in "portrait" aspectratio and not "landscape" the thumbnail was zoomed up and got pixelated.

I modded my own "modules/xoopsgallery/blocks/xoopsgallery_blocks.php" with the following code:
if( $hw[0] > $hw[1]) {  
                                if (
intval($options[1]) < $hw[0]) {
                                        
$image['width'] = intval($options[1]);
                                        
$image['height'] = $hw[1] * ($image['width'] / $hw[0]);
                                } else {
                                        
$image['width'] = $hw[0];
                                        
$image['height'] = $hw[1];
                                }
                        } else {
                                if (
intval($options[1]) < $hw[1]) {
                                        
$image['height'] = intval($options[1]);
                                        
$image['width'] = $hw[0] * ($image['height'] / $hw[1]);
                                } else {
                                        
$image['width'] = $hw[0];
                                        
$image['height'] = $hw[1];
                                }
                        }


This was the code before I changed it:
if (intval($options[1]) < $hw[0]) {
                                
$image['width'] = intval($options[1]);
                                
$image['height'] = $hw[1] * ($image['width'] / $hw[0]);
                        } else {
                                
$image['width'] = $hw[0];
                                
$image['height'] = $hw[1];
                        }


I'm sure my conditional block might be improved, but it's 3am in the morning here, and I'm too tired to bother. With four glasses of red wine those lines of code took me two hours to get right *lol*

23
ether
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/24 0:17

  • ether

  • Just popping in

  • Posts: 8

  • Since: 2003/3/8 2


Sorry, but would anyone tell me how to install the Xoopsgallery Hack please? I have Xoop 2.0.2 and Xoopsgallery 1.3.3. Many thanks!

24
LethZoid
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/28 23:26

  • LethZoid

  • Just popping in

  • Posts: 9

  • Since: 2003/7/8 1


I'm still having a problem...

I did the updates...

But I can't create a new album, how can I fix this?

25
Ashundar
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/29 21:41

  • Ashundar

  • Just popping in

  • Posts: 2

  • Since: 2003/7/29


is there any way to take out the print service? as the program our membersuse they cant actually sell anything unless they own a registered version of the software rarther the the shareware version any help would be greatly appreciated :)

26
Ashundar
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/29 22:32

  • Ashundar

  • Just popping in

  • Posts: 2

  • Since: 2003/7/29


Np fixed it, as i couldnt directly disable through the admin panel i just disabled this code in view_photo.php

// if (strcmp($gallery->album->fields["print_photos"],"none")) {
// if (strlen($adminCommands) > 0) {
// $adminCommands .="
";
// }
// $adminCommands .= "[print this photo on Shutterfly]";
// }

27
LethZoid
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/30 0:30

  • LethZoid

  • Just popping in

  • Posts: 9

  • Since: 2003/7/8 1


how do I get to their again?

28
Shufflebug
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/8/31 19:24

  • Shufflebug

  • Just popping in

  • Posts: 40

  • Since: 2002/6/19


This fix from gstarrett solves the problem with the comments in xoopsgallery -> http://sourceforge.net/tracker/index.php?func=detail&aid=737922&group_id=41586&atid=430840

the related thread is here.

I thought this could be useful.

Shufflebug

29
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/9/29 6:38

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:

jpboss wrote:
The thumbnails was all "wierdo" with this hack (I didn't notice if it was before the hack). If the image was in "portrait" aspectratio and not "landscape" the thumbnail was zoomed up and got pixelated.
[snip]


FYI, I got about the same effect by changing getFullPath() to getFullThumbPath() in both functions (b_xoopsgallery_newshow and b_xoopsgallery_getRandomImage).

Lines 20 and 75 now read:
if (false !== $hw getimagesize($images[$i]->getFullThumbPath())) {


instead of:
if (false !== $hw getimagesize($images[$i]->getFullPath())) {


Thanks for posting the info on this.

30
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/9/29 6:41

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:

destrux wrote:
Well it seems I've narrowed the problem to the new comment_post.php. It seems this line of code:

$extra_params .= isset($HTTP_GET_VARS[$extra_param]) ? $extra_param.'='.$HTTP_GET_VARS[$extra_param].'&' $extra_param.'=&';


which is added twice in the update for 2.0.3 replacing these line:
[snip]


I found out that you need to change $HTTP_GET_VARS to $HTTP_POST_VARS and it works properly again, with or without register_globals on. I've posted it as a bug to the core modules in the bug database.

Login

Who's Online

411 user(s) are online (315 user(s) are browsing Support Forums)


Members: 0


Guests: 411


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits