Ho, David, I know that 'upgrade' doesn't update my web pages and all.
I've separately run ./upgrade --web-only DrugDiscovery for that.

But then still came across the problems in the email
And once you made a News forum, no matter how you did it, you can no
longer convert the old news. Not through the convert_news script, at
least, not without (probably) adding to it that if News already
exists, to just add to it.
But my php skills aren't there yet to do so. :-)

On Sun, Feb 3, 2013 at 5:37 AM, David Anderson <[email protected]> wrote:
> Jord:
> "upgrade" doesn't upgrade your front page (html/user/index.php).
> You need to update that manually, tracking the changes in
> html/user/sample_index.php
> For example:
> show_news(0, 5);
>
> I'll look at the outdated SVN stuff in the admin page.
>
> -- David
>
> On 02-Feb-2013 6:35 PM, Jorden van der Elst wrote:
>> After updating the DrugDiscovery@Home back-end and forums, I found a
>> couple of problems that I had to fix by hand.
>>
>> 1. There were two "RSS feed is available" links. This is due to there
>> being one in \inc\news.inc and one in \user\index.php
>> I commented it out in the index.php file, as doing so from news.inc
>> would break the whole front page.
>>
>> //echo "
>> //    <p class=\"smalltext\">
>> //    News is available as an
>> //    <a href=\"rss_main.php\">RSS feed</a> <img
>> src=\"img/rss_icon.gif\" alt=\"RSS\">.</p>
>> //    </td>
>> //    </tr></table>
>> //";
>>
>> It also helps to comment out require_once("../project/project_news.inc");
>>
>>
>> 2. Getting News to work is quite fickle.
>> After trying to run the ops/create_forums.php script, it would always
>> come back to me stating "can't create category".
>> In the end I resorted to adding a table in the database and making the
>> news forum that way.
>> However, this then gives problems when trying to convert old news. The
>> news_convert.php script now stops on "News forum already exists".
>>
>> http://boinc.berkeley.edu/trac/wiki/ProjectNews then states to
>> "include show_news(0, 5);" in the index.php file.
>> Well, that'll break your home page again, as there's a line stating if
>> (count($project_news) > 5) to move older news to older_news.php.
>> To keep that working, and not continuously have the highly cryptic
>> line "You have not changed show_news() to use 0 instead of deprecated
>> \$project_news as the first param." on the front page, best change
>> that line to if (count(show_news) > 5) and then it'll work.
>>
>> Full code:
>> echo "
>>      <tr><td id=\"news\">
>>      <h2>News</h2>
>>      <p>
>> ";
>> show_news(0, 5);
>> if (count(show_news) > 5) {
>>      echo "<a href=\"old_news.php\">...more</a>";
>> }
>>
>>
>>
>> 3. The **other** index.php file, in ops/index.php, for the project
>> management page still expects a Subversion revision number.
>>
>> function svn_revision($path) {
>>      $out = array();
>>      $cmd = "svn info http://boinc.berkeley.edu/svn/$path";;
>>      if (defined("SVN_CONFIG_DIRECTORY")) {
>>          $cmd .= " --config-dir ". SVN_CONFIG_DIRECTORY;
>>      }
>>      exec($cmd, $out);
>>      foreach ($out as $line) {
>>          $x = strstr($line, "Last Changed Rev: ");
>>          if ($x) {
>>              $y = substr($x, strlen("Last Changed Rev: "));
>>              return (int) $y;
>>          }
>>
>> 4. As does the server status page  /html/user/server_status.php
>>
>>    $version = null;
>> if (file_exists("../../local.revision")) {
>>      $version = trim(file_get_contents("../../local.revision"));
>>
>>
>>
>>
>>
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.



-- 
-- Jord van der Elst.
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to