Ok I like to check my site statistics from my cell phone... mainly users online (guests and registered), how many votes the poll has, page views, and new registered users. it takes an eternity on my phone and it's hard to read. How could i go about making a page that says all of that? IE it would look like this:
PV: 8192
Guests: 4
Registered: 2
Poll: 42
Member: xViDD12
Like that... how could i do that?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
- mesteele101 responded to »How to install Zikula for MSSQL ??? - Part II« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
I need a custom coded page with postnuke stuff
-
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
You can create a custom .php in the root directory of your PN site, and insert the appropriate HTML & PHP using the pnAPI (or not) to fetch and output the data you need - I'll leave the coding to you, but here's an example of a script that fetches some data from the Web Links directory to form a importable email mailing list:
Code
<?php
if ($_SERVER['QUERY_STRING'] != 'fiddlefaddle') {
header('Location: index.php');
exit;
}
?><html><head><title></title>
<style type="text/css">
body, table, td, th {font-size: 11px;}
</style>
</head>
<body>
<?php
include 'includes/pnAPI.php';
pnInit();
// Build email list of listings in Web Links:
list($dbconn) = pnDBGetConn();
$pntable = pnDBGetTables();
$linkscolumn = &$pntable['links_links_column'];
$sql = "SELECT $linkscolumn[title], $linkscolumn[name], $linkscolumn[email] FROM $pntable[links_links]";
$result = $dbconn->Execute($sql);
echo "<pre>Business Name,Contact Name,Email\n";
while (list($name, $contact, $email) = $result->fields) {
$result->MoveNext();
if (empty($email))
continue;
echo "$name,$contact,$email\n";
}
?>
</pre></body></html>
Note, I put a query string check at the top in case the casual user came across a directory listing, so the script would be accessed @ mysite.com/scriptname?fiddlefaddle - otherwise you get directed to the home page.
In the future, please post more specific topic subjects so that others may benefit from the exchange.
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info...
- Moderated by:
- Support
