vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Files Upload Center - Upload Your Files To External Server (https://vborg.vbsupport.ru/showthread.php?t=113583)

beebi 04-22-2006 08:40 PM

<font size="4">sorry. I missed uploadercp.php :surprised:
you don't need to download it if you don't wanna used external server</font>

Ghanem 04-22-2006 08:53 PM

Quote:

Originally Posted by Makaveli105
that'd be nice.

This is my small modification and I am not a coder, Beebi might release another updated version with this feature, so you might consider waiting for him..

In file uploader.php, look for:
PHP Code:

<td align='center'><a href=" . $userfile['fileurl'] . " target='_blank' title='" . $userfile['file_name'] . "'>" . iif(strlen($userfile['file_name']) > 30 ,substr($userfile['file_name'], 0, 30) . "...", $userfile['file_name']) . "</a></td

Replace it with:

PHP Code:

<td align='center'><a href='" . $userfile['fileurl'] . "' target='_blank'><img border='0' src='". $userfile['fileurl'] ."' width='200' height='100'></a></td
<
td align='center'><a href='" . $userfile['fileurl'] . "' target='_blank' title='" . $userfile['file_name'] . "'>'" . iif(strlen($userfile['file_name']) > 30 ,substr($userfile['file_name'], 0, 30) . "...", $userfile['file_name']) . "'</a
<
br/><input type='text' name='link' size='50' onClick='this.focus();this.select()' value='" . $userfile['fileurl'] . "'></td

In Template uploader_files look for:
PHP Code:

<td width="50%">$vbphrase[file_name]</td

Add above it:
PHP Code:

<td width="40%">Image Thumbnail</td

Change the width of the four columns with what suits you..

Regards

beebi 04-22-2006 08:56 PM

Ghanem
thnx bro

Ghanem 04-22-2006 09:07 PM

Thx to you too, I have updated my post with your code :)

Makaveli105 04-23-2006 01:36 AM

thanks Ghanem :D using it on my site now

Johhhn 04-23-2006 03:13 AM

Just tried it on my local server (running OS X) running a copy of my forum and could never get it to work. I can see it creating an 'empty' file in my home folder (it actually never tries to upload it to 'uploaded' no matter where i put that folder), but that's it.

It creates that file and the browser just sits there waiting.

Any ideas?

beebi 04-23-2006 06:43 AM

in local server disable ALL FTP functions

Feckie (Roger) 04-23-2006 08:16 AM

Installed and working ty

Veer 04-23-2006 08:27 AM

Dear Beebi !!
uploading files on External Server NOT Working :(

look this screen:
https://vborg.vbsupport.ru/

and

https://vborg.vbsupport.ru/

Please tell me how does its work? or give some instructions / settings for External Server Uploads.

Thanks in advance.

kurtbarker 04-23-2006 09:09 AM

hey mate, how do I update... just reinstal the XML? any files need replacing?

thanks for the thumbnail edit Mr 'i'm not a coder', worked a treat.


All times are GMT. The time now is 11:53 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.01380 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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