SMF Support > SMF 2.0.x Support

force menu button to open inside forum with html link

(1/6) > >>

dooie:
I have been able to create a button on my 2.0.2 default theme for my links page which is called ./links.html

Here is the script in the array.

--- Code: ---                                'links' => array(
'title' => $txt['links'],
'href' => 'http://www.myforum.com/links.html',
'show' => true,
'sub_buttons' => array(
),
),
--- End code ---

How do I force this to open within the forum rather than as an external page?

I also have an ad management banner which has an html page called tshirt.html that I would prefer the contents of to display within the forum rather than an external page.

Anyone know how to help me?

Cheers.

K@:

--- Code: ---'href' => 'http://www.myforum.com/links.html target="_self"',
--- End code ---

Would that do it?

dooie:
it caused an error page with the following

Not Found

The requested URL /links.html target= was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

The address that came up was
--- Code: ---http://www.americanponders.com/links.html target=
--- End code ---

as you can see it did not know where to go as the target was empty. is there more code to define it to stay within the main forum. is there a way to keep it there like the other buttons like to ./forum/index.php?action=links

K@:
I'm not entirely sure of the right syntax, I'm afraid.

Maybe the apostrophe should be after the html?


--- Code: ---'href' => 'http://www.myforum.com/links.html' target="_self",
--- End code ---

I'm no coder, I'm afraid.

I just did a search and found that, only it was a bit different.

It was a <a href><a> thing.

Arantor:
I don't think that's what's desired - am I right in thinking you're after putting your custom page into something that actually *looks* like part of the forum?

Navigation

[0] Message Index

[#] Next page

Go to full version