Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2003, 10:03 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Has this been done before?

I searched for this here but had no luck. I think I have seen this before, I am wondering if there is a hack where you can view the users signature in there profile. I tried to do this by copying this from member.php:

PHP Code:
$userinfo[avatarurl]=getavatarurl($userinfo[userid]);
  if (
$userinfo[avatarurl]=="") {
    
$userinfo[avatarurl]="{imagesfolder}/clear.gif";
  } 
and just changing avatar to signature but that didn't work. How would you do this?
Reply With Quote
  #2  
Old 06-09-2003, 11:12 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this u looking for??

https://vborg.vbsupport.ru/showthrea...ight=signature
Reply With Quote
  #3  
Old 06-09-2003, 11:29 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open member.php, find:

// ############################### start get info ###############################
if ($action=="getinfo") {
$templatesused = "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,get info_customfields,getinfo" ;
include("./global.php");

Add below:

global $allowsignatures,$allowsmilies;

then find:

if ($userinfo[yahoo]!="") {
eval("\$userinfo[yahooicon] = \"".gettemplate("yahoo")."\";");
} else {
$userinfo[yahoo]=" ";
}

Add below:

if ($userinfo[signature]!="" AND $allowsignatures) {
$post[signature]=bbcodeparse($userinfo[signature],0,$allowsmilies);
eval("\$userinfo[signature] = \"".gettemplate("postbit_signature")."\";");
} else {
$userinfo[signature]="None";
}

Close member.php

Open the template User Info Display Templates -> Getinfo and place $userinfo[signature] where ever you want the signature to be displayed.

Done!
Reply With Quote
  #4  
Old 06-09-2003, 11:43 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ty
Reply With Quote
  #5  
Old 06-09-2003, 11:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to take the hr line out above the signature for the profile, let me know and I can give you the code for that, too.
Reply With Quote
  #6  
Old 06-10-2003, 03:28 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, it works sometimes but sometimes it don't. I have the Signature Image system 2.0, and the Usercp Signature hack by NanoEntity installed and it acts funny. Sometimes it shows the sig image and sometimes it just shows the html code and not the image. Any ideas why it does that? And taking the <hr> out of it would be cool too.
Reply With Quote
  #7  
Old 06-10-2003, 03:35 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't have either one of those hacks installed. I've been using the code I gave you for over a year now and it works great for me.

To take the hr line out, do the following after you install the code that I gave you above:

Open member.php and find:

eval("\$userinfo[signature] = \"".gettemplate("postbit_signature")."\";");


And change it to:

eval("\$userinfo[signature] = \"".gettemplate("getinfo_signature")."\";");


Save and upload member.php.

Make a new template named: getinfo_signature

Put this in it:

$post[signature]

NOTE: Don't forget to add getinfo_signature to the templatesused line in the member.php to save an extra query.

Done.
Reply With Quote
  #8  
Old 06-10-2003, 05:13 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ty, I don't know what was wrong but it seems to be working fine now ty boofo
Reply With Quote
  #9  
Old 06-10-2003, 06:08 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well it started acting wierd again, I have no Idea why but this is what I did to get it working right.

In member.php after:

$userinfo['signature'] = bbcodeparse($userinfo['signature'],0,0);

I added:

if ($userinfo[signature]!="") {
$post[signature]=bbcodeparse($userinfo[signature],0);
eval("\$userinfo[sig] = \"".gettemplate("getinfo_signature")."\";");
} else {
eval("\$userinfo[sig] = \"".gettemplate("getinfo_signature_none")."\";" );
}

and added the 2 new templates to the templatesused part and put how I wanted it to look in the the templates and it works great now. I think the allowsmilies part was messing it up for some reason. I don't know but it works now lol. Ty again boofo.
Reply With Quote
  #10  
Old 06-10-2003, 07:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it working.
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 09:56 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.05163 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete