Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Forum Attachment Mod
Author Message
Maclain
Regular
Regular



Joined: Feb 25, 2006
Posts: 60
Location: England

PostPosted: Fri Apr 25, 2008 12:01 pm Reply with quote

OK, nice mod Smile

The only problem i seem to have is getting it to create thumbnails for large images.

Currently it just posts the full size image and makes the page huge!

The main problem i am having is the correct path to imagick convert. The closest I can get is the path to image magick /usr/local/bin. Is this the same??

I'm also a little unsure what the optimal settings would be, currently i have the following:

Minimum thumbnail filesize: 1 bytes this should create a thumb for every image then?

imagick program: /usr/local/bin again not sure on this, hosting with powweb if that helps?

maximum image dimensions 500 x 500

Image link dimensions 0 X 0

make use of GD2 extensions is on.

Still it lets you post huge pics. Any clues??

link: [ Only registered users can see links on this board! Get registered or login! ]

TIA guys Smile

_________________
Insert funky message here:

Last edited by Maclain on Fri May 16, 2008 8:13 am; edited 2 times in total 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Apr 27, 2008 5:53 am Reply with quote

Sorry, but I've never actually used this mod before so I am bumping this thread to see if we can get you some help.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Maclain







PostPosted: Mon Apr 28, 2008 7:43 am Reply with quote

oh nice one, thanks Smile

And here's me being patient
 
Maclain







PostPosted: Mon Apr 28, 2008 8:25 am Reply with quote

Ok,

I've managed to pull the imagick location from the gallery section of another site on the same hosts.

Imagick location turned out to be /usr/local/bin/

When testing the settings, i now get this error:

The Directory './../modules/Forums/files/thumbs' does not exist or couldn't be found.

obviously i have created the directory /thumbs in the corerct folder, and chmod to 777 and still i get the same error.

Is the ./../ correct? If not how the hell do i change it? lol

Edit:

in Management change: Upload Directory "modules/Forums/files" to just "files"

This lets all the tests pass, but then when posting images in the forums, I get the following errors:

Upload Error: Could not upload Attachment to ./files/p1290011_661.jpg.
Upload Error: Could not upload Attachment to ./files/p1290011_661.jpg.

Altered management - upload directory to modules/Forums/files

and now everything seems to work

Odd. But great!!
 
Maclain







PostPosted: Sun May 11, 2008 2:21 pm Reply with quote

Changed nothing and now all uploads fail.

Is anyone using this mod without any issues?
 
montego







PostPosted: Mon May 12, 2008 5:21 am Reply with quote

If you have indeed not changed anything, then you need to check with your host as to what they might have changed on their end. Having narrowed down the time-frame to when you think this has changed will certainly help them in their analysis.
 
Maclain







PostPosted: Mon May 12, 2008 1:35 pm Reply with quote

Yeah I know, I'm battling with the F|Tp settings on it now to see if I can get it going that way, i'll keep you posted.

Only managing to work for a couple of hours a night on this one at the moment though!

TA!
 
montego







PostPosted: Fri May 16, 2008 5:57 am Reply with quote

Maclain, any new news to share on this?
 
Maclain







PostPosted: Fri May 16, 2008 8:05 am Reply with quote

Not at the moment I haven't had chance to play with it much at the moment.

I'll probably have another look at it this evening / tomorrow evening.

I'll keep this thread updated though.
 
Maclain







PostPosted: Fri May 16, 2008 8:46 am Reply with quote

Ok, you made me want to have another look at it.

As things stand at the moment.

As you have already read, I have previously had this working, if only briefly.

HTTP uploads are disabled, using the FTP settings instead.

FTP server: using IP address (logged in to the same IP using filezilla to make sure it's correct - connected no issues)

FTP Path to your upload directory: files (ftp account uses phpbb install folder as it's main directory. /files is contained within, chmod 755 (not that it matters for FTP))

Download Link to FTP Path: files (can be used relative to phpbb installation directory. which it is.)

Passive mode: enabled


username and password double and triple checked.

Test settings: everything seems fine. Although this test presumably just checks to make sure directories exist and it can actually log into the ftp server.

So, reply to a thread and attach an image.

few second wait, then the following error:
Quote:
Upload Error: Could not upload Attachment to ./files/p1130072_953.jpg.


All a bit strange.

So, lets ignore the FTP settings and try the HTTP way.

First of all disable FTP uploads.

Upload directory which states

Quote:
Upload Directory
Enter the relative path from your phpBB2 installation to the Attachments upload directory. For example, enter 'files' if your phpBB2 Installation is located at [ Only registered users can see links on this board! Get registered or login! ] and the Attachment Upload Directory is located at [ Only registered users can see links on this board! Get registered or login! ]


is set to: files

nothing else needs needs changing. Submit changes, settings saved.

So try uploading a file again. get the following error(s)

Quote:
Upload Error: Could not upload Attachment to ./files/p1010063_165.jpg.
Upload Error: Could not upload Attachment to ./files/p1010063_165.jpg.


ok, so to make sure it isn't a permissions problem, chmod Forums/files to 777 and resubmit the post.

same error.

So looking back over my previous posts, I've altered the upload directory to

modules/Forums/files

And way hey, it works.

It's all a little bit strange.

chmod modules/Forums/files 774

So for those with issue's installing this mod, here's the settings that appear to work:

Forum Admin - Attachments - management:

Upload Directory: modules/Forums/files

You will need to create this directory on your server. permissions set to 774
You will also need to create a sub directory called thumbs.


Attachment Posting Icon: modules/Forums/images/icon_clip.gif

Attach topic Icon: modules/Forums/images/icon_clip.gif

Filesize: 10mb

This really doesn't make much difference as it is almost certainly controlled by your server configuration.

enable FTp uploads: no

Extensions - Special Categories.

this section controls the size of images actually shown in the post, and creates thumbnails. It's essential to keep the forum's tidy.

Display images inlined: yes

Create thumbnail: yes

Minimum thumbnail filesize: 50 bytes

This just ensures a thumbnail is created for every image.

make use of GD2 extension: yes

Imagick Program (Complete Path): /usr/local/bin/

This may vary depending on your host.

Maximum Image Dimensions: 0 x 0 (disabled)

Image Link Dimensions: 0 x 0 (disabled)

These do not matter as a thumbnail will be created anyway.

So i hope this helps anyone else looking to use this great mod.

if i;ve got anything wrong, please let me know and I'll edit the post accordingly.
 
Maclain







PostPosted: Sat May 17, 2008 7:24 am Reply with quote

This is seriously strange,

The images I posted yesterday, which were inline images, are now just links to download the image.

Weired.

Also new images are not uploading correctly, and when testing settings I get the following error:

The Directory 'modules/Forums/files' does not exist or couldn't be found.

and under special categories when testing thumbnail settings i get this error:

The Directory './../modules/Forums/files/thumbs' does not exist or couldn't be found.


although when uploading pictures, the link is active and works, images are not shown inline, a thumbnail IS created and placed in ../files/thumbs

All a bit strange.

Any clues?
 
Maclain







PostPosted: Sun May 18, 2008 8:40 am Reply with quote

Hmm, seems no one is having similar issues. Or not using it Smile

Is this mod still being developed?
 
montego







PostPosted: Mon May 19, 2008 5:28 am Reply with quote

The mod was ported by Evaders I think for RN. There were a couple of pathing issues posted awhile back with their resolutions, but other than those, its been quiet. Unfortunately I have never had a need for this mod, so don't know much about it.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon May 19, 2008 9:29 pm Reply with quote

In-lining seems to work fine. I use modules/Forums/files myself with the thumbs. You can ignore the error about thumbs being unwritable, it will work. I have no idea what the issue is, I cannot replicate it

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Wed Mar 11, 2009 11:31 pm Reply with quote

Mine works just fine except ...

Site A the large image is displayed in the browser in another tab

Site B the large image is downloaded and wants to display in the default local image app. Duplicated all the settings I could fine from site A
 
View user's profile Send private message
rickleigh
Worker
Worker



Joined: Jan 06, 2009
Posts: 183

PostPosted: Mon Apr 06, 2009 7:49 am Reply with quote

I'm getting the following error in my log after uploading attachment:
Code:
PHP Warning:  passthru() has been disabled for security reasons in /home/********/public_html/modules/Forums/attach_mod/includes/functions_thumbs.php on line 166
Any ideas of what is causing this?

_________________
Thanks,
Rick Leigh 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Apr 06, 2009 10:20 am Reply with quote

Looks like your host may have disabled use of that php command.
 
View user's profile Send private message
rickleigh







PostPosted: Mon Apr 06, 2009 12:11 pm Reply with quote

jakec wrote:
Looks like your host may have disabled use of that php command.


I have put in a ticket to check on this with my host. If this is the case and they don't allow this, is there a work around for this issue or do I need to just comment this line out to keep it from processing the command?
 
rickleigh







PostPosted: Mon Apr 06, 2009 3:55 pm Reply with quote

Update,

My host was able to activate the PHP command.
 
FosgateElite
Regular
Regular



Joined: Mar 26, 2006
Posts: 63

PostPosted: Sat May 09, 2009 3:40 pm Reply with quote

Do any modifications need to be made in the Nuke theme to enable this to work? I've done everything in this thread and more and I still am having issues.
 
View user's profile Send private message
FosgateElite







PostPosted: Mon May 11, 2009 7:41 pm Reply with quote

No thumnails is my main problem. Im on the defualt theme.
 
rickleigh







PostPosted: Tue Aug 04, 2009 7:55 am Reply with quote

Ok, I to am having issues with getting the thumbnails to work. Everything else is working fine. We are able to upload images ok and see them in the forums. Its just not making them into a thumb.

My current settings is as follows:

Upload Dir: modules/Forums/files
Attachment Posting Icon: modules/Forums/images/icon_clip.gif
Attachment Topic Icon: modules/Forums/images/icon_clip.gif
Minimum Thumbnail Filesize: 5 bytes
Everything is set to YES

When I hit the test button I to get the message: The Directory './../modules/Forums/files/thumbs' does not exist or couldn't be found.
But, the dir. is there and even has the images in it that the system is making to be thumbs. Its just not showing them on the frontend. its only showing the full size image.

You can see a post with image here: http://yourhobbycommunity.com/ftopicp-195.html#195
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Forum Attachment Mod

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©