Consulting
We can help you pick the right tools (including open source) so you can run your business at its optimum.
Software Development
We will create custom software to effectively run your business. We can customize PHPNuke or other CMSs or create modules to fit your needs.
Training
Whether you need computer training or PHPNuke training we will teach you how to get the most of your technology.
Great looking sites
We customize and create themes to highlight your site and make it easy to use.
Hi, I am Ugur Kocak. I installed MetAuthors module to my website at http://www.turkforensic.org/modules.php?name=MetAuthors for experimental purposes. I seems to work nicely. But the (Move an Article to a different author) function does not change anything. I use phpnuke 7.1 with some security patches. What could be the reason? What sould I do? Thanks for your help...
Ugur Kocak
http://www.turkforensic.org
metopen Newbie
Joined: Jul 15, 2004
Posts: 199
Posted:
Aug Fri 20, 2004 11:27 am
Welcome Ugur,
Thanks for spotting the problem, it is corrected for the next version.
darkstar Newbie
Joined: Aug 20, 2004
Posts: 3
Posted:
Aug Fri 20, 2004 2:55 pm
Here is the index.php page:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
Function MetAuthorsStats ( $articleid,$author,$maction){
global $db, $dbi, $prefix, $top,$cookie,$sitename;
$module_name = basename(dirname(__FILE__));
$uname = $cookie[1];
include("header.php");
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')"; /* the OR is needed to display stories who are posted to ALL languages */
echo "<table border=\"1\" cellpadding=\"1\"><tr><td></td><td>"._STORYREADS."</td><td>"._STORIES."</td><td>"._STORYAVGREADS."</td></tr>"
."<tr><td>"._OVERALL."</td> <td>".$numreadso."</td><td>".$numstorieso."</td><td>".round(($numreadso / $numstorieso),0)."</td><td></tr>"
."<tr><td>"._RECENT."</td> <td>".$numreadsr."</td><td>".$numstoriesr."</td><td>".round(($numreadsr / $numstoriesr),0)."</td><td></tr>"
."<tr><td>Top $top</td> <td>".$numreadst."</td><td>".$top."</td><td>".round(($numreadst / $top),0)."</td><td></tr>";
echo "</table>";
echo "Reads to make top 10: ".$readstotop.". ";
echo " <br /> <br /> ";
//Display the top stories in the last 30 days
echo "<a name=\"tstories30\">";
OpenTable();
echo "<tr><td colspan=\"6\">"._TOPRECENTSTORIES."</td></tr>";
echo "<tr><td>#</td><td>"._STORYTITLE."</td><td>"._STORYDATE."</td><td>"._AUTHORNAME."</td><td>"._STORYREADS."</td><td>"._READSPERDAY."</td></tr>";
$sql = "select sid, title, counter, informant, left(time,10) as sttime, counter/(TO_DAYS(NOW()) - TO_DAYS(time)) as readsperday from ".$prefix."_stories where (TO_DAYS(NOW()) - TO_DAYS(time) <= 30) $querylang order by counter desc ";
$result = $db->sql_query($sql);
$whilectr=1;
while ($row = $db->sql_fetchrow($result)) {
echo ($uname==$row[informant] ? "<tr bgcolor=\"#00FFFF\" >" : "<tr bgcolor=\"#014361\">");
echo "<td>$whilectr</td>"
."<td><a href=\"modules.php?name=News&file=article&sid=".$row[sid]."\">".$row[title]."</a></td> "
."<td>".$row[sttime]."</td><td><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[informant]\">";
echo ($uname==$row[informant] ? "".$row[informant]."" : $row[informant]) ;
echo "</a></td>"
."<td>".$row[counter]."</td><td>".$row[readsperday]."</td></tr>";
$whilectr++;
}
CloseTable();
echo "<br>";
//Display the top stories all time
echo "<a name=\"tstoriesall\">";
OpenTable();
echo "<tr><td colspan=\"6\">$top "._READSTORIES."</td></tr>";
echo "<tr><td>#</td><td>"._STORYTITLE."</td><td>"._STORYDATE."</td><td>"._AUTHORNAME."</td><td>"._STORYREADS."</td><td>"._READSPERDAY."</td></tr>";
$sql = "select sid, title, counter, informant, left(time,10) as sttime, counter/(TO_DAYS(NOW()) - TO_DAYS(time)) as readsperday from ".$prefix."_stories where 1=1 $querylang order by counter desc limit 0,$top";
$result = $db->sql_query($sql);
$whilectr=1;
while ($row = $db->sql_fetchrow($result)) {
echo ($uname==$row[informant] ? "<tr bgcolor=\"#00FFFF\" >" : "<tr bgcolor=\"#014361\">");
echo "<td>$whilectr</td>"
."<td><a href=\"modules.php?name=News&file=article&sid=".$row[sid]."\">".$row[title]."</a></td> "
."<td>".$row[sttime]."</td><td><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[informant]\">";
echo ($uname==$row[informant] ? "".$row[informant]."" : $row[informant]) ;
echo "</a></td>"
."<td>".$row[counter]."</td><td>".$row[readsperday]."</td></tr>";
$whilectr++;
}
CloseTable();
echo "<br>";
/* Top 10 authors */
echo "<a name=\"tauthors\">";
$sql ="select informant, count(*) as totcount, sum(counter) as totreads, round(avg(counter),0) as avgreads, round(avg( counter / ( TO_DAYS( NOW( ) ) - TO_DAYS( time ) ) ),1) AS readsperday, sum(ratings) as totvotes, round(sum(score)/sum(ratings),1) as avgrating from ".$prefix."_stories group by informant order by totreads DESC limit 0,$top";
//echo $sql;
$result = $db->sql_query($sql);
$sql = "SELECT left(time,7) as mong, count(*) as mcount FROM `".$prefix."_stories` WHERE 1 group by mong "
."order by mong desc ";
$result = $db->sql_query($sql);
echo "<table><tr><td>"._MONTH."</td><td>"._STORYREADS."</td></tr>";
while ($row = $db->sql_fetchrow($result)) {
echo "</tr><td>".$row[mong]."</td><td>".$row[mcount]."</td></tr>";
$sql = "SELECT IF ( c.Title IS NULL , \"Articles\", c.Title) AS category, count( * ) AS mcount, sum( s.counter ) AS reads, round( sum( s.counter ) / count( * ) , 0 ) AS avgreads "
."FROM `nuke_stories` s "
."LEFT JOIN nuke_stories_cat c ON s.catid = c.catid "
."WHERE 1 "
."GROUP BY category "
."ORDER BY category ASC ";
//echo $sql;
$result = $db->sql_query($sql);
echo "<table><tr><td>"._TOPIC."</td><td>"._NUMSTORIES."</td><td>"._STORYREADS."</td><td>"._STORYAVGREADS."</td></tr>";
while ($row = $db->sql_fetchrow($result)) {
echo "</tr><td>".$row[category]."</td><td>".$row[mcount]."</td><td>".$row[reads]."</td><td>".$row[avgreads]."</td></tr>";
}
echo "</table><br /><br /><br />";
CloseTable();
echo "<br />";
//echo "<center><font color=\"$textcolor2\">Extended functions by <a href=http://www.phpnuke-service.de>PHPNuke-Service.de</a> and <a href=http://www.complex-berlin.de>Complex-Berlin.de</a></font></center>\n";
echo "<center><font color=\"$textcolor2\">Provided by <a href=\"http://www.metopen.com\">MetOpen.com</a></font></center>\n";
include("footer.php");
}
switch($op) {
case "columnists":
MetAuthorsColumnists();
break;
case "guncelle":
MetAuthorsUpdateAuthors ($articleid,$author);
break;
case "stats":
default:
MetAuthorsStats($articleid,$author,$maction);
}
?>
metopen Newbie
Joined: Jul 15, 2004
Posts: 199
Posted:
Aug Fri 20, 2004 5:52 pm
Are you interested in trying a preview of 2.0 which has it corrected? If so give me an email address and i'll send it to you.
darkstar Newbie
Joined: Aug 20, 2004
Posts: 3
Posted:
Aug Sat 21, 2004 3:22 am
Thanks for your efforts. My e-mail is forensource@yahoo.com I give yahoo address because it has 100 MB capacity
metopen Newbie
Joined: Jul 15, 2004
Posts: 199
Posted:
Aug Sun 22, 2004 10:19 am
I've sent it to you. Let me know if you have any trouble.
Guardian Newbie
Joined: Jun 25, 2005
Posts: 18
Posted:
May Mon 15, 2006 1:35 am
Given that the last post was in 2004 and we are now in 2006, does the current version of MetAutors have the sql file for those tables and the functions now working?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum