41
ffabris
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/5 21:00

  • ffabris

  • Just popping in

  • Posts: 16

  • Since: 2003/10/4


Quote:
Glad to hear it's working--doing an Update on the module should do the same thing, not sure why it didn't since I believe you said you were doing that. I have my XOOPS general preference "Update module template .html files..." set to "yes", not sure if that is the difference.

I tried that as well, but it made no difference. I believe (but won't swear to it) that the "update module" code is not updating that particular template in the database.

It does something else odd too, in that it appears to reset one particular value to the default: the number of images that appear in the "New Images" block. I like to have that set to 4, but every time I update Gallery, it is changed back to 3 - whereas other values are exactly as I set them.

Quote:
That said, I didn't even realize you could include HTML markup in the descriptions.
I didn't know it as possible either... until I tried it.

Anyway, I just decided to throw that in for the heck of it... "it doesn't hurt to ask".

Anyway, thanks again for your help here! I appreciate you taking the time! I will now have a go at adding the description text to other pages, per your suggestions.

Fab

42
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/5 21:12

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:

ffabris wrote:
I tried that as well, but it made no difference. I believe (but won't swear to it) that the "update module" code is not updating that particular template in the database.

It does something else odd too, in that it appears to reset one particular value to the default: the number of images that appear in the "New Images" block. I like to have that set to 4, but every time I update Gallery, it is changed back to 3 - whereas other values are exactly as I set them.

It is supposed to reset the preferences back to default values when you do an update (as of XOOPS 2.0.4?? it does that). It's also supposed to get those templates, not sure why it isn't.

Quote:
Anyway, I just decided to throw that in for the heck of it... "it doesn't hurt to ask".

Never does

Quote:
Anyway, thanks again for your help here! I appreciate you taking the time! I will now have a go at adding the description text to other pages, per your suggestions.

Fab

No problem. Just trying to 1) get this working for myself and 2) share the results and 3) help out others where I can. All for fortune and glory... yeah, right

43
ffabris
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/5 21:31

  • ffabris

  • Just popping in

  • Posts: 16

  • Since: 2003/10/4


Quote:
It's also supposed to get those templates, not sure why it isn't.

OK, I just figured that out. I cloned the templates in order to be able to change the layout of the "New Images" block. I assumed - wrongly, it turns out - that the cloned templates would get updated. They don't.

So that was my bad. It just hit me a few moments ago. How embarrassing!

But that does leave me wondering... why is it that you can't edit default templates, yet they do go through the update process...

Oh never mind... I guess I still need to get used to XOOPS. I'm new to it, having moved to it from phpWebSite and myPHPNuke before that.

Anyway, thanks again! If you're ever in Bournemouth, I owe you at least several beers!

Fab

44
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/6 0:02

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Yeah, the templates can seem a little counter-intuitive in some ways, but it pretty much makes sense. The system ones are RO through the GUI to prevent someone who isn't diving into the source files from ruining their XOOPS installation. At least I think that is why they are like that.

Quote:

ffabris wrote:
Anyway, thanks again! If you're ever in Bournemouth, I owe you at least several beers!

Fab

You're on... When I'm in the UK I'll look you up Some day I hope to spend some time there.

45
ffabris
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/6 0:13

  • ffabris

  • Just popping in

  • Posts: 16

  • Since: 2003/10/4


Quote:
The system ones are RO through the GUI to prevent someone who isn't diving into the source files from ruining their XOOPS installation. At least I think that is why they are like that.

Yes, that does make sense. I guess I'm just not used to that level of protection, and so it never entered my mind when dealing with this.

Btw, I tried the mods you suggested earlier for "view album" and "view photo" and they work perfectly!

Quote:
You're on... When I'm in the UK I'll look you up Some day I hope to spend some time there.


I hope you do! I moved to the UK 3 years ago, and really love it here!

Fab

46
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/6 0:40

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:

Ashundar wrote:
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 :)


I found the way to correct this is a fix in the xoopsgallery/xoops_version.php file. At line 151, change this:
$modversion['config'][12]['valuetype'] = 'int';
$modversion['config'][12]['default'] = '--';
$modversion['config'][12]['options'] = array('--' => '--''shutterfly' => 'shutterfly');


To this:
$modversion['config'][12]['valuetype'] = 'text';
$modversion['config'][12]['default'] = 'none';
$modversion['config'][12]['options'] = array('none' => 'none''shutterfly' => 'shutterfly''shutterfly without donation' => 'shutterfly without donation');


That will allow the preference to save properly.

Note: This only affects the default for new albums. For existing albums, go to the album "properties" and change the print service to "none" in there.

47
ffabris
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/6 1:12

  • ffabris

  • Just popping in

  • Posts: 16

  • Since: 2003/10/4


That works - thanks!

48
ffabris
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/7 15:00

  • ffabris

  • Just popping in

  • Posts: 16

  • Since: 2003/10/4


Me again.

I just noticed that a line in xoopsgallery_index.html doesn't look quite right...

<td style="padding 10px;" width="<{$album.image.width}>" height="<{$album.image.height}>"><{$album.image.image}></a></td>


Note the closing </a>... which suggests that there should be a link. In fact, it makes sense to link the album thumb to the album too, not just the album name. So I changed the line to:

<td style="padding 10px;" width="<{$album.image.width}>" height="<{$album.image.height}>"><a href="<{$album.image.link}>"><{$album.image.image}></a></td>


and tested it... works fine.

49
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/7 17:00

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:
I just noticed that a line in xoopsgallery_index.html doesn't look quite right...


I'm always clicking on the image instead of the link too--I've updated mt template and it works for me too. I'll be sure to include this in the updated package.

Thanks!

50
ffabris
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/10/7 17:03

  • ffabris

  • Just popping in

  • Posts: 16

  • Since: 2003/10/4


Least I can do!

Login

Who's Online

171 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

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

Latest GitHub Commits