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-18-2010 06:17 AM)leefish Wrote: [ -> ]For number one, I think its a setting. EDIT: Try checking in User Groups miscellaneous that you have "Can send thread to a friend" ticked. I think this also allows members to email each other.

It's not that, the link is there, the image is cut in half but the link doesn't show. i'll post a screenshot.

(12-18-2010 06:17 AM)leefish Wrote: [ -> ]For number two, ensure that you have Show first post on every showthread page set to yes in the forum settings.

Ugh....>_>....this is why I wish the XThreads Options were not ONLY on every individual forum, but were generically set just like the Custum Thread Fields are >_>. Ok, I'll go through and change that, thanks Smile

(12-18-2010 06:17 AM)leefish Wrote: [ -> ]For number three, try thread preview plugin - look in RateU's sig for tips  http://mybbhacks.zingaburga.com/showthread.php?tid=267

I have that plugin installed already, I had also done the Thread Description Custom Thread Field. I had the CTF enabled before I had done this and didn't realize it would create this bug. The problem already exists >_> and the only way it seems I can fix it is if I change all the categories on existing threads.

That's another thing that looks like was left out, I wish there was an ability to select all threads in the forum and change their categories. Currently, you have to edit the thread to set the category. Is there a way to make this one of the mod options?

(12-18-2010 06:43 AM)RateU Wrote: [ -> ]What bug? What do you mean by "the send email isn't working"?

I'll post a screenshot of the issue. The link works fine, it just doesn't show unless it's hard coded.

(12-18-2010 06:43 AM)RateU Wrote: [ -> ]Ugh..... I've missed that important setting?
How stupid I'm!
I've updated the first post.
Thank you very much Smile
And I'm really sorry for that trouble.

Not stupid at all, that's a lot of code and a lot of setting to sift through, very easy and simple to miss a step, and not that big a deal. I can just change them, no worries Smile

(12-18-2010 06:43 AM)RateU Wrote: [ -> ]Yeah. Like Lee said, the "description" generated automatically by Thread Tooltip Preview plugin.
But if you want to use the XThreads Thread Description, you need to find this code in atcgal_forumdisplay_thread  template:

Code:
{$thread['postpreview']}


And replace it with your XThreads Thread Description variable.


I understand that, but the problem is that BOTH the Xthreads Thread description AND the Thread Tooltip Plugin were enabled at the same time when I initially setup the articles application. Because there were existing threads in those sections, they didn't have a Thread Description, and the Tooltip Plugin was being overran by the Thread Description, so it defaulted to NO description at all and I have to manually edit each and every thread. Is there a way to manually override these? I can turn the Thread Description off on these select forums and is there like some kind of way to "reset" the Article Application so that it'll use the Tooltip Plugin?



EDIT:

Here's the code that in my show thread template now (part of the code anyways). I had to hard code it so the image and link shows up.

Code:
	<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}">Email this thread</a></li>
			<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}">{$add_remove_subscription_text}</a></li>
		</ul>
	</div>


and screenshot:


[attachment=320]

Hmmm, well, re the "bugs" - as discussed earlier you are using the code from github - I'm still on 1.337, so I'm afraid I can't help.

for the thread descriptions - yes, it is a pain if you have an existing forum and upgrade it. Thats why the thread tooltip is easier to implement - just disable the Thread description in the Articles forum via the custom thread field. That way it wont even show, without having to update templates (though you should really).
I don't really use the Thread tooltip in the way I think you want to, so I cant help much - but you change the HTML in the template and its done. Unless you followed this setup exactly, in which case its in the html already, in this template I think: atcgal_forumdisplay_thread
hmmm, does it do that missing symbol thing in the default theme?
I'm doubting this caused by a bug just by me using the code from github. I bet if you did the same thing on your forum it'd do the exact same thing I'm talking about.

I turned off the Thread Descriptions for those forums, but the tooltip plugin still hasn't taken effect for it, so....that's why I'm asking if there's a way to "reset" the templates....maybe if I add an invisible <div></div> or something and save it then edit it again and take it out it'll reset it like I hope. Not sure.
(12-18-2010 07:55 AM)MasterZuFu Wrote: [ -> ]

Code:
	<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}">Email this thread</a></li>
			<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}">{$add_remove_subscription_text}</a></li>
		</ul>
	</div>


You write the "Email this thread" manually in your template (not quite sure why).
The article gallery template uses the default language variable.
You need to do the same with your article gallery, write the text in the atcgal_showthread template manually.

Or, maybe you need to check your showthread.lang.php file for the language variable.

(12-18-2010 08:27 AM)MasterZuFu Wrote: [ -> ]but the tooltip plugin still hasn't taken effect for it,

