Don't focus on the layout. Just show the usernames first in your discussion layout. You know what's the first discussion topic, so under that topic show the usernames of the persons that are joining the discussion. 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.
Underdog thankyou for participating, but Im afraid I dont understand. How do I do that exactly?
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 ?
When you look at the display of 1 single discussion (for example this discussion) you are looking at a view
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.
Answers
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •seems they managed to resize to 32x32pix aswell?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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 ?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •and looks like they've resized them to 32x32 somehow for that veiw?
https://github.com/vanillaforums/Garden/commits/
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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? :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@camo : This might help you? Check it.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •