![]() |
Quote:
First create a second PHP file with a name like this: "secondindex.php" and use this as its context: PHP Code:
<!--#include virtual="/secondindex.php" --> Whether this works or not, I still suggest migrating your index.shtml file to index.php in the long run. Because: a) If you are on PHP, this is the default syntax and it may help you better in the future with other PHP add-ons. b) This approach increases server load unnecerrarily. Your file is parsed twice (as PHP and shtml) while only 1 parsing would do the trick if it as .php.. |
Wow, worked perfectly!
I have a huge debate going on right now (in my head mainly) as I am working to combine a message forum site with 2 other very large related static web sites (.html based only - users requiring front page to modify) If I switch to .php, I lose frontpage abilities and editing the look of a page becomes a huge pain.. yet inserting code such as this hack works much better. If I switch pages to .shtml as needed I lose out on the things you mentioned. So far I have about 6-7 nice hacks for my main .shtml page including your news, a calendar, poll, recent gallery images from photopost, user login, recent forum posts ... it is almost looking like a product like vbhome lite, yet retains its original web site look and frontpage capabilities. (not that I'm a huge fan myself of fp) The good thing is that the audience is local and the server is high powered, so I fan afford some amount of overhead until we find a better way. Thanks for your help! |
Quote:
Well this might not apply for .shtml though. You have to deal with its includes too.. |
Logician you da man :bandit: w00t 1/2 am hour from reading the first instruction to having the first news item posted up on our test board :smoke:
Just one minor problem (and is probably sitting in the html code somewhere), how do we cut out the gap between news items ? Figure there must be a <br> tag lurking in there somewhere. FYI this one works perfectly on 2.3.0. Do we get to vote for hack of the month? If we do this get's my vote, big up respect to Logician. Thanks Man. Will post up url of it working when we get our home pages uploaded (still working on them) :) |
Quote:
And the <br> is at the end of this part.. ;) |
Excellent ! Thanks once again Logician :thumb:
|
Okay this one is installed live. Thanks Logician, very easy to install and use (once you remember to add the tags into the Admin CP) :speechless:
See attached for our first news item .... |
I got a problem...
Of course it may be me... I will exaplain and someone here can possibly clear this up for me. In a new item. I post this: [news]This is a news item[/news] [intro]THis is an intro, blah blah blah...[/intro] The rest of the news item.... When I view the message (edit it again) the NEWS tags and the text within it is gone. Am I lost here...am I missing some functionality here..? |
Anyone have a thought about this one?
This problem keeps happening over and over, and the news from the front page then disappears.... |
Quote:
It seems that there is something wrong with Installation STEP 2, 3 or 4. Please check these steps are applied correctly.. |
All times are GMT. The time now is 11:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|