News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Tab

Started by Deprecated, September 17, 2008, 12:43:00 AM

Previous topic - Next topic

Deprecated

QOY thank you for liking my mod. :) I wrote it for you! :)

Modern Internet convention is that the browser (and user) decides whether a URL will open a new window, new tab or same window. The user is responsible for deciding which. You can right-click the tab and select same window, new window or new tab.

Enjoy! :)

QOY

Quote from: Deprecated on October 19, 2008, 07:58:28 PM
QOY thank you for liking my mod. :) I wrote it for you! :)

I figured as much. I just have that effect on people. I do so much appreciate it.  ;)

Quote from: Deprecated on October 19, 2008, 07:58:28 PM
Modern Internet convention is that the browser (and user) decides whether a URL will open a new window, new tab or same window. The user is responsible for deciding which. You can right-click the tab and select same window, new window or new tab.

Enjoy! :)

Yeah I know but I couldn't help wonder how many others actually know this. I have dealt with so many people that don't even know where the "start" button is so I figured I would ask.
Thanks again for my mod. I will enjoy it.  :D

Deprecated

Ten thousand SMF members per month seem to agree with you! :)

I could code the mod to work the way you were asking, but I feel involved in supporting browser standards, HTML, CSS, XML and etc. in that certain behaviors are encouraged by the standards and by the authorities who write them, and it is plainly clear that the modern vision is that it is up to the user to make such decisions. I believe that the 'Net will be a better place if software authors and website developers adhere to the standards. YMMV

damnitmike

Deprecated,

Love your work and 'tude...(attitude)

And if there's anyone who can do a drop down, your one of them......

I wish I had half your coding knowledge....

Anyhow, now that I buttered you up, would it really be that difficult to make your custom tab do this..

http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm


Just trying to offer some help....Keep on Keeping On , Eh!




Deprecated

I'm planning on getting into drop menus and themes at some point in the near future, hopefully before the end of the year. I have a variety of small feature updates planned for my existing mod packages, and at least one killer idea that I hope I can package as a mod. The simple fact is that one person can do only so much and things will be ready when they're ready. I try. :)

damnitmike

QuoteThe simple fact is that one person can do only so much and things will be ready when they're ready. I try.

I hear ya buddy....!

I don't know what you have planned, but I'm sure it will be sweeeet!

Good Luck!


GMCbris

Great Mod

I have to do a manual install  - looking forward to using it

GMC

GMCbris

#47
It worked a treat.. but I a format issue

My other buttons have a small Image in front of them see pic



This is the code they use

   // How about the [search] button?
   if ($context['allow_search'])
      echo '<td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/esearch.gif" alt="' . $txt[182] . '"/>' : ''),'
            </td><td>&nbsp;<a href="', $scripturl, '?action=search">Explore</a></td>';



I have tried to edit your code to get the little image in there - but I keep getting parse errors (Maybe I should learn PHP :) )

Do you have any suggestions for me

Thanks again for a great mod

GMC

Deprecated

Please attach the entire file. The out-of-context is confusing. I want the file after you installed my mod but before you tried to modify it.

GMCbris

Quote from: Deprecated on October 22, 2008, 07:12:15 AM
Please attach the entire file. The out-of-context is confusing. I want the file after you installed my mod but before you tried to modify it.

I can... thanks for having a look

Here it is

GMC

extramachine

Does this MOD work only with the default theme?
Is there no way it can work with other themes?   :-X

Deprecated

Quote from: GMCbris on October 22, 2008, 08:21:04 AM
Quote from: Deprecated on October 22, 2008, 07:12:15 AM
Please attach the entire file. The out-of-context is confusing. I want the file after you installed my mod but before you tried to modify it.

I can... thanks for having a look

Here it is

GMC

I'm sorry, your SMF is too old. I can't help you. Perhaps if you upgraded to SMF 1.1.6...

Deprecated

Quote from: extramachine on October 22, 2008, 08:54:44 AM
Does this MOD work only with the default theme?
Is there no way it can work with other themes?   :-X

Manually edit your theme index.template.php ... the rest should work okay.

GMCbris

#53
Quote from: Deprecated on October 22, 2008, 09:07:49 AM
Quote from: GMCbris on October 22, 2008, 08:21:04 AM
Quote from: Deprecated on October 22, 2008, 07:12:15 AM
Please attach the entire file. The out-of-context is confusing. I want the file after you installed my mod but before you tried to modify it.

I can... thanks for having a look

Here it is

GMC

I'm sorry, your SMF is too old. I can't help you. Perhaps if you upgraded to SMF 1.1.6...

I am on 1.1.6



Its a custom theme called electron ... what lets you know I am not running the latest version? 

Thanks Again

Deprecated

At the top of your file: Version: 1.1 RC2

Too many miscomparisons with 1.1.6, too confusing. I'm having a bad enough time holding 1.1.5, 1.1.6, 2.0b31 and 2.0b4 in my head. My head is exploding!!! >:D

GMCbris

Quote from: Deprecated on October 22, 2008, 10:50:46 AM
At the top of your file: Version: 1.1 RC2

Too many miscomparisons with 1.1.6, too confusing. I'm having a bad enough time holding 1.1.5, 1.1.6, 2.0b31 and 2.0b4 in my head. My head is exploding!!! >:D
Thanks anyway - At least the actual Mod works and works well

Thanks again

extramachine

Quote from: Deprecated on October 22, 2008, 09:08:26 AM
Quote from: extramachine on October 22, 2008, 08:54:44 AM
Does this MOD work only with the default theme?
Is there no way it can work with other themes?   :-X

Manually edit your theme index.template.php ... the rest should work okay.

Ok thanks, it is working.

gemigene

Fantastic Mod, as always.

I use it to launch a remote chat (addoninteractive) I coded in a plain HTML page. Is there a way to have the chat page load in a new browser window/tab when clicking on the tab?

Thanks,
Gene

BTW, using ver. 1.16
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

MiaBoBia

how do you grant access to the button?

gemigene

BUMP!

Quote from: gemigene on November 04, 2008, 03:31:36 PM
Fantastic Mod, as always.

I use it to launch a remote chat (addoninteractive) I coded in a plain HTML page. Is there a way to have the chat page load in a new browser window/tab when clicking on the tab?

Thanks,
Gene

BTW, using ver. 1.16

Is it just a matter of inserting target="_blank" in the following snippet of code in index.template.php? And if so, where?

<a href="', !empty($modSettings['custom_tab_execute_url']) ? $modSettings['custom_tab_execute_url'] : $scripturl, '">',
!empty($modSettings['custom_tab_label']) ? $modSettings['custom_tab_label'] : $txt['custom_tab_label_default'], '</a>


Thanks,
Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

Advertisement: