acctman wrote:lol... i have basic php coding skills and i bet I can tweak the old TopicAnywhere phpbb2 script before post anywhere is released. give me a week guys i'll mess with the old TopicAnywhere
acctman wrote:lol... i have basic php coding skills and i bet I can tweak the old TopicAnywhere phpbb2 script before post anywhere is released. give me a week guys i'll mess with the old TopicAnywhere
<?
// change to the path to your forum
$path = '';
// amount of topics to show
$amount = 6;
// forum ids to NOT show topics forum, separated by commas
$exclude = '';
// ------ no need to edit below ------ //
require_once("{$path}config.php");
$conid = mysql_connect($dbhost, $dbuser, $dbpasswd);
$db = mysql_select_db($dbname, $conid);
unset($dbpasswd);
$sql_where = 'WHERE `forum_id` > -1 ';
if($exclude != '')
{
$exclude_forums = explode(',', $exclude);
foreach ($exclude_forums as $id)
{
if ($id > 0)
{
$sql_where .= ' AND `forum_id` <> ' . trim($id);
}
}
}
$sql = "SELECT `topic_id`, `topic_last_post_id`, `topic_last_post_time`, `topic_last_poster_name`, `topic_title` FROM `{$table_prefix}topics` {$sql_where} ORDER BY `topic_last_post_time`DESC LIMIT 0, {$amount}";
$result = mysql_query($sql, $conid);
$the_date = date('g:i A M j, Y', $topic['topic_last_post_time']);
$topics_html = '';
while($topic = mysql_fetch_array($result))
{
$topics_html .= "<p><a target=\"_blank\" href=\"{$path}/forums/viewtopic.php?t={$topic['topic_id']}#p{$topic['topic_last_post_id']}\">{$topic['topic_title']}</a><br>Posted by {$topic['topic_last_poster_name']} at " . date('g:i A o\n D, M j Y', $topic['topic_last_post_time']) . "</p>";
}
mysql_close($conid);
echo $topics_html;
?>
Handyman` wrote:next update should be sometime this month… if all goes well.
At least that's the plan.
marian0810 wrote:Handyman` wrote:next update should be sometime this month… if all goes well.
At least that's the plan.
Just curious if there's been any progress on this since January?
Jarode wrote:It's not for asking for a public release, sorry.![]()
Just to ask you if this MOD display title OR body of the choosen topics/Posts ?
Thanks
Return to [3.0.x] MODs in Development
Users browsing this forum: dr210077, fs_unreal, Google [Bot], Jane Doe, lugsciath, mtrs, napus, posey, T3h Antek, TMorph, woipi90 and 78 guests