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
  #167  
Old 09-19-2002, 08:56 PM
BlueVoltage BlueVoltage is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting these errors:

when loading admin/index.php:
Quote:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/xelerix/public_html/x/admin/functions.php on line 681

Parse error: parse error, unexpected $ in /home/xelerix/public_html/x/admin/sessions.php on line 442
Lines 667-682 in admin/functions.php:

PHP Code:
      if (floor($phpversionnum) < 4) {
        
$searcharray = array(
          
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
          
"/(\[)(list)(])(.*)(\[\/list\])/siU",
          
"/(\[\*\])/siU",
          
"/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4)(.*)(\[\/url\])/siU",
          
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
          
"/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
          
"/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
          
"/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/siU",
          
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
          
"/javascript:/si",
          
"/about:/si",
          
"/vbscript:/si"
          "/(\[sig\=)(.*)(\])/esiU" 
// addition 
        
); 
__________________________________________________ __

When loading /index.php:
Quote:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/xelerix/public_html/x/admin/functions.php on line 681

Parse error: parse error, unexpected $ in /home/xelerix/public_html/x/admin/sessions.php on line 442

Fatal error: Call to undefined function: cachetemplates() in /home/xelerix/public_html/x/global.php on line 284
I am running 2.2.7 (I know the hack has only been tested on 2.2.5 and 2.2.6)
Reply With Quote
  #168  
Old 09-19-2002, 09:12 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BlueVoltage
I keep getting these errors:
I am running 2.2.7 (I know the hack has only been tested on 2.2.5 and 2.2.6)
Your missing a comma (,) after "/vbscript:/si"

e.g.
PHP Code:
        $searcharray = array(
          
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
          
"/(\[)(list)(])(.*)(\[\/list\])/siU",
          
"/(\[\*\])/siU",
          
"/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4)(.*)(\[\/url\])/siU",
          
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
          
"/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
          
"/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
          
"/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/siU",
          
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
          
"/javascript:/si",
          
"/about:/si",
          
"/vbscript:/si"// <--- comma
          
"/(\[sig\=)(.*)(\])/esiU" // addition 
        
); 
Oh don't copy, paste the above fragment as vB adds additional spaces that stop it from being valid PHP.
Reply With Quote
  #169  
Old 09-19-2002, 09:52 PM
BlueVoltage BlueVoltage is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still get these errors: And i am unable to login to my admin cp

Quote:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xelerix/public_html/x/admin/functions.php on line 826

Parse error: parse error, unexpected $ in /home/xelerix/public_html/x/admin/sessions.php on line 442
Quote:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xelerix/public_html/x/admin/functions.php on line 826

Parse error: parse error, unexpected $ in /home/xelerix/public_html/x/admin/sessions.php on line 442

Fatal error: Call to undefined function: cachetemplates() in /home/xelerix/public_html/x/global.php on line 284
Reply With Quote
  #170  
Old 09-19-2002, 10:00 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BlueVoltage
I still get these errors: And i am unable to login to my admin cp


You'll be missing another comma (,) further down between
PHP Code:
"vbscript :"// <-- comma
"checksigimage('\\2')" // addition 
Reply With Quote
  #171  
Old 09-19-2002, 10:09 PM
BlueVoltage BlueVoltage is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no that comma was there
Reply With Quote
  #172  
Old 09-19-2002, 10:22 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BlueVoltage
no that comma was there
After looking again at the error message you've got I've relised that you've made the changes to the wrong block of code. :surprised:

So I've inlcuded the whole fragment
PHP Code:
      if (floor($phpversionnum) < 4) {
        
$searcharray = array(
          
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
          
"/(\[)(list)(])(.*)(\[\/list\])/siU",
          
"/(\[\*\])/siU",
          
"/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4)(.*)(\[\/url\])/siU",
          
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
          
"/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
          
"/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
          
"/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/siU",
          
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
          
"/javascript:/si",
          
"/about:/si",
          
"/vbscript:/si"
        
);

        
$replacearray = array(
          
"<ol type=\"\\5\">\\7</ol>",
          
"<ul>\\4</ul>",
          
"<li>",
          
"<a href=\"http://www.\\6\" target=\"_blank\">\\8</a>",
          
"<a href=\"\\5\" target=\"_blank\">\\7</a>",
          
"<a href=\"http://www.\\5\" target=\"_blank\">\\5</a>",
          
"<a href=\"\\4\" target=\"_blank\">\\4</a>",
          
"</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre></blockquote><normalfont>",
          
"</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre></blockquote><normalfont>",
          
"java script:",
          
"about :",
          
"vbscript :"
        
);
      } else {
        
$searcharray = array(
          
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/esiU",
          
"/(\[)(list)(])(.*)(\[\/list\])/esiU",
          
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/esiU",
          
"/(\[)(url)(])([^\"]*)(\[\/url\])/esiU",
          
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/esiU",
          
"/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/esiU",
          
"/javascript:/si",
          
"/about:/si",
          
"/vbscript:/si",
          
"/(\[sig\=)(.*)(\])/esiU" // addition
        
);

        
$replacearray = array(
          
"createlists('\\7', '\\5')",
          
"createlists('\\4')",
          
"checkurl('\\5', '\\7')",
          
"checkurl('\\4')",
          
"stripbrsfromcode('\\5')",
          
"phphighlite('\\5')",
          
"java script:",
          
"about :",
          
"vbscript :",
          
"checksigimage('\\2')" // addition
        
);
      }  
// end version check 
As with the first fragment don't copy, paste as vB will add additional spaces that prevent it from working.
You'll notice that the readme states the block begining
"/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/esiU",
needs to be modified not the block begining
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
which you modified.
Reply With Quote
  #173  
Old 09-19-2002, 10:44 PM
BlueVoltage BlueVoltage is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok now i just get this error:

Quote:
Parse error: parse error, unexpected $ in /home/xelerix/public_html/x/admin/sessions.php on line 442
Reply With Quote
  #174  
Old 09-20-2002, 12:16 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BlueVoltage
ok now i just get this error:

The contents of line 442 are?

In fact this hack should not have required modification to anything in the region of that line inside sessions.php
Lines 5 to 20 are the only lines that need modification.
Reply With Quote
  #175  
Old 09-20-2002, 12:41 AM
BlueVoltage BlueVoltage is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i open the file up, line 442 is empty...
Reply With Quote
  #176  
Old 09-20-2002, 12:45 AM
BlueVoltage BlueVoltage is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I attached my sessions.php.
Reply With Quote
  #177  
Old 09-20-2002, 12:56 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BlueVoltage
sessions.php.
Firstly you should edit your post to remove the file aranoid:

Now to solve your problem you need to replace
PHP Code:
if ($templateversion '2.0.1') { // Use location! 
if (($updatelocation==True) or (!isset($updatelocation))) {
  
$location1 ",location='" addslashes($scriptpath) . "'";
  
$location2 ",location";
  
$location3 ",'" addslashes($scriptpath) . "'";
} else {
  
$location1 '';
  
$location2 '';
  
$location3 '';
 }
} else {
// ###################### Start sessions ####################### 
with
PHP Code:
if ($templateversion '2.0.1') { // Use location!
  // location fix.
  
if (($updatelocation==True) or (!isset($updatelocation))) {
    
$location1 ",location='" addslashes($scriptpath) . "'";
    
$location2 ",location";
    
$location3 ",'" addslashes($scriptpath) . "'";
  } else {
    
$location1 '';
    
$location2 '';
    
$location3 '';
  }
} else {
  
$location1 '';
  
$location2 '';
  
$location3 '';
}
// ###################### Start sessions ####################### 
Which is what the instructions stated and then your problems with be solved :bunny:
Reply With Quote
  #178  
Old 09-20-2002, 08:14 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do u mean by the default sig editor and the advanced sig editor???

im confused

- miSt
Reply With Quote
  #179  
Old 09-20-2002, 09:47 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mist
what do u mean by the default sig editor and the advanced sig editor???

im confused

- miSt
default sig editor == VBulletin provided "editor"
advanced sig editor == any one of the four or so hacks that make sig editing like writing posts, e.g. advanced.
Reply With Quote
  #180  
Old 09-21-2002, 09:36 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im confused... i have the hl_signature hack by NanoEntity installed wich gives a preview pane and does sig limits - but is that an advanced sig editor?

- miSt
Reply With Quote
  #181  
Old 09-21-2002, 10:12 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mist
im confused... i have the hl_signature hack by NanoEntity installed wich gives a preview pane and does sig limits - but is that an advanced sig editor?

- miSt
Not aware of that hack and a search on here didn't turn up anything?

Compatible hacks are:-
- "Upgraded Signature-Editor w/ Preview" (re-release vb2)
- "Upgraded Signature-Editor w/ Preview" (original release vb2)
- "signature-editor with preview" (re-release release vb2)
- "signature-editor with preview" (orginal release vb2)
- Original hack by AA (vb1, no longer listed on here)

Only editing hacks orginally released before this hack (sept 2001) are currently compatible. As those four all provide everything a (vb2) sig editor needs I'm not inclined to add support for any additional editors.
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:56 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.06187 seconds
  • Memory Usage 2,411KB
  • 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
  • (6)bbcode_php
  • (12)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
  • (1)pagenav_pagelinkrel
  • (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