Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Design and HTML
Reload this Page My Menus are messed up Hope it's easy fix ??
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
fazang's Avatar
Junior Member
fazang is on a distinguished road
 
Posts: 6
Join Date: Mar 2012
Location: 06078
Send a message via AIM to fazang
Default My Menus are messed up Hope it's easy fix ?? - 03-16-2012, 04:31 PM

here is the code

<div id="menu"><!--{%menu_start=1%}-->
<li><a href="{%menu_href%}">{%menu_display%}</a></li>
<li><a href="http://cttri9.net63.net"><img alt="HOME" src="web_images/centercap_HOME_small.jpg" width="100" height="90" /></a></li>
<li><a href="http://cttri9.net63.net/1_2_Links.html"><img alt="LINKS" src="web_images/centercap_links.jpg" width="100" height="92" /></a></li>
<!--{%menu_end=1%}--></div>
<!-- end menu -->

here is the URL
http://cttri9.net63.net/index.php

WHY are the buttons i have created appearing TWICE !!!! it's ticking me OFF

-ALF out....


Jusy trin' to learn this stuff
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Member
beska88 is on a distinguished road
 
Posts: 30
Join Date: Mar 2012
Default 03-16-2012, 05:00 PM

first of all make <ul> and </ul> tags at the begining and the end of the menu.

then as i noticed you have a loop which is repeating manu name, then a image with alt home, and second with alt links. as i think you chould do something like this:


<div id="menu">
<ul>
<!--{%menu_start=1%}-->

<li><a href="{%menu_href%}"><img alt="{%menu_display%}" src="web_images/centercap_HOME_small.jpg" width="100" height="90" /></a></li>

<!--{%menu_end=1%}-->
</ul>
</div>
<!-- end menu -->


but this will not show any words, it will display only 3 image, with alt home, links and contact.
Reply With Quote
(#3 (permalink))
Old
fazang's Avatar
Junior Member
fazang is on a distinguished road
 
Posts: 6
Join Date: Mar 2012
Location: 06078
Send a message via AIM to fazang
Default 03-16-2012, 05:17 PM

I tried your fix.....

still learning how to read the code....i guess i am SOL with using a DIFFERENT JPG

for each link ???

can src="web_images/centercap_HOME_small.jpg" be changed so each link has the appropriate pic associated with it ???

i picked a built-in template so the way the MENU is built is under the covers so i can't figure out what file is looping ??
This : href="{%menu_href%}"><img alt="{%menu_display%} is still MAGIC !!??

TIA for ALL your help
-ALF out....


Jusy trin' to learn this stuff
Reply With Quote
(#4 (permalink))
Old
Member
beska88 is on a distinguished road
 
Posts: 30
Join Date: Mar 2012
Default 03-16-2012, 06:33 PM

yes, it is possible to have different jpg-s for different menus.

<div id="menu">
<ul>
<!--{%menu_start=1%}-->

<li><a href="{%menu_href%}"><img alt="{%menu_display%}" src="web_images/centercap_HOME_small.jpg" width="100" height="90" /></a></li>

<!--{%menu_end=1%}-->
</ul>
</div>
<!-- end menu -->


in this menu loop starts at "<!--{%menu_start=1%}-->" and ends at "<!--{%menu_end=1%}-->"
between this list item is displaying three times but there is only two variables and they are: {%menu_href%} and {%menu_display%}. where menu_href is the link where user is redirected when clicked, and menu_display is the word (in this case) what will be displayed if not image.

if you had a {%image_src%} then there could be three images within the loop, something like this:

<div id="menu">
<ul>
<!--{%menu_start=1%}-->

<li><a href="{%menu_href%}"><img alt="{%menu_display%}" src="{%image_src%}" width="100" height="90" /></a></li>

<!--{%menu_end=1%}-->
</ul>
</div>


but this {%image_src%} must be in database and must contain links to image like "web_images/centercap_HOME_small.jpg"
Reply With Quote
(#5 (permalink))
Old
fazang's Avatar
Junior Member
fazang is on a distinguished road
 
Posts: 6
Join Date: Mar 2012
Location: 06078
Send a message via AIM to fazang
Default 03-16-2012, 06:47 PM

okay then....when i see {%variable%} when i look at my code in a html viewer it means
the info is stuck in a DB somewhere...GOT IT !!

do i have to use the free MySql DB and create a table or something ????
I have no idea how to accomplish what i am trying to do.....?

tooo bad this file root /public_html /data /cache/menu1.txt is dynamically created..

<li><a href="http://cttri9.net63.net/tinymce_styles_remove/images/"><img alt="Home" src="web_images/centercap_HOME_small.jpg" width="100" height="90" /></a></li>

<li><a href="1_2_Links.html"><img alt="Links" src="web_images/centercap_HOME_small.jpg" width="100" height="90" /></a></li>

<li><a href="1_3_Contact.html"><img alt="Contact" src="web_images/centercap_HOME_small.jpg" width="100" height="90" /></a></li>

-ALF out...


Jusy trin' to learn this stuff

Last edited by fazang; 03-16-2012 at 06:55 PM.
Reply With Quote
(#6 (permalink))
Old
Member
beska88 is on a distinguished road
 
Posts: 30
Join Date: Mar 2012
Default 03-16-2012, 07:05 PM

in this case, you have only three menu item and if you want forget about loop and mysql, make it much easyer, just make simple html.

<div>
<ul>
<li> ... </li>
<li> ... </li>
<li> ... </li>
</ul>
</div>



and about beginners, none of us knows everything. I am a beginner too
Reply With Quote
(#7 (permalink))
Old
fazang's Avatar
Junior Member
fazang is on a distinguished road
 
Posts: 6
Join Date: Mar 2012
Location: 06078
Send a message via AIM to fazang
Default 03-16-2012, 07:15 PM

you are probably right for a quick and dirty solution...but
if i do that and delete
<div id="menu">
<ul>
<!--{%menu_start=1%}-->
.....

i think i lose all the nice formatting that is hidden in the .css file(s) in my pub_html dir ???

i have tons to figure out about How the hell .css filles work.... i guess i have a lot of trial / error in my future
thanx again for tryng to help
-ALF out...


Jusy trin' to learn this stuff
Reply With Quote
(#8 (permalink))
Old
Member
beska88 is on a distinguished road
 
Posts: 30
Join Date: Mar 2012
Default 03-16-2012, 07:18 PM

no, dont delete <div id="menu">, just looping <!--{%menu_start=1%}--> tags.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com