News:

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

Main Menu

Adding a Button and link

Started by gantocks, June 08, 2008, 03:50:12 PM

Previous topic - Next topic

gantocks

Hi there

Firstly

I have searched and cannot find a way to add a Button with a link to version 1.1.5

I wish to add a Button which will Link to My Flashchat .

Forgive my ignorance as I am New to SMF.

I tried the Mod crbutton but I could not change the link from the roadrunner link that was in the mod.

I have now uninstalled that mod.

Can anybody help this idiot.

LOL

Many thanks

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

gantocks

Hi there Owdy

Thanks for that

I have added this as suggested to the index_template.php as suggested.

As you can see the url is <a href="http://oceans19.net/forum/chat/flashchat.php [nofollow]>

However when clicking on the button I am taken to http://www.roadrunner.cx/ [nofollow] which was the URL in the crtbutton Mod I used previously

Where else do Ineed to place the Url of the Chatroom


    // The Chat Room
        echo '
     <a href="http://oceans19.net/forum/chat/flashchat.php [nofollow]>', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="Chat" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

            
   

Owdy

Quote from: gantocks on June 08, 2008, 04:47:39 PM

However when clicking on the button I am taken to http://www.roadrunner.cx/ which was the URL in the crtbutton Mod I used previously
Are you sure you are editing right theme? If you still have that "wrong" link, just edit that and correct it.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

gantocks

Hi Owl

I use the SMF Default Theme and that is the File I have edited

It places the Button on the Forum without a problem it is just the URL that does not change

Cheers for your reply

Owdy

If you open /Themes/default/index.template.php and search http://www.roadrunner.cx/ , do you find it? If yes, change that url. If no, the you are editing wrong file.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Jumpmasterrt

gantocks,

attach a copy of your index.templat.php file if you can't figure it out.

gantocks

Hi there

Here is my Index file

Many thanks.

Jumpmasterrt

And a link to your page, sorry.

gantocks


Jumpmasterrt

The link doesn't show to guests, so try this file.

I deleted what you had and added

// the [chat] button
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="http://oceans19.net/forum/chat/flashchat.php>' , $txt[467] , '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

gantocks

#11
Hi there

I uploaded the file you kindly sent and overwritten the original

There is no button showing on the menu

What could the reason for that be?

Once again thanks for your help

Gantocks

Jumpmasterrt

probably the $txt[467]. I registered on your forum so i can see. Once we're done you can delete me.

gantocks

#13
Hi there

I have just approved you

Gantocks

Jumpmasterrt

Ok so it added a space.... that's odd.

Ok, made a change

The link was missing a set of " anyway so it's good it didn't work. ;)

Try this......

gantocks

Mnay thanks JumpmasterRT

I am very grateful for you help and it works a treat now

You are a star mate

Gantocks

gantocks


Jumpmasterrt


gantocks


Advertisement: