vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=123481)

Spank 02-11-2007 08:17 PM

Quote:

Originally Posted by flypaper (Post 1179083)
What are your permissions on the http://www.misc-world.com/endeavour/imagehosting/ folder?

lol I hadn't set it to writable by all users. Thanks for that =D

fly 02-11-2007 08:50 PM

Quote:

Originally Posted by Merriweather (Post 1179624)
Ranma2k ~ Since the images are not renamed when uploading, what happens if a user uploads two pictures with the same name, or if two users upload pictures with the same name? Is this something you've taken into account?

They are renamed. :confused:

Merriweather 02-11-2007 10:39 PM

They don't appear to be... if I user uploads a file called mydog.jpg, it's still mydog.jpb on the server...

ETA ~ I see what you are saying now. The file name itself is changed on the server to a unique identifier, but it shows the original file name in the person's gallery -- excellent! :)

Merriweather 02-11-2007 11:14 PM

Another question/request... right now, a user without vB image hosting permissions sees "no images" when they click to view their images, and if possible, it would be nice for that to give a message saying they don't have access to the feature. Same with the [Open] and [Quick Upload] buttons on the posting screen -- it would be great if they just didn't show for someone without permission, or told them they don't have access when they clicked either one. :)

fly 02-12-2007 12:50 AM

Quote:

Originally Posted by Merriweather (Post 1180262)
Another question/request... right now, a user without vB image hosting permissions sees "no images" when they click to view their images, and if possible, it would be nice for that to give a message saying they don't have access to the feature. Same with the [Open] and [Quick Upload] buttons on the posting screen -- it would be great if they just didn't show for someone without permission, or told them they don't have access when they clicked either one. :)

I just hid all that stuff for guests, cause all my members have access. You can wrap a conditional around it to hide it, if you know how to do that...

Merriweather 02-12-2007 01:01 AM

I was able to make it not display any of the photo pages for those without access to upload by using conditionals. It would be nice to have it as a built-in feature of the mod, though (for future versions/users). The one thing I can't do yet is hide the [Open] and [Quick Upload] for those without permissions -- have you been able to do that?

Pipe Hitter 02-12-2007 09:00 AM

Quote:

Originally Posted by eshudnow (Post 1173745)
In the instructions it states to find the following:

<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td

and

<!-- PAGENAV POPUP -->


I'm going into Navigation / Breadcrumb Templates and going to navbar and can't find any of that text. Am I going to the wrong navbar (is there more than 1?)


I have found the same thing. I had to revert my navbar template to the default because of my board logging members off continuously. So my template is the 3.6.4 default template and I can not find the <!-- PAGENAV POPUP --> code.

Tom_S 02-12-2007 09:08 AM

Do you see this in your navabar:
<!-- / NAVBAR POPUP MENUS -->
It is right under it.

fly 02-12-2007 11:58 AM

Quote:

Originally Posted by Merriweather (Post 1180322)
I was able to make it not display any of the photo pages for those without access to upload by using conditionals. It would be nice to have it as a built-in feature of the mod, though (for future versions/users). The one thing I can't do yet is hide the [Open] and [Quick Upload] for those without permissions -- have you been able to do that?

Wrapping the template edit in 'editor_smiliebox' with a conditional doesn't work?

111 02-12-2007 07:50 PM

ok error: i manage to upload the images by removing the [bburl] tags that were in the code that we need to put before popup menus...

BUT: when i upload pic: my forum url gets posted twice:

example: http://www.noviforum.net/www.novifor...layimg&imgid=3


so i just get red x instead of image showing

Merriweather 02-13-2007 02:31 AM

Quote:

Originally Posted by flypaper (Post 1180564)
Wrapping the template edit in 'editor_smiliebox' with a conditional doesn't work?

I hadn't thought of that :rolleyes: but I am sure you are right!!! Will do.... and thank you. :)

NathanMc 02-13-2007 07:58 AM

I can't seem to get my watermark to work, all I tried to use was the text one, and nothing shows up.

also, is there a way I could easily allow the users to add a brief 'name' or 'description' of the image they are uploading? Scrictly for SEO purposes, and possibly a search feature..to search for a certain pic by 'tag' lines. Just some suggestions.

Tom_S 02-16-2007 03:50 PM

Quote:

Originally Posted by Tom_S (Post 1179108)
Is anyone having an issue after clicking on "Upload and Image" that their host is shutting off their site because of a CPU Quota Exceed Error? It seems when I do click upload an image it just sits there as if it can't find it and then my host is shutting our account off saying we are exceeding our quota. I was having no problems with this mod until the other day but I have been having a huge amount of issues with my host at bluehost.com. Anyone having these or similar issues? I need to know what direction to go in here. Fix something with the mod or yell at my host.

Well this issue still exists and it seems to only be with IE. Firefox has nadda going on as far as this. I don't understand it at all since no one else has had this happen. I am wondering if our host has done something in the background to impede this process to cause this?

blind-eddie 02-16-2007 04:43 PM

No problems yet Tom.......I bet I have 10,000 images on my server out of 12 sites.

