Uutiset:

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

Main Menu
Advertisement:

PLEASE HELP WITH BUTTONS

Aloittaja paster_cobra, syyskuu 16, 2006, 08:12:48 IP

« edellinen - seuraava »

paster_cobra

I am using Black Rain theme. Can someone please help me change and add buttons?
I would like to change to home button url so that it point to my site home page. Want to add forum and chat buttons. When I try I get a really small button or I get text only not the rollover button. Can some please help me please?


samames

yer i am having the exact same problem except i want to add staff list, chat and main site buttons. Please help us :)
Firefox 3 user. Mac user. Pc user.

paster_cobra

are you using the same theme as i am? i finally figured it out..let me know

samames

Firefox 3 user. Mac user. Pc user.

paster_cobra

#4
// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

        echo '<div id="tabs6">';
         echo '<ul><li><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';
       echo '<li><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span></a></li>';


change to


// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

  echo '<div id="tabs6">';
echo '<ul><li><a href="http://home page here.com"><span>'.$txt[103].'</span></a></li>';
echo '<li><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span></a></li>';
echo '<li><a href="http://other page here.com" ><span>button name</span></a></li>';
echo '<li><a href="http://next page.com" ><span>button name</span></a></li>';


AwwLilMaggie: Changed to code boxes

Gary

Find


         echo '<ul><li><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';


replace with


         echo '<ul><li><a href="URL HERE"><span>'.$txt[103].'</span></a></li>';


To add a new button, (lets say after the member list)

Find


   // the [member] list button
   if ($context['allow_memberlist'])
      echo '<li><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';


add after


   // Hey look I added a new page
      echo '<li><a href="MY URL HERE"><span>PAGE NAME HERE</span></a></li>';


-AwwLilMaggie
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

paster_cobra


samames

thnks mate, ill let u know how i get on when i try it later
Firefox 3 user. Mac user. Pc user.

samames

Thankyou, i did it, no problems... easy :D

Is there anyway i can centralise the buttons?
Thanks :)
Firefox 3 user. Mac user. Pc user.

bayfresh

Lainaus käyttäjältä: samames - syyskuu 20, 2006, 04:27:00 IP
Thankyou, i did it, no problems... easy :D

Is there anyway i can centralise the buttons?
Thanks :)
Yes, by editing style.css

look for: #tabs6 a {

Place after: position: relative; left: 20px;


Good luck...

samames

LainaaPlace after: position: relative; left: 20px;
sorry,  place what? :)
Firefox 3 user. Mac user. Pc user.

bayfresh

Lainaus käyttäjältä: samames - joulukuu 13, 2006, 07:37:15 AP
LainaaPlace after: position: relative; left: 20px;
sorry,  place what? :)
This:

position: relative; left: 20px;

Advertisement: