MyBB Hacks

Full Version: Need a little help after forum upgrade
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am using Xthreads on a custom forum and it is only half working after upgrade to MyBB 1.8.10.

https://www.7173mustangs.com/forumdisplay.php?fid=76

The photo links work when clicked but the "Click here to read more" link is not working!  It should normally open the thread. What do I even need to look at to figure this one out?  I could use a little help to point me in the right direction!

Thanks!
You should review this line inside your forumdisplay_thread template:

HTML Code
<input type="submit" name="B1" " id="B1"value="Click Here to Read More!" />

(02-09-2017 03:06 AM)RateU Wrote: [ -> ]You should review this line inside your forumdisplay_thread template:

HTML Code
<input type="submit" name="B1" " id="B1"value="Click Here to Read More!" />


Mine looks the same, wonder what would cause it to not work?  When I click the button, it takes me to a standard forum error page instead of the thread.

Code:
<form action="{$thread['threadlink']}" method="get">
<p>
<input type="submit" name="B1" " id="B1"value="Click Here to Read More!" />
</p>
</form>

If you look at carefully, there are some typos on the submit button.
The {$thread['threadlink']} already included the thread id. It won't be read by the action of the form (probably it is OK if you use friendly URL). So, you need to use an hidden input for the tid if you don't use the friendly URL (you can replace the {$thread['threadlink']} with showthread.php).
The submit button has name. So it will be included on your URL. Consider to remove it.

HTML Code
<form action="showthread.php" method="get">
	<input type="hidden" name="tid" value="{$thread['tid']}" />
	<p>
		<input type="submit" value="Click Here to Read More!" />
	</p>
</form>


BTW, is there any reason why you use form for that (is there any reason why you don't use usual link)?

I think you made the basic example for this several years ago, LOL!  It was running on 1.6.x and I just converted to 1.8.10.  I updated XThreads plugin but that button stopped working.  Everything else seems to be good!

Thanks for taking a look and helping me out!  I have had my hands full with this update...I need to run less plugins!  Biggrin
You can use a simple URL:

HTML Code
<a href="{$thread['threadlink']}">Click Here to Read More!</a>


IMO, more flexible since it will capture whatever URL types used by your forum (friendly URL or not). You can use CSS class and style it if you want to.

Reference URL's