vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Avatar & Signature in UserCP (https://vborg.vbsupport.ru/showthread.php?t=61079)

Boofo 02-06-2004 11:48 AM

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']);

Allan 02-06-2004 01:02 PM

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);

NTLDR 02-06-2004 01:04 PM

Just add:

PHP Code:

require_once('./includes/functions_bbcodeparse.php'); 

Above the line generating the error.

Boofo 02-06-2004 01:29 PM

Then how come the same code a ways above works fine without any errors?

NTLDR 02-06-2004 01:38 PM

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.

Boofo 02-06-2004 01:44 PM

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. ;)

NTLDR 02-06-2004 01:52 PM

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.

Allan 02-06-2004 01:58 PM

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 :D, 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

Boofo 02-06-2004 02:04 PM

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. ;)

Allan 02-06-2004 02:08 PM

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 :)


All times are GMT. The time now is 07:25 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.01176 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (5)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