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
  #107  
Old 06-27-2002, 12:22 AM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what template is the _editsignature? never heard of it
Reply With Quote
  #108  
Old 06-27-2002, 01:05 AM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant seem to find

PHP Code:
if ($bbuserinfo[showvbcode]) {
$vbcode_smilies getclickysmilies();


what file is this in?
Reply With Quote
  #109  
Old 06-27-2002, 01:05 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xelation
what template is the _editsignature? never heard of it
From a signature editor hack see.
https://vborg.vbsupport.ru/showthrea...=editsignature & https://vborg.vbsupport.ru/showthrea...=editsignature
Reply With Quote
  #110  
Old 06-27-2002, 01:18 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xelation
I cant seem to find

PHP Code:
if ($bbuserinfo[showvbcode]) {
$vbcode_smilies getclickysmilies();


what file is this in?
signature.php which will only exist if you have one of forementioned hacks. Part 3 is only for use when those hacks are used. Part 2 is for use when you don't have said hacks installed all part 2 changes are in member.php.
Reply With Quote
  #111  
Old 06-27-2002, 01:24 AM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know I'm a dumb ass but now I can find this in the editsignature template...


PHP Code:
<script language="Javascript" src="vbcode.js" type="text/javascript"></script>
<
script language="Javascript" src="vbcode_language.js" type="text/javascript"></script
Reply With Quote
  #112  
Old 06-27-2002, 01:31 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xelation
I know I'm a dumb ass but now I can find this in the editsignature template...


PHP Code:
<script language="Javascript" src="vbcode.js" type="text/javascript"></script>
<
script language="Javascript" src="vbcode_language.js" type="text/javascript"></script
roughly they will be below

<body>
$header

The exact lines maybe slightly different
Reply With Quote
  #113  
Old 06-27-2002, 01:49 AM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, all added.. in vboptions I get this under signature storage...

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/xelation/public_html/forum/admin/options.php(72) : eval()'d code on line 1
Reply With Quote
  #114  
Old 06-27-2002, 02:22 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xelation
ok, all added.. in vboptions I get this under signature storage...


Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/xelation/public_html/forum/admin/options.php(72) : eval()'d code on line 1
ack typing error in the installer.

IF you have phpmyadmin installed the run the query below.
UPDATE setting SET optioncode='<select name=\"setting[$setting[settingid]]\">
<option value=\"0\" ".iif($setting[value]==0,"selected","").">Local Only</option>
<option value=\"1\" ".iif($setting[value]==1,"selected","").">Remote Only</option>
<option value=\"2\" ".iif($setting[value]==2,"selected","").">Local & Remote</option></select>' WHERE varname='sigstorage'

Alternatively re-download the zip use the uninstaller to remove the database changes then carry out just step 2 of the installation (sinstall.php?action=install&step=2) .
Reply With Quote
  #115  
Old 06-27-2002, 03:34 AM
Disturbed's Avatar
Disturbed Disturbed is offline
 
Join Date: Apr 2002
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uhh hi dabean :P

i'm getting this error

Warning: Unable to create '/home/totalsho/public_html/forums/images/sigs/uid1iid.gif': Permission denied in /home/totalsho/public_html/forums/simage.php on line 129

my sig dir is forums/images/sigs

both images/sigs chmod to 666

anything i'm missing here?

thnx
Reply With Quote
  #116  
Old 06-27-2002, 04:00 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Disturbed
uhh hi dabean :P

i'm getting this error

Warning: Unable to create '/home/totalsho/public_html/forums/images/sigs/uid1iid.gif': Permission denied in /home/totalsho/public_html/forums/simage.php on line 129

my sig dir is forums/images/sigs

both images/sigs chmod to 666

anything i'm missing here?

thnx
That looks correct, 666 shouldn't cause that problem, um try chmod'ing the directory(s) 777 to see if it cures the problem.
Reply With Quote
  #117  
Old 06-27-2002, 04:56 AM
Disturbed's Avatar
Disturbed Disturbed is offline
 
Join Date: Apr 2002
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yup it uploads now

but it doesn't show in the postbit template

here's the usercp


and heres the postbit


wat am i doing wrong?
Reply With Quote
  #118  
Old 06-27-2002, 07:16 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Disturbed
yup it uploads now

but it doesn't show in the postbit template

wat am i doing wrong?
roughly you need vB code in signatures turned on. Also the [sig] tag works like [sig=6] and the template set is designed to create tags in that format. In fact if the value after the ='s is anything but a integer you won't see anything. This is by design.
Reply With Quote
  #119  
Old 06-27-2002, 02:05 PM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added that query and still get..

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/xelation/public_html/forum/admin/options.php(72) : eval()'d code on line 1

after I did that query I did the second thing and still get the above. any ideas?
Reply With Quote
  #120  
Old 06-27-2002, 05:53 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xelation
after I did that query I did the second thing and still get the above. any ideas?
You re-downloaded the zip and used the version of sinstall.php included?

As it appears phpmyadmin can not handle the query correctly. Find attached a simple corrective script. Upload to admin directory and run.
Reply With Quote
  #121  
Old 06-27-2002, 08:56 PM
Disturbed's Avatar
Disturbed Disturbed is offline
 
Join Date: Apr 2002
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dabean


roughly you need vB code in signatures turned on. Also the [sig] tag works like [sig=6] and the template set is designed to create tags in that format. In fact if the value after the ='s is anything but a integer you won't see anything. This is by design.
hey thanx for the support dabean, it works perfect

but can't i edit the code so when i click on the sig it auto-inserts the code and the id?
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 04:09 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.05651 seconds
  • Memory Usage 2,374KB
  • 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
  • (4)bbcode_php
  • (8)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