41
cerbero
Re: Extgallery nightmares...
  • 2013/10/14 16:35

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


I'm trying to give to my extgal main page the look and feel that the one in xoopsfire.com
The idea is to show the categories in a table with a fix number of columns but i don't know how to do this

could anybody help me please, i've tried to contact with the author of that web with no success

42
cerbero
Re: Extgallery nightmares...
  • 2013/10/17 16:21

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


This is the way i want to show the extgallery's main page:

Resized Image


Could anybody help me please?

43
Mamba
Re: Extgallery nightmares...
  • 2013/10/27 0:44

  • Mamba

  • Moderator

  • Posts: 11521

  • Since: 2004/4/23


Quote:
i've tried to contact with the author of that web with no success

Try to contact the author by posting in the Google's XOOPS Brasil community
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

44
cerbero
Re: Extgallery nightmares...
  • 2013/10/29 8:29

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


ok, i'll try it, thanks

45
Bleekk
Re: Extgallery nightmares...
  • 2013/10/29 12:20

  • Bleekk

  • Theme Designer

  • Posts: 942

  • Since: 2002/12/14


here is my dirty hack for it

open index.php
at the top after
le="color: #000000"><?php $xoopsTpl->assign('cats', $cats);
add
le="color: #000000"><?php $photoHandler = xoops_getmodulehandler('publicphoto', 'extgallery'); for($i=0; $i <= count($cats); $i++){ $photos = $photoHandler->objectToArray($photoHandler->getAlbumPhotoPage($cats[$i]['cat_id'], 0, "photo_date", "DESC"),array('uid')); } $xoopsTpl->assign('photos', $photos);


then open templates/extgallery_index.html
at the bottom look for line 52. it looks like this
le="color: #000000"><?php <h2><a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-<{$display_type}>.php?id=<{$child.cat_id}>"><{$child.cat_name}></a></h2><br /><h3><{$child.cat_desc}></h3></td>


change it to this
le="color: #000000"><?php <h2><a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-<{$display_type}>.php?id=<{$child.cat_id}>"> <{$child.cat_name}></a> </h2> <br /> <h3><{$child.cat_desc}></h3> <{foreach item=photo from=$photos}> <{if $photo.cat_id == $child.cat_id}> <img src="<{xoAppUrl}>uploads/extgallery/public-photo/thumb/thumb_<{$photo.photo_name}>" /> <{/if}> <{/foreach}> </td>


you should now see thumbs of each category

46
Bleekk
Re: Extgallery nightmares...
  • 2013/10/29 12:25

  • Bleekk

  • Theme Designer

  • Posts: 942

  • Since: 2002/12/14


to format this thumbs preview use following smarties
le="color: #000000"><?php <{$photo.photo_id}> <{$photo.photo_title}> <{$photo.photo_name}> <{$photo.photo_desc}> <{$photo.photo_comment}> <{$photo.photo_hits}>

47
AngeloRocha
Re: Extgallery nightmares...
  • 2013/10/29 14:56

  • AngeloRocha

  • Just can't stay away

  • Posts: 603

  • Since: 2010/6/8 1


Hi cerbero, Omega Blue, black and clean have a custom extgallery templates, you tested this themes? Sorry for the delay.

The xoops fire use a version this themes.

48
AngeloRocha
Re: Extgallery nightmares...
  • 2013/10/29 15:00

  • AngeloRocha

  • Just can't stay away

  • Posts: 603

  • Since: 2010/6/8 1


The last version of theme factory (non responsive) have a custom template for extgallery, see: https://xoops.org/modules/news/article.php?storyid=6493

49
cerbero
Re: Extgallery nightmares...
  • 2013/11/11 12:12

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


Thanks to all, i'm trying with no success, supose i need more knowledge to adapt it to my theme

50
Bleekk
Re: Extgallery nightmares...
  • 2013/11/11 13:58

  • Bleekk

  • Theme Designer

  • Posts: 942

  • Since: 2002/12/14


I tested my code on the index page of the gallery and it works.
See the image below

Resized Image


HERE ARE my files. Please make a backup first of your files

Who's Online

834 user(s) are online (770 user(s) are browsing Support Forums)


Members: 0


Guests: 834


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits