MyBB Hacks

Full Version: Postbit Tabs
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
(12-26-2010 10:57 AM)RateU Wrote: [ -> ]
(12-26-2010 05:36 AM)MasterZuFu Wrote: [ -> ]I'm using the most up-to-date stable version of jquery, so i just changed the file extention numbers to match.

I've tried in demo forum using the most up-to-date stable version of jquery. I don't have any problem at all.

*mmmm not sure then. Let me undo everything I did with the postbit and see if the problem goes away. It may take some time though, I'm busy this holiday season.

(12-26-2010 10:57 AM)RateU Wrote: [ -> ]
(12-26-2010 05:36 AM)MasterZuFu Wrote: [ -> ]I'm not sure what the link leefish posted is about, please elaborate.

It is if we forgot to put the thread.js in our showthread template.

Oh, ok. No problems then Smile

(12-26-2010 10:57 AM)RateU Wrote: [ -> ]
(12-26-2010 05:36 AM)MasterZuFu Wrote: [ -> ]+It's no huge issue though to be honest.

No, it is a huge issue if we add some features in our forum, but we lost other features.
We can see, XThreads has a lot of features. No other features lost when installing XThreads.
I don't want to make you lost other feature just because this postbit tabs.
If you don't mind, we can try to solve it.
The worst thing is, maybe we need to change this tabs.

Try to move around the code above. Maybe at the beginning of the showthread template.
Are you using MyBB 1.4?

I suppose that's the truth. I'm using MyBB 1.6. I try to stay up-to-date with everything I have on my site. I learned the hard way last time about not keeping things up to date Tongue. I suppose I could shift the code around, I'll give that a shot. Smile

(12-26-2010 10:57 AM)RateU Wrote: [ -> ]
(12-26-2010 07:17 AM)MasterZuFu Wrote: [ -> ]is there a way to make that 'button' a single image with a specified size that can be clicked on?

Should be (if you mean like the New Thread, New reply button image).

Well, something like that. Actually, nevermind this idea of an "image", the quote right after this one is the one that seems most promising.

(12-26-2010 10:57 AM)RateU Wrote: [ -> ]
(12-26-2010 07:17 AM)MasterZuFu Wrote: [ -> ]Or make the button a specified width? another thing is they aren't symmetrical, if you only have two tabs then one is shorter than the other.

I think we can put width properties in the <td> tags, in the Blank Replacement Value and Display Format.

Hmm...alright, well this sounds promising. The thing is with different resolutions the screen is wider, thus, the website is wider. And if I'm using a screen that's particularly wide, then if I have tabs it stretches the entire distance of the thread, and if there are only two tabs one is often bigger than the other. I just need something that looks a little more presentable that's all Smile

(12-26-2010 10:57 AM)RateU Wrote: [ -> ]
(12-26-2010 05:36 AM)MasterZuFu Wrote: [ -> ]Yes, that's what I mean about the postbit tabs contents and title being below the post message.

Need a bit modification.

Ok Smile

Thanks for your reply Smile
I think it is better to solve the "quick reply" issue first.
We can try to "remodeling" the tabs later.
hmmmmm...alrighty then. I disabled the postbit tabs entirely from all the forums but one forum (my test forum). I tried to edit some threads elsewhere in the site, and still no quick edit option. I'm beginning to think that the postbit tabs are not what's damaged the showthread options. Let me take a look around and see where this problem lays.
I was looking at some other threads here and there on mybb.com to see if maybe it's something I did. I'm thinking I'm going to downgrade to the other version of XThreads and see if that's the problem (please advice for or against this, would this further damage my board?). I only installed plugins from this forum as well, so I'll check those out also. This is going to take some investigation of course, but I don't have the time to deal with it at this moment. Currently it's not a huge issue for me is that big a problem, but I also understand how important it is for you guys being the devs.
(12-28-2010 01:54 AM)MasterZuFu Wrote: [ -> ]I'm thinking I'm going to downgrade to the other version of XThreads and see if that's the problem (please advice for or against this, would this further damage my board?).

There are some changes in database scheme between 1.337 and 1.4.
If you really really want to do that, you can read the xt_upgrader.php file.
But I think, the "quick reply" issue is not caused by XThreads version. I think it is caused by javascript.

Reading your showthread template here:
(12-26-2010 05:36 AM)MasterZuFu Wrote: [ -> ]

HTML Code
<script type="text/javascript" src="jscripts/thread.js?ver=1400"></script>


and MyBB version you are using here:
(12-26-2010 01:33 PM)MasterZuFu Wrote: [ -> ]I'm using MyBB 1.6