scan-pa 02-16-2007 09:18 PM

Quote:

Originally Posted by Tom_S (Post 1179108)
Is anyone having an issue after clicking on "Upload and Image" that their host is shutting off their site because of a CPU Quota Exceed Error? It seems when I do click upload an image it just sits there as if it can't find it and then my host is shutting our account off saying we are exceeding our quota. I was having no problems with this mod until the other day but I have been having a huge amount of issues with my host at bluehost.com. Anyone having these or similar issues? I need to know what direction to go in here. Fix something with the mod or yell at my host.

vBulletin should not be used on shared hosting. The software and some added mods and hacks will kill your alotted cpu cycles. sometimes this hack will eat up cpu time.

been there. now have my site on a high CPU user tier, and not to many problems.

Tom_S 02-17-2007 01:19 PM

Not many problems? If you went to a dedicated server and have any problems then I see a HUGE issue. Shared hosting has nothing to do with what is going on if they have their hardware setup effectively. Thanks for the feedback though.

wtrk 02-18-2007 04:00 PM

can you turn on and off the html/bbcode links ?

Tom_S 02-18-2007 04:30 PM

If you are asking me on mine then no. That option isn't in this mod.

Merriweather 02-18-2007 10:08 PM

Quote:

Originally Posted by wtrk (Post 1185355)
can you turn on and off the html/bbcode links ?

I edited the template to remove the HTML ones, as my users can't link outside my forums and don't need it. You could do the same if you just want to completely remove them.

I would love to see the author implement a switch that would only show the BBCode link to the owner of the photo. :)

rezapci 02-19-2007 01:48 AM

Thanks much awesome work!

appreciate your expertise

Gweedo 02-19-2007 12:39 PM

Quote:

Step 4 ( template modification ):

* Edit the Navbar template and do the following:
Find :
Where do I find this? :confused: :o

Thanks

blind-eddie 02-19-2007 01:27 PM

admincp/styles & templates/ search in templates, chose default template to search in type in navbar in text box, click find/search....scroll down a bit, you will see navbar. double click it.
you will then copy & paste the info you need to find in the find box at the bottom...click find....now follow readme.....

Gweedo 02-19-2007 09:52 PM

Thanks, I was looking for it through my FTP (I'm still in phpbb2 mode). It is installed and works, but I am getting some error messages.

When I add am image it throws up a bunch of error messages (Too quickly to copy and paste :o ) , but the upload still works. Any ideas on that?

Also, I had a few images that will not delete because I pulled them from the directory through FTP. So now they are stuck in my dbase with no image. Any idea how to pull them? Using delete does not work :mad:

Thanks,
Matt

blind-eddie 02-20-2007 03:21 AM

Quote:

When I add am image it throws up a bunch of error messages (Too quickly to copy and paste ) , but the upload still works. Any ideas on that?
Look through post, it is mentioned.

Gweedo 02-20-2007 11:04 AM

Thanks, I made it through the first 7 pages with no luck. :( I have a clean install and it looks like most problems are from an upgrade. The pictures still upload.

Here are my errors:
Quote:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: open_basedir restriction in effect. File(/home/user/public_html/forums/imagehosting/245daf1656bdb3.jpg) is not within the allowed path(s): (/home/*****:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/vbimghost_include.php on line 175

Warning: imagecreatefromjpeg(/home/user/public_html/forums/imagehosting/245daf1656bdb3.jpg) [function.imagecreatefromjpeg]: failed to open stream: Operation not permitted in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210

encryption 02-20-2007 11:25 AM

File(/home/user/public_html/forums/imagehosting/245daf1656bdb3.jpg)

change USER to your login name for your Cpanel (assuming you have Cpanel)

Gweedo 02-20-2007 11:41 AM

Quote:

Originally Posted by encryption (Post 1186642)
File(/home/user/public_html/forums/imagehosting/245daf1656bdb3.jpg)

change USER to your login name for your Cpanel (assuming you have Cpanel)

edit: Gotcha, thanks.


I have a new error now. I changed the watermark from text to image and now I get this:
Quote:

Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/home/user/public_html/forums/imagehosting/watermark.jpg) is not within the allowed path(s): (/home/hookedon:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/vbimghost_include.php on line 221

Warning: getimagesize(/home/user/public_html/forums/imagehosting/watermark.jpg) [function.getimagesize]: failed to open stream: Operation not permitted in /includes/vbimghost_include.php on line 221
The watermark image is in the vbimagehost folder where the uploaded images are stored.

If I turn off the watermark I get no errors at all, so this is a problem related to the watermark

Thanks,
Matt

Gweedo 02-20-2007 11:47 AM

Alright, I see what you were saying. thanks. That part is fixed.

I am down to one error now. The image uploads, but no watermark and this one error:
Quote:

Warning: getimagesize(/home/hookedon/public_html/forums/imagehosting/watermark.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 221
Thanks!
Matt

Gweedo 02-20-2007 11:56 AM

God help me...

I fixed the error, I had to remove the "Forums" from the path. No errors now!

But.... The watermark is still not working :(

The text watermark works, but it is small and the font blows. The image watermark just doesn't work at all. I have tried .jpg and .png on .jpg images. Any tips or tricks would be appreciated!

DannyITR 02-20-2007 02:49 PM

This is an awesome hack. The hack would be even better with a few organizational options however. Right now, its got all the functionality it needs for the individual however if the community wants to view photos I find it to be limiting.

How hard would it be to have the option of categorizing the photos when a user chooses to view all member images? In the admincp I'd like to be able to set a category and have it be a mandatory field to fill out (dropdown capable) when a user uploads a photo. Then when a member wants to view all images, they can order them by category.

Thoughts? BTW I hate Photopost with a passion. This hack puts it to shame in terms of ease of use.

Merriweather 02-20-2007 08:29 PM

I found a glitch -- when I posted an announcement in my forums, the postbit that shows how many images I have was broken (it just showed empty parenthesis instead of the number of photos with the link). How can I fix it?

Gweedo 02-21-2007 05:45 PM

I'm having an issue with watermarks. I have set the directory to "777" and the text watermark works just fine.

However, the "image" watermark does not work.
  • Permissions set to 777
  • Image in .jpg format is in folder
  • CP is set to image and file name matches
  • No error messages are displayed
  • Image uploads, but no watermark
  • Text watermark works fine

Any idea about what my problem may be?

Thanks!

John1uk 02-24-2007 05:31 PM

Installed.....But i have a problem... how do i set user permissions, as it won't let me upload pics as i don't have permission...

Thanx

blind-eddie 02-24-2007 07:27 PM

admincp/vbimagehost...on the left, make sure its on & set your settings, also..
admincp/usergroup/usergroupmanager....Go through each usergroup, scroll down, you will see, vbimagehost, set settings on each usergroup...

John1uk 02-24-2007 08:33 PM

Your a star mate:D cheers

111 02-25-2007 03:20 PM

Quote:

Originally Posted by Gweedo (Post 1186646)
edit: Gotcha, thanks.


I have a new error now. I changed the watermark from text to image and now I get this:


The watermark image is in the vbimagehost folder where the uploaded images are stored.

If I turn off the watermark I get no errors at all, so this is a problem related to the watermark

Thanks,
Matt

u must replace the home\user with your real username that u access the web then the watermark will work (i had the same problem)

digital3 02-25-2007 05:05 PM

When I try uploading an image I simply get a blank page. The install was 100% perfect and the upload directory was CHMOD 777. I will try this mod later once it is bug free.

redwinger 02-25-2007 07:41 PM

I get this message when uploading. Uploaded file is not an image
Now it is a image and is within the size ranges. Also I set my thumbnails down and they are still the same size? Where do i rebuild the thumbnails?

fly 02-25-2007 08:40 PM

^You people (or your host) are doing something wrong. It isn't the hack...

oatsy 02-26-2007 10:07 AM

Had a 3.6.4 forum hacked (as in Turkish hackers, not as in a deliberate VB mod) a couple of days ago with a hack called cmdhack, and there are some signs that it came in through a previous version of Image Hosting - version 1.3.1. I was looking here to see what the most current version is. I see 1.3.1 is outdated but I'm not sure if the recent updates change anything about security (if indeed Image Hosting was the way they got in.

The reason I think Image Hosting may have been the route in is because there were 3 new files appeared in the 'imagehosting' directory at about the time the site was hacked. There should only be image files and an index.html (with nothing in it) in there, but we had a new index file plus 2 php files. Couldn't open any of them by ftp for editing - access denied. We were able to delete the folder and replace it with a backup and the forums are up and running again now once we fixed the problem in the db - see below.

I'm still puzzled about how those files got there though. The Image Hosting feature is set to a) only accept jpg, gif, png, and bmp files. I've tried txt files etc and it won't accept them. b) only trusted members of the forum are enabled on the Image Hosting system - general public don't have permissions. All forums have HTML disabled.

I've disabled the Image Hosting hack from all users for now. I'd appreciate any thoughts on how this might have happened. Can a script be disguised as an image file? Could one of the trusted members have innocently uploaded what he thought was a clean image file but was actually the hacker's script?

I'd like to keep Image Hosting on the site because it's a terrific hack.

What happens with this cmdhack is that as soon as the forums try to load you get redirected straight to a page on the hackers site ('Turkish Hackers blah blah' rubbish).

If you do get caught with it, it's easy to get rid off as long as you have access to phpmyadmin:

Long story short ... the hack changed a couple of fields in the top level publicly accessible forum (the Category in other words). The Title field text was replaced with a refresh command and the description field had the URL details to the hackers page. As soon as the forums load the refresh/redirect command kicks you to the hackers URL after a second or two.

No new pages were added to the site - the 'You've been hacked' page was on the hackers remote site. Easy enough to fix by going into phpmyadmin, listing the 'forum' table and look for the forum that has the wrong info in it. Replace the hackers text with the correct text and off you go. You can't edit it in the admin cp because as soon as you try to list the forums in Forum Manager the redirect kicks in again.

Thanks


All times are GMT. The time now is 10:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03010 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete