New Updates to site !
|
Joe Kriz |
Posted on 11/28/08 - 5:53 PM
|
Site Owner
Personal Page
Personal Album
Photo Albums
Project Albums
Posts: 11447
Comments:
452
Joined: 03/18/05
|
Mike and I have been working hard on upgrading some features on WhalerCentral.
Mike is working on redoing the Rendezvous Central Map section. It is not quite finished at this time but expect some very nice new features.
I have been working on redoing the articles, weblinks, and download panels.
1. weblinks is now advanced_weblinks
Here is the old look
http://www.whalercentral.com/weblinks...blinks.php
Here is the new look
http://www.whalercentral.com/infusion...blinks.php
2. articles is now advanced_articles
Here is the old look
http://www.whalercentral.com/articles...ticles.php
Here is the new look
http://www.whalercentral.com/infusion...ticles.php
For articles, I also changed the article.php?cat section so when you looked at the cats they look like the rest of the site.
Can't show you the old look but it looked like the other old ones above.
Here is the new look which is identical to the weblinks.php?cat section and basically the downloads cat section.
http://www.whalercentral.com/articles...?cat_id=10
3. downloads is now advanced_downloads
I have done extensive work on all the downloads as I didn't like it when someone clicked on a link, it automatically downloaded.
Now members must click on the "Green Download" button to download the item. This way they know that it is definitely a download.
Here is the old look
http://www.whalercentral.com/download...nloads.php
Here is the new look
http://www.whalercentral.com/infusion...nloads.php
For those of you that know php, here is an example of the code for the one center panel, Advanced_Articles
Code <?php
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
add_to_title(" - Advanced Articles");
if (file_exists(INFUSIONS."advanced_articles/locale/".$settings['locale'].".php")) {
include INFUSIONS."advanced_articles/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."advanced_articles/locale/English.php";
}
$max_chars = 40; // Max. chars showing from the headline
$max_chars_desc = 40; // Max. chars showing from the description
$max_cats = 21; // Max. categories
opentable($locale['aw_001']);
// 3 ELEMENTS START
echo "<center><table width='100%'><tr>
<td valign='top' width='33%' class='small'>";
openside($locale['aw_002']);
include INFUSIONS."advanced_articles/new_articles.php";
closeside();
echo "</td>";
echo "<td valign='top' width='33%' class='small'>";
openside($locale['aw_003']);
include INFUSIONS."advanced_articles/popular_articles.php";
closeside();
echo "</td>";
echo "<td valign='top' width='33%' class='small' align='left'>";
openside($locale['aw_004']);
echo "".$locale['aw_005']."<br />
1. ".$locale['aw_006']."<br />
2. ".$locale['aw_008']."<br />
3. ".$locale['aw_009']."<br />
4. Administrator will review the article.
";
closeside();
echo "</td></tr></table></center><hr />";
echo "<center>
".$locale['aw_010']." <b>".number_format(dbcount("(article_id)", DB_ARTICLES))."</b> ".$locale['aw_011']." <b>".number_format(dbcount("(article_cat_id)", DB_ARTICLE_CATS))."</b> ".$locale['aw_012'].".
</center><hr />";
// 3 ELEMENTS END
if (!isset($_GET['sortby']) || !preg_match("/^[0-9A-Z]$/", $_GET['sortby'])) { $_GET['sortby'] = "all"; }
$orderby = ($_GET['sortby'] == "all" ? "" : " WHERE article_cat_name LIKE '".stripinput($_GET['sortby'])."%'");
$result = dbquery("SELECT * FROM ".DB_ARTICLE_CATS.$orderby."");
$rows = dbrows($result);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
if ($rows != 0) {
$i = 0;
$colspan = $rows >= 3 ? "colspan='3' " : ($rows == 2 ? "colspan='2' " : "");
$width = $rows >= 3 ? "33%" : ($rows == 2 ? "50%" : "100%");
echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td class='tbl1'>
<table align='center' cellpadding='0' cellspacing='0' width='100%'>
<tr>\n";
$result = dbquery("SELECT * FROM ".DB_ARTICLE_CATS.$orderby." ORDER BY article_cat_name ASC LIMIT ".$_GET['rowstart'].",$max_cats");
while ($data = dbarray($result)) {
if ($i != 0 && $i % 3 == 0) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "</tr>
</table>
</td>
</tr>
<tr>
<td class='$cell_color' valign='top'>
<table align='center' cellpadding='0' cellspacing='0' width='100%' valign='top'>
<tr>\n";
}
$num = dbcount("(article_cat)", DB_ARTICLES, "article_cat='".$data['article_cat_id']."'");
$i ++;
$rowstart="0";
echo "<td width='$width' valign='top'><a href='".BASEDIR."articles.php?cat_id=".$data['article_cat_id']."' title='".$data['article_cat_name']."'>".trimlink($data['article_cat_name'], $max_chars)."</a> <span class='small2'>($num)</span><br />".trimlink($data['article_cat_description'], $max_chars_desc)."</td>\n";
if (($rows - $rowstart) > 3 && ($i == $max_cats || $i == ($rows - $rowstart))) {
while($i % 3 != 0) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "<td width='33%'> </td>\n";
$i ++;
}
}
}
echo "</tr>\n</table>\n</td>\n</tr>\n</table>\n";
} else {
echo "<center><br />\n".$locale['aw_013']." ".$_GET['sortby']."<br /><br />\n</center>\n";
}
$search = array(
"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R",
"S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"
);
echo "<hr />
<table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>
<tr>
<td rowspan='2' class='tbl2'><a href='".FUSION_SELF."?sortby=all'>".$locale['aw_014']."</a></td>\n";
for ($i = 0; $i < 36 != ""; $i++) {
echo "<td align='center' class='tbl1'><div class='small'><a href='".FUSION_SELF."?sortby=".$search[$i]."'>".$search[$i]."</a></div></td>";
echo ($i == 17 ? "\n<td rowspan='2' class='tbl2'><a href='".FUSION_SELF."?sortby=all'>".$locale['aw_014']."</a></td>\n</tr>\n<tr>\n" : "\n");
}
echo "</tr>\n</table>\n";
closetable();
if ($rows > $max_cats) { echo "<div align='center' style='margin-top:5px;'>".makepagenav($_GET['rowstart'], $max_cats, $rows, 3, FUSION_SELF."?sortby=".$_GET['sortby']."&")."</div>\n"; }
require_once THEMES."templates/footer.php";
?>
The code above is just for this one center panel:
Advanced Articles
I realize most of you could care less about the codes that run this site but just wanted to show you some of the code involved that keeps this site looking the way it does and what Mike and I do to create and/or re-write codes to suit our needs here on WhalerCentral.
Let us know what you think about the new upgrades.
|
|
|
|
kamie |
Posted on 11/28/08 - 6:14 PM
|
Member
Personal Page
Project Albums
Posts: 2975
Comments:
3
Joined: 11/04/05
|
Joe,
Once again you and Mike are doing some fantastic things with the site and I love the new look. I did notice a lack of comments in the php code. At least it was nicely indented and spaced.
|
|
|
|
Phil T |
Posted on 11/28/08 - 6:39 PM
|
Administrator
Personal Page
Personal Album
Project Albums
Posts: 7042
Comments:
6
Joined: 03/26/05
|
All I can say is .....Wooooaaaah.
That code makes my head hurt. Don't know how Lisa (my partner) does it day after day. I am glad I just manage people who do that voodoo that you do too.
1992 Outrage 17 I
2019 E-TEC 90, Viper 17 2+
2018 Load Rite Elite 18280096VT |
|
|
|
Joe Kriz |
Posted on 11/28/08 - 9:25 PM
|
Site Owner
Personal Page
Personal Album
Photo Albums
Project Albums
Posts: 11447
Comments:
452
Joined: 03/18/05
|
kamie,
There are comments at the bottom of every article.
A member can leave a comment or ask the original author any questions they might have.
We don't feel a need for comments for the web links or downloads although anything is possible.
Phil,
PHP is kinda the next step up from .html. PHP has a database you can pull information from like usernames, articles, datestamps, and on and on...
My eyes do get tired after looking at all those lines of code after awhile.
|
|
|
|
Paul B |
Posted on 11/29/08 - 5:17 AM
|
Member
Personal Page
Posts: 40
Comments:
0
Joined: 07/27/07
|
Great job Joe and Mike! I can tell it's a labor of love.
Thanks,
Paul
|
|
|
|
CES |
Posted on 11/29/08 - 6:14 AM
|
Member
Personal Page
Photo Albums
Project Albums
Posts: 2681
Comments:
7
Joined: 04/27/07
|
Holy Cow!!!
Cliff
1966 13' Sport with a 1993 40hp Yamaha 2 Smoker |
|
|
|
kamie |
Posted on 11/29/08 - 6:37 AM
|
Member
Personal Page
Project Albums
Posts: 2975
Comments:
3
Joined: 11/04/05
|
Joe, I was more referring to comments in the code about what your doing in the code. I see inline comments on the variables but pretty slim after that. geeze, I make my folks comment the shell scripts they write.
|
|
|
|
ioptfm |
Posted on 11/29/08 - 7:10 AM
|
Member
Personal Page
Posts: 1533
Comments:
3
Joined: 10/28/06
|
As always, Joe and Mike, your hard work shows, makes this site the best, and it greatly appreciated! Thanks so much for your continous dedication
Tom
1979 Sport 15' |
|
|
|
Doug V |
Posted on 11/29/08 - 8:29 AM
|
Member
Personal Page
Posts: 340
Comments:
3
Joined: 09/21/05
|
Joe and Mike,
Nice job. I like the new arrangement.
Doug
|
|
|
|
Joe Kriz |
Posted on 11/29/08 - 11:16 AM
|
Site Owner
Personal Page
Personal Album
Photo Albums
Project Albums
Posts: 11447
Comments:
452
Joined: 03/18/05
|
Thanks everyone. It is enjoyable when things work properly and frustrating when you just can't quite get the code to do what you want it to do.
kamie,
I see now...
Yes, we do use those kind of comments 'out' when working on more complicated files.
Like this:
//this code below shows usernames
//this code show users personal pages
That way you can go to the particular section of the code you want to modify and find it quickly.
|
|
|
|
CES |
Posted on 11/29/08 - 5:09 PM
|
Member
Personal Page
Photo Albums
Project Albums
Posts: 2681
Comments:
7
Joined: 04/27/07
|
I like the avatar showing up near your name when you sign in....adds a personal touch to it.
Cliff
1966 13' Sport with a 1993 40hp Yamaha 2 Smoker |
|
|
|
Joe Kriz |
Posted on 11/29/08 - 5:17 PM
|
Site Owner
Personal Page
Personal Album
Photo Albums
Project Albums
Posts: 11447
Comments:
452
Joined: 03/18/05
|
Cliff,
Thought we would give it a try.
The avatar only shows up for members that have avatars. Otherwise, nothing will show.
I also just updated the FAQ section. It is not quite complete due to a variety of reasons but does function and look better than the original version.
|
|
|
|
ritzyrags |
Posted on 11/29/08 - 10:46 PM
|
Member
Project Albums
Posts: 1003
Comments:
36
Joined: 06/18/08
|
Joe,
On behalf of a lot of us out there;
Thank You;
For the real efforts that I personally have seen you put up lately.
I think that at our age,
We can tell of a genuine statement..when it has been put forward in such a way.
Again Thank You In making "Our" progressive site once again ..
A Promise of things to come.
I will be keeping a keen eye on things and will appreciate of your fun and pleasure in improving Whaler Central..
A genuine entity is only as good as the sum of all its components.
Luck and Prosperity to all members...
Dont lie
Dont Cheat
And dont give up.. |
|
|
|
boopete |
Posted on 11/30/08 - 6:59 AM
|
Member
Posts: 25
Comments:
0
Joined: 06/08/07
|
Joe, Great work! Being in the industry, I can appreciate your hard work. I was wondering, if you know how many lines of code you have in this app? I bet it will shock you. Thanks for the site.
|
|
|