When I load the header again after saving this it adds a space infront of <?, echothis; and ?> and causes the header to not display if I don't remove the space before saving again.
Is there a way to add php and have it not add spaces in the admin header editor?
I assume that "ech" is just a typo here, and that you used "echo" in the actual header.
What happens if you edit the header file manually, instead of using the admin page editor? If that doesn't solve the problem, could you put the header file into a .zip file, and attach it here?
My alternative method is to include a seperate file for what is being echoed (and changed frequently) but I wanted to simplify it and keep all the header code in one file.
If you put all php code on one line, it shouldn't break when editing again. If you want to insert a larger php block, i'd prefer to include another file.
Yeah that's going to be my alternative...the stuff around it is not updated, but the template content is going to. Just would rather keep it in one place.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.