|  | Posted by Chilly8 on 12/02/07 13:48 
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message news:xLadnT6enbhCLM_anZ2dnUVZ_s7inZ2d@comcast.com...
 > Chilly8 wrote:
 >> How to I change the HTML portiion of a PHP script? I want to modify
 >> the HTML portion of phpBB, and the code in there to have StatCounter
 >> record hits to that part of my web site. I already have the main web
 >> site logged with StatCounter, but I would like to be able to modify
 >> the HTML portion of PHP scripts for WikiMedia and phpBB, so
 >> I can have those logged by phpBB as well
 >>
 >> I can see the HTML portion when I ask for the source in my
 >> browser, but I cannot find the place in any of the PHP scripts
 >> to change the HTML portion of the code
 >>
 >>
 >
 > You need to ask in the PhpBB support forums, not here.  It's more
 > complicated than just changing text files.
 
 I have figured out one way to do it, which works with ANY
 PHP page. Just load it into your browser, select the option
 for viewing the source, and then save that as an index.htm or
 index.html page, then have the web crawlers crawl that
 instead of the php file. I have so far gotten this to work with
 my phpBB and Wiki pages, then just change the redirects
 on my domain to take users to the HTML-translated
 version of the page. Then you can put in things like
 Statcounter, or banner ads into WikiMedia, PhpBB,
 VBulletin, or anything else. Now, you will need to have
 the original php version, so that users can login. If the
 index.php file has been erased or renamed, a user will
 not be able to log on, but if anyone else asks about this,
 that is how you do it. Log off and delete all cookies. Go
 back to the main page, open the source in your browser,
 and then save the HTML-translated page, then submit
 the HTML version of hte page to Google and Yahoo
 so that users get directed to that, instead of the PHP
 version of the page.
  Navigation: [Reply to this message] |