Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 08:34 pm EST
Geeklog Forums
Where's that Project progress graph block from?
Status: offline
Jefficus
Forum User
Chatty
Registered: 05/26/04
Posts: 59
I notice portalparts has a nifty project progress graph displayed as a block on the home page. Anybody know where that came from? I'm looking around and don't see anything obvious.
This has been an opinion, brought to you by the fine people at Jefficus World.
This has been an opinion, brought to you by the fine people at Jefficus World.
6
11
Quote
Status: offline
Jefficus
Forum User
Chatty
Registered: 05/26/04
Posts: 59
I *COULD* have asked at portalparts and if I don't get a response here, I probably will. But the reason I came here first was also to make sure that the "central" (if there is such a thing) repository of all knowledge concerning GL plugins had a record of the fact that it existed.
This has been an opinion, brought to you by the fine people at Jefficus World.
This has been an opinion, brought to you by the fine people at Jefficus World.
9
8
Quote
Status: offline
mthomas
Forum User
Full Member
Registered: 04/18/04
Posts: 148
To make one would not be difficult. An easy way is as follows:
$display .= "<table>";
$display .= "<tr>";
$display .= "<td>Plugin</td>";
$display .= "<td>Progress</td>";
$display .= "</tr>";
$result = db_query("<Query Here>"
$num_rows = mysql_num_rows($result);
for($i=0; $i <= $num_rows-1; $i++)
{
$row = mysql_fetch_array($result);
$display .= "<tr><td><b>".$row['proj_name']."</b></td><td><table><tr><TD bgcolor="#D7EBFF" width="".$row['proj_percent'].""></td></tr></table></td></tr> ";
}
$display .= "</table>";
I'll put a plugin up for it in a an hour or so.
$display .= "<table>";
$display .= "<tr>";
$display .= "<td>Plugin</td>";
$display .= "<td>Progress</td>";
$display .= "</tr>";
$result = db_query("<Query Here>"
$num_rows = mysql_num_rows($result);
for($i=0; $i <= $num_rows-1; $i++)
{
$row = mysql_fetch_array($result);
$display .= "<tr><td><b>".$row['proj_name']."</b></td><td><table><tr><TD bgcolor="#D7EBFF" width="".$row['proj_percent'].""></td></tr></table></td></tr> ";
}
$display .= "</table>";
I'll put a plugin up for it in a an hour or so.
8
11
Quote
Status: offline
mthomas
Forum User
Full Member
Registered: 04/18/04
Posts: 148
Ok its done, except for the delete function (I assume you want to remove projects at somepoint hehe) To see the phpblock side head to www.thomassoft.net
7
8
Quote
Status: offline
mthomas
Forum User
Full Member
Registered: 04/18/04
Posts: 148
hehe bit later today want to clean up the script a bit first. FYI I release this as RC2. RC2 will incude an optional link to the projects plugin, I will be addng a new security layer (otional as well) to gl_projects to make a projects.admin group to restrict add/edit access.
6
10
Quote
All times are EST. The time is now 08:34 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content