|
|
| Author |
Message |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12419
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12419
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Ricky_Racer
Dedicated User

Joined: 19 Jul 2003
Posts: 1385
Location: Middle of Nowhere, USA
|
Posted: June 26th 2008, 5:42 am Post subject: |
|
|
Yes, I didn't look at the code all that close, I just looked for page_footer and the echo(es), hoping it might could be fooled.
I must admit I am way behind on the phpBB3 learning curve.  |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12419
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Mighty Gorgon
Not So New User

Joined: 10 Aug 2007
Posts: 38
Location: Italy
|
Posted: July 13th 2008, 2:31 am Post subject: |
|
|
Just my two cents...
This suggestion is NOT semantically correct and it is not using the PROPER WAY to do it... but it may serve to reach the goal.
OPEN functions.php
FIND
| Code:
|
// As a pre-caution... some setups display a blank page if the flush() is not there.
(!$config['gzip_compress']) ? @flush() : @ob_flush();
|
AFTER ADD
| Code:
|
echo('<html><body><b>phpBB Hacks</b></body></html>');
flush();
|
Add in the ECHO whatever you like.
The code will be put after /HTML that is why I added again the HTML and BODY tags. This won't be semantically correct (and of course rejected from W3C) but I guess almost all browsers will output the content correctly.
Good luck. _________________ Luca |
|
| Back to top |
|
 |
eviL<3
Not So New User
Joined: 25 Jun 2006
Posts: 65
|
Posted: July 13th 2008, 7:50 am Post subject: |
|
|
It's not possible to do add anything really without at least one single edit to the template file. If you do it the way i said at first though, you will only have to change the .inc file and it'll work for all of your styles.  _________________ phpBBModders |
|
| Back to top |
|
 |
Mighty Gorgon
Not So New User

Joined: 10 Aug 2007
Posts: 38
Location: Italy
|
Posted: July 13th 2008, 11:58 am Post subject: |
|
|
| eviL<3 wrote:
|
It's not possible to do add anything really without at least one single edit to the template file. If you do it the way i said at first though, you will only have to change the .inc file and it'll work for all of your styles.
|
I did try on my test site and it worked without adding anything to template.
But I trust you and I will test again to check. _________________ Luca |
|
| Back to top |
|
 |
eviL<3
Not So New User
Joined: 25 Jun 2006
Posts: 65
|
Posted: July 14th 2008, 5:25 am Post subject: |
|
|
Well your code would work, but IMO it's not really a good way to do it. Maybe i'm also picky about what's good and what isn't, that's the job of the MOD team, right? ;-p _________________ phpBBModders |
|
| Back to top |
|
 |
Mighty Gorgon
Not So New User

Joined: 10 Aug 2007
Posts: 38
Location: Italy
|
Posted: July 14th 2008, 11:21 am Post subject: |
|
|
| eviL<3 wrote:
|
|
Well your code would work, but IMO it's not really a good way to do it. Maybe i'm also picky about what's good and what isn't, that's the job of the MOD team, right? ;-p
|
Of course you have to.
As a coder I agree with you... that is why I wrote this:
| Mighty Gorgon wrote:
|
|
This suggestion is NOT semantically correct and it is not using the PROPER WAY to do it... but it may serve to reach the goal.
|
I really often deal with problems like this: there is a good/proper way and there is a goal. The coder sees the good/proper way... who commits the code sees the goal.
When you cannot get both... as an "hired" coder you have to seek for the goal...
Anyway thanks for confirming that is working as I have tested again and the output is being shown correctly in both IE and FF even if it is NOT SEMANTICALLY CORRECT and NOT THE PROPER WAY FOR DOING THAT. _________________ Luca |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12419
Location: Harbinger, NC, U.S.A.
|
Posted: July 14th 2008, 6:46 pm Post subject: |
|
|
Thanks, Mighty Gorgon. I appreciate you taking the time to look into it and proposing the solution. I will take a look at it and it's very much appreciated. As are the other contributions to the thread.
As I said in the first post of this thread, it's not the best way to do it, but it is the way I need it to be done as I need a solution within the parameters that I described, without exception. I know I can create a solution that requires a template edit, but the reason I created this thread was in an effort to find one that wouldn't.
In planning for a phpBB with presumably hundreds of styles installed and styles that will have to be updated (i.e., old files will be uploaded over new ones), it's not feasible to apply the change to the styles on an individual basis (even a single change) as it's too prone to error. It's sort of like a backup system, in that regard, where a backup system that relies on manual actions is more likely to lead to a breakdown than one that is automatic.
Anyway, thanks again. I appreciate it, Mighty Gorgon.
Patrick _________________ Patrick O'Keefe - phpBBHacks.com Administrator
Author, Managing Online Forums (New Book)
Have a suggestion or a bit of feedback relating to phpBBHacks.com? Please contact me!
User Guidelines - phpBBHacks.com Awards - Featured phpBB - About Us - Supported Sites - Utilities
phpBB 2 Tutorials: Installing phpBB Hacks - Installing a New Template |
|
| Back to top |
|
 |
|