Hi all,
with {{NUMBEROFARTICLES}} you let the visitor know how many articles are published in your wiki. This works fine within the wiki project, but is there a way to show the number of articles OUTSIDE the wiki? I mean, for example:
- domain.com/wiki/ ---> {{NUMBEROFARTICLES}} works fine when called within the wiki - domain.com/welcome.html ---> a normal html welcome page that has nothing to do with the wiki
Thanks in advance!
Z
zelulax schrieb:
is there a way to show the number of articles OUTSIDE the wiki?
You can extract this value from the mediawiki database (ss_total_pages in table site_stats). With php it would looking something like that:
connect to the db and then: $query = "SELECT * FROM `site_stats`"; $result = mysql_query($query) or die(); // die("Error: " . mysql_error())
$line = mysql_fetch_array($result, MYSQL_ASSOC); echo $line["ss_total_pages"];
Greetings Ponte
Thanks Ponte!
Greetings. Z.
On Dec 22, 2007 12:57 PM, ponte@expliki.org wrote:
zelulax schrieb:
is there a way to show the number of articles OUTSIDE the wiki?
You can extract this value from the mediawiki database (ss_total_pages in table site_stats). With php it would looking something like that:
connect to the db and then: $query = "SELECT * FROM `site_stats`"; $result = mysql_query($query) or die(); // die("Error: " . mysql_error())
$line = mysql_fetch_array($result, MYSQL_ASSOC); echo $line["ss_total_pages"];
Greetings Ponte
-- Gründer und Webmaster von expliki.org
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org