phpslash-commit Mailing List for phpSlash (Page 95)
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-03-20 03:16:38
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv30727/phpslash-ft/public_html/templates/en/default Modified Files: backendJS.tpl Log Message: backendJS.tpl - corrected image src Index: backendJS.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendJS.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** backendJS.tpl 20 Mar 2002 01:44:09 -0000 1.3 --- backendJS.tpl 20 Mar 2002 03:16:35 -0000 1.4 *************** *** 3,5 **** document.write('<TR><TD class="NEWSITEM"><A HREF="{ROOTDIR}/article.php3?story_id={STORY_ID}" TARGET="_self">{TITLE}</A> {INTRO_TEXT}</TD></TR>'); <!-- END each_story --> ! document.write('<TR><TD class="NEWSCOMMENT" align=right nowrap><small><A HREF="http://{SITE_HOST}{ROOTDIR}"><IMG border=0 SRC="{IMAGEDIR}/topics/topicphpslash.gif" width=100 height=40 align=left></A></TD></TR><TR><TD class="NEWSCOMMENT" align=right nowrap>Powered by <A HREF="http://{SITE_HOST}{ROOTDIR}">{SITE_NAME}</A></small></TD></TR></table>'); --- 3,5 ---- document.write('<TR><TD class="NEWSITEM"><A HREF="{ROOTDIR}/article.php3?story_id={STORY_ID}" TARGET="_self">{TITLE}</A> {INTRO_TEXT}</TD></TR>'); <!-- END each_story --> ! document.write('<TR><TD class="NEWSCOMMENT" align=right nowrap><small><A HREF="{ROOTDIR}"><IMG border=0 SRC="{IMAGEDIR}/topics/topicphpslash.gif" width=100 height=40 align=left></A></TD></TR><TR><TD class="NEWSCOMMENT" align=right nowrap>Powered by <A HREF="{ROOTDIR}">{SITE_NAME}</A></small></TD></TR></table>'); |
From: Joe S. <joe...@us...> - 2002-03-20 03:16:38
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv30727/phpslash-ft Modified Files: CHANGES Log Message: backendJS.tpl - corrected image src Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.438 retrieving revision 1.439 diff -C2 -d -r1.438 -r1.439 *** CHANGES 20 Mar 2002 01:44:08 -0000 1.438 --- CHANGES 20 Mar 2002 03:16:35 -0000 1.439 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 9:00PM CST Joe Stewart <joe...@us...> + [T] - backendJS.tpl - corrected image src. + 2002-Mar-19 7:00PM CST Joe Stewart <joe...@us...> [T] - backendJS.tpl - removed SCRIPT tags. |
From: Joe S. <joe...@us...> - 2002-03-20 01:44:12
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv11841/phpslash-ft/public_html/templates/en/default Modified Files: backendJS.tpl Log Message: backend tpl tweaks Index: backendJS.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendJS.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** backendJS.tpl 20 Mar 2002 00:12:47 -0000 1.2 --- backendJS.tpl 20 Mar 2002 01:44:09 -0000 1.3 *************** *** 1,3 **** - <SCRIPT LANGUAGE="JavaScript"> document.write('<table><TR><TH class="NEWSTITLE"><A HREF="{ROOTDIR}/">{SITE_NAME}</A></TH></TR>'); <!-- BEGIN each_story --> --- 1,2 ---- *************** *** 5,7 **** <!-- END each_story --> document.write('<TR><TD class="NEWSCOMMENT" align=right nowrap><small><A HREF="http://{SITE_HOST}{ROOTDIR}"><IMG border=0 SRC="{IMAGEDIR}/topics/topicphpslash.gif" width=100 height=40 align=left></A></TD></TR><TR><TD class="NEWSCOMMENT" align=right nowrap>Powered by <A HREF="http://{SITE_HOST}{ROOTDIR}">{SITE_NAME}</A></small></TD></TR></table>'); - </script> --- 4,5 ---- |
From: Joe S. <joe...@us...> - 2002-03-20 01:44:12
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv11841/phpslash-ft Modified Files: CHANGES Log Message: backend tpl tweaks Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.437 retrieving revision 1.438 diff -C2 -d -r1.437 -r1.438 *** CHANGES 20 Mar 2002 00:12:47 -0000 1.437 --- CHANGES 20 Mar 2002 01:44:08 -0000 1.438 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 7:00PM CST Joe Stewart <joe...@us...> + [T] - backendJS.tpl - removed SCRIPT tags. + 2002-Mar-19 6:00PM CST Joe Stewart <joe...@us...> [T] - backendJS.tpl, backendJSData.tpl, backendHTML.tpl - url tweaks. |
From: Joe S. <joe...@us...> - 2002-03-20 00:12:50
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv18948/phpslash-ft/public_html/templates/en/default Modified Files: backendJS.tpl backendJSData.tpl backendHTML.tpl Log Message: backend tpl tweaks Index: backendJS.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendJS.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** backendJS.tpl 2 May 2001 21:28:12 -0000 1.1 --- backendJS.tpl 20 Mar 2002 00:12:47 -0000 1.2 *************** *** 1,7 **** <SCRIPT LANGUAGE="JavaScript"> ! document.write('<table><TR><TH class="NEWSTITLE"><A HREF="http://{SITE_HOST}{ROOTDIR}">{SITE_NAME}</A></TH></TR>'); <!-- BEGIN each_story --> ! document.write('<TR><TD class="NEWSITEM"><A HREF="http://{SITE_HOST}{ROOTDIR}" TARGET="_self">{TITLE}</A> {INTRO_TEXT}</TD></TR>'); <!-- END each_story --> ! document.write('<TR><TD class="NEWSCOMMENT" align=right nowrap><small><A HREF="http://{SITE_HOST}{ROOTDIR}"><IMG border=0 SRC="{IMAGEDIR}/topics/topicsphpslash.gif" width=160 height=59 align=right></A>Powered by <A HREF="http://{SITE_HOST}{ROOTDIR}">{SITE_NAME}</A></small></TD></TR></table>'); </script> --- 1,7 ---- <SCRIPT LANGUAGE="JavaScript"> ! document.write('<table><TR><TH class="NEWSTITLE"><A HREF="{ROOTDIR}/">{SITE_NAME}</A></TH></TR>'); <!-- BEGIN each_story --> ! document.write('<TR><TD class="NEWSITEM"><A HREF="{ROOTDIR}/article.php3?story_id={STORY_ID}" TARGET="_self">{TITLE}</A> {INTRO_TEXT}</TD></TR>'); <!-- END each_story --> ! document.write('<TR><TD class="NEWSCOMMENT" align=right nowrap><small><A HREF="http://{SITE_HOST}{ROOTDIR}"><IMG border=0 SRC="{IMAGEDIR}/topics/topicphpslash.gif" width=100 height=40 align=left></A></TD></TR><TR><TD class="NEWSCOMMENT" align=right nowrap>Powered by <A HREF="http://{SITE_HOST}{ROOTDIR}">{SITE_NAME}</A></small></TD></TR></table>'); </script> Index: backendJSData.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendJSData.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** backendJSData.tpl 2 May 2001 21:28:12 -0000 1.1 --- backendJSData.tpl 20 Mar 2002 00:12:47 -0000 1.2 *************** *** 10,14 **** <!-- BEGIN each_story --> newsItemTitle[{IDX}] = '{TITLE}'; ! newsItemURL[{IDX}] = 'http://{SITE_HOST}{ROOTDIR}/article.php3?story_id={STORY_ID}'; newsItemDesc[{IDX}] = '{INTRO_TEXT}'; <!-- END each_story --> --- 10,14 ---- <!-- BEGIN each_story --> newsItemTitle[{IDX}] = '{TITLE}'; ! newsItemURL[{IDX}] = '{ROOTDIR}/article.php3?story_id={STORY_ID}'; newsItemDesc[{IDX}] = '{INTRO_TEXT}'; <!-- END each_story --> Index: backendHTML.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendHTML.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** backendHTML.tpl 2 May 2001 21:28:12 -0000 1.1 --- backendHTML.tpl 20 Mar 2002 00:12:47 -0000 1.2 *************** *** 7,11 **** <tr bgcolor="#3F4469" align="LEFT"> <td valign=top> ! <img src="{IMAGEDIR}/layout/slc.gif" width=13 height=16 align=top alt=""><a href="http://{SITE_HOST}{ROOTDIR}" target="{TARGET}"><font size="4" color="white" face="arial,helvetica"><b>{SITE_NAME}</b></font></a></td> </tr> <tr> --- 7,11 ---- <tr bgcolor="#3F4469" align="LEFT"> <td valign=top> ! <img src="{IMAGEDIR}/layout/slc.gif" width=13 height=16 align=top alt=""><a href="{ROOTDIR}" target="{TARGET}"><font size="4" color="white" face="arial,helvetica"><b>{SITE_NAME}</b></font></a></td> </tr> <tr> |
From: Joe S. <joe...@us...> - 2002-03-20 00:12:50
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv18948/phpslash-ft Modified Files: CHANGES Log Message: backend tpl tweaks Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.436 retrieving revision 1.437 diff -C2 -d -r1.436 -r1.437 *** CHANGES 19 Mar 2002 22:39:45 -0000 1.436 --- CHANGES 20 Mar 2002 00:12:47 -0000 1.437 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 6:00PM CST Joe Stewart <joe...@us...> + [T] - backendJS.tpl, backendJSData.tpl, backendHTML.tpl - url tweaks. + 2002-Mar-19 5:28PM EST nathan hruby <na...@ds...> [D] - Added some documentation for the backend module |
From: nathan h. <nh...@us...> - 2002-03-19 22:39:48
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv24492 Modified Files: CHANGES Log Message: add backend documentation Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.435 retrieving revision 1.436 diff -C2 -d -r1.435 -r1.436 *** CHANGES 19 Mar 2002 21:59:11 -0000 1.435 --- CHANGES 19 Mar 2002 22:39:45 -0000 1.436 *************** *** 13,37 **** 9 - Removal of something (kill -9 :) ! 2002-Mar-19 4:49PM EST nathan hruby <nh...@ar...> [B] - fix typo Joe spotted in backend.php3 ! 2002-Mar-19 12:58PM EST nathan hruby <nh...@ar...> [W] - More tweaking / cleaning for backend.php3. RSS-1.0 IS NOW THE DEAFULT! ! 2002-Mar-19 12:16PM EST nathan hruby <nh...@ar...> [W] - backend.php3 cleanups, make test.php3 use $_PSL['version'] ! 2002-Mar-19 11:45AM EST nathan hruby <nh...@ar...> [T] - Nixed IDX from RSS 1.0 tempalate and RSS 1.0 backend.php3 stuff Those are not well formed URI's ! 2002-Mar-19 11:27AM EST nathan hruby <nh...@ar...> [T] - backendRSS1.tpl - added {DESCRIPTION} ! 2002-Mar-19 11:24AM EST nathan hruby <nh...@ar...> [W] - Slight Cleanup of config.php3. Whew it's a mess ! 2002-Mar-19 11:10AM EST nathan hruby <nh...@ar...> [BT] - Fixed backend.php3 and backendRSS1.tpl files to be RSS-1.0 compilant. Also had to change $psl_version to $_PSL['version'] for --- 13,42 ---- 9 - Removal of something (kill -9 :) ! 2002-Mar-19 5:28PM EST nathan hruby <na...@ds...> ! [D] - Added some documentation for the backend module ! [B] - Fixed me putting the wrong email address in my CHNAGES entries ! today. Doh! ! ! 2002-Mar-19 4:49PM EST nathan hruby <na...@ds...> [B] - fix typo Joe spotted in backend.php3 ! 2002-Mar-19 12:58PM EST nathan hruby <na...@ds...> [W] - More tweaking / cleaning for backend.php3. RSS-1.0 IS NOW THE DEAFULT! ! 2002-Mar-19 12:16PM EST nathan hruby <na...@ds...> [W] - backend.php3 cleanups, make test.php3 use $_PSL['version'] ! 2002-Mar-19 11:45AM EST nathan hruby <na...@ds...> [T] - Nixed IDX from RSS 1.0 tempalate and RSS 1.0 backend.php3 stuff Those are not well formed URI's ! 2002-Mar-19 11:27AM EST nathan hruby <na...@ds...> [T] - backendRSS1.tpl - added {DESCRIPTION} ! 2002-Mar-19 11:24AM EST nathan hruby <na...@ds...> [W] - Slight Cleanup of config.php3. Whew it's a mess ! 2002-Mar-19 11:10AM EST nathan hruby <na...@ds...> [BT] - Fixed backend.php3 and backendRSS1.tpl files to be RSS-1.0 compilant. Also had to change $psl_version to $_PSL['version'] for |
From: nathan h. <nh...@us...> - 2002-03-19 22:39:48
|
Update of /cvsroot/phpslash/phpslash-ft/doc/html In directory usw-pr-cvs1:/tmp/cvs-serv24492/doc/html Modified Files: phpslash.sgml Log Message: add backend documentation Index: phpslash.sgml =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/doc/html/phpslash.sgml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** phpslash.sgml 18 Mar 2002 16:11:22 -0000 1.20 --- phpslash.sgml 19 Mar 2002 22:39:45 -0000 1.21 *************** *** 16,20 **** <author> <url url="http://phpslash.sourceforge.net/" name="The phpSlash Group"> ! <date>v0.3, November 23, 2001 <abstract> --- 16,20 ---- <author> <url url="http://phpslash.sourceforge.net/" name="The phpSlash Group"> ! <date>v0.4, March 19, 2002 <abstract> *************** *** 974,977 **** --- 974,1051 ---- <sect1>Glossary <p> Add / edit entries in the glossary + + <sect1>Backend Module + <p> The backend module is what exports RSS, OML, Javascript and plaintext + version of your headlines to the rest of the world. You should take a + look at it so the community and more importnantly, your readers, can get + your site data anywhere. + + <sect2>Seting up + <p> Make sure you edit the $metatags, site_owner, Site_title and + site_slogan entries in config.php3. These are used by the export module. + Once done you should probable want to edit the backend template files to + change the default phpslash logo to your own. (Note this should be a + small logo about 40 pixels tall by 100 pixels wide or so.) This will be + automated in the next release. Be sure not to chnage any other parts of + the files, as the RSS versions and OML versions depend on the XML being + well-formated. + + <sect2>Giving out your information + <p> There are a lot of different formats out there, the phpslash backend + exporter tries to be as flexible as possible in terms of the info it gives + out and the formats it gives it out in. Options for specfic information + and formats are given in the GET query string for backend.php3. The + default is for backend to give out a RSS-1.0 document containting the 15 + most recent stories psoted to your site. Other options as as follows and + should be handed to the backend script like: + backend.php3?option1=value1&option2=value2 + <descrip> + <tag/section/ The name of the section you would like your feed to display + (Default is to have no filter) + <tag/topic/ The name of the topic you would liek your feed to display + (Default is to have no filter) + <tag/author/ The name of the author author your would like your feed to display + (Default is to have no filter) + <tag/date/ The starting date in "to_days" format + (default is now) + <tag/start/ The "starting" point + (default is the first entry) + <tag/max/ The maximum number of stories returned + (default is 15) + <tag/order/ Order by time, hits, title, + (default is to order by time) + <tag/asc/ Ascending or Descending Ordering + (defualt id Decending) + <tag/query/ A urlencoded text string to search the stories with + (default is none) + <tag/view/ The export format desired. RSS-1.0 is the default + <itemize> + <item>rss91 - RSS 0.91 + <item>rss92 - RSS 0.92 + <item>rss1 - RSS 1.0 - default + <item>html - fancybox + <item>txt - simple text output of title and intro + <item>block - text delimited by %% + <item>js - javascript + <item>jsdata - javascript array + <item>mozilla - for adding to Netscape 6 My Sidebar + <item>opml - OPML (http://radio.userland.com) + <item>wml - WML - for WAP phones + </itemize> + <tag/d/ The description format. the description is the into text + possibly with some prefixed text. (Default is jsut the + into_text, no prefix) + <itemize> + <item>d - include description + <item>s - site name + <item>l - site name plus description + <item>0 - empty description + </itemize> + </descrip> + <sect2> Making your site known. + <p> Once you know what your backend string will look like (or at least + what it can do) you're ready to submit your feeds to numberious places on + the 'net. Once place to start is <url url="http://www.syndic8.com" + name="syndic8.com"> <!-- START SECTION: Templates --> |
From: nathan h. <nh...@us...> - 2002-03-19 21:59:14
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv11839/public_html Modified Files: backend.php3 Log Message: typo fix Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** backend.php3 19 Mar 2002 18:00:09 -0000 1.27 --- backend.php3 19 Mar 2002 21:59:11 -0000 1.28 *************** *** 145,149 **** // Process the "each_story" block in the template $template->set_block("storiesbackend", "each_story", "stories"); ! for ($i = 0 ; $i < count(stories); $i++) { switch( $ary['d']) { case '0': --- 145,149 ---- // Process the "each_story" block in the template $template->set_block("storiesbackend", "each_story", "stories"); ! for ($i = 0 ; $i < count($stories); $i++) { switch( $ary['d']) { case '0': |
From: nathan h. <nh...@us...> - 2002-03-19 21:59:14
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv11839 Modified Files: CHANGES Log Message: typo fix Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.434 retrieving revision 1.435 diff -C2 -d -r1.434 -r1.435 *** CHANGES 19 Mar 2002 18:00:08 -0000 1.434 --- CHANGES 19 Mar 2002 21:59:11 -0000 1.435 *************** *** 13,21 **** 9 - Removal of something (kill -9 :) ! 2002-Mar-19 12:58AM EST nathan hruby <nh...@ar...> [W] - More tweaking / cleaning for backend.php3. RSS-1.0 IS NOW THE DEAFULT! ! 2002-Mar-19 12:16AM EST nathan hruby <nh...@ar...> [W] - backend.php3 cleanups, make test.php3 use $_PSL['version'] --- 13,24 ---- 9 - Removal of something (kill -9 :) ! 2002-Mar-19 4:49PM EST nathan hruby <nh...@ar...> ! [B] - fix typo Joe spotted in backend.php3 ! ! 2002-Mar-19 12:58PM EST nathan hruby <nh...@ar...> [W] - More tweaking / cleaning for backend.php3. RSS-1.0 IS NOW THE DEAFULT! ! 2002-Mar-19 12:16PM EST nathan hruby <nh...@ar...> [W] - backend.php3 cleanups, make test.php3 use $_PSL['version'] |
From: nathan h. <nh...@us...> - 2002-03-19 18:00:12
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv22403/public_html Modified Files: backend.php3 Log Message: more backend tweaks Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** backend.php3 19 Mar 2002 17:17:14 -0000 1.26 --- backend.php3 19 Mar 2002 18:00:09 -0000 1.27 *************** *** 4,46 **** /* $Id$ */ ! /* TODO: add ini_set() call to turn all error reporting off unless $_PSL['debug'] ! * is set. Errors from php will corrupt the XML format and null the feed. ! */ ! ! /* pass the query in the "Source Url" form field in the format of: ! * ! * option1=setting1&option2=setting2 ! ! * Available query options: ! * ! * section = section name ! * topic = topic name ! * author = author name ! * date = starting date in "to_days" format ! * start = "starting" point [0] ! * max = maximum returned [15] ! * order = [time], hits, title, etc. ! * asc = ASC, [DESC] ( Ascending or Descending) ! * query = urlencoded text string ! * ! * view = different export formats ! rss91 - RSS 0.91 ! rss92 - RSS 0.92 ! [rss1] - RSS 1.0 - default ! html - fancybox ! txt - simple text output of title and intro ! block - text delimited by %% ! js - javascript ! jsdata - javascript array ! mozilla - for adding to Netscape 6 My Sidebar ! opml - OPML (http://radio.userland.com) ! wml - WML - for WAP phones ! ! // TODO: nh asks: Do we really need this? ! * d = description - this is the intro text. ! [d] - include description - default ! [s] - site name ! [l] - site name plus description ! [0] - empty description Some of the template views and options are based on those contained in HPE --- 4,41 ---- /* $Id$ */ ! /* ! * pass the query in the "Source Url" form field in the format of: ! * ! * option1=setting1&option2=setting2 ! * Available query options: ! * ! * section = section name ! * topic = topic name ! * author = author name ! * date = starting date in "to_days" format ! * start = "starting" point [0] ! * max = maximum returned [15] ! * order = [time], hits, title, etc. ! * asc = ASC, [DESC] ( Ascending or Descending) ! * query = urlencoded text string ! * ! * view = different export formats ! rss91 - RSS 0.91 ! rss92 - RSS 0.92 ! [rss1] - RSS 1.0 - default ! html - fancybox ! txt - simple text output of title and intro ! block - text delimited by %% ! js - javascript ! jsdata - javascript array ! mozilla - for adding to Netscape 6 My Sidebar ! opml - OPML (http://radio.userland.com) ! wml - WML - for WAP phones ! * d = description - this is the intro text. ! // TODO: nh asks: Do we really need this? ! [d] - include description - default ! [s] - site name ! [l] - site name plus description ! [0] - empty description Some of the template views and options are based on those contained in HPE *************** *** 48,84 **** */ ! $pagetitle = "Backend"; // The name to be displayed in the header ! $xsiteobject = "Backend"; // This Defines The META Tag Object Type ! require("config.php3"); ! // Objects ! // $poll = new Poll; $story = new Story; - $db = new slashDB; - - // Start of Page ! /* parse cmd line variables into array */ while ( list($key, $val) = each($HTTP_GET_VARS )) { if( $val != "") { ! $ary[$key] = $val; } } - // Check to make sure that 'max' is set and is an integer - if(empty($ary['max'] && !(is_int($ary['max']))) { - $ary['max']= 15; - } - // Get those stories $stories = $story->extractStories($ary); - // Update 'max' to represent what $story gave us - if( count($stories) < $ary['max']) { - $ary['max'] = count($stories); - } - // What to build for output switch( $ary['view']) { --- 43,69 ---- */ ! // Get our config require("config.php3"); ! // Make sure we don't propagate errors out the feed :) ! if ($_PSL['debug']) { ! ini_set('error_reporting', 'E_ALL'); ! } else { ! ini_set('error_reporting', 'E_NONE'); ! } ! // Object Creation $story = new Story; ! // Parse cmd line variables into array while ( list($key, $val) = each($HTTP_GET_VARS )) { if( $val != "") { ! $ary[$key] = addslashes($val); } } // Get those stories $stories = $story->extractStories($ary); // What to build for output switch( $ary['view']) { *************** *** 131,149 **** $date = date("H:i m:d:y T"); ! // TODO: Kill this? ! // Say what? We never define more than one $viewtpl ans setfile() ! // understands strings vs. arrays ! $template_ary = array( ! 'storiesbackend' => $viewtpl ! ); ! ! // Create the template object, and set some options $template = new Template($_PSL['templatedir']); $template->debug = 0; - $template->set_file($template_ary); $template->set_unknowns('remove'); ! $template->halt_on_error = 'report'; ! // Start giving placeholders $template->set_var(array( 'SITE_NAME' => $_PSL['site_name'], --- 116,131 ---- $date = date("H:i m:d:y T"); ! // Create the template object, and set some options for silent running $template = new Template($_PSL['templatedir']); $template->debug = 0; $template->set_unknowns('remove'); ! $template->halt_on_error = 'no'; ! // Set the template file we need to use ! $template->set_file('storiesbackend', $viewtpl); ! ! // Start giving placeholders, these aren't parsed till later so ! // placeholders that crop up during the following set_block loops ! // will be parsed with these variables. $template->set_var(array( 'SITE_NAME' => $_PSL['site_name'], *************** *** 156,165 **** 'ROOTDIR' => $_PSL['rooturl'], 'DATE' => $date, ! 'IMAGEDIR' => $_PSL['imageurl'] )); // Process the "each_story" block in the template $template->set_block("storiesbackend", "each_story", "stories"); ! for ($i = 0 ; $i < $ary['max']; $i++) { switch( $ary['d']) { case '0': --- 138,149 ---- 'ROOTDIR' => $_PSL['rooturl'], 'DATE' => $date, ! 'IMAGEDIR' => $_PSL['imageurl'], ! 'TARGET' => $ary['target'], ! 'COUNT' => count($stories) )); // Process the "each_story" block in the template $template->set_block("storiesbackend", "each_story", "stories"); ! for ($i = 0 ; $i < count(stories); $i++) { switch( $ary['d']) { case '0': *************** *** 186,191 **** 'TITLE' => htmlspecialchars($stories[$i]['title']), 'INTRO_TEXT' => $description, - 'TARGET' => $ary['target'], - 'COUNT' => $ary['max'], 'IDX' => $i, 'DATEF' => $stories[$i]['datef'] --- 170,173 ---- |
From: nathan h. <nh...@us...> - 2002-03-19 18:00:12
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv22403 Modified Files: CHANGES Log Message: more backend tweaks Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.433 retrieving revision 1.434 diff -C2 -d -r1.433 -r1.434 *** CHANGES 19 Mar 2002 17:17:14 -0000 1.433 --- CHANGES 19 Mar 2002 18:00:08 -0000 1.434 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 12:58AM EST nathan hruby <nh...@ar...> + [W] - More tweaking / cleaning for backend.php3. + RSS-1.0 IS NOW THE DEAFULT! + 2002-Mar-19 12:16AM EST nathan hruby <nh...@ar...> [W] - backend.php3 cleanups, make test.php3 use $_PSL['version'] |
From: nathan h. <nh...@us...> - 2002-03-19 17:17:23
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv7820/public_html/templates/en/default Modified Files: backendRSS1.tpl Log Message: backend cleanups Index: backendRSS1.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendRSS1.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** backendRSS1.tpl 19 Mar 2002 16:28:38 -0000 1.5 --- backendRSS1.tpl 19 Mar 2002 17:17:15 -0000 1.6 *************** *** 24,28 **** <rdf:Seq> <!-- BEGIN each_item --> ! <rdf:li resource="{ROOTDIR}/article.php3?story_id={STORY_ID}" position="{IDX}"/> <!-- END each_item --> </rdf:Seq> --- 24,28 ---- <rdf:Seq> <!-- BEGIN each_item --> ! <rdf:li resource="{ROOTDIR}/article.php3?story_id={STORY_ID}"/> <!-- END each_item --> </rdf:Seq> *************** *** 40,44 **** <!-- BEGIN each_story --> ! <item rdf:about="{ROOTDIR}/article.php3?story_id={STORY_ID}" position="{IDX}"> <title>{TITLE}</title> <link>{ROOTDIR}/article.php3?story_id={STORY_ID}</link> --- 40,44 ---- <!-- BEGIN each_story --> ! <item rdf:about="{ROOTDIR}/article.php3?story_id={STORY_ID}"> <title>{TITLE}</title> <link>{ROOTDIR}/article.php3?story_id={STORY_ID}</link> |
From: nathan h. <nh...@us...> - 2002-03-19 17:17:21
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv7820/public_html Modified Files: backend.php3 test.php3 Log Message: backend cleanups Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** backend.php3 19 Mar 2002 16:48:06 -0000 1.25 --- backend.php3 19 Mar 2002 17:17:14 -0000 1.26 *************** *** 25,31 **** * * view = different export formats ! [rss91] - RSS 0.91 - default rss92 - RSS 0.92 ! rss1 - RSS 1.0 html - fancybox txt - simple text output of title and intro --- 25,31 ---- * * view = different export formats ! rss91 - RSS 0.91 rss92 - RSS 0.92 ! [rss1] - RSS 1.0 - default html - fancybox txt - simple text output of title and intro *************** *** 48,54 **** */ ! // TODO: Remove these ! $pagetitle ="Backend"; # The name to be displayed in the header ! $xsiteobject = "Backend"; # This Defines The META Tag Object Type require("config.php3"); --- 48,53 ---- */ ! $pagetitle = "Backend"; // The name to be displayed in the header ! $xsiteobject = "Backend"; // This Defines The META Tag Object Type require("config.php3"); *************** *** 69,137 **** } ! // TODO: Make this check max to make sure it's an integer ! if(empty($ary['max'])) { $ary['max']= 15; } $stories = $story->extractStories($ary); switch( $ary['view']) { ! case "js": ! $viewtpl = "backendJS.tpl"; ! break; ! case "jsdata": ! $viewtpl = "backendJSData.tpl"; break; ! case "html": ! $viewtpl = "backendHTML.tpl"; break; ! case "txt": ! $viewtpl = "backendTxt.tpl"; break; ! case "block": ! $viewtpl = "backendBlock.tpl"; break; ! case "rss92": ! $viewtpl = "backendRSS92.tpl"; break; ! case "rss1": ! $viewtpl = "backendRSS1.tpl"; ! // RSS-1.0 needs a extra listing. ! $link_ary = array(); break; ! case "opml": ! $viewtpl = "backendOpml.tpl"; break; ! case "wml": ! $viewtpl = "backendWml.tpl"; break; ! case "mozilla": ! $viewtpl = "backendMozilla.tpl"; ! $target = "_content"; break; ! ! case "rss": ! case "rss91": default: ! $viewtpl = "backendRSS91.tpl"; break; } ! if( empty($ary['target'])) { ! $ary['target'] = "_self"; } $date = date("H:i m:d:y T"); $template_ary = array( ! "storiesbackend" => $viewtpl ); ! $template = new Template($_PSL['templatedir']); $template->debug = 0; $template->set_file($template_ary); ! // $template->set_unknowns("remove"); ! $template->halt_on_error = "report"; $template->set_var(array( 'SITE_NAME' => $_PSL['site_name'], --- 68,149 ---- } ! // Check to make sure that 'max' is set and is an integer ! if(empty($ary['max'] && !(is_int($ary['max']))) { $ary['max']= 15; } + // Get those stories $stories = $story->extractStories($ary); + // Update 'max' to represent what $story gave us + if( count($stories) < $ary['max']) { + $ary['max'] = count($stories); + } + + // What to build for output switch( $ary['view']) { ! case 'block': ! $viewtpl = 'backendBlock.tpl'; break; ! case 'html': ! $viewtpl = 'backendHTML.tpl'; break; ! case 'js': ! $viewtpl = 'backendJS.tpl'; break; ! case 'jsdata': ! $viewtpl = 'backendJSData.tpl'; break; ! case 'mozilla': ! $viewtpl = 'backendMozilla.tpl'; ! $target = '_content'; ! break; ! case 'opml': ! $viewtpl = 'backendOpml.tpl'; break; ! case 'rss91': ! $viewtpl = 'backendRSS91.tpl'; break; ! case 'rss92': ! $viewtpl = 'backendRSS92.tpl'; break; ! case 'txt': ! $viewtpl = 'backendTxt.tpl'; break; ! case 'wml': ! $viewtpl = 'backendWml.tpl'; break; ! case 'rss': ! case 'rss1': default: ! $viewtpl = 'backendRSS1.tpl'; ! // RSS-1.0 needs a extra listing. ! $link_ary = array(); break; } ! // Make a target (only used by JS and JSdata) ! if(empty($ary['target'])) { ! $ary['target'] = '_self'; } + + // The date.. $date = date("H:i m:d:y T"); + // TODO: Kill this? + // Say what? We never define more than one $viewtpl ans setfile() + // understands strings vs. arrays $template_ary = array( ! 'storiesbackend' => $viewtpl ); ! // Create the template object, and set some options $template = new Template($_PSL['templatedir']); $template->debug = 0; $template->set_file($template_ary); ! $template->set_unknowns('remove'); ! $template->halt_on_error = 'report'; + // Start giving placeholders $template->set_var(array( 'SITE_NAME' => $_PSL['site_name'], *************** *** 147,170 **** )); ! if( count($stories) < $ary['max']) { ! $ary['max'] = count($stories); ! } $template->set_block("storiesbackend", "each_story", "stories"); for ($i = 0 ; $i < $ary['max']; $i++) { ! switch( $ary['d']) { ! ! case "0": ! $description = ""; break; ! case "s": $description = $_PSL['site_name'] ; break; ! case "l": ! $description = $_PSL['site_name'] . " - "; $description .= htmlspecialchars(strip_tags($stories[$i]["intro_text"])); // $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); break; ! case "d": ! case "1": default: $description = htmlspecialchars(strip_tags($stories[$i]["intro_text"])); --- 159,179 ---- )); ! // Process the "each_story" block in the template $template->set_block("storiesbackend", "each_story", "stories"); for ($i = 0 ; $i < $ary['max']; $i++) { ! switch( $ary['d']) { ! case '0': ! $description = ''; break; ! case 's': $description = $_PSL['site_name'] ; break; ! case 'l': ! $description = $_PSL['site_name'] . ' - '; $description .= htmlspecialchars(strip_tags($stories[$i]["intro_text"])); // $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); break; ! case 'd': ! case '1': default: $description = htmlspecialchars(strip_tags($stories[$i]["intro_text"])); *************** *** 174,184 **** $template->set_var(array( ! 'STORY_ID' => $stories[$i]["story_id"], ! 'TITLE' => htmlspecialchars($stories[$i]["title"]), 'INTRO_TEXT' => $description, 'TARGET' => $ary['target'], 'COUNT' => $ary['max'], 'IDX' => $i, ! 'DATEF' => $stories[$i]["datef"] )); --- 183,193 ---- $template->set_var(array( ! 'STORY_ID' => $stories[$i]['story_id'], ! 'TITLE' => htmlspecialchars($stories[$i]['title']), 'INTRO_TEXT' => $description, 'TARGET' => $ary['target'], 'COUNT' => $ary['max'], 'IDX' => $i, ! 'DATEF' => $stories[$i]['datef'] )); *************** *** 186,207 **** // Grab a copy of the link stuff we need for RSS-1.0 if ($ary['view'] = 'rss1') { ! $link_ary[] = array('storyid' => $stories[$i]["story_id"]); } ! $template->parse("stories", "each_story", true); } // RSS-1.0 requires a item listing in the <channel> tag if ($ary['view'] = 'rss1') { ! $template->set_block("storiesbackend", "each_item", "items"); for ($i = 0; $i < count($link_ary); $i++) { $template->set_var(array( 'STORY_ID' => $link_ary[$i]['storyid'] )); ! $template->parse("items", "each_item", true); } } ! $template->parse('OUT',"storiesbackend"); $template->p('OUT'); --- 195,217 ---- // Grab a copy of the link stuff we need for RSS-1.0 if ($ary['view'] = 'rss1') { ! $link_ary[] = array('storyid' => $stories[$i]['story_id']); } ! $template->parse('stories', 'each_story', true); } // RSS-1.0 requires a item listing in the <channel> tag if ($ary['view'] = 'rss1') { ! $template->set_block('storiesbackend', 'each_item', 'items'); for ($i = 0; $i < count($link_ary); $i++) { $template->set_var(array( 'STORY_ID' => $link_ary[$i]['storyid'] )); ! $template->parse('items', 'each_item', true); } } ! // Send this stuff to the client ! $template->parse('OUT','storiesbackend'); $template->p('OUT'); Index: test.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/test.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test.php3 17 May 2001 19:53:17 -0000 1.3 --- test.php3 19 Mar 2002 17:17:14 -0000 1.4 *************** *** 110,114 **** <h3>Versions</h3> <ul> ! <li>PHPSlash Version: <?php echo $psl_version ?></li> <li>PHP Version: <?php echo $version ?></li> <li>PHP Major Version: <?php echo $major ?></li> --- 110,114 ---- <h3>Versions</h3> <ul> ! <li>PHPSlash Version: <?php echo $_PSL['version'] ?></li> <li>PHP Version: <?php echo $version ?></li> <li>PHP Major Version: <?php echo $major ?></li> |
From: nathan h. <nh...@us...> - 2002-03-19 17:17:21
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv7820 Modified Files: CHANGES Log Message: backend cleanups Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.432 retrieving revision 1.433 diff -C2 -d -r1.432 -r1.433 *** CHANGES 19 Mar 2002 16:48:06 -0000 1.432 --- CHANGES 19 Mar 2002 17:17:14 -0000 1.433 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 12:16AM EST nathan hruby <nh...@ar...> + [W] - backend.php3 cleanups, make test.php3 use $_PSL['version'] + 2002-Mar-19 11:45AM EST nathan hruby <nh...@ar...> [T] - Nixed IDX from RSS 1.0 tempalate and RSS 1.0 backend.php3 stuff |
From: nathan h. <nh...@us...> - 2002-03-19 16:48:10
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv30723/public_html Modified Files: backend.php3 Log Message: Killed IDX for RSS-1.0 Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** backend.php3 19 Mar 2002 16:25:17 -0000 1.24 --- backend.php3 19 Mar 2002 16:48:06 -0000 1.25 *************** *** 184,190 **** ! // Grab a copy of the link stuff we need if ($ary['view'] = 'rss1') { ! $link_ary[] = array('idx' => $i, 'storyid' => $stories[$i]["story_id"]); } --- 184,190 ---- ! // Grab a copy of the link stuff we need for RSS-1.0 if ($ary['view'] = 'rss1') { ! $link_ary[] = array('storyid' => $stories[$i]["story_id"]); } *************** *** 197,202 **** for ($i = 0; $i < count($link_ary); $i++) { $template->set_var(array( ! 'STORY_ID' => $link_ary[$i]['storyid'], ! 'IDX' => $link_ary[$i]['idx'] )); $template->parse("items", "each_item", true); --- 197,201 ---- for ($i = 0; $i < count($link_ary); $i++) { $template->set_var(array( ! 'STORY_ID' => $link_ary[$i]['storyid'] )); $template->parse("items", "each_item", true); |
From: nathan h. <nh...@us...> - 2002-03-19 16:48:10
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv30723 Modified Files: CHANGES Log Message: Killed IDX for RSS-1.0 Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.431 retrieving revision 1.432 diff -C2 -d -r1.431 -r1.432 *** CHANGES 19 Mar 2002 16:28:37 -0000 1.431 --- CHANGES 19 Mar 2002 16:48:06 -0000 1.432 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 11:45AM EST nathan hruby <nh...@ar...> + [T] - Nixed IDX from RSS 1.0 tempalate and RSS 1.0 backend.php3 stuff + Those are not well formed URI's + 2002-Mar-19 11:27AM EST nathan hruby <nh...@ar...> [T] - backendRSS1.tpl - added {DESCRIPTION} |
From: nathan h. <nh...@us...> - 2002-03-19 16:28:43
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv23533/public_html/templates/en/default Modified Files: backendRSS1.tpl Log Message: backendrss1.tpl add DESCRIPTION placeholder Index: backendRSS1.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendRSS1.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** backendRSS1.tpl 19 Mar 2002 16:13:12 -0000 1.4 --- backendRSS1.tpl 19 Mar 2002 16:28:38 -0000 1.5 *************** *** 4,8 **** xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" ! xmlns:admin="http://webns.net/mvcb" xmlns="http://purl.org/rss/1.0/"> --- 4,8 ---- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" ! xmlns:admin="http://webns.net/mvcb/" xmlns="http://purl.org/rss/1.0/"> *************** *** 10,14 **** <title>{SITE_NAME}</title> <link>{ROOTDIR}</link> ! <description>{SITE_NAME}: {SITE_SLOGAN}</description> <sy:updatePeriod>hourly</sy:updatePeriod> --- 10,14 ---- <title>{SITE_NAME}</title> <link>{ROOTDIR}</link> ! <description>{DESCRIPTION}</description> <sy:updatePeriod>hourly</sy:updatePeriod> |
From: nathan h. <nh...@us...> - 2002-03-19 16:28:42
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv23533 Modified Files: CHANGES Log Message: backendrss1.tpl add DESCRIPTION placeholder Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.430 retrieving revision 1.431 diff -C2 -d -r1.430 -r1.431 *** CHANGES 19 Mar 2002 16:25:17 -0000 1.430 --- CHANGES 19 Mar 2002 16:28:37 -0000 1.431 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 11:27AM EST nathan hruby <nh...@ar...> + [T] - backendRSS1.tpl - added {DESCRIPTION} + 2002-Mar-19 11:24AM EST nathan hruby <nh...@ar...> [W] - Slight Cleanup of config.php3. Whew it's a mess |
From: nathan h. <nh...@us...> - 2002-03-19 16:25:21
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv22395 Modified Files: CHANGES Log Message: config cleanup Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.429 retrieving revision 1.430 diff -C2 -d -r1.429 -r1.430 *** CHANGES 19 Mar 2002 16:13:12 -0000 1.429 --- CHANGES 19 Mar 2002 16:25:17 -0000 1.430 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 11:24AM EST nathan hruby <nh...@ar...> + [W] - Slight Cleanup of config.php3. Whew it's a mess + 2002-Mar-19 11:10AM EST nathan hruby <nh...@ar...> [BT] - Fixed backend.php3 and backendRSS1.tpl files to be RSS-1.0 |
From: nathan h. <nh...@us...> - 2002-03-19 16:25:21
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv22395/public_html Modified Files: backend.php3 config.php3 Log Message: config cleanup Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** backend.php3 19 Mar 2002 16:13:12 -0000 1.23 --- backend.php3 19 Mar 2002 16:25:17 -0000 1.24 *************** *** 49,53 **** // TODO: Remove these ! $pagetitle="Backend"; # The name to be displayed in the header $xsiteobject = "Backend"; # This Defines The META Tag Object Type --- 49,53 ---- // TODO: Remove these ! $pagetitle ="Backend"; # The name to be displayed in the header $xsiteobject = "Backend"; # This Defines The META Tag Object Type *************** *** 140,143 **** --- 140,144 ---- 'SITE_OWNER' => $_PSL['site_owner'], 'SITE_HOST' => $HTTP_HOST, // TODO: nh asks: Will this be around with register_globals=Off? + 'DESCRIPTION' => $_PSL['metatags']['description'], 'PHP_SELF' => $_PSL['phpself'], 'ROOTDIR' => $_PSL['rooturl'], Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.131 retrieving revision 1.132 diff -C2 -d -r1.131 -r1.132 *** config.php3 19 Mar 2002 16:13:12 -0000 1.131 --- config.php3 19 Mar 2002 16:25:17 -0000 1.132 *************** *** 118,128 **** $_PSL['language'] = "en"; // default language ( ISO format) ! $_PSL['article_updatehits'] = true; // Keeps track of hits on a story, // the drawback is an extra DB query. ! $_PSL['site_name'] = "PHPSlash"; ! $_PSL['site_owner'] = "in...@ph..."; $_PSL['site_slogan'] = "Slash for you, Slash for me"; ! $_PSL['site_title'] = "PHPSlash: The Web Stops Here"; $_PSL['mailinglist_subject'] = "PHPSlash Times"; --- 118,143 ---- $_PSL['language'] = "en"; // default language ( ISO format) ! $_PSL['article_updatehits'] = true; // Keeps track of hits on a story, // the drawback is an extra DB query. + /******************** + These values are used in your RSS Feeds generated by backend.php3 as + well as by phpslash for the pages your views see. Please take a moment + and adjust these to the correct value + *********************/ + // Name of the site + $_PSL['site_name'] = "PHPSlash"; ! // Email address to reach a human ! $_PSL['site_owner'] = "in...@ph..."; ! ! // A catch phrase for your site $_PSL['site_slogan'] = "Slash for you, Slash for me"; ! ! // A Longer version of the title ! $_PSL['site_title'] = "PHPSlash: The Web Stops Here"; ! ! /* END RSS EXPORTER VALUES */ ! ! // The subject for the headline email $_PSL['mailinglist_subject'] = "PHPSlash Times"; *************** *** 133,145 **** $_PSL['bar_limit'] = 5; // default number of icons in bar ! // metatags that may need to be overwritten later ( article description). ! // other metatags should probably just reside in slashHead.tpl $metatags['keywords'] = "weblog, content management, php"; $metatags['description'] = "phpSlash is a port of the slash-0.2 code from Perl to PHP. Since it was first started, phpslash has become a different beast of its own. It currently boasts full HTML templates, an OO design, the ability to operate in a hosted environment, and a bunch of other goodies."; $_PSL['metatags'] = $metatags; ! /* ! the comment_defaultmode variable allows you to define how the comments will look the first time a visitor views a story. It can be one of the following options: --- 148,163 ---- $_PSL['bar_limit'] = 5; // default number of icons in bar ! // Metatags that may need to be overwritten later (article description). ! // Other metatags should probably just reside in slashHead.tpl $metatags['keywords'] = "weblog, content management, php"; + + // Note that this too is used by the backend module in your RSS feed. + // Please change it! $metatags['description'] = "phpSlash is a port of the slash-0.2 code from Perl to PHP. Since it was first started, phpslash has become a different beast of its own. It currently boasts full HTML templates, an OO design, the ability to operate in a hosted environment, and a bunch of other goodies."; $_PSL['metatags'] = $metatags; ! /****************************************************************** ! The comment_defaultmode variable allows you to define how the comments will look the first time a visitor views a story. It can be one of the following options: *************** *** 154,163 **** none: no comments are displayed. ! */ $_PSL['comment_defaultmode'] = "nested"; ! $_PSL['search_maxresults'] = 20; /* the number of results to return when searching */ ! $_PSL['allow_comment_search'] = TRUE; /* Do we allow search od the comments as well? */ /* if set to true then when you click "edit as story", the submission --- 172,183 ---- none: no comments are displayed. ! *******************************************************************/ $_PSL['comment_defaultmode'] = "nested"; ! /* the number of results to return when searching */ ! $_PSL['search_maxresults'] = 20; ! /* Do we allow search of the comments as well? */ ! $_PSL['allow_comment_search'] = TRUE; /* if set to true then when you click "edit as story", the submission |
From: nathan h. <nh...@us...> - 2002-03-19 16:13:19
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv18310 Modified Files: CHANGES Log Message: RSS-1.0 backend work Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.428 retrieving revision 1.429 diff -C2 -d -r1.428 -r1.429 *** CHANGES 18 Mar 2002 16:11:22 -0000 1.428 --- CHANGES 19 Mar 2002 16:13:12 -0000 1.429 *************** *** 13,16 **** --- 13,21 ---- 9 - Removal of something (kill -9 :) + 2002-Mar-19 11:10AM EST nathan hruby <nh...@ar...> + [BT] - Fixed backend.php3 and backendRSS1.tpl files to be RSS-1.0 + compilant. Also had to change $psl_version to $_PSL['version'] for + the admin module to use. + 2002-Mar-18 10:00AM CST Joe Stewart <joe...@us...> [T] - removed unused searchMatch.tpl, searchMoreMatches.tpl, |
From: nathan h. <nh...@us...> - 2002-03-19 16:13:18
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv18310/public_html/templates/en/default Modified Files: backendRSS1.tpl Log Message: RSS-1.0 backend work Index: backendRSS1.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendRSS1.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** backendRSS1.tpl 14 Mar 2002 18:04:40 -0000 1.3 --- backendRSS1.tpl 19 Mar 2002 16:13:12 -0000 1.4 *************** *** 3,33 **** <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:rss091="http://purl.org/rss/1.0/modules/rss091#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns="http://purl.org/rss/1.0/"> ! <channel rdf:about="{SITE_NAME}"> ! <title>{SITE_NAME}: {SITE_SLOGAN}</title> ! <link>{ROOTDIR}</link> ! <description>{SITE_NAME}</description> ! <sy:updatePeriod>hourly</sy:updatePeriod> ! <sy:updateFrequency>1</sy:updateFrequency> ! <sy:updateBase>2002-01-01T12:00+00:00</sy:updateBase> <image> ! <title>{SITE_TITLE}</title> ! <url>{IMAGEDIR}/topics/topicphpslash.gif</url> ! <width>100</width> ! <height>40</height> ! <description>{SITE_NAME}</description> </image> - </channel> <!-- BEGIN each_story --> ! <item rdf:about="{ROOTDIR}/article.php3?story_id={STORY_ID}" position="{IDX}"> ! <title>{TITLE}</title> ! <link>{ROOTDIR}/article.php3?story_id={STORY_ID}</link> ! <description>{INTRO_TEXT}</description> ! </item> <!-- END each_story --> </rdf:RDF> --- 3,58 ---- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" + xmlns:admin="http://webns.net/mvcb" xmlns="http://purl.org/rss/1.0/"> ! <channel rdf:about="{SITE_NAME}"> ! <title>{SITE_NAME}</title> ! <link>{ROOTDIR}</link> ! <description>{SITE_NAME}: {SITE_SLOGAN}</description> ! ! <sy:updatePeriod>hourly</sy:updatePeriod> ! <sy:updateFrequency>1</sy:updateFrequency> ! <sy:updateBase>2002-01-01T12:00+00:00</sy:updateBase> ! ! <admin:errorReportsTo rdf:resource="mailto:{SITE_OWNER}"/> ! <admin:generatorAgent rdf:resource="http://www.phpslash.org/"/> ! ! <image rdf:resource="{IMAGEDIR}/topics/topicphpslash.gif" /> ! ! <items> ! <rdf:Seq> ! <!-- BEGIN each_item --> ! <rdf:li resource="{ROOTDIR}/article.php3?story_id={STORY_ID}" position="{IDX}"/> ! <!-- END each_item --> ! </rdf:Seq> ! </items> ! ! <textinput rdf:about="{ROOTDIR}/search.php3"/> ! ! </channel> ! <image> ! <title>{SITE_TITLE}</title> ! <link>{ROOTDIR}<link> ! <url>{IMAGEDIR}/topics/topicphpslash.gif</url> </image> <!-- BEGIN each_story --> ! <item rdf:about="{ROOTDIR}/article.php3?story_id={STORY_ID}" position="{IDX}"> ! <title>{TITLE}</title> ! <link>{ROOTDIR}/article.php3?story_id={STORY_ID}</link> ! <description> ! {INTRO_TEXT} ! </description> ! </item> <!-- END each_story --> + + <textinput rdf:about="{ROOTDIR}/search.php3"> + <title>Search {SITE_NAME}</title> + <description>Search the archives of {SITE_NAME}</description> + <name>query</name> + <link>{ROOTDIR}/search.php3</link> + </textinput> </rdf:RDF> |
From: nathan h. <nh...@us...> - 2002-03-19 16:13:18
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv18310/public_html Modified Files: backend.php3 config.php3 Log Message: RSS-1.0 backend work Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** backend.php3 14 Mar 2002 18:04:41 -0000 1.22 --- backend.php3 19 Mar 2002 16:13:12 -0000 1.23 *************** *** 36,39 **** --- 36,41 ---- opml - OPML (http://radio.userland.com) wml - WML - for WAP phones + + // TODO: nh asks: Do we really need this? * d = description - this is the intro text. [d] - include description - default *************** *** 46,51 **** */ $pagetitle="Backend"; # The name to be displayed in the header ! $xsiteobject = "Backend"; #This Defines The META Tag Object Type require("config.php3"); --- 48,55 ---- */ + // TODO: Remove these $pagetitle="Backend"; # The name to be displayed in the header ! $xsiteobject = "Backend"; # This Defines The META Tag Object Type ! require("config.php3"); *************** *** 65,68 **** --- 69,73 ---- } + // TODO: Make this check max to make sure it's an integer if(empty($ary['max'])) { $ary['max']= 15; *************** *** 92,95 **** --- 97,102 ---- case "rss1": $viewtpl = "backendRSS1.tpl"; + // RSS-1.0 needs a extra listing. + $link_ary = array(); break; case "opml": *************** *** 175,180 **** --- 182,206 ---- )); + + // Grab a copy of the link stuff we need + if ($ary['view'] = 'rss1') { + $link_ary[] = array('idx' => $i, 'storyid' => $stories[$i]["story_id"]); + } + $template->parse("stories", "each_story", true); } + + // RSS-1.0 requires a item listing in the <channel> tag + if ($ary['view'] = 'rss1') { + $template->set_block("storiesbackend", "each_item", "items"); + for ($i = 0; $i < count($link_ary); $i++) { + $template->set_var(array( + 'STORY_ID' => $link_ary[$i]['storyid'], + 'IDX' => $link_ary[$i]['idx'] + )); + $template->parse("items", "each_item", true); + } + } + $template->parse('OUT',"storiesbackend"); $template->p('OUT'); Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.130 retrieving revision 1.131 diff -C2 -d -r1.130 -r1.131 *** config.php3 15 Mar 2002 19:16:28 -0000 1.130 --- config.php3 19 Mar 2002 16:13:12 -0000 1.131 *************** *** 15,19 **** 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! ****/ --- 15,19 ---- 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! ****/ *************** *** 28,32 **** // 1.1 Uncomment this only if you can't use a local php.ini or .htaccess ! //require('/home/nathan/webDevel/php-lib-stable/php/prepend.php3'); // 1.11) Global Variables. (Don't add trailing slashes) --- 28,32 ---- // 1.1 Uncomment this only if you can't use a local php.ini or .htaccess ! require('/home/nathan/webDevel/php-lib-stable/php/prepend.php3'); // 1.11) Global Variables. (Don't add trailing slashes) *************** *** 48,52 **** // $basedir -> Complete filesystem path to the pages ! $_PSL['basedir'] = ''; // $templatedir -> Path to the templates directory --- 48,52 ---- // $basedir -> Complete filesystem path to the pages ! $_PSL['basedir'] = '/home/nathan/webDevel/phpslash-ft/public_html'; // $templatedir -> Path to the templates directory *************** *** 54,61 **** // $classdir -> Path to the class directory ! $_PSL['classdir'] = ''; // $rooturl -> The base URL for the phpslash site ! $_PSL['rooturl'] = 'http://fatboy.mystic/ft'; // $adminurl -> The base URL for the admin pages --- 54,61 ---- // $classdir -> Path to the class directory ! $_PSL['classdir'] = '/home/nathan/webDevel/phpslash-ft/class'; // $rooturl -> The base URL for the phpslash site ! $_PSL['rooturl'] = 'http://dingo/devel/phpslash-ft/public_html'; // $adminurl -> The base URL for the admin pages *************** *** 82,88 **** $_PSL['DB_Host'] = "localhost"; ! $_PSL['DB_Database'] = ""; ! $_PSL['DB_User'] = ""; ! $_PSL['DB_Password'] = ""; $_PSL['module']['Glossary'] = true; --- 82,88 ---- $_PSL['DB_Host'] = "localhost"; ! $_PSL['DB_Database'] = "psl"; ! $_PSL['DB_User'] = "psl"; ! $_PSL['DB_Password'] = "foo"; $_PSL['module']['Glossary'] = true; |
From: Joe S. <joe...@us...> - 2002-03-18 16:11:27
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv22147/phpslash-ft/public_html/templates/en/default Removed Files: searchMatch.tpl searchNoMatch.tpl searchMoreMatches.tpl searchPrevMatches.tpl Log Message: removed unuses search templates --- searchMatch.tpl DELETED --- --- searchNoMatch.tpl DELETED --- --- searchMoreMatches.tpl DELETED --- --- searchPrevMatches.tpl DELETED --- |