Re: Single Menu Page with Bv and PHP
You will need to save ALL pages as php - and not html to use this.
When you save the page, it will already save into the blue voda folder you have your files for this program in. (You should make a folder for each website - not for each page). Each page you do this with, will need it's own page - the navigation, your header page (but do NOT call it header when you save it LOL) - etc.
On the page you save with the header or menu, etc - THERE you put the box in the upper left corner. On the real pages, but the box exactly where you want this to appear.
I know you contacted me in the other forum also. If you need further help - feel free to email me again - I sent you the email address from that pm - and we'll get it fixed for you.
After you get this - it'll be easy - and will make your pages down the road a breeze :)
Single Menu Page with Bv and PHP
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
Re: Single Menu Page with Bv and PHP
okay - I've weeded through quite a bit of this thread and think I got lost somewhere in the middle. Could I just sum up what I understand and someone please tell me if I'm on the right track?
here goes:
I'm attempting to do the php menu (php is a completely new thing for me) as suggested.
So, I design the menu (using one of the suggested CSS menu design programs or even just using a text box with links - whatever I can decide works?)
In page properties, I make sure to save it as php extension when it publishes.
save the file... in some folder. Am I supposed to make different folders to save each page?
then, I insert the html box (with code) into EACH page that I want the menu to appear? but I put that box (same size as original menu) in the upper left corner of every page?
Do I save ALL pages with php extensions? what was Beth talking about saving some in php and some in html ... what is the difference? or do I just save the ones where I want to use my menu.php as a php extension. (What is php anyway?) and the others as html?
I hope I am not confusing things more... Please straighten me out. I'm sure there will be more questions as I go, but I would appreciate the initial direction.
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
Yes, you can. The add the rest of the content in the specific page
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
Hello Naval
I've read this thread and I get the jist and I understand you can use this to do menus, headers and footers etc.
Could I design a page that includes all those features in one go so I could simply name it 'mytemplate' (or something) and then use that?
Thanks
Darren
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
When yo insert an image in a BV page, you can
1. Specify a location on your computer, using the Browse feature
2. Or, type directly the image file name. If the file name is simply "image.gif" , when viewing the page on the net (the published page) the browser will look for the image file in the same directory where the page is. In BV and in preview the image will NOT appear. If, instead, you define the image location as http://www.yourdomain.com/path/to/image.gif the browser will look for it in the specified location.
In this second case, the image will NOT appear in BV, but it will when published AND in preview
3. If your banners don't work any more, it is probably some conflict somewhere. Without seeing the code i can't know what is wrong
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
Originally posted by navaldesign View Post1. It is not necessary to edit the file code. Simply publish the menu anywhere, and the images will be also published. Then go back in BV, and, in the place of the image location (c/documents/.....) place http://www.yourdomain.com/path/to/bv01016.gif where, obviously, path/to is the actual path to the folder of the menu. PUBLISH the page again and you are done.
Or, do it straight way, in order to avoid publishing twice, and use the File publisher (embedded in BV) to simoultaneously upload the pictures.
2. Yes, it is quite possible, i simply wanted to keep that simple. In fact, not one person here has ever wondered why I have put that as a function and not as a direct include. A function would allow, for more advanced users, to define their own parameters for the menu, thus being able to change colours, buttons etc.
3. The src = "http//xxx.biz/file.js" is a different thing. The "include" command is (usually) disabled for URLs.
I'm not sure I follow you here. I created both a navigation bar with buttons and a javascript menu that will appear on multiple pages using your format. The buttons in the nav bar are the bv01016.gif files I mentioned, that appear when published. However, there is nowhere in BV that I can see that allows me to specify the file path to that image. AFAIK that image only exists on the server.
I'm curious though, is this method the best way to include a javascript menu and a navbar that will repeat on every page? What about headers and footers and rotating ad banners? In fact, my rotating ad banners don't rotate at all anymore.
Yay I'm learning now :D Thanks
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
The menu this way is seen on each page. That's one reason we suggest it :)
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
Navaldesign, I have successfully set up my menus as described in this thread, I have a query.
Bearing in mind that the text in my menu contains carefully researched keywords, do the se spiders interpret each separate page as actually having the menu physically present on the page?
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
1. It is not necessary to edit the file code. Simply publish the menu anywhere, and the images will be also published. Then go back in BV, and, in the place of the image location (c/documents/.....) place http://www.yourdomain.com/path/to/bv01016.gif where, obviously, path/to is the actual path to the folder of the menu. PUBLISH the page again and you are done.
Or, do it straight way, in order to avoid publishing twice, and use the File publisher (embedded in BV) to simoultaneously upload the pictures.
2. Yes, it is quite possible, i simply wanted to keep that simple. In fact, not one person here has ever wondered why I have put that as a function and not as a direct include. A function would allow, for more advanced users, to define their own parameters for the menu, thus being able to change colours, buttons etc.
3. The src = "http//xxx.biz/file.js" is a different thing. The "include" command is (usually) disabled for URLs.
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
Originally posted by navaldesign View PostSorry, no, it can't be done because the menu also requires the relevant images and / or javascript and themes. So you need to publish the menu page in those folders.
Anyhow, I am using the concepts outlined in this wonderful thread to create a page header, a few menus, along with some common images that will be used throughout the site.
It concerned me that it was not possible to organize the site pages in individual folders using this method, and I was determined to figure out a way. I hope this hasn't been covered, and if I'm saying something that is totally retarded, please tell me.
Anyhow, I created a horizontal button menu using BV. It generates a set of bv101016.gif and bv101016_over.gif files (different numbers for each obviously) for each button in the menu. Obviously using this method, those files need to be in the same folder as the .php file that calls for them. However, if you edit the HTML directly, you can specify a URL for those files, along with the mouseover and mouseout files quite easily.
Using this method, you can use that same .php file using the <?php include ($_SERVER['DOCUMENT_ROOT]."path/file.php"); file(); ?> command (I think I got that close) to enact the .php script from any folder within your site. As long as the .gif files are specified in the html as URLs, they will work. When you need to make changes, you may need to re-edit the html direclty, but that is better IMHO than re-publishing the menu in each and every folder (of which you may have many).
I did something similar with a drop-down style menu that created a .js file when published. Opening the menu.php file in notepad I edited the src = "file.js" to include the path...
src = "http//xxx.biz/file.js"
worked like a charm.
Hope this makes sense or is helpful and isn't a repeat.
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
The only way ìs to manually edit the published files (download them, edit hem in Notepad, upload them again). However, if, as suggested, you do NOT name your pages, or add keywords, metatags etc, there is NO problem with SEs
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
I have set up several aspects to my template (a top image, side image and a menu) and all seem to work as they should. My problem is that since I had saved these as individual images as pages and am using the PHP to recall them, when I look at the html code there are three sections for <head>, <title>, etc.....
This cannot be good for the search engines so how do I get around that?
Thanks for this incredible thread!
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
Hi Philips,
i will reply later.
Thanks
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
Originally posted by navaldesign View PostIt is obvious that you are making some mistake, as it sems that you have, in the main pages, the same code that re-declares the menu function. Please read again the instructions and follow them to the letter.
Regarding the html file, it now results deleted...
You have mail from me.
Regards,
PJR
Leave a comment:
-
-
Re: Single Menu Page with Bv and PHP
It is obvious that you are making some mistake, as it sems that you have, in the main pages, the same code that re-declares the menu function. Please read again the instructions and follow them to the letter.
Regarding the html file, it now results deleted...
Leave a comment:
-
Leave a comment: