phpBBHacks.com - Including a File in phpBB 3's PHP Files - Page 2
House M.D. fans unite at DrGregHouse.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Add Us:     MySpace     Facebook     StumbleUpon
Username:    Password:
Remember Me?    
Including a File in phpBB 3's PHP Files
Goto page Previous  1, 2, 3  Next
BlinkList
del.icio.us
Furl
linkaGoGo
reddit
Simpy
Mister Wong
Yahoo! My Web

Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> Other phpBB 3 Questions and Discussion
 See a User Guidelines violation? Please contact us.
Author Message

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12597
Location: Harbinger, NC, U.S.A.

PostPosted: June 25th 2008, 10:41 am    Post subject: Reply with quote

Hey Ricky_Racer,

Thank you very much for the suggestion and assistance. I'll give that a try and get back to this thread with my findings.

Thanks again,

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

Nominate in the phpBBHacks.com Awards 2008!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12597
Location: Harbinger, NC, U.S.A.

PostPosted: June 25th 2008, 7:15 pm    Post subject: Reply with quote

Hey again,

I tried that, but it didn't work. The counter wasn't displayed on the pages. In looking over that code a little bit, it looks like it is displayed on error pages? I might be wrong, but that was how it looked from reading some of it, like that footer would only be shown on error pages.

But, thanks again. I appreciate the suggestion and help.

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

Nominate in the phpBBHacks.com Awards 2008!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

Ricky_Racer
Dedicated User

Joined: 19 Jul 2003
Posts: 1398
Location: Middle of Nowhere, USA

PostPosted: June 26th 2008, 5:42 am    Post subject: Reply with quote

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. Dead
Back to top
View user's profile Send private message Visit poster's website

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12597
Location: Harbinger, NC, U.S.A.

PostPosted: June 26th 2008, 10:01 am    Post subject: Reply with quote

No worries. Thanks for trying.

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

Nominate in the phpBBHacks.com Awards 2008!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

Mighty Gorgon
Not So New User

Joined: 10 Aug 2007
Posts: 39
Location: Italy

PostPosted: July 13th 2008, 2:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website

eviL<3
Not So New User

Joined: 25 Jun 2006
Posts: 65

PostPosted: July 13th 2008, 7:50 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website

Mighty Gorgon
Not So New User

Joined: 10 Aug 2007
Posts: 39
Location: Italy

PostPosted: July 13th 2008, 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website

eviL<3
Not So New User

Joined: 25 Jun 2006
Posts: 65

PostPosted: July 14th 2008, 5:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website

Mighty Gorgon
Not So New User

Joined: 10 Aug 2007
Posts: 39
Location: Italy

PostPosted: July 14th 2008, 11:21 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12597
Location: Harbinger, NC, U.S.A.

PostPosted: July 14th 2008, 6:46 pm    Post subject: Reply with quote

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

Nominate in the phpBBHacks.com Awards 2008!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> Other phpBB 3 Questions and Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB.it - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - PhotoshopForums.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - DrGregHouse.com - Bad Boy Blog - BadBoyForums.com - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Staff - User Guidelines >

Copyright © 2001-2008. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. Hosted by 100MegsWebHosting. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.