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.
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
hmmm
why don't you ask at portalparts? I'm pretty sure, that this is made by the incredible Blaine himself.

geKow
 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.
 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>&quotWink;
$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.
 Quote

Status: offline

Jefficus

Forum User
Chatty
Registered: 05/26/04
Posts: 59
Cool. I can wait. :-)
This has been an opinion, brought to you by the fine people at Jefficus World.
 Quote

Status: offline

mthomas

Forum User
Full Member
Registered: 04/18/04
Posts: 148
OK Tomorrow morning lol, I have a red eye flight in ...5 hours Need to grab a nap.

The basics are up on my server at at least you can see the block.
 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
 Quote

Status: offline

Jefficus

Forum User
Chatty
Registered: 05/26/04
Posts: 59
Looks nice. So where's the download? :-)
This has been an opinion, brought to you by the fine people at Jefficus World.
 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.
 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