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
Usercp Signature Preview Details »»
Usercp Signature Preview
Version: 1.00, by Kinox Kinox is offline
Developer Last Online: Oct 2005 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 06-27-2002 Last Update: Never Installs: 69
 
No support by the author.

vbhacker v1.0.2 file

*Usercp Signature*

- Limit limitations on register new user
- Limit limitations on usercp after user register
- Preview sig in usercp
- Limit lines in sig
- Limit images in sig
- Limit width
- Limit height

Enjoy

NOTE:
Limit width/height only works on .gif, .jpg, .jpeg, and so on... not on .txt, .php, .cgi, .html and so on... if user might use them in [img ] [/img ] tag...

Limits to limit extensions will come in future...

UPDATED October 3
Added signature.mass.delete.php - Add that to your /admin, and run it only if you want all signatures deleted, it will erase all signatures in your database if you want limits to be set on existing registered users...

LATEST VERSION DOWNLOAD:
https://vborg.vbsupport.ru/attachmen...&postid=266936
-------------------------------------------------------------------------
Check out http://nekio.com.
Check out http://hololith.com - my personal website.

Show Your Support

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

Comments
  #32  
Old 06-29-2002, 07:22 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, cool. It works fine too Your 2 templates had the replacement variables, his didn't.
Reply With Quote
  #33  
Old 06-30-2002, 07:08 AM
Bugz Bugz is offline
 
Join Date: Feb 2002
Location: Cleveland
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Kinox
look at the files in the ....+fix+.rar

<tr id="cat">
<td bgcolor="{ categorybackcolor }" colspan="5" nowrap><normalfont color="{ categoryfontcolor }"><b>Signature Preview</b></normalfont></td>
</tr>


ok cool works perfect on 2.2.6



it'd be cool for this to be in 3.0

*:Clicks Install:*
Reply With Quote
  #34  
Old 06-30-2002, 03:24 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting this error, but only from this user:
PHP Code:
Invalid SQL
    
SELECT signature
    FROM user
       WHERE userid
=
       
LIMIT 1
       
mysql error
You have an error in your SQL syntax near 'LIMIT 1
       ' 
at line 5

mysql error number
1064 
Reply With Quote
  #35  
Old 06-30-2002, 03:46 PM
Kinox Kinox is offline
 
Join Date: Mar 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its not my code... threre is no

PHP Code:
    SELECT signature
    FROM user 
querie...
Reply With Quote
  #36  
Old 06-30-2002, 03:55 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see it right in your install file:
In usercp.php, replace this code:
PHP Code:
// main page: 
With this code:
PHP Code:
// main page:

// ############################### start signature preview ###############################
// ?hololith.com (NanoEntity)
$userinfo=$DB_site->query_first("
    SELECT signature
    FROM user
       WHERE userid=
$bbuserid
       LIMIT 1
       "
);

if (
$allowsmilies==1) {
    
$smiliesonoff=$ontext;
} else {
    
$smiliesonoff=$offtext;
}

if (
$userinfo[signature]) {
       
// format signature
    
$signature=htmlspecialchars($userinfo[signature]);
    
$previewsignature=bbcodeparse($signature,0,$allowsmilies);

    
// display signature
    
eval("\$siglist = "".gettemplate("hl_signature_usercp")."";");
} else {
    
// no signature, display
    
eval("\$siglist = "".gettemplate("hl_signature_usercpno")."";");

Reply With Quote
  #37  
Old 07-01-2002, 06:09 AM
Kinox Kinox is offline
 
Join Date: Mar 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh hehe, forgot... was 12am when I made that post, I was tired...

I will update the zip in few min...
Reply With Quote
  #38  
Old 07-01-2002, 06:22 AM
ForKmaN's Avatar
ForKmaN ForKmaN is offline
 
Join Date: Jan 2002
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you update it yet?
Reply With Quote
  #39  
Old 07-01-2002, 06:31 AM
Kinox Kinox is offline
 
Join Date: Mar 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes its updated now, v1.2

post #1
Reply With Quote
  #40  
Old 07-01-2002, 08:01 AM
Bugz Bugz is offline
 
Join Date: Feb 2002
Location: Cleveland
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont get it..

whats updated ?.

i have no problems with it. is there anyway you could have a upgrade .txt ?
Reply With Quote
  #41  
Old 07-01-2002, 08:09 AM
Kinox Kinox is offline
 
Join Date: Mar 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I removed from usercp.php

$userinfo querie
and allowsmilies

and changed some vars in
PHP Code:
// ############################### start signature preview ############################### 
+ updated html code to hl_signature_usercp, and hl_signature_usercpno

so it looks like in the screenshot
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 01:18 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.04516 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_php
  • (1)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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