Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 14:52

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 24. Jun 2008, 20:32 
Offline

Joined: 24. Jun 2008, 20:00
Posts: 3
Location: nevian.org
Hallo,

My php built w/GD but w/o imagerotate :(

Which file I need edit for insert custom function code to support it everywhere in gallery?

Thanx a lot!


Top
 Profile  
 
 Post subject:
PostPosted: 24. Jun 2008, 21:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
there are 2 things you have to do:

1. TWG checks if rotate is available and if not it disables it.
2. replace the places where imagerotate is used. You should search for it in all files because then you solve 1. as well ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jun 2008, 11:20 
Offline

Joined: 24. Jun 2008, 20:00
Posts: 3
Location: nevian.org
Hallo,

My idea was to substitute function like
Code:
if(!function_exists("imagerotate")) {
    function imagerotate(&$srcImg, $angle, $transparentColor = null) {
       some code;
    }
}

and let's it used as usual :)


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jun 2008, 11:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you can try - but some php installations tell you that the function exists but then it still does not work.
You have to try.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jun 2008, 12:13 
Offline

Joined: 24. Jun 2008, 20:00
Posts: 3
Location: nevian.org
I'll try, but which file i need to edit better?


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jun 2008, 12:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
inc/filefunctions.inc.php should be fine . info.php is not using any external files - you migh wat to add it there too.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy