phpslash-commit Mailing List for phpSlash (Page 90)
Brought to you by:
joestewart,
nhruby
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
(59) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(52) |
Feb
(77) |
Mar
(118) |
Apr
(76) |
May
(106) |
Jun
(145) |
Jul
(9) |
Aug
(15) |
Sep
(78) |
Oct
(83) |
Nov
(105) |
Dec
(51) |
2003 |
Jan
(105) |
Feb
(100) |
Mar
(111) |
Apr
(149) |
May
(95) |
Jun
(56) |
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(22) |
Nov
(117) |
Dec
(6) |
2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(25) |
May
|
Jun
(11) |
Jul
(26) |
Aug
(85) |
Sep
(119) |
Oct
(312) |
Nov
(271) |
Dec
(5) |
2005 |
Jan
(6) |
Feb
|
Mar
|
Apr
(12) |
May
(7) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe S. <joe...@us...> - 2002-05-20 18:03:46
|
Update of /cvsroot/phpslash/phpslash-ft/doc/html In directory usw-pr-cvs1:/tmp/cvs-serv7009/phpslash-ft/doc/html Modified Files: phpslash.sgml Log Message: login and submission blocks Index: phpslash.sgml =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/doc/html/phpslash.sgml,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** phpslash.sgml 20 May 2002 16:07:29 -0000 1.25 --- phpslash.sgml 20 May 2002 18:03:43 -0000 1.26 *************** *** 751,755 **** --- 751,758 ---- <tscreen><code> + framedbox.tpl + loginblock.tpl navbarBlock.tpl + openbox.tpl </code></tscreen> *************** *** 981,984 **** --- 984,994 ---- <tag/HTML/ Just put some HTML in the "DATA" field and that's pretty much it. + <tag/Login/ Creates a block containing login/logout links or form. + These are valid source url options: + <itemize> + <item> form = if true display a login form instead of a link. + <item> tpl = alternate template ( no .tpl). + </itemize> + <tag/NavBar/ Creates a block containing the navbar links. These are valid options: *************** *** 1024,1027 **** --- 1034,1051 ---- "home" link. <tag/Section/ Will give you a list of the sections with stories. + <tag/Submission/ Will give you a list of the submissions in a block to + a user with sufficient privileges. This block uses the submissionList.tpl + and is too wide for a side column. Example use: + <itemize> + <item> title - "Submission Queue" + <item> type - "submission" + <item> expire length - "0" + <item> section - "Admin" + <item> Data - empty + <item> order number - "70" + <item> block options: + <item> column center + <item> width 100% + </itemize> <tag/Topics:/ Gives you a list of topics with stories. <tag/URL/ A lot of people ask how they can put PHP code into a block, *************** *** 1309,1312 **** --- 1333,1337 ---- error.tpl - display error message fancybox.tpl - blocks + framedbox.tpl - alternate fancybox footer.tpl - unused glossaryList.tpl - list of glossary entries in glossaryAdmin *************** *** 1320,1323 **** --- 1345,1349 ---- index3col.tpl - three column example index page infolog.tpl - infolog management in infologAdmin + loginblock.tpl - login form in a login block. loginform.tpl - login form loginformCR.tpl - login form using Challenge-Response [default] *************** *** 1336,1339 **** --- 1362,1366 ---- navbarFooter.tpli - bottom Navigation bar (Home, About, etc.) notfound.tpl - errordocument content + openbox.tpl - alternate fancybox pollAdminLink.tpl - links to administer polls pollDisplay.tpl - voting form and comment display |
From: Joe S. <joe...@us...> - 2002-05-20 17:52:50
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv3090/phpslash-ft/public_html/templates/en/default Added Files: openbox.tpl framedbox.tpl loginblock.tpl Log Message: login and submission blocks --- NEW FILE: openbox.tpl --- <!-- START OPENBOX.TPL: {TITLE} --> <img src="{IMAGEDIR}/layout/blank.gif" height="1" width="1"> <table cellpadding=0 cellspacing=0 border=0 width=100% {ALIGN}> <tr bgcolor="#ffffff"> <td valign=top> <img src="{IMAGEDIR}/layout/blank.gif" height="0" width="4"></td> <td > {CONTENTS} </td> <td valign=top> <img src="{IMAGEDIR}/layout/blank.gif" height="0" width="4"></td> </tr > </table> <img src="{IMAGEDIR}/layout/blank.gif" height="1" width="1"> <!-- END OPENBOX.TPL --> --- NEW FILE: framedbox.tpl --- <!-- START FRAMEDBOX.TPL: {TITLE} --> <table border="1" width="100%" cellspacing="0" cellpadding="0" bordercolor="#3F4469" bordercolordark="#3F4469" bordercolorlight="#3F4469"> <tr> <td width="100%"> <table border="0" width="100%"> <tr> <td width="100%" align="left" valign="top"> <!-- START FANCYBOX TEMPLATE CONTENTS --><font face="arial,helvetica" size="2"> {CONTENTS} </font> <!-- END FANCYBOX TEMPLATE CONTENTS --> </td> </tr> </table> </td> </tr> </table> <img src ="{IMAGEDIR}/layout/blank.gif" width ="150" height = "15"><br> <!-- END FRAMEDBOX.TPL --> --- NEW FILE: loginblock.tpl --- <script language="javascript" src="{ROOTURL}/md5.js"></script> <script language="javascript"> <!-- function doChallengeResponse() { str = MD5(document.login.username.value + ":" + document.login.password.value) + ":" + document.login.challenge.value; document.login.response.value = MD5(str); document.login.password.value = ""; document.logintrue.username.value = document.login.username.value; document.logintrue.response.value = MD5(str); document.logintrue.submit(); return false; } // --> </script> <form name="login" action="{ACTION_URL}" method=post onSubmit="doChallengeResponse()"> <input type="hidden" name="login" value="yes"> <table border=0 align="center" cellspacing=0 cellpadding=1> <tr valign=top align=left> <td>Username:</td> </tr> <tr valign=top align=left> <td><input type="text" name="username" value="{USERNAME}" size=16 maxlength=32></td> </tr> <tr valign=top align=left> <td>Password:</td> </tr> <tr valign=top align=left> <td><input type="password" name="password" value="" size=16 maxlength=32></td> </tr> <tr> <td align=right><input type="submit" name="submit" value="Login now"></td> </tr> </table> <input type="hidden" name="challenge" value="{CHALLENGE}"> <input type="hidden" name="response" value=""> </form> <form name="logintrue" action="{ACTION_URL}" method=post> <input type="hidden" name="username" value=""> <input type="hidden" name="challenge" value="{CHALLENGE}"> <input type="hidden" name="response" value=""> </form> <script language="JavaScript"> <!-- // Activate the appropriate input form field. if (document.login.username.value == '') { document.login.username.focus(); } else { document.login.password.focus(); } // --> </script> |
From: Joe S. <joe...@us...> - 2002-05-20 17:52:50
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/basic In directory usw-pr-cvs1:/tmp/cvs-serv3090/phpslash-ft/public_html/templates/en/basic Added Files: openbox.tpl loginblock.tpl Log Message: login and submission blocks --- NEW FILE: openbox.tpl --- <!-- START openbox.tpl: {TITLE} --> <div id="fancyBox"> <!-- START openBox template content --> {CONTENTS} <!-- END openBox template content --> </div> <!-- id="fancyBox" --> <!-- END openbox.tpl --> --- NEW FILE: loginblock.tpl --- <script language="javascript" src="{ROOTURL}/md5.js"></script> <script language="javascript"> <!-- function doChallengeResponse() { str = MD5(document.login.username.value + ":" + document.login.password.value) + ":" + document.login.challenge.value; document.login.response.value = MD5(str); document.login.password.value = ""; document.logintrue.username.value = document.login.username.value; document.logintrue.response.value = MD5(str); document.logintrue.submit(); return false; } // --> </script> <form name="login" action="{ACTION_URL}" method=post onSubmit="doChallengeResponse()"> <input type="hidden" name="login" value="yes"> <table border=0 align="center" cellspacing=0 cellpadding=1> <tr valign=top align=left> <td class="descr">Username:</td> </tr> <tr valign=top align=left> <td><input type="text" name="username" value="{USERNAME}" size=16 maxlength=32></td> </tr> <tr valign=top align=left> <td class="descr">Password:</td> </tr> <tr valign=top align=left> <td><input type="password" name="password" value="" size=16 maxlength=32></td> </tr> <tr> <td align=right><input type="submit" name="submit" value="Login now"></td> </tr> </table> <input type="hidden" name="challenge" value="{CHALLENGE}"> <input type="hidden" name="response" value=""> </form> <form name="logintrue" action="{ACTION_URL}" method=post> <input type="hidden" name="username" value=""> <input type="hidden" name="challenge" value="{CHALLENGE}"> <input type="hidden" name="response" value=""> </form> <script language="JavaScript"> <!-- // Activate the appropriate input form field. if (document.login.username.value == '') { document.login.username.focus(); } else { document.login.password.focus(); } // --> </script> |
From: Joe S. <joe...@us...> - 2002-05-20 17:52:50
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv3090/phpslash-ft Modified Files: CHANGES Log Message: login and submission blocks Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.484 retrieving revision 1.485 diff -C2 -d -r1.484 -r1.485 *** CHANGES 20 May 2002 16:07:29 -0000 1.484 --- CHANGES 20 May 2002 17:52:46 -0000 1.485 *************** *** 13,16 **** --- 13,24 ---- 9 - Removal of something (kill -9 :) + 2002-May-20 12:00AM CDT Joe Stewart <joe...@us...> + [F] - Block_render_submission.class - display submission queue in a block. + [FT] - Block_render_login.class, loginblock.tpl - added login/logout + block. + [D] - phpslash.sgml - Added login/logout and submission blocks to docs. + [T] - basic/openbox.tpl, default/openbox.tpl, default/framedbox.tpl - + added alternate fancybox templates. + 2002-May-20 11:00AM CDT Joe Stewart <joe...@us...> [FT] - Block_render_navbar.class, navbarBlock.tpl - added Luis' navbar |
From: Joe S. <joe...@us...> - 2002-05-20 17:52:50
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv3090/phpslash-ft/class Added Files: Block_render_login.class Block_render_submission.class Log Message: login and submission blocks --- NEW FILE: Block_render_login.class --- <?php /* Block_render_login.class -> Methods for phpslash specfic blocks */ /* Id:$ */ class Block_render_login { var $type; var $output; var $auth; var $perm; var $psl; /* constructor */ function Block_render_login() { global $auth, $perm, $_PSL; $this->type = "login"; /* set the 'type' */ $this->output = ""; /* clear the output */ $this->auth = $auth; $this->perm = $perm; $this->psl = $_PSL; } /* returns the TYPE of this class */ function getType() { return $this->type; } function parse($block_info) { $this->output = $this->login( $block_info); return 1; } function login($block_info) { $default_tpl = "loginblock.tpl"; $options = $block_info["source_url"]; parse_str( $options); // $tpl = ""; // disable template option if( empty($tpl) ) { $tpl = $default_tpl; } elseif ( file_exists($this->psl['templatedir'] . "/" . basename($tpl) . ".tpl") ) { $tpl = basename($tpl) . ".tpl"; } else { debug ( "Block_render_section:Template file doesn't exist, using default instead", $tpl); $tpl = $default_tpl; } $template = new Template($this->psl['templatedir']); $template->debug = 0; $template->set_file(array( block => "$tpl" )); $template->set_var(array( 'ROOTDIR' => $this->psl['rooturl'], 'IMAGEDIR' => $this->psl['imageurl'], 'ACTION_URL' => $this->psl['rooturl']."/login.php3" )); if($this->perm->have_perm('user')) { $output = "<a href=\"".$this->psl['rooturl']."/login.php3?logout=yes\">". pslgetText('Logout') ." ". $this->auth->auth['uname']."</a>"; } elseif ($form) { $output = $template->parse('OUT',"block"); } else { $output = "<a href=\"".$this->psl['rooturl']."/login.php3?login=yes\">".pslgetText('Login')."</a>"; } return $output; } function getFinal() { return $this->output; } } ?> --- NEW FILE: Block_render_submission.class --- <?php /* Block_render_submission.class -> Methods for phpslash submission blocks */ /* Id:$ */ /* These should only be displayed to logged in admin's with Submission perms. */ class Block_render_submission { var $type; var $output; var $psl; /* constructor */ function Block_render_submission() { global $_PSL; $this->type = "submission"; /* set the 'type' */ $this->output = ""; /* clear the output */ $this->psl = $_PSL; } /* returns the TYPE of this class */ function getType() { return $this->type; } function parse( $block_info) { global $perm; if($perm->have_perm('submission')) { $this->output = $this->submisssions( $block_info); return 1; } else { $this->output = ""; } } function submisssions( $block_info) { $this->db = new SlashDB; // Templates $this->templ = new Template($this->psl['templatedir']); $this->templ->debug = 0; $this->templ->set_file ( array( 'listsubmission' => "submissionList.tpl", )); $this->templ->set_var( array( 'ROOTDIR' => $this->psl['rooturl'], 'IMAGEDIR' => $this->psl['imageurl'] )); $cmt_list = 10; // num of comments to display before the "more" link $q = "SELECT story_id, title, date_format(time,\"%d-%b-%Y\") AS pdate, date_format(time,\"%h:%i\") AS ptime, name, email FROM psl_submission ORDER BY time"; $this->db->query($q); $count = 0; $this->templ->set_block("listsubmission","row","rows"); while ($this->db->next_record()) { $count++; if ( ($count > $first) and ($count <= ($first+$cmt_list)) ) { $submission_id = $this->db->Record["story_id"]; $viewurl = $this->psl['adminurl'] . "/submissionAdmin.php3?submit=edit&submission_id=$submission_id"; $editurl = $this->psl['adminurl'] . "/submissionAdmin.php3?submit=editasstory&submission_id=$submission_id"; $this->templ->set_var(array( 'SUBMISSION_ID' => $submission_id, 'ACTION_URL' => $this->psl['adminurl'] ."/submissionAdmin.php3", 'EDIT_URL' => $editurl, 'VIEW_URL' => $viewurl, 'SUBJECT' => $this->db->Record["title"], 'EMAIL' => $this->db->Record["email"], 'NAME' => $this->db->Record["name"], 'TIME' => $this->db->Record["ptime"], 'DATE' => $this->db->Record["pdate"] )); $this->templ->parse("rows","row",true); } } // if the count hasn't increased, then return and don't parse ANYTHING! if ($count <= 0) { return 0; }; $first += $cmt_list; $left = $count - $first; $this->templ->set_var(array( 'MORE_LINK' => "" )); if ($count > $first) { $this->templ->set_var(array( 'MORE_LINK' => "<a href=\"" . $this->psl['phpself'] . "?next=$first\">$left More</a>" )); } $submissions = $this->templ->parse('OUT', "listsubmission"); // $submissions = "None"; return $submissions; } function getFinal() { return $this->output; } } ?> |
From: Joe S. <joe...@us...> - 2002-05-20 16:07:34
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/basic In directory usw-pr-cvs1:/tmp/cvs-serv2225/phpslash-ft/public_html/templates/en/basic Added Files: navbarBlock.tpl Log Message: [ 549191 ] Navbar Block --- NEW FILE: navbarBlock.tpl --- <!-- START: navbarBlock.tpl --> <!-- BEGIN each_destination --> <a href="{LINK_NAVBAR}"><b>{LINK_NAVBAR_TEXT}</b></a> <!-- END each_destination --> <!-- END: navbarBlock.tpl --> |
From: Joe S. <joe...@us...> - 2002-05-20 16:07:34
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv2225/phpslash-ft/public_html/templates/en/default Added Files: navbarBlock.tpl Log Message: [ 549191 ] Navbar Block --- NEW FILE: navbarBlock.tpl --- <!-- START: navbarBlock.tpl --> <ul> <!-- BEGIN each_destination --> <br /><a href="{LINK_NAVBAR}"><b><font size="-1" face="Verdana,Arial,Helve tica,San-Serif">{LINK_NAVBAR_TEXT}</b></a> <!-- END each_destination --> </ul> <!-- END: navbarBlock.tpl --> |
From: Joe S. <joe...@us...> - 2002-05-20 16:07:33
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv2225/phpslash-ft/class Added Files: Block_render_navbar.class Log Message: [ 549191 ] Navbar Block --- NEW FILE: Block_render_navbar.class --- <?php /* Block_render_navbar.class -> Methods for phpslash specfic blocks for LatinoMixed.com */ /* $Id: Block_render_navbar.class,v 1.1 2002/05/20 16:07:29 joestewart Exp $ */ class Block_render_navbar { var $type; var $output; var $psl; /* constructor */ function Block_render_navbar() { global $_PSL; $this->type = "navbar"; /* set the 'type' */ $this->output = ""; /* clear the output */ $this->psl = $_PSL; } /* returns the TYPE of this class */ function getType() { return $this->type; } function parse($block_info) { $default_tpl = "navbarBlock"; $options = $block_info["source_url"]; parse_str( $options); if( empty($tpl) ) { $tpl = $default_tpl; } $navbar = new NavBar; //$navbar->getNavBar("navbarBlock"); $this->output = $navbar->getNavBar( $tpl, $this->psl[$menu_ary]); //$block_info["cache_data"]; return 1; } function getFinal() { return $this->output; } function getTitle($string = ""){ if (empty($string)) { $string = "NO TITLE"; }else{ // for clarity $string = preg_replace("/\%(.*)\%/i","\\1",$string); } $this->title=pslgetText($string); return $this->title; } } ?> |
From: Joe S. <joe...@us...> - 2002-05-20 16:07:32
|
Update of /cvsroot/phpslash/phpslash-ft/doc/html In directory usw-pr-cvs1:/tmp/cvs-serv2225/phpslash-ft/doc/html Modified Files: phpslash.sgml Log Message: [ 549191 ] Navbar Block Index: phpslash.sgml =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/doc/html/phpslash.sgml,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** phpslash.sgml 19 May 2002 14:40:10 -0000 1.24 --- phpslash.sgml 20 May 2002 16:07:29 -0000 1.25 *************** *** 697,700 **** --- 697,765 ---- </itemize> + <sect1>From versions 0.65 to 0.65++ + <p> Versions of phpSlash greater than 0.6.2 <bf>will not</bf> support + upgrading a 0.5.x install. You will manually need to upgrade to 0.6.2 and + then upgrade from that point on. The reason for this is that the + database schema in 0.6x radically changed from 0.5x and supporting that + particular upgrade path is just not feasible or viable given the number of + developers we have. + + <sect2>Before you begin + + <P> + <itemize> + <item> Install phpslash 0.65++ in a new directory and set all the path + related variables as documented in the INSTALL file. Oh yeah, copy over + any special logos or topic images that you will need from the old slash + directory to the new one. + </itemize> + + <sect2>The Upgrade + + <p> + <enum> + <item> It would be a good idea to backup the database at this point: + + <tscreen><code> + mysqldump slash > slash-backup.sql + </code></tscreen> + + <item> Since you're upgrading from 0.65 we need to make some changes to the + DB so run the tables/0.70/65_to_70.sql file: + + <tscreen><code> + mysql slash < 65_to_70.sql + </code></tscreen> + + <p> + <bf>STOP IF YOU GOT ANY ERRORS, YOU NEED TO FIX THEM BEFORE YOU + CONTINUE. ASK THE MAILING LIST QUESTIONS IF YOU NEED HELP!!!</bf> + + <item>Customize templates. Many templates changed since the release of 0.65, + so simply copying the templates from the 0.65 installation will not work. + Instead of modifying the files in the "default" directory, it may be better to + copy the entire contents of the "default" directory to another directory. + Then customize these files. + The default template/skin location is specified in config.php3 on this line: + + <tscreen><code> + $_PSL[defaultskin] = "default"; + </code></tscreen> + + <item>This is a list of template files that are new or changed since the + release of 0.65: + + <tscreen><code> + navbarBlock.tpl + </code></tscreen> + + + </enum> + + That should be it. If you get any errors, then send an email to the list + and we'll try to help out as best as we can. + + <sect2> Troubleshooting + <!-- SECTION START: User Documentation --> *************** *** 916,919 **** --- 981,990 ---- <tag/HTML/ Just put some HTML in the "DATA" field and that's pretty much it. + <tag/NavBar/ Creates a block containing the navbar links. These are valid + options: + <itemize> + <item> menu_ary = alternate menu_ary specified in config. + <item> tpl = alternate template ( no .tpl). + </itemize> <tag/Poll/ Renders the current poll, it's probably a good idea to put the expire length kinda high in this one because there's no point in *************** *** 1262,1265 **** --- 1333,1337 ---- messageStrike.tpl - used to strike out text that is not translated. navbar.tpl - top Navigation bar (Home, About, etc.) + navbarBlock.tpl - Navigation block (Home, About, etc. navbarFooter.tpli - bottom Navigation bar (Home, About, etc.) notfound.tpl - errordocument content |
From: Joe S. <joe...@us...> - 2002-05-20 16:07:32
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv2225/phpslash-ft Modified Files: CHANGES Log Message: [ 549191 ] Navbar Block Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.483 retrieving revision 1.484 diff -C2 -d -r1.483 -r1.484 *** CHANGES 20 May 2002 15:38:29 -0000 1.483 --- CHANGES 20 May 2002 16:07:29 -0000 1.484 *************** *** 13,16 **** --- 13,21 ---- 9 - Removal of something (kill -9 :) + 2002-May-20 11:00AM CDT Joe Stewart <joe...@us...> + [FT] - Block_render_navbar.class, navbarBlock.tpl - added Luis' navbar + block. + [D] - phpslash.sgml - Added navbar block and new upgrade section to docs. + 2002-May-20 10:30AM CDT Joe Stewart <joe...@us...> [F] - Poll.class, config.php3 - Feature Request [ 528683 ]. |
From: Joe S. <joe...@us...> - 2002-05-20 15:38:32
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv24314/phpslash-ft/public_html Modified Files: config.php3 Log Message: Feature Request [ 528683 ] - more Poll answers Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.137 retrieving revision 1.138 diff -C2 -d -r1.137 -r1.138 *** config.php3 19 May 2002 14:40:10 -0000 1.137 --- config.php3 20 May 2002 15:38:29 -0000 1.138 *************** *** 105,110 **** // basically allows you to moderate the posts. ! $_PSL['poll_max_answers'] = 8; // When creating a poll, you have a question ! // and up to $max_poll_answers answers. $_PSL['home_section_id'] = 3; // There is a "main" section. When people --- 105,110 ---- // basically allows you to moderate the posts. ! $_PSL['poll_min_answers'] = 8; // When creating a poll, you have a question ! // and at least this number of blanks. $_PSL['home_section_id'] = 3; // There is a "main" section. When people |
From: Joe S. <joe...@us...> - 2002-05-20 15:38:32
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv24314/phpslash-ft Modified Files: CHANGES Log Message: Feature Request [ 528683 ] - more Poll answers Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.482 retrieving revision 1.483 diff -C2 -d -r1.482 -r1.483 *** CHANGES 20 May 2002 15:05:31 -0000 1.482 --- CHANGES 20 May 2002 15:38:29 -0000 1.483 *************** *** 13,16 **** --- 13,21 ---- 9 - Removal of something (kill -9 :) + 2002-May-20 10:30AM CDT Joe Stewart <joe...@us...> + [F] - Poll.class, config.php3 - Feature Request [ 528683 ]. + Polls have a variable number of answers. Similar to block options. + If more are needed, they are added automatically. + 2002-May-20 10:00AM CDT Joe Stewart <joe...@us...> [D] - Moved CHANGES to doc/changeHistory/CHANGES-062-065 |
From: Joe S. <joe...@us...> - 2002-05-20 15:38:32
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv24314/phpslash-ft/class Modified Files: Poll.class Log Message: Feature Request [ 528683 ] - more Poll answers Index: Poll.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Poll.class,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Poll.class 28 Apr 2002 02:08:26 -0000 1.16 --- Poll.class 20 May 2002 15:38:29 -0000 1.17 *************** *** 69,73 **** )); $this->templ->set_block(editpoll, each_choice, choices); ! for ($i = 1; $i <= $this->psl['poll_max_answers']; $i++) { $this->templ->set_var(array( 'CHOICE_VALUE' => '', --- 69,73 ---- )); $this->templ->set_block(editpoll, each_choice, choices); ! for ($i = 1; $i <= $this->psl['poll_min_answers']; $i++) { $this->templ->set_var(array( 'CHOICE_VALUE' => '', *************** *** 187,191 **** } ! while ($x < $this->psl['poll_max_answers']) { $x++; $this->templ->set_var(array( --- 187,196 ---- } ! if( ($x - $this->psl['poll_min_answers']) >= 0) { ! // spit out one more blank field ! $x = $this->psl['poll_min_answers'] - 1; ! } ! ! while ($x < $this->psl['poll_min_answers']) { $x++; $this->templ->set_var(array( *************** *** 223,227 **** // first we need to get the total number of default votes ! for ($x = 0; $x <= $this->psl['poll_max_answers']; $x ++) { $totalvotes += $votes_ary[$x]; } --- 228,232 ---- // first we need to get the total number of default votes ! for ($x = 0; $x <= count($votes_ary); $x ++) { $totalvotes += $votes_ary[$x]; } *************** *** 285,289 **** /* Now we are going to update/insert the answers */ ! for ($x = 0; $x <= $this->psl['poll_max_answers']; $x++) { $answer = clean($choice_ary[$x]); $vote = clean($votes_ary[$x]); --- 290,294 ---- /* Now we are going to update/insert the answers */ ! for ($x = 0; $x <= count($votes_ary); $x++) { $answer = clean($choice_ary[$x]); $vote = clean($votes_ary[$x]); |
From: Joe S. <joe...@us...> - 2002-05-20 15:05:35
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv9806/phpslash-ft Modified Files: CHANGES Log Message: moved CHANGES to doc/changeHistory Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.481 retrieving revision 1.482 diff -C2 -d -r1.481 -r1.482 *** CHANGES 19 May 2002 15:01:00 -0000 1.481 --- CHANGES 20 May 2002 15:05:31 -0000 1.482 *************** *** 13,1365 **** 9 - Removal of something (kill -9 :) ! 2002-May-19 10:49AM EDT nathan hruby <na...@ds...> ! [B] - Fixed -> [ 535287 ] install doc bug ! [R] - THIS IS NOW 0.6.5-final! YEA!!!!! ! ! 2002-May-18 10:30AM CDT Joe Stewart <joe...@us...> ! [B] - slashDB.class - corrected debug variable. ! ! 2002-May-15 10:00PM CDT Joe Stewart <joe...@us...> [...1328 lines suppressed...] ! 2001-Apr-05 09:15 CDT Joe Stewart <jo...@be...> ! o [B] - bugfix - #404001 - Full text search of articles - search.php3. ! argh. Commented out because of comments in bug report. ! ! 2001-Apr-05 09:15 CDT Joe Stewart <jo...@be...> ! o [CPT] - stories can now be scheduled for publication by "god" ! level user. ! affected files: Story.class, storyNew.tpl, ! search.php3, Block_render_cal.class. ! - The author realname field now accepts entry. The name displayed ! on article display is the real_name by default. ! affected files: Author.class, authorAdmin.php3, authorNew.tpl, ! authorList.tpl, and Story.class. ! ! Moved everything to another changes file... --- 13,16 ---- 9 - Removal of something (kill -9 :) ! 2002-May-20 10:00AM CDT Joe Stewart <joe...@us...> ! [D] - Moved CHANGES to doc/changeHistory/CHANGES-062-065 |
From: Joe S. <joe...@us...> - 2002-05-20 15:05:34
|
Update of /cvsroot/phpslash/phpslash-ft/doc/changeHistory In directory usw-pr-cvs1:/tmp/cvs-serv9806/phpslash-ft/doc/changeHistory Added Files: CHANGES-062-065 Log Message: moved CHANGES to doc/changeHistory --- NEW FILE: CHANGES-062-065 --- $Id: CHANGES-062-065,v 1.1 2002/05/20 15:05:31 joestewart Exp $ Changes Legend... B - Bugfix F - Feature Added E - Experimental T - Template changed D - Documentation S - Database Schema R - RELEASE W - General Work on something 9 - Removal of something (kill -9 :) 2002-May-19 10:49AM EDT nathan hruby <na...@ds...> [B] - Fixed -> [ 535287 ] install doc bug [R] - THIS IS NOW 0.6.5-final! YEA!!!!! 2002-May-18 10:30AM CDT Joe Stewart <joe...@us...> [...1326 lines suppressed...] 2001-Apr-05 09:15 CDT Joe Stewart <jo...@be...> o [B] - bugfix - #404001 - Full text search of articles - search.php3. One more time. Full body text enabled and bug closed. 2001-Apr-05 09:15 CDT Joe Stewart <jo...@be...> o [B] - bugfix - #404001 - Full text search of articles - search.php3. argh. Commented out because of comments in bug report. 2001-Apr-05 09:15 CDT Joe Stewart <jo...@be...> o [CPT] - stories can now be scheduled for publication by "god" level user. affected files: Story.class, storyNew.tpl, search.php3, Block_render_cal.class. - The author realname field now accepts entry. The name displayed on article display is the real_name by default. affected files: Author.class, authorAdmin.php3, authorNew.tpl, authorList.tpl, and Story.class. Moved everything to another changes file... |
From: nathan h. <nh...@us...> - 2002-05-19 15:01:03
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv3994 Modified Files: CHANGES Log Message: Fixing CHANGES boo-boo :) Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.480 retrieving revision 1.481 diff -C2 -d -r1.480 -r1.481 *** CHANGES 19 May 2002 14:40:10 -0000 1.480 --- CHANGES 19 May 2002 15:01:00 -0000 1.481 *************** *** 13,17 **** 9 - Removal of something (kill -9 :) ! 2002-May-18 10:30AM CDT Joe Stewart <joe...@us...> [B] - Fixed -> [ 535287 ] install doc bug [R] - THIS IS NOW 0.6.5-final! YEA!!!!! --- 13,17 ---- 9 - Removal of something (kill -9 :) ! 2002-May-19 10:49AM EDT nathan hruby <na...@ds...> [B] - Fixed -> [ 535287 ] install doc bug [R] - THIS IS NOW 0.6.5-final! YEA!!!!! |
From: nathan h. <nh...@us...> - 2002-05-19 14:40:13
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv32185/public_html Modified Files: config.php3 Log Message: fix bug 535287, mark for release of 065-final Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.136 retrieving revision 1.137 diff -C2 -d -r1.136 -r1.137 *** config.php3 28 Apr 2002 02:08:27 -0000 1.136 --- config.php3 19 May 2002 14:40:10 -0000 1.137 *************** *** 12,19 **** # This is a comment also, it spans one line but we do not like these ! /* This is a comment as well, it can span multiple line like this, but you need to be sure to close it like so: */ ! $_PSL['version'] = '0.6.5-pre1'; /**** START DEBUGING - Comment or delete this for production! ****/ --- 12,19 ---- # This is a comment also, it spans one line but we do not like these ! /* This is a comment as well, it can span multiple lines like this, but you need to be sure to close it like so: */ ! $_PSL['version'] = '0.6.5'; /**** START DEBUGING - Comment or delete this for production! ****/ *************** *** 57,61 **** // $rooturl -> The base URL for the phpslash site ! $_PSL['rooturl'] = 'http://fatboy/ft/'; // $adminurl -> The base URL for the admin pages --- 57,61 ---- // $rooturl -> The base URL for the phpslash site ! $_PSL['rooturl'] = 'http://fatboy.mystic/nate/phpslash-ft/public_html'; // $adminurl -> The base URL for the admin pages *************** *** 82,87 **** $_PSL['DB_Host'] = "localhost"; ! $_PSL['DB_Database'] = "pslft"; ! $_PSL['DB_User'] = "pslft"; $_PSL['DB_Password'] = "foo"; --- 82,87 ---- $_PSL['DB_Host'] = "localhost"; ! $_PSL['DB_Database'] = "psl"; ! $_PSL['DB_User'] = "psl"; $_PSL['DB_Password'] = "foo"; |
From: nathan h. <nh...@us...> - 2002-05-19 14:40:13
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv32185 Modified Files: CHANGES VERSION Log Message: fix bug 535287, mark for release of 065-final Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.479 retrieving revision 1.480 diff -C2 -d -r1.479 -r1.480 *** CHANGES 18 May 2002 15:32:37 -0000 1.479 --- CHANGES 19 May 2002 14:40:10 -0000 1.480 *************** *** 14,17 **** --- 14,21 ---- 2002-May-18 10:30AM CDT Joe Stewart <joe...@us...> + [B] - Fixed -> [ 535287 ] install doc bug + [R] - THIS IS NOW 0.6.5-final! YEA!!!!! + + 2002-May-18 10:30AM CDT Joe Stewart <joe...@us...> [B] - slashDB.class - corrected debug variable. Index: VERSION =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/VERSION,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** VERSION 3 Mar 2002 16:07:52 -0000 1.10 --- VERSION 19 May 2002 14:40:10 -0000 1.11 *************** *** 1 **** ! 0.65-pre1 --- 1 ---- ! 0.65 |
From: nathan h. <nh...@us...> - 2002-05-19 14:40:13
|
Update of /cvsroot/phpslash/phpslash-ft/doc/html In directory usw-pr-cvs1:/tmp/cvs-serv32185/doc/html Modified Files: phpslash.sgml Log Message: fix bug 535287, mark for release of 065-final Index: phpslash.sgml =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/doc/html/phpslash.sgml,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** phpslash.sgml 27 Apr 2002 20:49:35 -0000 1.23 --- phpslash.sgml 19 May 2002 14:40:10 -0000 1.24 *************** *** 297,301 **** <item>php version <item>include_path ! <item>auto_prepend_file <item>gpc_magic_quotes </itemize> --- 297,301 ---- <item>php version <item>include_path ! <item>auto_prepend <item>gpc_magic_quotes </itemize> |
From: Joe S. <joe...@us...> - 2002-05-18 15:32:40
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv12340/phpslash-ft Modified Files: CHANGES Log Message: corrected slasDB debug variable Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.478 retrieving revision 1.479 diff -C2 -d -r1.478 -r1.479 *** CHANGES 18 May 2002 15:29:10 -0000 1.478 --- CHANGES 18 May 2002 15:32:37 -0000 1.479 *************** *** 13,17 **** 9 - Removal of something (kill -9 :) ! 2002-May-15 10:00PM CDT Joe Stewart <joe...@us...> [B] - slashDB.class - corrected debug variable. --- 13,17 ---- 9 - Removal of something (kill -9 :) ! 2002-May-18 10:30AM CDT Joe Stewart <joe...@us...> [B] - slashDB.class - corrected debug variable. |
From: Joe S. <joe...@us...> - 2002-05-18 15:29:13
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv9892/phpslash-ft/class Modified Files: slashDB.class Log Message: corrected slasDB debug variable Index: slashDB.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/slashDB.class,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** slashDB.class 25 Mar 2002 16:45:52 -0000 1.3 --- slashDB.class 18 May 2002 15:29:10 -0000 1.4 *************** *** 46,50 **** function halt($msg) { ! if($_PSL['debug']) { printf("</td></table></CENTER><b>Database error:</b><PRE>%s</PRE><br>\n", $msg); printf("<b>MySQL Error</b>: %s (%s)<br>\n", $this->Errno, $this->Error); --- 46,50 ---- function halt($msg) { ! if($this->psl['debug']) { printf("</td></table></CENTER><b>Database error:</b><PRE>%s</PRE><br>\n", $msg); printf("<b>MySQL Error</b>: %s (%s)<br>\n", $this->Errno, $this->Error); |
From: Joe S. <joe...@us...> - 2002-05-18 15:29:13
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv9892/phpslash-ft Modified Files: CHANGES Log Message: corrected slasDB debug variable Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.477 retrieving revision 1.478 diff -C2 -d -r1.477 -r1.478 *** CHANGES 15 May 2002 15:18:51 -0000 1.477 --- CHANGES 18 May 2002 15:29:10 -0000 1.478 *************** *** 14,17 **** --- 14,20 ---- 2002-May-15 10:00PM CDT Joe Stewart <joe...@us...> + [B] - slashDB.class - corrected debug variable. + + 2002-May-15 10:00PM CDT Joe Stewart <joe...@us...> [B] - Variable.class - updated to a working state but still unused. |
From: Joe S. <joe...@us...> - 2002-05-15 15:18:54
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv22366a/phpslash-ft/class Modified Files: Variable.class Log Message: psl -> Variable.class Index: Variable.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Variable.class,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Variable.class 6 Feb 2002 19:55:46 -0000 1.3 --- Variable.class 15 May 2002 15:18:51 -0000 1.4 *************** *** 14,18 **** var $var_array; var $db; ! /* * CONSTRUCTORS --- 14,19 ---- var $var_array; var $db; ! var $psl; ! /* * CONSTRUCTORS *************** *** 23,31 **** $this->var_array['rootdir'] = $_PSL['rooturl']; $this->var_array['basedir'] = $_PSL['basedir']; ! $this->db = new slashDB; /* Templates */ ! $this->variable_templ = new Template($templatedir); $this->variable_templ->debug = 0; $this->variable_templ->set_file(array( --- 24,32 ---- $this->var_array['rootdir'] = $_PSL['rooturl']; $this->var_array['basedir'] = $_PSL['basedir']; ! $this->psl = $_PSL; $this->db = new slashDB; /* Templates */ ! $this->variable_templ = new Template($this->psl['templatedir']); $this->variable_templ->debug = 0; $this->variable_templ->set_file(array( *************** *** 86,94 **** function listVariable() { - global $PHP_SELF,$amp; - - /* Get preferences */ - $basedir = $this->getvar("basedir"); - $q = "SELECT * FROM psl_variable --- 87,90 ---- *************** *** 104,112 **** $variable_id = $this->db->Record[variable_id]; ! $admin = "<A HREF=$PHP_SELF?submit=edit&variable_id=$variable_id>(Edit)</A>"; ! $admin .= "<A HREF=$PHP_SELF?submit=delete&variable_id=$variable_id>(Delete)</A>"; $this->variable_templ->set_var(array( ! ACTION_URL => $PHP_SELF, VARIABLE_ID => $variable_id, VARIABLE_NAME => $this->db->Record[variable_name], --- 100,108 ---- $variable_id = $this->db->Record[variable_id]; ! $admin = "<A HREF=$this->psl['phpself']?submit=edit&variable_id=$variable_id>(Edit)</A>"; ! $admin .= "<A HREF=$this->psl['phpself']?submit=delete&variable_id=$variable_id>(Delete)</A>"; $this->variable_templ->set_var(array( ! ACTION_URL => $this->psl['phpself'], VARIABLE_ID => $variable_id, VARIABLE_NAME => $this->db->Record[variable_name], *************** *** 147,169 **** } - /* addslashes for the (') AND str_replace for the (") */ ! $ary[description] = addslashes(str_replace('\"',""",stripslashes($ary["description"]))); ! $ary[variable_name] = addslashes(str_replace('\"',""",stripslashes($ary["variable_name"]))); ! $ary[variable_name] = str_replace(" "," ",stripslashes($ary["variable_name"])); /* if a record exists, then we update, else we insert a new variable! */ ! ! $this->db->query("SELECT variable_id ! FROM psl_variable ! WHERE variable_id = '$ary[variable_id]'"); ! if ($this->db->next_record()) { ! $q = "UPDATE psl_variable ! SET variable_name = '$ary[variable_name]', ! description = '$ary[description]', ! value = '$ary[value]', ! variable_group = '$ary[group]' ! WHERE variable_id = '$ary[variable_id]'"; } else { --- 143,166 ---- } /* addslashes for the (') AND str_replace for the (") */ ! $ary[description] = clean($ary["description"]); ! $ary[variable_name] = clean($ary["variable_name"]); ! $ary[variable_name] = clean($ary["variable_name"]); /* if a record exists, then we update, else we insert a new variable! */ ! ! if (isset($ary[variable_id])) { ! $this->db->query("SELECT variable_id ! FROM psl_variable ! WHERE variable_id = '$ary[variable_id]'"); ! if ($this->db->next_record()) { ! $q = "UPDATE psl_variable ! SET variable_name = '$ary[variable_name]', ! description = '$ary[description]', ! value = '$ary[value]', ! variable_group = '$ary[group]' ! WHERE variable_id = '$ary[variable_id]'"; ! } } else { |
From: Joe S. <joe...@us...> - 2002-05-15 15:18:54
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv22366a/phpslash-ft Modified Files: CHANGES Log Message: psl -> Variable.class Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.476 retrieving revision 1.477 diff -C2 -d -r1.476 -r1.477 *** CHANGES 13 May 2002 18:43:23 -0000 1.476 --- CHANGES 15 May 2002 15:18:51 -0000 1.477 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-May-15 10:00PM CDT Joe Stewart <joe...@us...> + [B] - Variable.class - updated to a working state but still unused. + 2002-May-13 1:30PM CDT Joe Stewart <joe...@us...> [B] - comment.php3, Comment.class - "Re:" is not longer appended to a comment |
From: Joe S. <joe...@us...> - 2002-05-13 19:38:05
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv22872/phpslash-ft/class Modified Files: Comment.class Log Message: bugfix [ 554671 ] Problem with Re:'s Index: Comment.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Comment.class,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Comment.class 13 May 2002 18:43:23 -0000 1.26 --- Comment.class 13 May 2002 19:05:37 -0000 1.27 *************** *** 555,559 **** if ($ary['subject'] == "") { $ary['subject'] = pslgetText("No Subject Given"); ! } elseif( !preg_match("/Re\:/i",$ary['subject'])) { $ary['subject'] = pslgetText("Re: ") . $ary[subject]; } --- 555,559 ---- if ($ary['subject'] == "") { $ary['subject'] = pslgetText("No Subject Given"); ! } elseif( (!preg_match("/Re\:/i",$ary['subject'])) && ($ary['parent_id'])) { $ary['subject'] = pslgetText("Re: ") . $ary[subject]; } |