Thread: [Phpcollegeex-devel] what to change
Brought to you by:
david_degner,
itwanabe
From: Gary R. <gr...@io...> - 2004-11-13 14:45:41
|
Hi everyone; can someone tell me what files i need to change to add new tabs to the top menu. Cheers Gary |
From: David D. <dav...@ya...> - 2004-11-13 15:02:07
|
I built the tabs in the nav bar out of lists and css. All you have to do is add a new item to the list and it becomes a tab (or a sub-menu item, if you add it to the second list) To add new tabs (and a whole new section) you edit the first list in the i_nav.php file in each folder. For example: <ul id="navtab"> <li class="navtabon">Home</li> <li class="navtaboff"><a href="<? echo $home ?>books/">Textbook Exchange</a></li> <li class="navtaboff"><a href="<? echo $home ?>house/">Housing Finder</a></li> </ul> Will become: <ul id="navtab"> <li class="navtabon">Home</li> <li class="navtaboff"><a href="<? echo $home ?>books/">Textbook Exchange</a></li> <li class="navtaboff"><a href="<? echo $home ?>house/">Housing Finder</a></li> <li class="navtaboff"><a href="<? echo $home ?>new/">New Section</a></li> </ul> Each folder has it's own i_nav.php file so you must add the new list item in each one. Then you create a folder for the new section. In the i_nav.php file for this new folder you will want to change the "navtaboff" for the new sections listing to "navtabon". You also use the second list in the i_nav.php file to link to the sub-pages. For example, look at the second list in the books/ sections i_nav.php. <ul id="navlist"> <li><a href="search.php" title="Search for books">Find Books</a></li> <li><a href="index.php?page=newlisting" title="Post books for sale">Post Books</a></li> <li><a href="index.php?page=mybooks" title="Remove or update your listings">My Books</a></li> </ul> I hope it isn't too confusing. I did this so that new sections can easily be added and adjusted. David Degner Gary Redmond wrote: >Hi everyone; > > >can someone tell me what files i need to change to add new tabs to the top >menu. > > >Cheers > >Gary > > > >------------------------------------------------------- >This SF.Net email is sponsored by: InterSystems CACHE >FREE OODBMS DOWNLOAD - A multidimensional database that combines >robust object and relational technologies, making it a perfect match >for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 >_______________________________________________ >Phpcollegeex-devel mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phpcollegeex-devel > > > > |
From: Gary R. <gr...@io...> - 2004-11-13 15:09:18
|
No thats fine, I'm just goign through the css now working out what each thing does so i can modify colours etc. its a bit confusing, also do i have to keep the phpcollegeexchange logo at then end of the page? sorry about all the questions gary -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of David Degner Sent: 13 November 2004 15:02 To: php...@li... Subject: Re: [Phpcollegeex-devel] what to change I built the tabs in the nav bar out of lists and css. All you have to do is add a new item to the list and it becomes a tab (or a sub-menu item, if you add it to the second list) To add new tabs (and a whole new section) you edit the first list in the i_nav.php file in each folder. For example: <ul id="navtab"> <li class="navtabon">Home</li> <li class="navtaboff"><a href="<? echo $home ?>books/">Textbook Exchange</a></li> <li class="navtaboff"><a href="<? echo $home ?>house/">Housing Finder</a></li> </ul> Will become: <ul id="navtab"> <li class="navtabon">Home</li> <li class="navtaboff"><a href="<? echo $home ?>books/">Textbook Exchange</a></li> <li class="navtaboff"><a href="<? echo $home ?>house/">Housing Finder</a></li> <li class="navtaboff"><a href="<? echo $home ?>new/">New Section</a></li> </ul> Each folder has it's own i_nav.php file so you must add the new list item in each one. Then you create a folder for the new section. In the i_nav.php file for this new folder you will want to change the "navtaboff" for the new sections listing to "navtabon". You also use the second list in the i_nav.php file to link to the sub-pages. For example, look at the second list in the books/ sections i_nav.php. <ul id="navlist"> <li><a href="search.php" title="Search for books">Find Books</a></li> <li><a href="index.php?page=newlisting" title="Post books for sale">Post Books</a></li> <li><a href="index.php?page=mybooks" title="Remove or update your listings">My Books</a></li> </ul> I hope it isn't too confusing. I did this so that new sections can easily be added and adjusted. David Degner Gary Redmond wrote: >Hi everyone; > > >can someone tell me what files i need to change to add new tabs to the top >menu. > > >Cheers > >Gary > > > >------------------------------------------------------- >This SF.Net email is sponsored by: InterSystems CACHE >FREE OODBMS DOWNLOAD - A multidimensional database that combines >robust object and relational technologies, making it a perfect match >for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 >_______________________________________________ >Phpcollegeex-devel mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phpcollegeex-devel > > > > ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Phpcollegeex-devel mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpcollegeex-devel |
From: David D. <dav...@ya...> - 2004-11-13 15:19:49
|
Gary The CSS is still a little muddled with old stuff that I haven't had a chance to update (and remove) and new stuff, so don't feel bad if it takes a while to understand. Feel free to edit the code in anyway you feel, including taking out or adding anything you want. David Gary Redmond wrote: >No thats fine, I'm just goign through the css now working out what each >thing does so i can modify colours etc. its a bit confusing, also do i have >to keep the phpcollegeexchange logo at then end of the page? sorry about all >the questions > > >gary > > |
From: Gary R. <gr...@io...> - 2004-11-13 15:29:14
|
thanks i'll send ya a mail when I'm finished so you can have a look and see what your script is being used for -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of David Degner Sent: 13 November 2004 15:19 To: php...@li... Subject: Re: [Phpcollegeex-devel] what to change Gary The CSS is still a little muddled with old stuff that I haven't had a chance to update (and remove) and new stuff, so don't feel bad if it takes a while to understand. Feel free to edit the code in anyway you feel, including taking out or adding anything you want. David Gary Redmond wrote: >No thats fine, I'm just goign through the css now working out what each >thing does so i can modify colours etc. its a bit confusing, also do i have >to keep the phpcollegeexchange logo at then end of the page? sorry about all >the questions > > >gary > > ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Phpcollegeex-devel mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpcollegeex-devel |
From: Gary R. <gr...@io...> - 2004-11-13 22:44:06
|
hi i keep getting this error message Parse error: parse error, unexpected T_ELSE in /home/redmond/public_html/ucd/php pages/house/searchend.php on line 120 i have tried replacing everything in the house folder with the default versions but it dosent change |
From: David D. <dav...@ya...> - 2004-11-13 23:13:40
Attachments:
searchend.php
|
I haven't run into this before. I am running the script on PHP version 4.3.9, but older versions shouldn't cause too much of a problem. the 1.5b code should be the same that is on the testing server at: *http://www.wku.edu/~david.degner/WBX/* If I enter a search query in I don't get an error. *http://www.wku.edu/~david.degner/WBX/house/searchend.php?distance=1&type%5B%5D=1&type%5B%5D=2&type%5B%5D=3&type%5B%5D=4&type%5B%5D=5&type%5B%5D=6&PriceLessThan=20000&PriceGreaterThan=0&bedrooms=1* It is most likely an else construct has a bad unclosed braces or an if has superfluous closing braces. I included the file from the testing server in case it is any different than in the released version. This is a noggin scratcher. David Gary Redmond wrote: >hi > >i keep getting this error message > >Parse error: parse error, unexpected T_ELSE in >/home/redmond/public_html/ucd/php pages/house/searchend.php on line 120 > > >i have tried replacing everything in the house folder with the default >versions but it dosent change > > > >------------------------------------------------------- >This SF.Net email is sponsored by: InterSystems CACHE >FREE OODBMS DOWNLOAD - A multidimensional database that combines >robust object and relational technologies, making it a perfect match >for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 >_______________________________________________ >Phpcollegeex-devel mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phpcollegeex-devel > > > > |
From: Gary R. <gr...@io...> - 2004-11-14 02:37:21
|
Sry to keep asking questions the script is set up now so i just have some final customisation questions, i have edited out nearly all the dollar signs but i can't find the following ones, After a textbook search is done the list that displays the results still has $ for price, and the my books display when logged in. And in the same places in the housing section. Final q where do i go to change the wording of less than 1 block etc. on the first search page for housing i have changed it everywhere else just can't change that. Reagrds; Gary |
From: David D. <dav...@ya...> - 2004-11-14 03:48:44
|
Gary, Questions are a good thing feel free to ask as many as you need, I probably won't always be able to answer them as quickly as I have been able to today. >After a textbook search is done the list that displays the results still has >$ for price, > > This is on line 110 of "books/functions.php" : <TD class=$class style='text-align:right;padding-right:15px;'>\$$price</TD> >and the my books display when logged in. > > This is on line 16 of file "books/mybooks.php" >And in the same places in the housing section. > > The housing section is a little different for the search results page it is on line 112 of the house/searchend.php file <TD class=$class style='text-align:right;padding-right:15px;'>\$$price</TD> the other is on the 16th line of house/myrents.php <TD class=\"column\">Price ($)</TD> >Final q where do i go to change the wording of less than 1 block etc. on the >first search page for housing i have changed it everywhere else just can't >change that. > > It is in the house/searchbody.php file. If you can't find something on a page where you think it should be, look for "include" calls, it is probably hidden in one of the included files. David Degner |
From: Gary R. <gr...@io...> - 2004-11-14 11:16:14
|
I have it changed it the searchbody.php file but it still appears with 1 block etc. <div class='nubox'> <div class='title'>Search</div> <BR> <FORM ACTION="searchend.php" METHOD="GET"> <table class="border" cellpadding=7 cellspacing=0> <tr> <td align="right"><font class="search2">Distance</font></td> <td align="left"><font class="search2"><select name="distance" id="distance"> <option value="1"<? if ($distance==1){print " SELECTED";} ?>><1 Mile</option> <option value="2"<? if ($distance==2){print " SELECTED";} ?>><2 Miles</option> <option value="3"<? if ($distance==3){print " SELECTED";} ?>><3 Miles</option> <option value="4"<? if ($distance==4){print " SELECTED";} ?>><4 Miles</option> <option value="5"<? if ($distance==5){print " SELECTED";} ?>>In Co. Dublin</option> <option value="6"<? if ($distance==6){print " SELECTED";} ?>>In Surrounding Counties</option> </select> from Belfield campus</font></td> </tr> <tr> <td align="right" valign="top"><font class="search2">Rental Type:</font></td> <td align="left"><font class="search2"> <input type="checkbox" name="type[]" value="1"<? if ($type==1){print " SELECTED";} ?>>Apartment<BR> <input type="checkbox" name="type[]" value="2"<? if ($type==2){print " SELECTED";} ?>>House<BR> <input type="checkbox" name="type[]" value="3"<? if ($type==3){print " SELECTED";} ?>>Room/ShariNg With Others<BR> <input type="checkbox" name="type[]" value="4"<? if ($type==4){print " SELECTED";} ?>>Digs<BR> <input type="checkbox" name="type[]" value="5"<? if ($type==5){print " SELECTED";} ?>>Digs Self Catering<BR> </font></td> </tr> <tr> <td align="right" valign="top"><font class="search2">Price Less Than:</font></td> <td align="left"><font class="search2"><input type="text" name="PriceLessThan" <? if ($PriceLessThan>=0){print "value=$PriceLessThan";}else{print "value=1000";}?>> a month </font></td> </tr> <tr> <td align="right" valign="top"><font class="search2">Price More Than:</font></td> <td align="left"><font class="search2"><input type="text" name="PriceGreaterThan" value="0" <? if ($PriceGreaterThan>=0){print "value=$PriceGreaterThan";}else{print "value=1000";}?>> a month </font></td> </tr> <tr> <td align="right" valign="top"><font class="search2">Bedrooms:</font></td> <td align="left"><font class="search2"><select name="bedrooms" id="bedrooms"> <option value="1"<? if ($bedrooms==1){print " SELECTED";} ?>>1</option> <option value="2"<? if ($bedrooms==2){print " SELECTED";} ?>>2</option> <option value="3"<? if ($bedrooms==3){print " SELECTED";} ?>>3</option> <option value="4"<? if ($bedrooms==4){print " SELECTED";} ?>>> 4</option> </select></font></td> </tr> </table> <p> <div class='formborder'> <input type="submit" value="Search"> <input type='reset' type='reset'> </div> </FORM> </div> |
From: David D. <dav...@ya...> - 2004-11-14 17:50:03
|
Gary, When you want to find all instances of the 1 block, 2 blocks etc. it is very helpful to have a good web page editor like Homesite, AceHTML or something that has a "search all files in this directory" (extended search). A quick flip through all the files shows "1 block" is in: house\home.php line 96 house\listing_add_1.php line 34 house\listing_edit_1.php line 62 house\listing_view.php line 46 house\searchbody.php line 10 house\searchend.php line 74 I hope it's coming along well. David Gary Redmond wrote: >I have it changed it the searchbody.php file but it still appears with 1 >block etc. > > |
From: David D. <dav...@ya...> - 2004-11-16 18:56:49
|
I can't seem to find it now, but I thought someone made a page that showed all of the rentals that were in the database. If you did please remind me. Thanks, David Degner |
From: David D. <dav...@ya...> - 2004-11-27 01:18:10
|
I played around with Drupal today and it got me thinking. We should making the textbook exchange, housing finder, and other stuff into modules for Drupal, Zope, or Plone. It would give us a good base to work off of and leave a lot more flexibility (play around with Drupal for a little while and you'll understand). So does anyone know how to make a module for one of these things :) ? David |
From: David D. <dav...@ya...> - 2004-12-03 03:47:35
|
Hot off the presses 0.1.5 is out. Sorry it isn't completely backwards compatible but it puts the code in a better position to be built off of. The database is now configured the way it should be with everything named appropriately and a few of the row settings changed. The CSS is slimmed down. It still has a lot of room for improvement so lets keep hacking away. David |