Problems
MasterZuFu Offline
Member
***
Posts: 97
Joined: Dec 2010
Post: #1
Problems
As I said in the other thread, I would create a new thread detailing the problems I'm having. I'm going to try my best to explain it better.

Problem #1:

In the Showthread template everytime I install MyBB the "Email This thread to a friend" link under threads does not show up, unless I hard code it in.

Showthread:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?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)";

?>


Right now, it's set to the default coding. Here's the section that I have to change:

   

(Please NOTE! the send thread LINK works FINE, it's not the link that's not working, it's the template. look at the screenshot:

however, the link doesn't show on the template:

   

Please also note that part of the image shows up, but the link is missing. This is important because the images are in the right location, but for some reason the link itself isn't working.)


Now, here's the code that's in the showthread right now:

Code:
1
2
3
4
5
6
7
	<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>


You can see very clearly that the code is correctly formatted and calls the right functions as properly designed so. Now, look at the screenshots when i change the code to this:

Code:
1
2
3
4
5
6
7
	<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}">Send thread to a friend</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>



   


Thing is, I would have to hard code that for every template I use that uses the send thread function. I'm unsure what the problem is, someone pointed out it may be a plugin that's overriding that section of code. I don't know what that is entirely, but I'm sure I'll find out what the issue is. Thanks for everyone's help with this.

I'll outline the other issues I'm having later, currently this one is entirely separated from XThreads and has nothing, ABSOLUTELY NOTHING to do with XThreads nor the fact of what version of XThreads I'm using.

So the problem is this:

Code:
{$lang->send_thread}


For some reason this particular function isn't working. I have to replace this with this:

Code:
Send thread to friend


So, something's interfering with that, somehow. I'm going to check those plugins, not sure what the problem really is though.


(This post was last modified: 12-20-2010 04:05 AM by MasterZuFu.)
12-20-2010 03:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Problems - MasterZuFu - 12-20-2010 03:56 AM
RE: Problems - RateU - 12-20-2010, 04:16 AM
RE: Problems - MasterZuFu - 12-20-2010, 10:58 AM
RE: Problems - 1master1 - 12-20-2010, 08:19 PM

 Standard Tools
Forum Jump: