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

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


here is my dirty hack for it

open index.php
at the top after
$xoopsTpl->assign('cats'$cats);
add
$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
<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
<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



502
Bleekk
Re: Publisher 1.0 Final ready for testing
  • 2013/10/23 10:58

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


*thumbsup*

I can now start to make templates for the theme!
Thanks!



503
Bleekk
Re: Publisher 1.0 Final ready for testing
  • 2013/10/23 10:21

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


trying to upload a aricle image

following error: No image category found



504
Bleekk
Re: Publisher 1.0 Final ready for testing
  • 2013/10/23 9:26

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


OMG I was soooo wrong with the publisher module!
I was looking in the code today and saw that there is a article image so I looked in the options in the module and all you have to do is to set the permissions!
This is really cool! There are soo much more options. I will test the module today because right now I have troubles to upload a image



505
Bleekk
Re: Publisher 1.0 Final ready for testing
  • 2013/10/22 20:26

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


template publisher_item.html => line 17:
there is smarty for item image. but you can't have a item image. this was possible in the smartsection module
In the class/item.php I also see a funtion to get the article image but it is not possible to create one

class/item.php there is a function getCategoryName() which returns category name. we do not use it to return a smarty with the category name.
this is important if you want to make cool tamplates.

there is a bug in the publisher_display_full.html template
<span class="publisher_collaps_info"">
==> 2x"

also in publisher_display_summary.html
<span class="publisher_collaps_info"">
==> 2x

I have corrected this 2 bugs and formatted the html code because it was terrible formatted

Here are this 2 templates



506
Bleekk
Re: Publisher 1.0 Final ready for testing
  • 2013/10/22 18:38

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


I am right now working with the xnews module which seems much more finished then publisher. it also provides article images.
I will write you asap which corrections should be done



507
Bleekk
Re: Help needed.
  • 2013/10/22 11:32

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


first change your FTP password! do not share your password!
then take a look at the last modified files on your server. there must be some changed code to redirect the users to this porn sites



508
Bleekk
Re: block options
  • 2013/10/22 10:50

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


I figured it out
It was very easy using XoopsFormSelect



509
Bleekk
block options
  • 2013/10/22 10:05

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Hi,

I am trying to create a block with a select dropdown and 2 options: left, right.

Can someone explain me how to achieve this?
I was playing around with the xoops_version.php (module) and the block edit and show functions but I didn't get it together.
The selected option needs to be displayed as a smarty in the block template.

Thanks!



510
Bleekk
Re: Publisher 1.0 Final ready for testing
  • 2013/10/22 7:29

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Thank you for your answer.
In this case the version of this module needs to be set to beta. This is not a finished module




TopTop
« 1 ... 48 49 50 (51) 52 53 54 ... 69 »



Login

Who's Online

227 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 227


more...

Donat-O-Meter

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

Latest GitHub Commits