Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to show 'participating in this discussion' as per github?
camo
New
How can I show whos participating in a discussion as per github, (see example)
(user icons here) lincolnwebs and bean are participating in this issue.
https://github.com/vanillaforums/Garden/issues/885
any help please?
windows7
chrome
v2.1.8b4
(user icons here) lincolnwebs and bean are participating in this issue.
https://github.com/vanillaforums/Garden/issues/885
any help please?
windows7
chrome
v2.1.8b4
Tagged:
0
Answers
seems they managed to resize to 32x32pix aswell?
Example is the "module" "In this discussion", you can figure out the rest yourself of course.
Then as @jspautch excellently shows, add the code from his post.
There was an error rendering this rich post.
I added jspautsch suggestion to that module and could insert avatars in the sidepanel (inthisdiscussion) but not as shown at github. Please dont assume we're all as smart as you
How do I insert usernames under the first discussion? Is it somewhere in class.inthisdiscussionmodule.php ?
The modules are separate from a view, so focus on the views first.
Every application (vanilla, dashboard, etc, etc) has a view directory (or views directory)
When you're looking at a list of discussions, you look for the discussions view. When you're looking at one single discussion, you look for the discussion view.
The details inside the view are filled by a helper function. Take a look at the helper function for the discussion view and the discussion view itself.
Use FireFox with the FireBug plugin. Look at the style of the first comment in the single discussion and look for that same style in the view.
Now figure out where that single first comment ends and experiment with pieces of texts at the end of the first comment.
Gradually add important stuff like just a username or just the word "username". When that works look in the "In this discussion" module for examples of what you want to achieve.
There was an error rendering this rich post.
OK I found the right place but I dont know what from class.inthisdiscussionmodule.php ? tp insert there ?????
Admins please delete these spammers, im getting 'you must accept or reject' but its not possible
http://vanillaforums.org/discussion/17261/short-urls-url-redirect#Item_1
and looks like they've resized them to 32x32 somehow for that veiw?
https://github.com/vanillaforums/Garden/commits/
ok mate, I got something there, but its not pulling user id or the avatar, also its under both the first and last post.
This file
forum/applications/vanilla/views/post/comment.php
this bare code
<div><h4><?php echo T('In this Discussion'); ?></h4><?php echo UserPhoto($User);?></div>
at the very top of the file. Now you know your dealing with a very clueless new vanilla/php user, please, please help?
@camo : This might help you? Check it.