Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Avatar & Signature in UserCP Details »»
Avatar & Signature in UserCP
Version: 1.00, by assassingod assassingod is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 02-01-2004 Last Update: Never Installs: 44
 
No support by the author.

Avatar and Signature in UserCP

Coded by: assassingod

Description:
This shows the users avatar and signature in their UserCP

A simple hack

Press install if you use this hack, thanks!

Show Your Support

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

Comments
  #22  
Old 02-06-2004, 11:48 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is strange is if you'll look in the usercp.php a way up from this code you will see the function being used just fine.

Quote:
$reputation['reason'] = parse_bbcode($reputation['reason']);
Reply With Quote
  #23  
Old 02-06-2004, 01:02 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so, idem on rc3

PHP Code:
Fatal errorCall to undefined function: parse_bbcode() in c:\xxxxxxxxxx\xxxxxxxxxx\xxxx\rc3\usercp.php on line 416 
line 416 :
Code:
$userinfo['signature'] = parse_bbcode($bbuserinfo['signature'], 0, 1);
Reply With Quote
  #24  
Old 02-06-2004, 01:04 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just add:

PHP Code:
require_once('./includes/functions_bbcodeparse.php'); 
Above the line generating the error.
Reply With Quote
  #25  
Old 02-06-2004, 01:29 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then how come the same code a ways above works fine without any errors?
Reply With Quote
  #26  
Old 02-06-2004, 01:38 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<?php

if ($a) {
    require_once(
'./includes/functions_bbcodeparse.php');
    
$b parse_bbcode($b);
}

$c parse_bbcode($c);
?>
Take the above as an example, if $a is false then you'll get a fatal error on line 8, because the file hasn't been required, where as if $a is true you won't get an error.

The alot of the functions files arn't required unless they are needed at a certain point to improve speed.
Reply With Quote
  #27  
Old 02-06-2004, 01:44 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, but don't you have to close the file request out after the code or will it only work the first time is it requested?

HTML Code:
// <!-- MEMBER'S SIGNATURE AND AVATAR IN USER CP  -->
require_once('./includes/functions_bbcodeparse.php');
$userinfo['signature'] = parse_bbcode($bbuserinfo['signature'], 0, 1);
$userinfo['avatarurl'] = fetch_avatar_url($bbuserinfo['userid']);
// <!-- END MEMBER'S SIGNATURE AND AVATAR IN USER CP  -->
There's no closing tag (or whatever you call it) here. Won't that affect everything after this code, too?

And what's really strange is that on my site it worked fine without ever having to call that file.
Reply With Quote
  #28  
Old 02-06-2004, 01:52 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Ok, but don't you have to close the file request out after the code or will it only work the first time is it requested?
Not really sure what you mean by that. Either way you probably have different options set then Socrate does, and going only by the few posts I've read in the thread its probably because you have the reputation display on in the User CP while Socrate probably has it turned off.
Reply With Quote
  #29  
Old 02-06-2004, 01:58 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
Just add:

PHP Code:
require_once('./includes/functions_bbcodeparse.php'); 
Above the line generating the error.
veiled, Ca goes to the hair , thank NTLDR

on the other hand, which is the difference with the hack of Assassingod really?


Quote:
Originally Posted by NTLDR
Not really sure what you mean by that. Either way you probably have different options set then Socrate does, and going only by the few posts I've read in the thread its probably because you have the reputation display on in the User CP while Socrate probably has it turned off.
yes, I did not authorize the posting of the reputation indeed
Reply With Quote
  #30  
Old 02-06-2004, 02:04 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made this a while back and the template is done like it is supposed to fit in the user cp. Plus my code allows for users who don't have a signature or a avatar and the box not showing up if that is the case. Install his template code and then install mine and you tell me the difference.

I posted the code here for him to add to his if he wanted to, by the way.
Reply With Quote
  #31  
Old 02-06-2004, 02:08 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
I made this a while back and the template is done like it is supposed to fit in the user cp. Plus my code allows for users who don't have a signature or a avatar and the box not showing up if that is the case. Install his template code and then install mine and you tell me the difference.

I posted the code here for him to add to his if he wanted to, by the way.
yes, thank you Boofo, I did not have to note his difference, I think that that could indeed be to add to the hack of Assasingod
Reply With Quote
Reply

Thread Tools

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 05:03 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.04398 seconds
  • Memory Usage 2,313KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_php
  • (5)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
  • (4)pagenav_pagelink
  • (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