MyBB Hacks

Full Version: Article Gallery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
At first I was not sure what you meant by the sorters, but if you mean the sort by last post , order descending by date etc (provided as standard in MYBB) then yes, this pagination issue occurs there too.
Hey rateu the tables gets broken if you stick a thread..
Argh... I never thought about the sticky thread. Thanks, Sept Smile

Create templates:
  • Template Name: atcgal_forumdisplay_threads_sep
  • Template Content:

    HTML Code
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
    	<tr>
    		<td class="thead" align="center">
    			<div><strong>Normal Articles</strong></div>
    		</td>
    	</tr>
    </table>
    <br />

  • Template Name: atcgal_forumdisplay_sticky_sep
  • Template Content:

    HTML Code
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
    	<tr>
    		<td class="thead" align="center">
    			<div><strong>Important Articles</strong></div>
    		</td>
    	</tr>
    </table>
    <br />


I've updated the example.
are you going to make this into a plugin?
Hmm, its an X thread template - you follow the instructions to use it in Xthreads. The beauty of this example from RateU is that you can see how he has made it and then edit to your own wishes - actually better than a plug in IMO.

Of course, I can't answer on behalf of RateU, and  its just my opinion that the great thing about Xthreads is that the only limit is our ability to see what can be done with the XThreads plug in using HTML and css, rather than just installing a set up via another plug in. This method gives us the flexibility to "tweak" the examples to get a custom solution.
Hi, Just joined and completed this tutorial.  I'm loving it so far, but I cant figure a few things out.  First, my Categories seem to link back to the main forum page when clicked.

Second, when I try to hide the forum in the edit forum settings, the entire category disappears.

Link: http://www.7173mustangs.com/forum-the-7173-wiki

(should be visible to guests)

Also, how can I make the categories single choice only when creating a thread?

Thanks!
(07-30-2010 05:30 AM)RocketFoot Wrote: [ -> ]my Categories seem to link back to the main forum page when clicked.

How stupid I'm. Yeah, I did it wrong in atcgal_forumdisplay_threadlist template. Using wrong key for the filtering URL in that template.

Find this code in atcgal_forumdisplay_threadlist template (line #20 - #22):

Code:
agalcat


Change to:

Code:
atcgal


Thanks, RocketFoot. And I'm really sorry for the mistake Biggrin I've updated my first post.

(07-30-2010 05:30 AM)RocketFoot Wrote: [ -> ]Second, when I try to hide the forum in the edit forum settings, the entire category disappears.
(should be visible to guests)

Try to set the forum order, so, the forum order is not the last forum in that category. I think you have 7 forums under the Tech Forums category, and the The 7173 Wiki forum is the last forum there (the 7th forum). Try to set it to lower order, e.g: 6. Just make the The 7173 Wiki forum not the latest forum in the Tech Forums category. I don't know why this happens if we hide the latest forum in a category.


(07-30-2010 05:30 AM)RocketFoot Wrote: [ -> ]Also, how can I make the categories single choice only when creating a thread?

You need to edit theCategory  Custom Thread Fields for that. Something like this:
  • Title: Category
  • Key: atcgal
  • Description: Choose category for this article (required). You can choose more than one category.
  • Applicable Forums: 'select the forum where we will apply this article gallery.
  • Input Field Type: Listbox / Option Buttons
    We are not allowing user to choose more than one category per article.
  • Field Input Height: 1 If you choose Listbox at the Input Field Type settings above
  • Values List:

    Code:
    Music
    Games
    Other

    Modify it as our needs.

  • Editable by / Required Field?: Everyone (required)
  • Display Order: 1
  • Allow Filtering: Yes
    With this option = Yes, we can filter our articles based on their categories.
  • Display Format:

    Code:
    Category: {VALUE}

  • Allow multiple values for this field: No
  • Formatting Map List:

    HTML Code
    Music{|}<a href="{$forumurl?}filtertf_atcgal=Music"><span style="color: green;">Music</span></a>
    Games{|}<a href="{$forumurl?}filtertf_atcgal=Games"><span style="color: blue;">Games</span></a>
    Other{|}<a href="{$forumurl?}filtertf_atcgal=Other"><span style="color: red;">Other</span></a>

    Change the color as our needs.

Thanks RateU!

I made the changes but I still cant get it to do single choice.

Also, I decided to make a new category and add my new forum under that...now both are hidden.  I may play with order later, but I would like to get rid of the multiple choice feature first.

Thanks so much!

ETA: Hold the phone!  I messed changing to option buttons!  It works now!

Thanks again!!
Can you post your Category Custom Thread Fields settings for your article gallery, please?
Sorry, I edited my post above...I forgot to change it to option buttons.  Once I did that, it seems to be working right now!

Thanks! Biggrin  I love this mod!
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Reference URL's