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
  #62  
Old 09-29-2001, 08:10 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


Image serving is enabled, referer check has not been carried out.
Displaying Image. filename is: images/signature/uid55iid6.gif

Warning: Cannot add header information - headers already sent by (output started at /home/kaos/public_html/forums/sig.php:58) in /home/kaos/public_html/forums/sig.php on line 68

Warning: Cannot add header information - headers already sent by (output started at /home/kaos/public_html/forums/sig.php:58) in /home/kaos/public_html/forums/sig.php on line 69

Warning: Cannot add header


thats all thats on my debug page?
Reply With Quote
  #63  
Old 09-29-2001, 08:36 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, now this is getting really strange. As the version of php i have installed is 4.0.4pl1

Anyway I've updated the debug script to remove all the header warnings, redownload it and see how far it gets.
Reply With Quote
  #64  
Old 09-30-2001, 12:17 AM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

white screen now man?
you wanna take a look around by any chance?
may save ya some time, better then me hounding ya here?
Reply With Quote
  #65  
Old 09-30-2001, 12:21 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you want to pm/email me a link i'll check it out further for you. Kind of has me interested in whats wrong.
Reply With Quote
  #66  
Old 10-02-2001, 12:16 AM
fmoise99 fmoise99 is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That error is popping up again! I think you forgot to include smallerror() function with your update.

I'm getting
Fatal error: Call to undefined function: smallerror()
Reply With Quote
  #67  
Old 10-02-2001, 12:26 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very possibly it is missing.

I have updated the zip to add the missing function back again.

Make sure the new version was downloaded after this edit, the previous upload was missing the end of the file.
Reply With Quote
  #68  
Old 10-02-2001, 10:35 PM
fmoise99 fmoise99 is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, dabean for cool hack!

I was going to use this for my personal use, but someone else may have use for this also! Maybe dabean may have some use for this also.

This is a little modification to this hack for those that have ImageMagick on their servers. This uses ImageMagick to automatically create thumbnails. If you do not have ImageMagick installed on your servers, DO NOT INSTALL!!! Also, you must know the path to your ImageMagick convert!
Reply With Quote
  #69  
Old 11-03-2001, 01:45 AM
Russ Russ is offline
 
Join Date: Nov 2001
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any made this work in 2.2.0 yet?
Reply With Quote
  #70  
Old 11-03-2001, 03:57 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Russ
Any made this work in 2.2.0 yet?
No modifications necessary, I just merged it rom my 2.0.3 code onto the 2.2 base and it worked fine.

I do wish people would start using smallfont and normalfont in their hacks though.

Ethan
Reply With Quote
  #71  
Old 01-31-2002, 01:28 PM
eg_92901's Avatar
eg_92901 eg_92901 is offline
 
Join Date: Oct 2001
Location: Atlanta, GA
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting an error message. (See attachment)

I'm assuming this is because my server runs in Safe Mode and I can't write to that directory. I've had other issues like this. I'm not certain how to take it off of safe mode and I'm debated on whether I should.
Reply With Quote
  #72  
Old 01-31-2002, 04:04 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by eg_92901
I keep getting an error message. (See attachment)

I'm assuming this is because my server runs in Safe Mode and I can't write to that directory. I've had other issues like this. I'm not certain how to take it off of safe mode and I'm debated on whether I should.
You have to specify the absolute path not the relative path. eg. starting /home
Reply With Quote
  #73  
Old 03-19-2002, 02:58 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sig.php stopped working on vbulletin 2.2.4

I'm not sure why, but its not sending valid image headers anymore.

Ethan
Reply With Quote
  #74  
Old 03-20-2002, 06:37 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DaBean, could you look at my request at this link?

https://vborg.vbsupport.ru/showthrea...133#post231133

Thank you for you time.
Reply With Quote
  #75  
Old 03-21-2002, 02:15 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ethank
sig.php stopped working on vbulletin 2.2.4

I'm not sure why, but its not sending valid image headers anymore.

Ethan
change
$bbcode = preg_replace("/\[img\](\r\n|\r|\n)*((http|https):\/\/([^;<>\*\(\)\"".iif($allowdynimg,"","\?\&")."]+)|[a-z0-9\/\\\._\- ]+)\[\/img\]/siU", "<img src=\"\\2\" border=\"0\" alt=\"\">", $bbcode);

to

$bbcode = preg_replace("/\[img\](\r\n|\r|\n)*(([^;<>\*\(\)\"".iif($allowdynimg,"","\?\&")."]+)|[a-z0-9\/\\\._\- ]+)\[\/img\]/siU", "<img src=\"\\2\" border=\"0\" alt=\"\">", $bbcode);

inside functions.php.


xug: about your request the simple answer is no, the complex answer is maybe after vb3 is released as this current hack will need rewriting anyway I'd guess.
Reply With Quote
  #76  
Old 03-21-2002, 11:59 AM
larryz larryz is offline
 
Join Date: Oct 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Correction on dabean's post above!

For v2.2.4 its accually:

Find:
PHP Code:
      $bbcode preg_replace("/\[img\](\r\n|\r|\n)*((http|https):\/\/([^;<>\*\(\)\"".iif($allowdynimg,"","\?\&")."]+)|[a-z0-9\/\\\._\- ]+)\[\/img\]/siU""<img src=\"\\2\" border=\"0\" alt=\"\">"$bbcode); 
Replace with:
PHP Code:
      $bbcode preg_replace("/\[img\](\r\n|\r|\n)*(([^;<>\*\(\)\"".iif($allowdynimg,"","\?\&")."]+)|[a-z0-9\/\\\._\- ]+)\[\/img\]/siU""<img src=\"\\2\" border=\"0\" alt=\"\">"$bbcode); 
in admin/functions.php
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 06:57 PM.


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.05503 seconds
  • Memory Usage 2,363KB
  • Queries Executed 30 (?)
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
  • (2)bbcode_php
  • (3)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
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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