vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=106127)

Milad 03-05-2006 09:33 PM

will you phrase this?

dirtycrow 03-05-2006 09:48 PM

is this hack still supported?

dodgechargerfan 03-06-2006 09:14 PM

I got this error while importing the product:

Fatal error: Cannot redeclare remover() (previously declared in /home/moparnut/public_html/forums/global.php(349) : eval()'d code:7) in /home/moparnut/public_html/forums/global.php(349) : eval()'d code on line 7

any ideas?

Thanks.

dodgechargerfan 03-06-2006 10:06 PM

got it.

in the codes section of the xml, there are two entries: one for version 1.0.0 and one for 1.0.1.

They seem to be identical other than the version number.

I deleted all of this and it installs fine:

Code:

<code version="1.0.0">
                        <installcode><![CDATA[$db->hide_errors();
$db->query("CREATE TABLE " . TABLE_PREFIX . "vbimghost (imgid int(11) NOT NULL auto_increment,userid int(11) NOT NULL default '0',imgfile varchar(250) NOT NULL default '',imgname varchar(250) NOT NULL default '',  imgfilesize int(11) NOT NULL default '0', imgwidth int(11) NOT NULL default '0',  imgheight int(11) NOT NULL default '0',  imgdate int(11) NOT NULL default '0',  imgprivate int(1) unsigned NOT NULL default '0',  PRIMARY KEY  (imgid) )");

$db->query("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD vbimghost INT( 10 ) UNSIGNED NOT NULL default '0', ADD vbimghost_files INT( 10 ) UNSIGNED NOT NULL default '50'");
$db->show_errors();

 // Rebuild Bitfields
include('global.php');
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);
build_forum_permissions();]]></installcode>
                        <uninstallcode><![CDATA[$db->hide_errors();
$db->query("DROP TABLE " . TABLE_PREFIX . "vbimghost");
$db->query("ALTER TABLE " . TABLE_PREFIX . "usergroup DROP vbimghost, DROP vbimghost_files");
$db->show_errors();

 // Rebuild Bitfields
include('global.php');
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);
build_forum_permissions();]]></uninstallcode>
                </code>


klaush 03-07-2006 06:39 AM

Quote:

Originally Posted by dodgechargerfan
got it.

in the codes section of the xml, there are two entries: one for version 1.0.0 and one for 1.0.1.

They seem to be identical other than the version number.

I deleted all of this and it installs fine:

Code:

<code version="1.0.0">
                        <installcode><![CDATA[$db->hide_errors();
$db->query("CREATE TABLE " . TABLE_PREFIX . "vbimghost (imgid int(11) NOT NULL auto_increment,userid int(11) NOT NULL default '0',imgfile varchar(250) NOT NULL default '',imgname varchar(250) NOT NULL default '',  imgfilesize int(11) NOT NULL default '0', imgwidth int(11) NOT NULL default '0',  imgheight int(11) NOT NULL default '0',  imgdate int(11) NOT NULL default '0',  imgprivate int(1) unsigned NOT NULL default '0',  PRIMARY KEY  (imgid) )");

$db->query("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD vbimghost INT( 10 ) UNSIGNED NOT NULL default '0', ADD vbimghost_files INT( 10 ) UNSIGNED NOT NULL default '50'");
$db->show_errors();

 // Rebuild Bitfields
include('global.php');
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);
build_forum_permissions();]]></installcode>
                        <uninstallcode><![CDATA[$db->hide_errors();
$db->query("DROP TABLE " . TABLE_PREFIX . "vbimghost");
$db->query("ALTER TABLE " . TABLE_PREFIX . "usergroup DROP vbimghost, DROP vbimghost_files");
$db->show_errors();

 // Rebuild Bitfields
include('global.php');
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);
build_forum_permissions();]]></uninstallcode>
                </code>


Thanks, that was the reason why i could not install the product in 3.5.4.

klaush 03-07-2006 07:14 AM

Another problem with this mod:

The dropdown is after editing the navbar template shown but i can“t upload images; the permission is given in the setting but the upload mask is not shown.

It is just refreshing the window and says:

Hosted images for : testuser
No image hosted

Any idea?

Thanks!

hiiped 03-08-2006 04:50 PM

Quote:

Originally Posted by Ranma2k
it will only set the thump to 320 * 240 if the width or the height is equal or bigger than 320 * 240
otherwise it will show the pic in it's true size ..

if you want to change the value you can do that from the template
in template : vbimghost_imgbits

find :
PHP Code:

<if condition="$vbimghost[thumpsize]">
   
width="320" height="240"
</if> 

either change the values or remove it ..

if an image is 800 x 800 it looks funny when scaled down to 320 x 240

I personally leave out the HEIGHT

that way it remains a fixed width and have a cleaner look when viewing

I use
PHP Code:

<if condition="$vbimghost[thumpsize]">
   
width="320"
</if> 

nicer look ( IMO )



request

anyway to have a more private path ?
currently it displays http://www.domain.com/forumpath/storagepath/imagename.jpg

how to make image path more like
http://www.domain.com/forum/image.php?u=800&dateline=123456 ???

klaush 03-12-2006 08:11 PM

Quote:

Originally Posted by klaush
Another problem with this mod:

The dropdown is after editing the navbar template shown but i can?t upload images; the permission is given in the setting but the upload mask is not shown.

It is just refreshing the window and says:

Hosted images for : testuser
No image hosted

Any idea?

Thanks!

Just to ask if there is a solution for my issue?

Thanks!

thelittleguy 03-13-2006 06:08 PM

im a little slow so please forgive me but how do i do this: You should create a directory where the images going to be hosted and change the permission for that directory to 777

klaush 03-14-2006 03:19 PM

Quote:

Originally Posted by thelittleguy
im a little slow so please forgive me but how do i do this: You should create a directory where the images going to be hosted and change the permission for that directory to 777

Yep, thanks, but i took the imagehosting directory and made it 777.

Any other idea?

The product in the zip is working correctly? And has someone this mod working under 3.5.4?


All times are GMT. The time now is 11:02 PM.

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.02225 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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