Jump to content

astarmathsandphysics

Members
  • Content Count

    19
  • Joined

  • Last visited

  • Days Won

    1

astarmathsandphysics last won the day on February 11 2015

astarmathsandphysics had the most liked content!

Community Reputation

1 Neutral

About astarmathsandphysics

  • Rank
    Member

Contact Methods

  • Website URL
    http://www.astarmathsandphysics.com

Profile Information

  • Gender
    Not Telling
  1. Whey that works. Well on the way now to saying bye to html
  2. here is the title code $_CONFIG['main_title'] = "A Star Maths and Physics Notes"; <title><?php if(EncodeExplorer::getConfig('main_title') != null) print EncodeExplorer::getConfig('main_title'); ?></title>
  3. I can't make it work. Not an expert even good programmer.
  4. I have several websites using the same basic script and I have the same problem in each - all the page titles are the same. see http://courseworkbank.info/?dir=GCSE the page title here is COURSEWORKBANK.INFO I would like it to be GCSE For http://courseworkbank.info/?dir=GCSE/Biology I would like it to be GCSE - Biology How do I do this? Am using a simple index.php file to load everything.
  5. As for getting files I want all the html files listed. Iwas inserting the links in a menu file manually, but when I have hundreds to do its a real drag.
  6. yes I added it. It works perfectly. I have written 6000 or so pages of maths and physics notes at the rate of 2 a day. Try to make maintenance easier.
  7. Whey they that works. Only 500 or so more problems to solve converting my site to php
  8. Doesnt work so far Here is an example page. http://astarmathsandphysics.com/notes/?dir=gcse-physics
  9. I have a directory lising script at astarmathsandphysics.com, listing maths notes Ithe script I am using displays images that I would like to exclude from the list How do I do this? This is the listing code I am using if($this->files) { $count = 0; foreach ($this->files as $file) { $row_style = ($row ? "one" : "two"); print "<tr class=\"row ".$row_style.(++$count == count($this->files)?" last":"")."\">\n"; print "<td class=\"name\">\n"; print "\t\t<a href=\"".$this->location->getDir(false, true, false, 0).$file->getNameEncoded()."\""; if(EncodeExplorer::getConfig('open_in_new_window') == true) print "target=\"_blank\""; print " class=\"item file"; if($file->isValidForThumb()) print " thumb"; print "\">"; print $file->getNameHtml(); if($this->mobile == true) { print "<span class =\"size\">".$this->formatSize($file->getSize())."</span>"; } print "</a>\n"; print "</td>\n"; if($this->mobile != true) { print "<td class=\"size\">".$this->formatSize($file->getSize())."</td>\n"; print "<td class=\"changed\">".$this->formatModTime($file->getModTime())."</td>\n"; } if($this->mobile == false && GateKeeper::isDeleteAllowed()){ print "<td class=\"del\"> <a data-name=\"".htmlentities($file->getName())."\" href=\"".$this->makeLink(false, false, null, null, $this->location->getDir(false, true, false, 0).$file->getNameEncoded(), $this->location->getDir(false, true, false, 0))."\"> <img src=\"?img=del\" alt=\"Delete\" /> </a> </td>"; } print "</tr>\n"; $row =! $row; } }
  10. I have a free coursework website with 20000 courseworks sorted into folders IThe ame page title appears on each page except when a doc/pdf file displays in the browser. I would like to set the page title as the path. I am using a single index.php file to load every page so I only need a single piece of code I think. How do I do this in php?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.