![]() |
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 |
So you want the users avatar to appear in the dropdown?
|
Quote:
|
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.
|
Quote:
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 :) |
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. :)
|
Quote:
|
The articles don't but the widgets do. blog.php may help as well.
|
Im just at a dead end, found {vb:raw bbuserinfo.avatarurl}
Still no go.... :( |
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.
|
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? |
Yes that would be what you need.
|
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 = ( --------------- 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 05:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|