Jump to the post that solved this thread.
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 8 Months, 2 Weeks ago redirect invalid forum and invalid thread to home page or index?
#2
Solved: 8 Years, 8 Months, 2 Weeks ago
Hi really need this one anyone?

How to make this work?

/ Add hooks here
$plugins->add_hook("showthread_end", "invalidthread");

// Plugin info
function invalidthread_info()
{
	return array(
		"name"			=> "invalidthread",
		"description"	=> "invalidthread",
		"website"		=> "invalidthread",
		"author"		=> "invalidthread",
		"authorsite"	=> "invalidthread",
		"version"		=> "1.0",
		"guid" 			=> "",
		"compatibility" => "16*"
	);
}


function invalidthread() {

	global $mybb, $thread, $lang;


	if ($l['error_invalidthread']) {
		error("working");
	}
}
Jump to the post that solved this thread.


Messages In This Thread
RE: redirect invalid forum and invalid thread to home page or index? - by marcus123 - 2014-05-08, 06:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)