1
Anonymous
Adding auto thumbs to publisher
  • 2011/1/8 15:15

  • Anonymous

  • Posts: 0

  • Since:


Hi,

I just added auto thumb ( TimThumb ) to some blocks and item.php in publisher. Please test it.

Demo: http://www.irassa.com

Note: Thumbs will work if GD library exists.

2
Anonymous
Re: Adding auto thumbs to publisher
  • 2011/1/8 15:55

  • Anonymous

  • Posts: 0

  • Since:



3
Mamba
Re: Adding auto thumbs to publisher
  • 2011/1/8 16:17

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Nice!

Do you have to set up anything? How does it work?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

4
Anonymous
Re: Adding auto thumbs to publisher
  • 2011/1/8 16:34

  • Anonymous

  • Posts: 0

  • Since:


Automatically

The images will resize if GD library exists, otherwise the original will show.

Example(blocks/latest_news.php):
// check to see if GD function exist
    
if (!function_exists ('imagecreatetruecolor')) {
        
$item['item_image'] = $mainImage['image_path']; 
    } else {
        
$item['item_image'] = PUBLISHER_URL '/thumb.php?src='.$mainImage['image_path'].'&w='.$imgwidth// No $imgheight for autoheight option
    
}


Thumbnails will save in /cache folder and will clear automatically.
Example(thumb.php):
define ('CACHE_SIZE'250);                    // number of files to store before clearing cache
define ('CACHE_CLEAR'5);                    // maximum number of files to delete on each cache clear
define ('CACHE_USE'TRUE);                    // use the cache files? (mostly for testing)


Width and height of images can adjust via block settings (Latest news block).


5
mariane
Re: Adding auto thumbs to publisher
  • 2011/1/8 17:42

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


great work Mowaffak,thanks for sharing.
the road of success is always under construction

6
Anonymous
Re: Adding auto thumbs to publisher
  • 2011/1/9 0:14

  • Anonymous

  • Posts: 0

  • Since:


Thanks,

New updates in svn:
- fixed img bug in publisher_singleitem.html (reported by bjuti)
- updated ajaxupload js and fixed upload button style ( reported by mr.black )
- formatting publisher.css file by cleancss.com

http://code.google.com/p/xuups/updates/list

7
Yurdal
Re: Adding auto thumbs to publisher
  • 2011/1/9 12:37

  • Yurdal

  • Friend of XOOPS

  • Posts: 386

  • Since: 2005/3/27


thanks for this, i see rev 224 as download but in SVN i see rev 225 how kan we download this ? thanks !

8
Mamba
Re: Adding auto thumbs to publisher
  • 2011/1/9 14:12

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


If you have something like TortoisSVN, you can download the whole SVN using this link:

http://xuups.googlecode.com/svn/trunk/modules/publisher
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

9
redheadedrod
Re: Adding auto thumbs to publisher

Unless I am mistaken you don't need an CVS client to download the trunk. You should be able to download a "tarball" of the most recent version depending on the CVS server used.

Tarball means you will get a download of the file in a generic form such as "trunk.tar.gz" and you will have to rename trunk to something more reasonable. I always rename it with the name of the project and date of download. So for this I would rename it as "publisher1-9-2011.tar.gz" so I remember what I downloaded.

Having a CVS client however will allow you to do much more if you are logged in and have permissions for it.

Rodney

10
Mamba
Re: Adding auto thumbs to publisher
  • 2011/1/9 16:53

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Unless I am mistaken you don't need an CVS client to download the trunk. You should be able to download a "tarball" of the most recent version depending on the CVS server used.

True for SourceForge, but not in the Google Code, unless I missed something there.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

250 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 250


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