it seems that you need to re-check your templates again?
Try looking at your headerinclude too.
Not quite sure whether that is the problem or not.
But you can try it if you want.
I think I am going to try this example with my trivia forum project!  Just one question to get me started...

Where do I add the templates?  The first one is edit but there  are 2 titles?  The second one needs added but again, 2 titles?  Please explain!

Thanks...Wink
(01-12-2011 12:10 PM)RocketFoot Wrote: [ -> ]Where do I add the templates?
Global template (if you want this for a specific forum). Use template prefix.

(01-12-2011 12:10 PM)RocketFoot Wrote: [ -> ]The first one is edit but there  are 2 titles?  The second one needs added but again, 2 titles?  Please explain!
I don't really understand what you mean?
Me again!  LOL!

I am building an FAQ forum using this example but i have a reoccuring problem:

http://www.7173mustangs.com/thread-how-t...http://www.7173mustangs.com/thread-how-to-add-photos-to-your-p

The question and answer both show on the main tab!  When you click the answer tab, it is correct!  RateU fixed this for me on the trivia forum, but now i can't remember what to do!

faq_showthread template:

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/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
	$.noConflict();
</script>
<style type="text/css">
.at {background: #026CB1 url(images/thead_bg.gif) top left repeat-x;color: #ffffff;}
#tc2, {display: none;}
</style>


<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 = "500";
    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_left">
	{$multipage}
</div>
<div class="float_right botones">
	{$newreply}<P>
</div>
<br style="clear: both;" />
<table border="0" width="100%">
	<tr>
		<td width="200" valign="top">
			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
				<tr>
					<td class="thead">
						<strong>Weekly Fun Question for Regular Members!</strong>
					</td>
				</tr>
				<tr>
					<td class="trow1" colspan="{$colspan}">
						<strong><a href="{$forumurl}">Back to Member's Index</a></strong>
					</td>
				</tr>
				<tr>
					<td class="trow1" colspan="{$colspan}">
						<strong><a href="http://www.7173mustangs.com/forum-weekly-fun-questions">Main WFQ Index</a></strong>
					</td>
				</tr>
				<tr>
					<td class="trow1" colspan="{$colspan}">
						<strong><a href="http://www.7173mustangs.com/myawards.php?awid=1">Winner's List</a></strong>
					</td>
				</tr>
				<tr>
					<td class="trow1" colspan="{$colspan}">
						<strong><center>Remember, all replies in this thread are moderated so you <u>will not</u> see your post after you click submit!</center></strong>
					</td>
				</tr>
			</table><P>
			{$search_thread}
		</td>
		<td valign="top">
			<script type="text/javascript">
				jQuery(document).ready(function($){
					$('.tab').click(function(){
						$('.at').removeClass('at');
						$(this).addClass('at');
						$('.content').slideUp();
						var catshow = $(this).attr('abbr');
						$('#'+ catshow).slideDown();
					});
				});
			</script>
			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
				<tr>
					<td class="tcat at tab" title="Question" style="cursor: pointer; text-align: center;" abbr="tc1">
						<strong>Question</strong>
					</td>
					<td class="tcat tab" title="Answer" style="cursor: pointer; text-align: center;" abbr="tc2">
						<strong>Answer</strong>
					</td>
				</tr>
			</table>
			<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0; border-top-width: 0;">
				<tr>
					<td class="thead" colspan="2">
						{$ratethread}
						<strong><a href="{$threadurl}">{$thread['subject']}</a></strong>
					</td>
				</tr>
			</table>
			<div>
				{$first_post}
			</div>
			<br class="clear" />
			<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>
			<br class="clear" />
			<strong>Comments</strong>
			<div id="posts">
				{$posts}
			</div>
			<div class="float_left">
				{$multipage}
			</div>
			<div style="padding-top: 4px;" class="float_right botones">
				<P>{$newreply}
			</div>
			<br style="clear: both;" />
			{$quickreply}
			{$threadexbox}
			{$similarthreads}
			<br />
			<div class="float_right" style="text-align: right;">
				{$moderationoptions}
				{$forumjump}
			</div>
		</td>
	</tr>
</table>
<br style="clear: both;" />
<div class="smalltext" align="center">
<b>Trivia Forum</b><br />
Powered By <b><a href="http://mybbhacks.zingaburga.com">XThreads</a></b>
</div>
{$footer}
</body>
</html>

Try removing the comma (,) in line #7.
Geezus!  I no longer have any hair on my head from pulling it all out over one little comma!  LOL!  

Thanks once again!
Pages: 1 2 3 4 5 6
Reference URL's