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
Signature Image System Hack - Version 3.0+... Details »»
Signature Image System Hack - Version 3.0+...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-01-2002 Last Update: Never Installs: 44
 
No support by the author.

This hack is now a Full Release!!!...You can visit the BETA thread here - I will still be using that thread to test out upcoming versions!

Please do the following before attempting to install:

1.) Backup your Files & Database before doing anything
2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files & database, I cannot condone your install of this hack...

The files you should have are:

In the main folder
modifications.php
templates.php
queries.php
3.0 - Show Signatures.php
3.0 - Usergroup override - permissions.php
NEW INSTALL.php

In the root folder
signature.php

In the admin folder
signature.php

*================================================= ================================================== ==================*
Please Note:
The install files are in the ".php" format, as vBulletin.org Parses all "{ imagesfolder }" and other replacment variables
used in the code - With .php extensions, it does not.

*================================================= ================================================== ==================*

Install Info:
Hack Version: 3.0+
Files to edit: 9 (admin/functions.php, admin/user.php, root/member.php, root/showthread.php, root/register.php, root/online.php, root/global.php, root/usercp.php, admin/index.php)
Templates to add: 19
Templates to edit: 5
Time to install: Approx 10-15 Minutes

Thanks
Special thanks should go to the following people:

N9ne - For providing template modifications, and for being a BETA tester
Minifreunde - For requesting this hack, and for being a BETA tester
DrkFusion - For being a BETA tester
NTLDR - For helping with a few errors during the BETA testing stage...
mADmAX`- For providing the missing code to the root/usercp.php file...You can find his manual change here

Support - I am offering support, but only in THIS THREAD...I unfortunately cannot be here during the coming weeks (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread

Screenshots
Screenshots will be coming in the next post in a .zip file of their own...

Updating from BETA

Depending on what version you are updating from, I recommend the following:

Version 1.0Beta - 2.1Beta - Complete re-install
Version 2.2Beta - Follow the instructions for the .php files starting "3.0", and there is one register.php modification and one usercp.php modification in the "modifications.php" file
Version 3.0Beta - There is one register.php modification and one usercp.php modification in the "modifications.php" file

v3+ comes out!
v3+ is really just the following:

Converting of all install files to .php format (to prevent code parsing)
Creation of an extra folder (root) to house the root/signature.php file (so you dont get confused with the install .php files)
The root/usercp.php modifcation I forgot to include

Enjoy!

Satan

Show Your Support

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

Comments
  #232  
Old 07-16-2003, 02:38 PM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nobody knows how to get the signature image to show up int PMs along with the signature text?!? I tried the following, but didn't work..

In "root/private.php" find:
PHP Code:
        if ($post[avatarid]!=0) {
          
$avatarurl=$post[avatarpath];
        } else {
          if (
$post[hascustomavatar] and $avatarenabled) {
            
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]";
          } else {
            
$avatarurl="";
          }
        }
        if (
$avatarurl=="") {
    
$post[avatar]="";
} else {
    eval(
"\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
  } 
And Add After:
PHP Code:
// START SIGNATURE IMAGE
        
if ($post[signatureid]!=0) {
            
$signatureurl=$post[signaturepath];
        } else {
            if (
$post[hascustomsignature] and $signatureenabled) {
                
$signatureurl="signature.php?userid=$post[userid]&dateline=$post[signaturedateline]";
            } else {
                
$signatureurl="";
            }
        }
        if (
$signatureurl=="" or ($bbuserinfo[userid]>and !($bbuserinfo[showsignatures]))) {
            
$post[signatureimg]="";
        } else {
            eval(
"\$post[signatureimg] = \"".gettemplate("postbit_signatureimg")."\";");
        }
// END SIGNATURE IMAGE 
But that didn't fix it either. Any help?
Reply With Quote
  #233  
Old 07-16-2003, 03:10 PM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u need to add a JOIN queries to the original PM queries for signature too....like the one in the showthread.
Reply With Quote
  #234  
Old 07-16-2003, 03:29 PM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:10 PM LangTuDaTinh said this in Post #232
u need to add a JOIN queries to the original PM queries for signature too....like the one in the showthread.
I'd thought about that after I posted that last message. I was just gonna look and see what queries needed to be run. Thanks for the help, works great!

I added both parts for the queries and also added the "postbit_signatureimg" template to the required templates. For those of you who don't know exactly what to add where to get the sig image to show in PMs, do the following..


In "root/private.php" do the following 4 things..

Find:
PHP Code:
privfolder,postbit_avatar 
And Replace With:
PHP Code:
privfolder,postbit_avatar,postbit_signatureimg 
Find:
PHP Code:
                                 user.*,userfield.*".iif($avatarenabled,",avatar.avatarpath,customavatar.dateline AS avatardateline,NOT ISNULL(customavatar.avatardata) AS hascustomavatar ","")." 
And Add Below:
PHP Code:
                                 ".iif($signatureenabled,",signature.signaturepath,NOT ISNULL(customsignature.signaturedata) AS hascustomsignature,customsignature.dateline AS signaturedateline","")." 
Find:
PHP Code:
                                 ".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
                                                        LEFT JOIN customavatar ON customavatar
.userid=user.userid ","")." 
And Add Below:
PHP Code:
                                 ".iif ($signatureenabled,"LEFT JOIN signature ON signature.signatureid=user.signatureid
                                                           LEFT JOIN customsignature ON customsignature
.userid=user.userid","")." 
Find:
PHP Code:
if ($post[avatarid]!=0) { 
          
$avatarurl=$post[avatarpath]; 
        } else { 
          if (
$post[hascustomavatar] and $avatarenabled) { 
            
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]"
          } else { 
            
$avatarurl=""
          } 
        } 
        if (
$avatarurl=="") { 
    
$post[avatar]=""
} else { 
    eval(
"\$post[avatar] = \"".gettemplate("postbit_avatar")."\";"); 
  } 
And Add Below:
PHP Code:
        if ($post[signatureid]!=0) {
            
$signatureurl=$post[signaturepath];
        } else {
            if (
$post[hascustomsignature] and $signatureenabled) {
                
$signatureurl="signature.php?userid=$post[userid]&dateline=$post[signaturedateline]";
            } else {
                
$signatureurl="";
            }
        }
        if (
$signatureurl=="" or ($bbuserinfo[userid]>and !($bbuserinfo[showsignatures]))) {
            
$post[signatureimg]="";
        } else {
            eval(
"\$post[signatureimg] = \"".gettemplate("postbit_signatureimg")."\";");
        } 
Perhaps this should be included in the installation instructions. Thanks again LangTuDaTinh!
Reply With Quote
  #235  
Old 08-07-2003, 05:53 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

beautiful hack, pity the queries wern't auto or the templates weren't in different txt files, would've cut installation time into shreads, gonna install this later
Reply With Quote
  #236  
Old 08-19-2003, 03:42 AM
Harlequin's Avatar
Harlequin Harlequin is offline
 
Join Date: Aug 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using vB 2.3.2 and I've installed this hack with no problems whatsoever, however, there was a pretty big problem with the fact that the graphic itself didn't show. It has a nice, big X.

I've went through about ten pages of this thread hoping to grab on to an answer, but I don't think I've passed by anyone that's got quite the same problem I do.

Not only does the graphic not display in the usercp, it doesn't display on a post either (the text is there for the signature, the graphic comes up, again, as an X.)

The <img src=" is returning the following:

signature.php?userid=1&dateline=1061267928


Any clues?


I've reinstalled this thing twice already -- but I'll install it again if that's what it takes. It looks like a great hack -- hope I can use it soon.

(Could just be it's reeeeal late at night while I'm tryin' to get this on. )
Reply With Quote
  #237  
Old 09-09-2003, 12:53 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
08-19-03 at 12:42 AM Harlequin said this in Post #235
I'm using vB 2.3.2 and I've installed this hack with no problems whatsoever, however, there was a pretty big problem with the fact that the graphic itself didn't show. It has a nice, big X.

I've went through about ten pages of this thread hoping to grab on to an answer, but I don't think I've passed by anyone that's got quite the same problem I do.

Not only does the graphic not display in the usercp, it doesn't display on a post either (the text is there for the signature, the graphic comes up, again, as an X.)

The <img src=" is returning the following:

signature.php?userid=1&dateline=1061267928


Any clues?


I've reinstalled this thing twice already -- but I'll install it again if that's what it takes. It looks like a great hack -- hope I can use it soon.

(Could just be it's reeeeal late at night while I'm tryin' to get this on. )

I'm having issues with this as well and I don't get any sig showing and yes everyting is enabled. Problem is there are too many steps to go through to find the problem. I will have to remove this for now until Hellsatan finds the bugs.
Reply With Quote
  #238  
Old 09-14-2003, 11:27 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this hack still work or shall i leave it for another day?
Reply With Quote
  #239  
Old 10-07-2003, 02:50 AM
PAINTBALLM's Avatar
PAINTBALLM PAINTBALLM is offline
 
Join Date: Oct 2003
Location: Orlando, FL
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any way to add the option of using a image sig, or a text sig? (via radio button)
Reply With Quote
  #240  
Old 10-13-2003, 04:22 PM
NightWalk8r NightWalk8r is offline
 
Join Date: Jul 2002
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey.....great hack!!!

but as everyone asked, is there a way to have either or both image and text sig??

how about just add another field for the text sig??
Reply With Quote
  #241  
Old 11-22-2003, 03:14 PM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack and I have installed it for a long time but the more members are using it in a big forum, your forum will be much more slower. After removed this from showthread and store avatar and sig image on web harddisk instead of on the database, my forum speed is much much faster.

So if you have a big forum and would like to use this or multi avatar feature then I would recommend not to store on database.

and the best part is i don't use any queries for both avatars and sig image. i even removed all avatars and sig image from big get post queries in showthread.

what i do is allow members to upload to a directory and set their userid as filename. if user uploaded avatar or sig image then i would change the field avatarid and signatureid to 1, then in function.php, i would add sigimage by check weather those field is one or not. if it's 1 then the avatar and sig will display.

i will add a multi avatars later
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 02:32 PM.


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.10581 seconds
  • Memory Usage 2,365KB
  • 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
  • (10)bbcode_php
  • (2)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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