News:

Wondering if this will always be free?  See why free is better.

Main Menu

Images in menu buttons

Started by jamescormack, September 15, 2009, 08:49:40 PM

Previous topic - Next topic

blazinchuck

it seems to do the exact same thing....it looks just like it does right now
"I'm not as Think, as you stoned I am"

Kays

Can you move it back there so I can have a look at it?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

blazinchuck

#22
you bet...np....this is it... http://palmettoperformancediesels.com


also...its not opening a new window for the facebook...can this be changed as well?
"I'm not as Think, as you stoned I am"

Kays

It looks like it's picking up the background image from #tabs6. ::)

Try this instead. I'm hoping it will override those images.


    echo '
        <div style="background-color: #222222:'><a href="http://m.facebook.com/group.php?gid=111056478946616//"><img src="http://palmettoperformancediesels.com/gallery/2_21_07_10_7_27_45.png""/></a></div>
  </div>';

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

blazinchuck

i get this error...so i put it back...

The file you tried to save generated the following error:
Parse error: syntax error, unexpected '<' in index.template.php on line 531
"I'm not as Think, as you stoned I am"

blazinchuck

i put this one back in
   echo '
    </ul>';
    echo '
        <a href="http://m.facebook.com/group.php?gid=111056478946616//"><img src="http://palmettoperformancediesels.com/gallery/2_21_07_10_7_27_45.png""/></a>
  </div>';

   echo '
    </ul>';
    echo '
        <a href="http://m.facebook.com/group.php?gid=111056478946616//"><img src="http://palmettoperformancediesels.com/gallery/2_21_07_10_7_27_45.png""/></a>
  </div>';
this is what was replaced with your last code btw
"I'm not as Think, as you stoned I am"

Kays

Ooops there was an error with that code. Try this.


   echo '
    </ul>';

    echo '
        <div style="background-color: #222222:"><a href="http://m.facebook.com/group.php?gid=111056478946616//"><img src="http://palmettoperformancediesels.com/gallery/2_21_07_10_7_27_45.png""/></a></div>
  </div>';

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

blazinchuck

well, that good rid of the error...button the button still looks a lil funky lol(really looks the same)
"I'm not as Think, as you stoned I am"

blazinchuck

heres a screenshot of what the facebook button looks like
"I'm not as Think, as you stoned I am"

Kays

Try this instead. I'm hoping that using the nav class might override that style


   echo '
    </ul>';

    echo '
        <div class="nav"><a href="http://m.facebook.com/group.php?gid=111056478946616//"><img src="http://palmettoperformancediesels.com/gallery/2_21_07_10_7_27_45.png""/></a></div>
  </div>';


I see that you're trying to add a link to Notepad. Check the support topic for that mod. I believe that I posted how to do so for a nav bar similar to yours.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

blazinchuck

#30
found out something today...while i was messing with the button for facebook. i went back to the code Kays posted with the <span> tags to see if i could use that and just make the facebook icon small so it wouldnt make the style of the button so much taller than the others. well when i did, the other buttons"media,members,logout,facebook...didnt drop down like they have been...only the facebook button dropped down(when selecting the media gallery). i removed the span tags and i back to just the FB icon for a button(still has another button image trying to work there in the same spot) ive attached the latest screenshot.

also, this is the latest code if needed ??? also...were in this code would i add the "target"=blank (for external linking)?Thanks
             echo '
    </ul>';

    echo '
        <div class="nav"><a href="http://www.facebook.com/profile.php?id=1179741554#!/group.php?gid=111056478946616&ref=mf//"><img src="http://palmettoperformancediesels.com/MGalleryItem.php?id=4""/></a></div>
  </div>';
"I'm not as Think, as you stoned I am"

Kays

A bit of a long shot. Look for the begining of the menu bar.


echo '<div id="tabs6">
<ul>';


And try placing this code before it:


echo '
  <div style="float: right;"><a href="http://www.facebook.com/profile.php?id=1179741554#!/group.php?gid=111056478946616&ref=mf//" target="_blank"><img src="http://palmettoperformancediesels.com/gallery/2_21_07_10_7_27_45.png""/></a></div>
  </div>';


For the media button, try the following:


if (allowedTo('aeva_access'))
echo '<li', $current_action == 'media' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=media"><span>', isset($txt['aeva_gallery']) ? $txt['aeva_gallery'] : 'Media', $aeva_unseen ? '</span></a> <a href="' . $scripturl . '?action=media;sa=unseen">[<b>' . $aeva_unseen . '</b>]' : '', '</a></li>';



If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

blazinchuck

i think im gonna hold off just for a bit...couple weird things happening now...lol
http://www.simplemachines.org/community/index.php?topic=391782.new;topicseen#new
"I'm not as Think, as you stoned I am"

Advertisement: