vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   My First MOD - (Diary) (https://vborg.vbsupport.ru/showthread.php?t=306350)

dizzynation 12-28-2013 02:41 AM

And this is where I begin to pull out my hair.

If the /block/ cmsarticle.php is not calling for avatars or profile pics then do I have to add custom php code to the php file?

ozzy47 12-28-2013 02:42 AM

Yes that would be what you need.

dizzynation 12-28-2013 05:42 PM

Anyone else have any ideas?

Would it be this code I need to add to cmsarticles.php?

" . ($this->registry->options['avatarenabled'] ? ",avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight" : "") . "

--------------- Added [DATE]1388257076[/DATE] at [TIME]1388257076[/TIME] ---------------

Might have found it

Code:

$fetch_userinfo_options = (
        FETCH_USERINFO_AVATAR | FETCH_USERINFO_LOCATION |
        FETCH_USERINFO_PROFILEPIC | FETCH_USERINFO_SIGPIC |
        FETCH_USERINFO_USERCSS | FETCH_USERINFO_ISFRIEND
);

Edit* But it didnt work...

--------------- Added [DATE]1388258371[/DATE] at [TIME]1388258371[/TIME] ---------------

Ok good news, I got it to call the default avatar, but its not pulling the custom profile pic.

Making progress.


All times are GMT. The time now is 08:30 AM.

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.01372 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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