Did you run the Rebuild Thread Tooltips tools?
The variable used to be there, but with it there it did what you see in the screenshot. I had to edit it manually just to get it to display properly. I'll take a look at the showthread.lang.php file and see if that might be what's wrong.


Well..that worked. That fixed it. To be honest with you, I seriously didn't even know the tooltip rebuild existed until you just told me.

Edit:

Is there a way to use an SQL query to push the XThreads Settings to a select set of forums? I just don't feel like spending the next hour re-editing all of these, it'd be nice if there were a quicker method to mass edit XThreads Settings for forums in situations like these.
(12-18-2010 08:08 AM)leefish Wrote: [ -> ]hmmm, does it do that missing symbol thing in the default theme?

Yes, it does. It has always done it.

EDIT: I changed the template in showthread back to the original. It's still displaying the problem: no send thread link and a partial image.

Showthread

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=210"></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>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/itsmybirthday.js?ver=220"></script>
<script type="text/javascript">
<!--
	var imb_wishesEnabled = "{$mybb->settings['g33k_itsmybirthday_wishes_enabled']}";
	var imb_wishesRemovable = "{$mybb->settings['g33k_itsmybirthday_wishes_removable']}";
-->
</script>
</head>
<body>
	{$header}
	{$pollbox}
	<div class="float_left">
		{$multipage}{$mysupport_jumpto_bestanswer}{$mysupport_form}
	</div>
	<div class="float_right">
		{$newreply}
	</div>
	{$ratethread}
	<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>{$mysupport_status}{$thread['subject']}</strong>
				</div>
			</td>
		</tr>
		{$classic_header}
	</table>
	<div id="posts">
		{$first_post}{$posts}
	</div>
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
		<tr>
			<td colspan="2" class="tfoot">
				{$search_thread}
				<div>
					<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
				</div>
			</td>
		</tr>
	</table>
	<div class="float_left">
		{$multipage}{$mysupport_jumpto_bestanswer}{$mysupport_form}
	</div>
	<div style="padding-top: 4px;" class="float_right">
		{$newreply}
	</div>
	<br style="clear: both;" />
	{$quickreply}
	{$threadexbox}
	{$similarthreads}
	<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}">{$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>


Sendthread.lang.php

Code:
<?php
/**
 * MyBB 1.6 English Language Pack
 * Copyright 2010 MyBB Group, All Rights Reserved
 * 
 * $Id: sendthread.lang.php 5016 2010-06-12 00:24:02Z RyanGordon $
 */

$l['nav_sendthread'] = "Send Thread to a Friend";

$l['send_thread'] = "Send To Friend";
$l['recipient'] = "Recipient:";
$l['recipient_note'] = "Enter your friends email address here.";
$l['subject'] = "Subject:";
$l['message'] = "Message:";
$l['error_nosubject'] = "You are required to enter a subject for the message to send your thread";
$l['error_nomessage'] = "You are required to enter a message before you can send this thread to your friend";
?>


showthread.lang.php

Code:
<?php
/**
 * MyBB 1.6 English Language Pack
 * Copyright 2010 MyBB Group, All Rights Reserved
 * 
 * $Id: showthread.lang.php 5016 2010-06-12 00:24:02Z RyanGordon $
 */

$l['delete_poll'] = "Delete Poll";
$l['close_thread'] = "Close Thread";
$l['stick_thread'] = "Stick Thread";

$l['author'] = "Author";
$l['message'] = "Message";
$l['threaded'] = "Threaded Mode";
$l['linear'] = "Linear Mode";
$l['next_oldest'] = "Next Oldest";
$l['next_newest'] = "Next Newest";
$l['view_printable'] = "View a Printable Version";
$l['send_thread'] = "Send this Thread to a Friend";
$l['subscribe_thread'] = "Subscribe to this thread";
$l['unsubscribe_thread'] = "Unsubscribe from this thread";
$l['moderation_options'] = "Moderation Options:";
$l['delayed_moderation'] = "Delayed Moderation";
$l['thread_notes'] = "Edit / View Thread Notes";
$l['open_close_thread'] = "Open / Close Thread";
$l['approve_thread'] = "Approve Thread";
$l['unapprove_thread'] = "Unapprove Thread";
$l['delete_thread'] = "Delete Thread";
$l['delete_posts'] = "Delete Selective Posts";
$l['move_thread'] = "Move / Copy Thread";
$l['stick_unstick_thread'] = "Stick / Unstick Thread";
$l['split_thread'] = "Split Thread";
$l['merge_threads'] = "Merge Threads";
$l['merge_posts'] = "Merge Selective Posts";
$l['remove_redirects'] = "Remove Redirects";
$l['remove_subscriptions'] = "Remove All Subscriptions";
$l['poll'] = "Poll:";
$l['show_results'] = "Show Results";
$l['edit_poll'] = "Edit poll";
$l['public_note'] = "<b>Note:</b> This is a public poll, other users will be able to see what you voted for.";
$l['total'] = "Total";
$l['vote'] = "Vote!";
$l['total_votes'] = "{1} votes";
$l['you_voted'] = "* You voted for this item.";
$l['poll_closed'] = "This poll is closed.";
$l['already_voted'] = "You have already voted on this poll.";
$l['undo_vote'] = "Undo vote";
$l['quick_reply'] = "Quick Reply";
$l['message_note'] = "Type your reply to this message here.";
$l['signature'] = "Signature";
$l['email_notify'] = "Email Notification";
$l['disable_smilies'] = "Disable Smilies";
$l['post_reply'] = "Post Reply";
$l['post_reply_img'] = "Post Reply";
$l['post_thread'] = "Post Thread";
$l['preview_post'] = "Preview Post";
$l['rating_average'] = "{1} Votes - {2} Average";
$l['rate_thread'] = "Rate This Thread:";
$l['thread_rating'] = "Thread Rating:";
$l['similar_threads'] = "Possibly Related Threads...";
$l['thread'] = "Thread:";
$l['replies'] = "Replies:";
$l['views'] = "Views:";
$l['lastpost'] = "Last Post";
$l['messages_in_thread'] = "Messages In This Thread";
$l['users_browsing_thread'] = "User(s) browsing this thread:";
$l['users_browsing_thread_guests'] = "{1} Guest(s)";
$l['users_browsing_thread_invis'] = "{1} Invisible User(s)";
$l['users_browsing_thread_reading'] = "Reading...";
$l['inline_delete_posts'] = "Delete Posts";
$l['inline_merge_posts'] = "Merge Posts";
$l['inline_split_posts'] = "Split Posts";
$l['inline_approve_posts'] = "Approve Posts";
$l['inline_unapprove_posts'] = "Unapprove Posts";
$l['inline_post_moderation'] = "Inline Post Moderation:";
$l['inline_go'] = "Go";
$l['clear'] = "Clear";
$l['thread_closed'] = "Thread Closed";
$l['no_subject'] = "No subject";
$l['error_nonextnewest'] = "There are no threads that are newer than the one you were previously viewing.";
$l['error_nonextoldest'] = "There are no threads that are older than the one you were previously viewing.";
$l['quickreply_multiquote_selected'] = "You have selected one or more posts to quote.";
$l['quickreply_multiquote_now'] = "Quote these posts now";
$l['or'] ="or";
$l['quickreply_multiquote_deselect'] = "deselect them";
$l['search_thread'] = "Search Thread";
$l['enter_keywords'] = "Enter Keywords";
$l['image_verification'] = "Image Verification";
$l['verification_note'] = "Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.";
$l['verification_subnote'] = "(case insensitive)";

?>

Zufu, I am rather lost now, my send thread to a friend works just fine. Using XThreads. Or is this NOT the bug you mean?

It seems to me that your biggest concern is about the amount of TIME all of this is costing you - I don't really understand - you have two forums, using two different sets of templates. How much work is that really? Remember, you can copy paste etc.

I have no doubt that you can use MySQL queries to apply the threads settings - but this is your production forum - and I think that with the level of experience you appear to have manual entry is probably best - if you want to still have a forum.
I'm afraid everyone is misunderstanding me. I'm talking about multiple problems at the moment. (and no, I don't have two forums, I have well over 30 forums that I have to go to each one and change the XThreads Options in the Forum Settings).

The link works fine, the function itself works perfectly, if I were to type it into the url it would do just fine. It just doesn't show up on the template, that's all, and I can't figure out for the life of me why. It's just a problem I'm wanting to fix that's been there for AGES and has been bothering me.

I don't have the time right now because I'm moving, but I'll do an extensive screenshot of what my problems exactly are and better document the issue.
Ok, no problems - but regarding the settings - if you have a custom thread field that you DONT want to use in a certain forum then you can choose which forums to apply it to in the custom thread fields setting - you don't need to go to each forum individually....
(12-18-2010 07:06 PM)leefish Wrote: [ -> ]Ok, no problems - but regarding the settings - if you have a custom thread field that you DONT want to use in a certain forum then you can choose which forums to apply it to in the custom thread fields setting - you don't need to go to each forum individually....

...That's why I'm not talking about the custom thread field, I'm talking about the Xthreads Settings which are located in the forum settings (next to Forum Settings and Additional Settings) Tongue haha
So again, you have an issue because you are using development software. So no help from me. Er haha?

No really...haha? How old are you - 12?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Reference URL's