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)
-   -   Signature Image System Hack - Version 3.0+... (https://vborg.vbsupport.ru/showthread.php?t=45310)

Gemini 04-28-2003 11:12 PM

bump...

LangTuDaTinh 05-04-2003 06:12 PM

LOOK FOR THIS
PHP Code:

        if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = $sigcache["$post[userid]"];

            }
        } else {

            
$post[signature] = "";
        } 



CHANGE TO THIS
PHP Code:


        
if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = '';
            }
        } else {
                if (
$signatureurl!="") {
                        eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";"); 
                    }
        
//    $post[signature] = "";
        



as u ca see, i added a new code in the last "else" code and comment out the code in there

PHP Code:

                if ($signatureurl!="") {
                        eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";"); 
                    } 

if there is any error , pls let me know
thanks

Dribbles 05-30-2003 01:49 AM

If you have a fairly large forum, does this hack negatively effect server load, etc?? thnx

Chris M 05-30-2003 08:37 AM

@Dribbles - Depending on the size of avatars allowed, post count required, number of users, the load will vary - Usually signature images are 100x400 at most, so imagine about 7 avatars per user (including their avatar) and then you will see how this can affect server load on a big board:)

@LangTuDaTinh - Thanks for that - That may correct lots of people's problems:D

@Gemini - You will have to add the references to signature into member.php:)

Satan

Dribbles 05-30-2003 12:34 PM

Hi ... avatar settings are 150x150 max dimensions with 20kb max size. I was thinking for sig images 100 max height with 400 max width. So the system is basically as taxing as the avatar system? (width and size allowances aside).

Chris M 05-30-2003 02:58 PM

As taxing if not potentially more or less...

Satan

007 06-01-2003 08:55 PM

Hey hellsatan, I tried making this "Lesane Store Compatible" which I assumed would be easy since it is done the same way as normal avatars, but for some reason users cannot upload their sigs when accessing this through the store???

Is there anything in this hack that is different from the standard avatar code besides replacing the word avatar with signature?

Thanks.

Chris M 06-02-2003 07:10 PM

Yes - It does use a modified version of my "Improved Avatar Settings" hack (for signatures obviously:p);)

That is about it really, apart from N9ne's template mods and a few bits of modified code in member.php:)

Satan

007 06-04-2003 04:58 AM

That could be it. Thanks. :)

Falkware 06-04-2003 06:21 PM

Call me stupid, but what file is this you're referring to? I went through all the files and couldn't find this, or part of it, anywhere. /boggle

Quote:

05-04-03 at 08:12 PM LangTuDaTinh said this in Post #212
LOOK FOR THIS
PHP Code:

        if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = $sigcache["$post[userid]"];

            }
        } else {

            
$post[signature] = "";
        } 



CHANGE TO THIS
PHP Code:


        
if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = '';
            }
        } else {
                if (
$signatureurl!="") {
                        eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";"); 
                    }
        
//    $post[signature] = "";
        



as u ca see, i added a new code in the last "else" code and comment out the code in there

PHP Code:

                if ($signatureurl!="") {
                        eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";"); 
                    } 

if there is any error , pls let me know
thanks



All times are GMT. The time now is 03:59 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.01386 seconds
  • Memory Usage 1,802KB
  • 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
  • (6)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)pagenav_pagelinkrel
  • (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