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)
-   -   [RE-RELEASED vB2.0.1] Upgraded Signature-Editor w/ Preview (https://vborg.vbsupport.ru/showthread.php?t=23933)

VirtueTech 12-21-2001 01:15 AM

This usually happens because when you go to the signature page you come back to the profile and hit submit. The signature is blank in the profile page...so you need to remove the signature from the UPDATE query in member.php

You need to modify your member.php

In 2.0.3 find and remove:
PHP Code:

,signature='".addslashes($signature)."' 

From this line:
PHP Code:

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]$awaysql WHERE userid='$bbuserinfo[userid]'"); 

I hope this helps. :) I'm not sure what the line is in 2.2.*

DarkReaper 12-21-2001 02:32 AM

Old line:
PHP Code:

    $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); 

New line:
PHP Code:

  $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); 


VirtueTech 12-21-2001 02:33 AM

:)

thats right. Sorry did you not like the way I posted it :(

DarkReaper 12-21-2001 02:37 AM

No...that's for vB 2.2.1 :)

VirtueTech 12-21-2001 02:42 AM

ic

XiXora 12-21-2001 04:00 PM

hehe. i think we need this rereleasing. its a mess :P

Horizon 01-08-2002 05:01 PM

I get this at the top of the page for this hack

that is in EDIT SIGNATURE AREA

Warning: Undefined variable: REQUEST_URI in d:\inetpub\wwwroot\forum\global.php on line 60

Warning: Undefined index: HTTP_POST_VARS in d:\inetpub\wwwroot\forum\global.php on line 85

Warning: Undefined index: action in d:\inetpub\wwwroot\forum\global.php on line 85

Warning: Undefined index: action in d:\inetpub\wwwroot\forum\global.php on line 88

Sadie Frost 01-10-2002 07:19 PM

I just installed this using the attachment in the first post (sig_editor.zip).

It appears to be working fine for me, so I'm leery of re-doing it with sig_editorupdate.zip.

Can anyone tell me if I need to install the update or if the original zip works fine?

I'm running 2.2.1 :)

FWC 01-10-2002 07:50 PM

Quote:

Originally posted by Sadie Frost
Can anyone tell me if I need to install the update or if the original zip works fine?

I'm running 2.2.1 :)

I think you can use the original zip. But, you do need to make the code change to keep saving options from overwriting what the editor saves. I switched over to Tubedogg's last zip. I think there are instructions elsewhere in the thread for how to solve the overwriting problem. But, this is one very confusing thread. :)

Lucky 01-10-2002 11:02 PM

Great hack.

For 2.2.1 I had to fix the error/warning message, by adding the following line right under the first line ( <$php ) in sedit.php:

error_reporting(7);


All times are GMT. The time now is 02:17 PM.

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.01264 seconds
  • Memory Usage 1,760KB
  • 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
  • (4)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