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
(12-09-2010 08:10 AM)RateU Wrote: [ -> ]If you want to do that in postbit, I think it is better to use a dropdown menu for that?

Interesting Idea!  I could make 1 drop down for all my postbit links!
Question:  How can I make the category selection that defaults to no selection so if a member doesn't select a category, an error will result?  My members are having a hard time remembering to select the proper category and it is defaulting to the very first one every time.

Nevermind...LOL!  I think it does work this way.  my members are just choosing the wrong categories.   I'll have to think of something else to correct this.
What custom thread fields you are using for the category?
I'm using check boxes for category selection in the category thread field.
(12-14-2010 03:23 AM)RocketFoot Wrote: [ -> ]Nevermind...LOL!  I think it does work this way.

I think it already solved?
I'm sorry, I didn't read that edit part before I post my reply above Biggrin
Yeah, we got that pretty much handled!  LOL...

Now, for a good one!  I just had a member post a really great article with lots of images but the images are not resizing from the "Fit To Page" plugin that I am using, thus breaking the margins of the page.  Is there anyway to add the resizing to the article gallery?  Take a look at the article to see what I mean.  

http://www.7173mustangs.com/thread-how-t...http://www.7173mustangs.com/thread-how-to-rebuild-a-f

All my other pages automatically resize images to prevent them from running off the margins.

ETA:  Here is a post from G33K on how to add the script to other pages, but I can't figure out where to add it to make it work!

http://community.mybb.com/thread-53553-p...http://community.mybb.com/thread-53553-post-582651.html
Top of the showthread template for that forum?
(12-15-2010 01:08 AM)leefish Wrote: [ -> ]Top of the showthread template for that forum?

I tried inserting the code there but it doesn't work...I might need a new template or something to accomplish this??

This is my atcgal_showthread template as it sits right now...the fitonpage script is inserted but not working:

Code:
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1400"></script>

<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
    var fitonpage_on = "{$mybb->settings['g33k_fitonpage_enabled']}";
    var fitonpage_resize = "{$mybb->settings['g33k_fitonpage_resize']}";
    var fitonpage_fluid = "{$mybb->settings['g33k_fitonpage_fluid']}";
    var fitonpage_topbar_resized = "{$lang->fitonpage_topbar_resized}";
    var fitonpage_topbar_full = "{$lang->fitonpage_topbar_full}";
    var fitonpage_topbar_text_class = "{$mybb->settings['g33k_fitonpage_topbar_text_class']}";
    var fitonpage_topbar_bground = "{$mybb->settings['g33k_fitonpage_topbar_bground']}";
    var fitonpage_topbar_icon = "{$mybb->settings['g33k_fitonpage_topbar_icon']}";
    var fitonpage_location = "showthread";
-->
</script>

</head>
<body>
{$header}
{$pollbox}
<div class="float_right">
{$newreply}
</div>
{$ratethread}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="clear: both; border-bottom-width: 0;">
	<tr>
		<td width="75%" valign="top">
			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
				<tr>
					<td class="thead" colspan="2">
						<div style="float: right;">
							<span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
						</div>
						<div>
							<strong>{$thread['subject']}</strong>
						</div>
					</td>
				</tr>
				{$classic_header}
			</table>
			<div>
				{$first_post}
			</div>
			<div align="center">
				<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
			</div>
		</td>
		<td valign="top">
			{$search_thread}
			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-bottom-width: 0;">
				<tr>
					<td class="thead">
						<div><strong>Comments</strong></div>
					</td>
				</tr>
			</table>
			<div id="posts">
				{$posts}
			</div>
			<div class="float_right">
				{$multipage}
			</div>
		</td>
	</tr>
</table>
<br style="clear: both;" />
{$threadexbox}
{$similarthreads}
{$quickreply}
<br />
<div class="float_left">
	<ul class="thread_tools">
		<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
		<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
		<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
	</ul>
</div>
<div class="float_right" style="text-align: right;">
	{$moderationoptions}
	{$forumjump}
</div>
<br style="clear: both;" />
{$footer}
</body>
</html>

Hmm, what about if you put the template prefix in front of Showthread?

    var fitonpage_location = "PREFIX_showthread";
I tried that also...
atcgal_showthread

But still no worky!  I'm am completely stumped!  LOL  It should work but it doesn't.  I even cleared my caches several times and nothing.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Reference URL's