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 12:31 AM

My First MOD - (Diary)
 
I am creating a mod that uses memberaction_dropdown and I have everything done expect for the fact I cannot get vb to call the users profile in the -

This is an example of the direction I was trying to go in the memberaction_dropdown template but the "src" is not calling the profile pic

<img src="{vb:raw prepared.profilepicurl}" alt="" />

This is my last bit I need to finish and I will have a complete mod (First official mod from scratch!)

Will add whoever helps to "Supporter" area in modifications

ozzy47 12-28-2013 12:33 AM

So you want the users avatar to appear in the dropdown?

dizzynation 12-28-2013 12:54 AM

Quote:

Originally Posted by ozzy47 (Post 2470865)
So you want the users avatar to appear in the dropdown?

Hey Ozzy, the member's profile image (or avatar I guess, I have tried both with no success)

ozzy47 12-28-2013 01:07 AM

Just a silly question, why do you need it to show there, I am just tying to wrap my head around it, that's why I ask.

dizzynation 12-28-2013 01:40 AM

Quote:

Originally Posted by ozzy47 (Post 2470872)
Just a silly question, why do you need it to show there, I am just tying to wrap my head around it, that's why I ask.



Once I get this code right I am going to use my custom memberaction_dropdown_article template to use for vbcms_content_article_page and preview page.

I turned a vbulletin into a support ticket system, which everything is private except for articles and blogs.

So in articles, where it says "By *Name here" Publish Date - I dont want guests to go to the authors profile page, but I want them to see a little "blip" of who they are....

Hope that helps :)

ozzy47 12-28-2013 02:00 AM

Take a look in the includes/block php files, and you can see how vB gets the avatars in the forum sideblocks. When I did vBDonate for DBTech, that is how I went about getting the avatars to show up. :)

dizzynation 12-28-2013 02:23 AM

Quote:

Originally Posted by ozzy47 (Post 2470887)
Take a look in the includes/block php files, and you can see how vB gets the avatars in the forum sideblocks. When I did vBDonate for DBTech, that is how I went about getting the avatars to show up. :)

Good, call and I had not checked out the block php files yet, Im there now and just realized that articles dont call any avatars/profile - I know that Blog.php does, maybe check there?

ozzy47 12-28-2013 02:26 AM

The articles don't but the widgets do. blog.php may help as well.

dizzynation 12-28-2013 02:31 AM

Im just at a dead end, found {vb:raw bbuserinfo.avatarurl}

Still no go.... :(

ozzy47 12-28-2013 02:34 AM

You cant just use a variable, you need to fetch it from the DB, like they do in the block files, then you can call it. Only way to use a variable without calling it, is if it is already available.


All times are GMT. The time now is 11:50 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.01147 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_quote_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
  • (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