• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Discussion thread first post ideas...

click here

New Member
Showcase
Apparently my members do not like the "link" in the first post that is created but as I understand it the first post needs to be there to associate the discussion to the item that was just created?

My question is, can that be changed to something else, maybe the first photo in their gallery? I do require a person to have a photo in order to start an item.

Basically looking for any ideas as my users tell me the first post is ugly. :eek:
 
Think this probably has something to do with limitations and staying within scope of XenForo without being overly complicated, but also something I'd like to see.
 
The Item create service uses the phrase 'xa_sc_item_thread_create' to set the text for the first post. You can edit that phrase to change the wording to what ever you prefer.

NOTE: Changing the Phrase is NOT going to change the 1st post in any existing threads, the phrase is only used during the Thread Create process to set the text of the post.

This is the same exact thing that the Core XF Resource Manager does (it uses a phrase to set the text for the first post of the associated discussion thread that is created during the creation of a Resource).

There are some available variables that are passed into the phrase, that you can use to customize the phrase.
PHP:
        $phrase = \XF::phrase('xa_sc_item_thread_create', [
            'title' => $item->title_,
            'term' => $category->content_term ?: \XF::phrase('xa_sc_item'),
            'term_lower' => $category->content_term ? strtolower($category->content_term) : strtolower(\XF::phrase('xa_sc_item')),
            'username' => $item->User ? $item->User->username : $item->username,
            'snippet' => $snippet,
            'item_link' => $this->app->router('public')->buildLink('canonical:showcase', $this->item)
        ]);


The default phrase only uses 'term', 'item_link' and 'title', however, you can add things like snippet if you want to (like XFRM does).
HTML:
This thread is for the general discussion of the {term} [url={item_link}][plain]{title}[/plain][/url]. Please add to the discussion here.
 
The Item create service uses the phrase 'xa_sc_item_thread_create' to set the text for the first post. You can edit that phrase to change the wording to what ever you prefer.

NOTE: Changing the Phrase is NOT going to change the 1st post in any existing threads, the phrase is only used during the Thread Create process to set the text of the post.

This is the same exact thing that the Core XF Resource Manager does (it uses a phrase to set the text for the first post of the associated discussion thread that is created during the creation of a Resource).

There are some available variables that are passed into the phrase, that you can use to customize the phrase.
PHP:
        $phrase = \XF::phrase('xa_sc_item_thread_create', [
            'title' => $item->title_,
            'term' => $category->content_term ?: \XF::phrase('xa_sc_item'),
            'term_lower' => $category->content_term ? strtolower($category->content_term) : strtolower(\XF::phrase('xa_sc_item')),
            'username' => $item->User ? $item->User->username : $item->username,
            'snippet' => $snippet,
            'item_link' => $this->app->router('public')->buildLink('canonical:showcase', $this->item)
        ]);


The default phrase only uses 'term', 'item_link' and 'title', however, you can add things like snippet if you want to (like XFRM does).
HTML:
This thread is for the general discussion of the {term} [url={item_link}][plain]{title}[/plain][/url]. Please add to the discussion here.
Would it be possible to get a feature to optionally include the snippet? It gives more context to the first post in most cases.
 
Would it be possible to get a feature to optionally include the snippet? It gives more context to the first post in most cases.

Simply edit the phrase and add the snippet to it
Code:
[quote]{snippet}[/quote]


Here is the phrase that the XFRM uses to generate the text for the first post.
Code:
{username} submitted a new resource:

[url={resource_link}][plain]{title}[/plain][/url] - [plain]{tag_line}[/plain]

[quote]{snippet}[/quote]

[url={resource_link}]Read more about this resource...[/url]


You can do something similar like this...
Code:
{username} submitted a new showcase item:

[url={item_link}][plain]{title}[/plain][/url]

[quote]{snippet}[/quote]

[url={item_link}]Read more about this showcase item...[/url]
 
Simply edit the phrase and add the snippet to it
Code:
[quote]{snippet}[/quote]


Here is the phrase that the XFRM uses to generate the text for the first post.
Code:
{username} submitted a new resource:

[url={resource_link}][plain]{title}[/plain][/url] - [plain]{tag_line}[/plain]

[quote]{snippet}[/quote]

[url={resource_link}]Read more about this resource...[/url]


You can do something similar like this...
Code:
{username} submitted a new showcase item:

[url={item_link}][plain]{title}[/plain][/url]

[quote]{snippet}[/quote]

[url={item_link}]Read more about this showcase item...[/url]
Way better so there is more context to the discussion item.
 
Way better so there is more context to the discussion item.
There is also the option to display Sections 1-6 above the posts list of a thread, which IMO, is much better than having some snippet of static text added to the first post, which won't be updated, if the section text is changed in the item.
 
There is also the option to display Sections 1-6 above the posts list of a thread, which IMO, is much better than having some snippet of static text added to the first post, which won't be updated, if the section text is changed in the item.
Would there be a way to display the Showcase image as well?
 
The Cover Image will display in the Header if you enable it to display in the header.

Selection_322.png

The image in this screen shot is the Cover Image for this item (it also launches the Lightbox viewer to view all image attachments associated with the Item).

Selection_321.png


Here is the associated discussion thread. It uses the same "header" as the Showcase item does.

Selection_320.png
 
Back
Top