vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Usercp Signature Preview (https://vborg.vbsupport.ru/showthread.php?t=40402)

Smoothie 06-29-2002 07:22 AM

ok, cool. It works fine too :) Your 2 templates had the replacement variables, his didn't.

Bugz 06-30-2002 07:08 AM

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:*

Smoothie 06-30-2002 03:24 PM

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 


Kinox 06-30-2002 03:46 PM

its not my code... threre is no

PHP Code:

    SELECT signature
    FROM user 

querie...

Smoothie 06-30-2002 03:55 PM

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")."\";");



Kinox 07-01-2002 06:09 AM

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

I will update the zip in few min...

ForKmaN 07-01-2002 06:22 AM

did you update it yet? :)

Kinox 07-01-2002 06:31 AM

yes its updated now, v1.2

post #1

Bugz 07-01-2002 08:01 AM

i dont get it..

whats updated ?.

i have no problems with it. is there anyway you could have a upgrade .txt ?

Kinox 07-01-2002 08:09 AM

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


All times are GMT. The time now is 01:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01931 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete