Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Need a little help after forum upgrade
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #1
Need a little help after forum upgrade
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!

[Image: gallery_2_628_39582.jpg]
(This post was last modified: 02-09-2017 01:09 AM by RocketFoot.)
02-09-2017 01:06 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Need a little help after forum upgrade
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
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #3
RE: Need a little help after forum upgrade
(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>


[Image: gallery_2_628_39582.jpg]
(This post was last modified: 02-09-2017 06:23 AM by RocketFoot.)
02-09-2017 06:21 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Need a little help after forum upgrade
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
1
2
3
4
5
6
<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)?


02-09-2017 11:30 PM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #5
RE: Need a little help after forum upgrade
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

[Image: gallery_2_628_39582.jpg]
02-10-2017 03:18 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: Need a little help after forum upgrade
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.


02-10-2017 03:36 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: