• 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.

Suggest an Article

GrnEyedDvl

New Member
AMS Premium
UBS Premium
Pick'em
Sportsbook
We got a request for an option for users to suggest an article and we came up with something fairly simple. There is probably a better way to do this, but this is working for us.

Create a Suggestion forum someplace on your site.

Create a new template, ours is named x_suggest_article_button and put this code in it. Change the link and text to fit.

Code:
<xf:button href="https://www.your.site.com/forums/content-suggestions.2364/"
    class="button--suggest-article" style="margin-bottom: 1em; width: 100%;" icon="write" overlay="true">
    Post here to suggest an article topic
</xf:button>


And inside the xa_ams_category_view and xa_ams_index and xa_ams_series_list templates find the above_articles or above_series section and add this. On my site that starts at line 95.
Code:
<!-- adds button with link to forum for article/news requests -->
<xf:include template="x_suggest_article_button" />


That gives you a button that is full width, that pops an overlay to your Suggestion forum. Full width button may be overkill but sometimes with my users you have to slap them directly in the face before they see something.


suggest1.png

suggest2.png
 
Last edited:
Upvote 0
Back
Top