Jump to content
MakeWebGames

Force a 'Topic Name' in forum thread?


Ragnar
 Share

Recommended Posts

Is there any way to force a topic name for a forum thread? You can leave that blank and the thread get's created but...no title = no link to the thread.

If not, is there a way to create a title by editing the original post? Giving it a 'Subject' doesn't edit the thread title.

Link to comment
Share on other sites

Re: Force a 'Topic Name' in forum thread?

replacing

function newtopic()

{

global $ir, $c, $userid, $h, $bbc, $db;

$q=$db->query("SELECT * FROM forum_forums WHERE ff_id={$_GET['forum']}");

$r=$db->fetch_row($q);

with

function newtopic()

{

global $ir, $c, $userid, $h, $bbc, $db;

$q=$db->query("SELECT * FROM forum_forums WHERE ff_id={$_GET['forum']}");

$r=$db->fetch_row($q);

if(strlen($_POST['ft_name']) < 4)

{

die("Add a title.");

}

in forums.php did it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...