![]() |
|
|
#1 |
|
Guest
Posts: n/a
|
HTML portion
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Re: HTML portion
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. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. ================== |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Re: HTML portion
"Jerry Stuckle" <> wrote in message news:. .. > 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. |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Re: HTML portion
Chilly8 wrote:
> "Jerry Stuckle" <> wrote in message > news:. .. >> 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. > > And pretty soon you'll figure out why that doesn't work. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. ================== |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Re: HTML portion
As jerry says, this wont work. You need to route through the html
templates and find the correct one and alter that. |
|
|
|
#6 |
|
Guest
Posts: n/a
|
Re: HTML portion
X-No-Archive: Yes
"Jerry Stuckle" <> wrote in message news:. .. > Chilly8 wrote: >> "Jerry Stuckle" <> wrote in message >> news:. .. >>> 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. >> >> > > And pretty soon you'll figure out why that doesn't work. Its so far worked for me. Just have the original PHP version of the page, so that users can log in, if logins are required. I am having problems with people registering usernames, putting **** links in their profiles, and the dissappearing and never coming back. phpBB does not have logging capabilities, and I need to know where these users are coming from, so I can block them. Firewall logs only say there was a hit to port 80, and do not say which parts of my web site were accessed. By directing users to the HTML translated-page, I can log it on StatCounter, and find out where these people are coming from and block them, just as soon as the Yahoo and Google web crawlers update their links so that users start coming through the HTML-translated page instead of the php page. |
|
|
|
#7 |
|
Guest
Posts: n/a
|
Re: HTML portion
"macca" <> wrote in message news:... > As jerry says, this wont work. You need to route through the html > templates and find the correct one and alter that. PHP for Windows has no seperate HTML template, I looked. And there are none in phpBB or WikiMedia |
|
|
|
#8 |
|
Guest
Posts: n/a
|
Re: HTML portion
> PHP for Windows has no seperate HTML template, I looked. And > there are none in phpBB or WikiMedia Not php's templates, theres no such thing. Your applications HTML templates. Look again. I have used phpBB myself if I remember correctly the templates are in something like phpBB2- >templates and the default is SuubSilver, so, if i wanted to add some HTML to the index page i would edit phpBB2->templates->SubSilver- >index_body.tpl or something |
|
|
|
#9 |
|
Guest
Posts: n/a
|
Re: HTML portion
"macca" <> wrote in message news:... > >> PHP for Windows has no seperate HTML template, I looked. And >> there are none in phpBB or WikiMedia > > Not php's templates, theres no such thing. Your applications HTML > templates. > > Look again. I have used phpBB myself > > if I remember correctly the templates are in something like phpBB2- >>templates and the default is SuubSilver, so, if i wanted to add some > HTML to the index page i would edit phpBB2->templates->SubSilver- >>index_body.tpl or something There is an index.htm there all right, but if you edit that file, phpBB will just ignore the edits. For some reason, the changes I make to the index.htm file in that directory are being ignored. I even tried rebooting the computer, to restart everything, no dice, so using to HTML-translated version of the page appears to be the only thing that is going to work. I absoluitely must find out where the *******s that are creating accounts and posting **** links are coming from. I can edit the profiles to remove the **** links, and ban the users, but they keep coming back. All the firewall logs will tell me is that there were hits to port 80, they won't tell me which part of my site was accessed, while StatCounter can. |
|
|
|
#10 |
|
Guest
Posts: n/a
|
Re: HTML portion
Chilly8 wrote:
> X-No-Archive: Yes > > "Jerry Stuckle" <> wrote in message > news:. .. >> Chilly8 wrote: >>> "Jerry Stuckle" <> wrote in message >>> news:. .. >>>> 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. >>> >>> >> And pretty soon you'll figure out why that doesn't work. > > Its so far worked for me. Just have the original PHP version > of the page, so that users can log in, if logins are required. > Keep it up. You'll find why it doesn't work. Then you can come back here and look at the advice given you in this thread. > I am having problems with people registering usernames, > putting **** links in their profiles, and the dissappearing > and never coming back. phpBB does not have logging > capabilities, and I need to know where these users are > coming from, so I can block them. Firewall logs only > say there was a hit to port 80, and do not say which > parts of my web site were accessed. By directing users > to the HTML translated-page, I can log it on StatCounter, > and find out where these people are coming from and > block them, just as soon as the Yahoo and Google > web crawlers update their links so that users start > coming through the HTML-translated page instead > of the php page. > > > Which will do you little good. Most come through anonymous proxies or compromised machines. And get yourself a real log analyzer. It will give you all the information without adding code to your pages. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. ================== |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |