Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
include() where you cant include().... |
Page: 1 | Reply |
Mar 15th 2002 | #35923 Report |
Member since: Mar 18th 2001 Posts: 1452 |
Ok, the people at the phpBB support boards are very unhelpful, so maybe someone here can help me work this problem out. phpBB2 uses a template system, and you can't use php inside the template files, which is what you need to edit to change the look and layout of the board. The board sits inside my layout, and my layout includes a banner rotator which is called with an include: <? include "/path/to/ad.php" ?> Is there a way to get around this? Maybe a javascript that can call the php file, or a javascript that can call a routine in another php file, that runs the banner code? I want to make the board live, but I've got a big 468 x 60 hole in my layout. :rolleyes: |
Reply with Quote Reply |
Mar 15th 2002 | #35928 Report |
Member since: Mar 20th 2001 Posts: 3367 |
<.script language="php".> code here <./script.> that should work.. its from the manual... |
Reply with Quote Reply |
Mar 15th 2002 | #35935 Report |
Member since: Mar 18th 2001 Posts: 1452 |
I've tried that and it didn't work. I can view the source and all I see is that code. I don't know anything about templates, or else I could define my own variable {BANNER_ROTATE} from their template system (which I've tried and failed miserably). |
Reply with Quote Reply |
Mar 15th 2002 | #35942 Report |
Member since: Mar 20th 2001 Posts: 3367 |
well.. you might have to go for that template class thingy... hmm... have it include() in a header?.. or edit how the template works?.... I have no idea on this.. Sorry |
Reply with Quote Reply |
Mar 15th 2002 | #36012 Report |
Member since: Mar 18th 2001 Posts: 1452 |
I ended up just downloading an upgraded version of my banner system, which has a simple <script language="javascript"></script> call. Made life easy.
|
Reply with Quote Reply |
Mar 15th 2002 | #36018 Report |
Member since: Mar 20th 2001 Posts: 3367 |
cool then.. no more troubles
|
Reply with Quote Reply |
Mar 16th 2002 | #36099 Report |
Member since: Jun 30th 2001 Posts: 447 |
You could possible perfrom an eval() on the template file. You'd just have to find out where in the script it loads the template code into a variable and do an eval() on the variable. But it's probably too late. You could always use it for future stuff anyway.
|
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |