WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • How to modify buffer?
  • Print
Pages: [1]   Go Down

Author Topic: How to modify buffer?  (Read 13377 times)

Offline noname8

  • Posts: 151
How to modify buffer?
« on: December 21, 2017, 04:04:05 PM »
I have custom php content loaded into website content area with page type "code" and there is include my php files.
They work fine.

But in that php file, i want to rewrite one custom tag in the <head> area of the page that comes from the template.
Normally i've done this with ob_start()...$var=ob_get_contents() and replace and echo back, but now when i get the ob_get_contents it only contains the page-area content and not the template stuff.
Where is the template stuff ?
Logged

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: How to modify buffer?
« Reply #1 on: December 21, 2017, 04:59:39 PM »
Quote from: noname8 on December 21, 2017, 04:04:05 PM
Where is the template stuff ?
…still in the OutputBuffer ;)
Remember...  OutputBuffer is a normal Stack (FILO) !
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • How to modify buffer?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2