Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Postify.php patobulinimas

Parašė Dandžu· 2008 Kov. 16 14:03:19
#1

Kai parašote postą forumą jus permeta į postify.php failą ir jums reikia paspausti mygtuką Į temą arba Į forumą. Taigi padariau tokį koduką kurio pagalba jus permes į postify.php ir po 2 sec jums nieko nespaudus permes į tą temą kurioje jūs parašėte postą.
Atsidarome postify.php susirandame:
         echo "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id'>".$locale['447']."</a> |
<a href='viewforum.php?forum_id=$forum_id'>".$locale['448']."</a> |
<a href='index.php'>".$locale['449']."</a><br><br>
</center>\n";



Keičiame į:
echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<meta http-equiv='Refresh' content='2;url=viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>
</head>
<body class='tbl2'>
<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id'>".$locale['447']."</a> |
<a href='viewforum.php?forum_id=$forum_id'>".$locale['448']."</a> |
<a href='index.php'>".$locale['449']."</a><br><br>
</center>\n";
echo "</body>
</html>\n";



Susirandame:
   if ($error < 3) {
      if (!isset($thread_id) || !isNum($thread_id)) fallback("index.php");
      echo "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id'>".$locale['447']."</a> |\n";
   }



Keičiame į:
   if ($error < 3) {
      if (!isset($thread_id) || !isNum($thread_id)) fallback("index.php");
echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
  <meta http-equiv='Refresh' content='2;url=viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>
</head>
<body class='tbl2'><a href='viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id'>".$locale['447']."</a> |\n";
echo "</body>
</html>\n";
   }



Susirandame:

   echo "<a href='viewforum.php?forum_id=$forum_id'>".$locale['448']."</a> |
<a href='index.php'>".$locale['449']."</a><br><br>
</center>\n";



Keičiame į:

echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
  <meta http-equiv='Refresh' content='2;url=viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>
</head>
<body class='tbl2'>
<a href='viewforum.php?forum_id=$forum_id'>".$locale['448']."</a> |
<a href='index.php'>".$locale['449']."</a><br><br>
</center>\n";
echo "</body>
</html>\n";




Susirandame:
   echo "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id&amp;pid=$post_id#post_$post_id'>".$locale['447']."</a> |
<a href='viewforum.php?forum_id=$forum_id'>".$locale['448']."</a> |
<a href='index.php'>".$locale['449']."</a><br><br>
</center>\n";



Keičiame į:
echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
  <meta http-equiv='Refresh' content='2;url=viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>
</head>
<body class='tbl2'>
<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=$thread_id&amp;pid=$post_id#post_$post_id'>".$locale['447']."</a> |
<a href='viewforum.php?forum_id=$forum_id'>".$locale['448']."</a> |
<a href='index.php'>".$locale['449']."</a><br><br>
</center>\n";
echo "</body>
</html>\n";



Labai gerai tinginiams tokiems kaip aš. :) Dar manau kodą galima būtų papildyti. Papildysiu jei sugalvosiu dar kaip jį pagerinti. Prisegu

Redagavo Dandžu· 2008 Kov. 16 20:03:21