MyBB Community Forums

Full Version: Thread Not Showing Page Numbers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm having a very weird problem with my forum right now. Don't know if it's an issue with a theme or a plugin. Even though a thread has more than 1 page, it will not show the links to the 2nd page on the thread display. It shows that there are 2 pages on the forum display though.
Here is the site: http://clubhousegaming.net/
Still need help.
^ check your showthread template - does it has {$multipage}

Yes it has it.

<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>
</head>
<body>
	{$header}
	{$pollbox}
	<div class="float_left">
		{$multipage}

	</div>
	<div class="float_right">
		{$newreply}
	</div>
	{$ratethread}
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; margin-bottom: 5px;">
		<tr>
			<td class="thead rounded_bottom" 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['threadprefix']}{$thread['subject']}</strong>
				</div>
			</td>
		</tr>
	</table>
	<div id="posts">
		{$posts}
	</div>
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
		<tr>
			<td colspan="2" class="tfoot rounded_top">
				{$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}
	</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;" />
	{$usersbrowsing}
	{$footer}
</body>
</html>
The biggest thread there has 10 replies. That's not enough for the pagination to show up.
(2011-07-18, 09:33 PM)lucasbytegenius Wrote: [ -> ]The biggest thread there has 10 replies. That's not enough for the pagination to show up.
There are more than 10 replies. You think theres only 10 because the pagination doesn't even show up. Here take a look.
Page 1: http://clubhousegaming.net/Thread-Do-you...k-3-Server

Page 2: http://clubhousegaming.net/Thread-Do-you...ver?page=2
The code isn't being output at all, there's nothing in the source code. Something must be blocking this.

1. Open the ./inc/init.php file in a text editor.

2. Find:

define("TIME_NOW", time());

3. Add afterwards:

define("NO_PLUGINS", 1);

Does the issue persist? If not, that means a plugin is causing this and you should deactivate them one by one until it works.
(2011-07-18, 10:19 PM)Legify Wrote: [ -> ]
(2011-07-18, 09:33 PM)lucasbytegenius Wrote: [ -> ]The biggest thread there has 10 replies. That's not enough for the pagination to show up.
There are more than 10 replies. You think theres only 10 because the pagination doesn't even show up. Here take a look.
Page 1: http://clubhousegaming.net/Thread-Do-you...k-3-Server

Page 2: http://clubhousegaming.net/Thread-Do-you...ver?page=2
No actually I was believing http://clubhousegaming.net/stats.php, which I suppose is wrong then.
You can solve it by doing reading this: http://community.mybb.com/thread-99275.html

It's that stupid Google Seo plugin. Uninstall it and reupload your inc/functions.php file from the original MyBB.
Yeah I did edit the functions.php for google SEO. Can someone help me fix it so I don't have to reupload a new functions.php? I have attached my functions.php

error_log.txt
[04-Jul-2011 23:28:46] PHP Warning:  require_once(/home/xlegify/public_html/inc/init.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/xlegify/public_html/xmlhttp.php on line 30
[04-Jul-2011 23:28:46] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/xlegify/public_html/inc/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xlegify/public_html/xmlhttp.php on line 30
[05-Jul-2011 05:49:14] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[05-Jul-2011 05:49:15] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[05-Jul-2011 05:50:34] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[05-Jul-2011 05:50:37] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[15-Jul-2011 20:04:53] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:04:55] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:23] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:25] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:53] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:55] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

Your help would be much appreciated!!
EDIT: I just disabled the google seo multipage function by just replacing what you had to replace with the default multipage.
(2011-07-19, 12:56 AM)Legify Wrote: [ -> ]Yeah I did edit the functions.php for google SEO. Can someone help me fix it so I don't have to reupload a new functions.php? I have attached my functions.php

error_log.txt
[04-Jul-2011 23:28:46] PHP Warning:  require_once(/home/xlegify/public_html/inc/init.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/xlegify/public_html/xmlhttp.php on line 30
[04-Jul-2011 23:28:46] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/xlegify/public_html/inc/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xlegify/public_html/xmlhttp.php on line 30
[05-Jul-2011 05:49:14] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[05-Jul-2011 05:49:15] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[05-Jul-2011 05:50:34] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[05-Jul-2011 05:50:37] PHP Parse error:  syntax error, unexpected $end in /home/xlegify/public_html/inc/functions.php on line 6103
[15-Jul-2011 20:04:53] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:04:55] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:23] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:25] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:53] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[15-Jul-2011 20:05:55] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libtheoraenc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

Your help would be much appreciated!!
EDIT: I just disabled the google seo multipage function by just replacing what you had to replace with the default multipage.

Just reupload a new one. How hard is that? It won't affect the functionality of the forum or reset anything.
No one will spend hours fixing that when you can just reupload the original functions.php again.
Pages: 1 2