Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by dabean dabean is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-19-2001 Last Update: Never Installs: 33
 
No support by the author.

Signature Image Management System (file based)

Updated: 27 June 2002, 12:22 AM BST

This hack allows users to upload a image or images that they can then use as part of the thier signature. All uploaded images are private to the user that uploaded them.

The hack requires that you have PHP 4.1.0 or newer for the upload functions to work correctly. PHP 4.0.6 can be used with modifications (not recommended).

The scripts can if enabled also prevent users from externally linking to the images they uploaded, please note this is done by HTTP_REFERER checking not all http servers or browsers support this however is more widely supported than Apache's mod_rewrite. Should you wish to stop deep linking then upload a image called badcontent.gif to your forums directory.

Further more instructions are provided in how to get this hack to work if you are using vBulletin's standard sig editor or a advanced sig editor hack.

Version 2.0 Updates
- remote storage support
- sig.php nolonger appears in online.php
- special [sig] vB code is used instead of [img] tags

Version 1.3 Updates
- fixed display bug
- added removal script to main package
- added test template set


Version 1.11 Updates
- Image width & height checking
- Extension checking
- More useful error messages
- Added a missing function

Current Version 1.3
Released 20th sept 2001

Requirements:
- vBulletin 2.0.3
- PHP 4.0.3+ (this hack has not been tested on PHP 3.0.17, it may or may not work)

Optional:
- HTTP Server that supports HTTP_REFERER, (Apache 1.2+, IIS 4+)
- badcontent.gif in your forum directory


Screenshots can be found in the zip file.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-20-2001, 06:21 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool! But could you add support for mod_rewrite? Maybe have an option for one or the other in the Admin CP...or a seperate .php file and install file for each?
Reply With Quote
  #3  
Old 09-20-2001, 06:29 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

umm, if you want to use mod_rewrite there is nothing stopping you just turn on the image serving option which disables the builtin referer checking and add sig.php to your mod_rewrite ruleset.
Reply With Quote
  #4  
Old 09-20-2001, 08:37 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I wrote that I was a bit tired from classes...forgot how mod_rewrite worked, lol. Alroght, so that answers how to do it...just enable image serving
Reply With Quote
  #5  
Old 09-20-2001, 10:45 PM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The thing I was always concerned with giving the users the ability to show images in their signatures was the size of the image.

Is there a way to use php to use the GD library to re-size the images to a default size?
Reply With Quote
  #6  
Old 09-21-2001, 01:14 AM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant even start the install script..

Parse error: parse error in c:\program files\nusphere\apache\htdocs\upload\admin\sinstall .php on line 37

this is the line
$DB_site->query("INSERT INTO setting VALUES ( NULL, '60', 'Number of images stored per member', 'sigimagesstored', '2', 'The number of uploadable images that are to be stored for each member', '3', '1');");
Reply With Quote
  #7  
Old 09-21-2001, 01:30 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ack. I've fixed the install script and updated the zip file redownload it.

The fixed version has sinstall.php dated: 21 September 2001, 03:26:32 AM
Reply With Quote
  #8  
Old 09-21-2001, 02:22 AM
tkhjosh
Guest
 
Posts: n/a
Default

Parse error: parse error in /home/httpd/www/forums/admin/sinstall.php on line 37
Reply With Quote
  #9  
Old 09-21-2001, 02:32 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by tkhjosh
Parse error: parse error in /home/httpd/www/forums/admin/sinstall.php on line 37
download the updated version, check it is the updated version by A) checking the time stamp on sinstall.php in winzip is 21 September 2001, 03:26:32 AM.

B) That the instructions have the version number 1.01
Reply With Quote
  #10  
Old 09-21-2001, 04:09 AM
tkhjosh
Guest
 
Posts: n/a
Default

Quote:
Originally posted by dabean
Signature Image Management System (file based)

Updated: 21 Sep 2001, 03:26:32 AM BST

This hack allows users to upload a image or images that they can then use as part of the thier signature. All uploaded images are private to the user that uploaded them.

The hack requires that you have PHP 4.0.3 or newer for the upload functions to work correctly.
The scripts can if enabled also prevent users from externally linking to the images they uploaded, please note this is done by HTTP_REFERER checking not all http servers or browsers support this however is more widely supported than Apache's mod_rewrite. Should you wish to stop deep linking then upload a image called badcontent.gif to your forums directory.

Further more instructions are provided in how to get this hack to work if you are using vBulletin's standard sig editor or a advanced sig editor hack.

Users of vBulletin's standard sig editor should follow the instructions in install_vbstandard.txt

Users of a advanced sig editor should follow the instructions in install_advancededitor.txt

Version 1.01
Released 20th sept 2001

Requirements:
- vBulletin 2.0.3
- PHP 4.0.3+ (this hack has not been tested on PHP 3.0.17, it may or may not work)

Optional:
- HTTP Server that supports HTTP_REFERER, (Apache 1.2+, IIS 4+)
- badcontent.gif in your forum directory


Screenshots can be found in the zip file.

i downloaded from here but it does not work.
Reply With Quote
  #11  
Old 09-21-2001, 02:49 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*sigh*

I've downloaded the zip myself to check the installer works fine it does.
Firstly delete the orginal sinstall.php from wherever you exracted and then from the server you uploaded it to. Now extract sinstall.php from the zip file then upload the new freshly extracted file.

If you still can't get it to work then download the file I've attatched to this post. This file is identical to installer in the zip file in allmost all repects (the page title is different is the only change).
Reply With Quote
  #12  
Old 09-23-2001, 09:53 PM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get an javascript error when I click on the image which I have uploaded:

Line 305:
Char: 2
Error: 'document.vbforum.message' is null or not an object
Code: 0
Refer: my site.

:/

Any ideas?
Reply With Quote
  #13  
Old 09-23-2001, 10:42 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ack. Your using the standard sig editor right?

In the tamplate "sigimage_popup_images" change
PHP Code:
opener.document.vbform.message.value += "[img]https://vborg.vbsupport.ru/[/img]"
to
PHP Code:
opener.document.vbform.signature.value += "[img]https://vborg.vbsupport.ru/[/img]"
and in the "modifyprofile" template
PHP Code:
    document.vbform.message.value += "[img]https://vborg.vbsupport.ru/[/img]"
    
document.vbform.message.focus(); 
to
PHP Code:
    document.vbform.signature.value += "[img]https://vborg.vbsupport.ru/[/img]"
    
document.vbform.signature.focus(); 
The zip file has been updated to refect these changes.
Reply With Quote
  #14  
Old 09-24-2001, 02:32 AM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how does it save the images?
based on username, or original file name?
what pervents users from large images, or large file sizes?
Reply With Quote
  #15  
Old 09-24-2001, 07:20 AM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah mate, I a using the standard editor - I still get the Javascript error after making the changes above too
[quote']document.vbform.sigature' is null or is not an object[/quote]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05035 seconds
  • Memory Usage 2,348KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (15)post_thanks_box
  • (15)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (15)post_thanks_postbit_info
  • (14)postbit
  • (13)postbit_onlinestatus
  • (15)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete