General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Few Questions
Posted by: Albert
Date: August 23, 2008 07:51PM

Okay I have a few question on K-Meleon:

1. How do I add a Google Search Bar?
2. Can I add an "x" to each tab so I can close them?
3. How can I get rid of the favorites, history, and print buttons?
4. How can I stop K-Meleon from auto-switching to a tab I just opened?

Options: ReplyQuote
Re: Few Questions
Posted by: desga2
Date: August 23, 2008 08:41PM

1) You not can. Exist a SearchBar plugin but not works fine in last 1.5 version need update it.

2) No, you not can. It's useless, you can close tabs with middle click or double click.

3) You must edit toolbars.cfg file of your current skin folder. Edit -> Configuration -> Toolbars, and "# -- TO HIDE A BUTTON, ADD '#' TO THE LEFT OF ALL THE BUTTON'S LINES --", save changes in file and restart K-Meleon. More Documentation. Also you can changed your toolbars.cfg by this.

4) Open tabs in Background: More info about.

P.S.: Look in Preferences Browsing (section) and Tabbed Browsing (subsection).

K-Meleon in Spanish



Edited 2 time(s). Last edit at 08/23/2008 08:50PM by desga2.

Options: ReplyQuote
Re: Few Questions
Posted by: caktus
Date: August 25, 2008 05:21PM

Quote
desga2
3) You must edit toolbars.cfg file........ of your current skin folder.

With 1.5.0 I too commented out the menu buttons. But when I got to the last button, the Close button, no matter how I tried to comment it out the Close button would still be on the tool bar, either as the red "x" or the word "Close" and the button would not work. This occured to any button that was the last button commeted out. For example, when commenting out ALL buttons and the last button was "Favorites" the same problem would occur with the Favorites button.

The work-around was to comment out all menu buttons except the "Close button." Then to get rid of the Close button, remove the checkmark beside
Tab/Window Buttons in the View > Toolbars menu.

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: Few Questions
Posted by: desga2
Date: August 25, 2008 09:00PM

@ caktus:

I think that you forget commented some "{" or "}" and this can generated this problem.

Can you post toolbars.cfg file that your problem happend?

K-Meleon in Spanish

Options: ReplyQuote
Re: Few Questions
Posted by: caktus
Date: August 26, 2008 02:15AM

Quote
desga2
I think that you forget commented some "{" or "}" and this can generated this problem.

Can you post toolbars.cfg file that your problem happend?

Not commenting out the "{" or "}" did result in the symptoms I mentioned. But if I recall correctly commenting out both "{" and "}" did not remove the button. I don't want to recreate the problem with my current install of 1.5.0 as it is finally working exactly as I want, and is redering pages so quickly (much faster than 1.5a1.smiling smiley) But I will creat a new install of 1.5.0 to recreate the problems and post the results.

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: Few Questions
Posted by: caktus
Date: August 26, 2008 05:17AM

@desga2

Upon installing 1.5.0 I enabled IE Favorites in Preferences.

I then successfully commented out the "Stop", "Home", "Bookmarks" Favorites", "History", "Mail" and "Zoom In" buttons.

When I tried to comment out the "Zoom Out" button KM displayed a message that "K-meleon wasn't closed out properly. Do you wan to resume you last browsing session." regardless weather I clicked on "Yes" or "No" KM would consume 97% of CPU resourses and would not open.
This is how I commented out the "Zoom Out" button:

# Zoom Out{
# %ifplugin macros
# macros(Zoom_Out)|_Zoom_Out
# Zoom Out. Right-click for more options.
# %else
# ID_FONT_DECREASE
# Zoom Out Text
# %endif
# zoomhot.bmp[1]
# zoomcold.bmp[1]
# }

This is the same way I commented out the "Zoom In" button. After UNcommenting out the "Zoom Out" button then KM would open normally.

Leaving the "Zoom Out" button UNcommented out I contenued to the "New Tab" button which commented out successfully.

The next button I attempted to comment out was the "Close" button. When I tried to open KM, KM displayed a message that "K-meleon wasn't closed out properly. Do you wan to resume you last browsing session." regardless weather I clicked on "Yes" or "No" KM would consume 97% of CPU resourses and would not open.
This is how I commented out the "Close" button:

# Close{
# %ifplugin tabs
# ID_CLOSE_TAB|Close
# Close Tab. Right-click for more options.
# %else
# ID_FILE_CLOSE|Close
# Close Window. Right-click for more options.
# %endif
# layerwindowhot.bmp[3]
# layerwindowcold.bmp[3]
# }

When I tried this:

Close{
# %ifplugin tabs
# ID_CLOSE_TAB|Close
# Close Tab. Right-click for more options.
# %else
# ID_FILE_CLOSE|Close
# Close Window. Right-click for more options.
# %endif
# layerwindowhot.bmp[3]
# layerwindowcold.bmp[3]
# }

just to see what would happen, the "Close" button was replalced by "Privacy" options buttons.

When I tried this:

Close{
# %ifplugin tabs
# ID_CLOSE_TAB|Close
# Close Tab. Right-click for more options.
# %else
# ID_FILE_CLOSE|Close
# Close Window. Right-click for more options.
# %endif
# layerwindowhot.bmp[3]
# layerwindowcold.bmp[3]
}

just to see what would happen, The "Privacy" options buttons were replaced by a text "Close" button.

I then UN commented out the "Close" button which of course reinstated the "Close" button.

Then I UNcommented out the "Favorites" button and commented out the "Close" button, but this time as prviousely KM displayed the message that "K-meleon wasn't closed out properly. Do you wan to resume you last browsing session." regardless weather I clicked on "Yes" or "No" KM would consume 97% of CPU resourses and would not open. Appearantly I was doing something differently when UNcommenting out the "Favorites" buttom which permitted the "Close" button to be commented out.

In any case it seems that first removing as many buttons as possible from Preverences and Veiw > Toolbars is the safest way to go.

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: Few Questions
Posted by: desga2
Date: August 26, 2008 12:18PM

Your problen is that you let toolbar definitions empty, with out any button defined in toolbar. This is that do K-Meleon not start and have 99% of CPU.

You must commented the toolbar definition when this are empty, with out any button in it.

This is the toolbars.cfg code with the buttons you indicate to comment, LOOK as i commented the toolbar definition when this is empty (all buttons in toolbar are commented) for example "Mail/&News Buttons" and "&Zoom Buttons":
# -- TOOLBAR DEFINITION FILE FOR K-MELEON --
# -- TO HIDE A BUTTON, ADD '#' TO THE LEFT OF ALL THE BUTTON'S LINES --
# -- EXAMPLE & DESCRIPTIONS AT BOTTOM OF FILE --
# -- IMAGES BY: Lim Chee Aun (http://www.phoenity.com) --
# ---------------------------------------------------------------------

&Main Bar{

	Back{
	ID_NAV_BACK
	Go back one page
	mainbarhot.bmp[0]
	mainbarcold.bmp[0]
	mainbardead.bmp[0]
	}

	Forward{
	ID_NAV_FORWARD
	Go forward one page
	mainbarhot.bmp[1]
	mainbarcold.bmp[1]
	mainbardead.bmp[1]
	}

#	Stop{
#	ID_NAV_STOP
#	Stop loading this page
#	mainbarhot.bmp[2]
#	mainbarcold.bmp[2]
#	mainbardead.bmp[2]
#	}

	Reload{
	%ifplugin macros
	ID_NAV_RELOAD|Reloa&ding
	Reload this page. Right-click for more options.
	%else
	ID_NAV_RELOAD
	Reload this page
	%endif
	mainbarhot.bmp[3]
	mainbarcold.bmp[3]
	mainbarcold.bmp[3]
	}

#	Home{
#	%ifplugin macros
#	macros(Home)|Ho&me
#	Open Home Page. Right-click for more options.
#	%else
#	ID_NAV_HOME
#	Open Home Page
#	%endif
#	mainbarhot.bmp[4]
#	mainbarcold.bmp[4]
#	mainbarcold.bmp[4]
#	}

#	%ifplugin bookmarks
#	Bookmarks{
#	bookmarks(Edit)|&Bookmarks
#	Edit Bookmarks. Right-click to view Bookmarks menu.
#	mainbarhot.bmp[5]
#	mainbarcold.bmp[5]
#	mainbarcold.bmp[5]
#	}
#	%endif

#	%ifplugin favorites
#	Favorites{
#	favorites(Edit)|F&avorites
#	Explore Favorites. Right-click to view Favorites menu.
#	mainbarhot.bmp[5]
#	mainbarcold.bmp[5]
#	mainbarcold.bmp[5]
#	}
#	%endif

	%ifplugin hotlist
	Hotlist{
	hotlist(Edit)|H&otlist
	Edit Hotlist. Right-click to view Hotlist menu.
	mainbarhot.bmp[5]
	mainbarcold.bmp[5]
	mainbarcold.bmp[5]
	}
	%endif

#	%ifplugin history
#	History{
#	history(View)|Histor&y
#	View History. Right-click for more options.
#	mainbarhot.bmp[7]
#	mainbarcold.bmp[7]
#	mainbarcold.bmp[7]
#	}
#	%endif

	Print{
	ID_FILE_PRINT|Print
	Print this page. Right-click for more options.
	mainbarhot.bmp[8]
	mainbarcold.bmp[8]
	mainbarcold.bmp[8]
	}

#	%ifplugin macros
#	Popups{
#	macros(pref_TogglePopups)
#	Block Popups. Press F8 to toggle.
#	mainbarhot.bmp[9]
#	mainbarcold.bmp[9]
#	mainbarcold.bmp[9]
#	}
#	%endif

#	-

#	Options{
#	ID_PREFERENCES|Compact Menu
#	View Preferences. Right-click to view Compact Menu.
#	mainbarhot.bmp[10]
#	mainbarcold.bmp[10]
#	mainbarcold.bmp[10]
#	}

}


#%ifplugin macros

#Mail/&News Buttons{

#	Mail{
#	macros(Mail_ReadMail)|&Mail And News
#	Read Mail. Right-click for more options.
#	mailnewshot.bmp[0]
#	mailnewscold.bmp[0]
#	}

#	News{
#	macros(Mail_ReadNews)
#	Read News
#	mailnewshot.bmp[1]
#	mailnewscold.bmp[1]
#	}

#	RSS{
#	macros(RSS)
#	Read RSS Feeds
#	mailnewshot.bmp[2]
#	mailnewscold.bmp[2]
#	}

#}

#%endif


#&Zoom Buttons{

#	Zoom In{
#	%ifplugin macros
#	macros(Zoom_In)|_Zoom_In
#	Zoom In. Right-click for more options.
#	%else
#	ID_FONT_INCREASE
#	Zoom In Text
#	%endif
#	zoomhot.bmp[0]
#	zoomcold.bmp[0]
#	}

#	Zoom Out{
#	%ifplugin macros
#	macros(Zoom_Out)|_Zoom_Out
#	Zoom Out. Right-click for more options.
#	%else
#	ID_FONT_DECREASE
#	Zoom Out Text
#	%endif
#	zoomhot.bmp[1]
#	zoomcold.bmp[1]
#	}

#}


&Search Buttons{

	Search{
	%ifplugin macros
# EITHER:
	macros(Search)|_Search_Engines
# OR:
#	macros(Search)|&Web Search
	Type a word or phrase in the URL Bar, then click this button or press Ctrl+G to search the Web. Right-click to choose different search engine.
	%else
	ID_NAV_SEARCH
	Search the Web
	%endif
	searchhot.bmp[0]
	searchcold.bmp[0]
	}

#	%ifplugin macros
#	-

#	Forums{
#	macros(Search_KMForums)
#	Search K-Meleon Forums
#	searchhot.bmp[8]
#	searchcold.bmp[8]
#	}

#	%endif

}


&Go Buttons{

	Go{
	%ifplugin macros
	macros(Go_Selected)|_Go
	Go to URL. Right-click for more options.
	%else
	ID_NAV_GO
	Go to URL
	%endif
	gohot.bmp[0]
	gocold.bmp[0]
	}

	%ifplugin macros
	Up{
	macros(Go_Up)|_Up
	Go up one directory level. Right-click for more options.
	gohot.bmp[1]
	gocold.bmp[1]
	}
	%endif

}


Tab/&Window Buttons{

#	Prev{
#	%ifplugin tabs
#	ID_TAB_PREV|Prev
#	Previous Tab. Right-click for more options.
#	%else
#	ID_WINDOW_PREV|Prev
#	Previous Window. Right-click for more options.
#	%endif
#	layerwindowhot.bmp[0]
#	layerwindowcold.bmp[0]
#	}

#	Next{
#	%ifplugin tabs
#	ID_TAB_NEXT|Next
#	Next Tab. Right-click for more options.
#	%else
#	ID_WINDOW_NEXT|Next
#	Next Window. Right-click for more options.
#	%endif
#	layerwindowhot.bmp[1]
#	layerwindowcold.bmp[1]
#	}

#	-

	New{
	%ifplugin tabs
	ID_NEW_TAB|New
	New Tab. Right-click for more options.
	%else
	ID_NEW_BROWSER
	New Window
	%endif
	layerwindowhot.bmp[2]
	layerwindowcold.bmp[2]
	}

#	Close{
#	%ifplugin tabs
#	ID_CLOSE_TAB|Close
#	Close Tab. Right-click for more options.
#	%else
#	ID_FILE_CLOSE|Close
#	Close Window. Right-click for more options.
#	%endif
#	layerwindowhot.bmp[3]
#	layerwindowcold.bmp[3]
#	}

}


%ifplugin macros|privacy

&Privacy Bar(64,13){

	%ifplugin macros

#	Animation{
#	macros(pref_ToggleAnimation)
#	Block Image Animation
#	privhot.bmp[0]
#	privcold.bmp[0]
#	}

#	Colors{
#	macros(pref_ToggleColors)
#	Block Page Colors
#	privhot.bmp[1]
#	privcold.bmp[1]
#	}

	Cookies{
	macros(pref_ToggleCookies)
	Block Cookies
	privhot.bmp[2]
	privcold.bmp[2]
	}

	Images{
	macros(pref_ToggleImages)
	Block Images. Press F9 to toggle.
	privhot.bmp[3]
	privcold.bmp[3]
	}

	Java{
	macros(pref_ToggleJava)
	Block Java Applets
	privhot.bmp[4]
	privcold.bmp[4]
	}

	JavaScript{
	macros(pref_ToggleJavaScript)
	Block JavaScript. Press F7 to toggle.
	privhot.bmp[5]
	privcold.bmp[5]
	}

	Popups{
	macros(pref_TogglePopups)
	Block Popups. Press F8 to toggle.
	privhot.bmp[6]
	privcold.bmp[6]
	}

#	Referer{
#	macros(pref_ToggleReferer)
#	Block HTTP Referer
#	privhot.bmp[7]
#	privcold.bmp[7]
#	}

	%endif

	%ifplugin privacy

	Clear Cache{
	privacy(ClearCache)
	Clear Cache
	privhot.bmp[8]
	privcold.bmp[8]
	}

	Clear Cookies{
	privacy(ClearCookies)
	Clear Cookies
	privhot.bmp[9]
	privcold.bmp[9]
	}

#	Clear History{
#	privacy(ClearHistory)
#	Clear History
#	privhot.bmp[10]
#	privcold.bmp[10]
#	}

	Clear Passwords{
	privacy(ClearSignon)
	Clear Passwords
	privhot.bmp[11]
	privcold.bmp[11]
	}

#	Clear URLBar{
#	privacy(ClearMRU)
#	Clear URL Bar History
#	privhot.bmp[12]
#	privcold.bmp[12]
#	}

	%endif

	%ifplugin macros & privacy
	Clear All{
	macros(kPrivacy_ClearAll)
	Clear All
	privhot.bmp[13]
	privcold.bmp[13]
	}
	%endif
	
	%ifplugin macros

	Kill Flash{
	macros(JS_killFlash)
	Kill Flash Objects
	privhot.bmp[14]
	privcold.bmp[14]
	}

#	Kill Applets{
#	macros(JS_killApplets)
#	Kill Java Applets
#	privhot.bmp[15]
#	privcold.bmp[15]
#	}

	User Agent{
	ID_APP_ABOUT|&User Agent
	Check Browser Identity. Right-click to choose different User Agent.
	privhot.bmp[16]
	privcold.bmp[16]
	}

	%endif

}

%endif

# EXAMPLE-----------------------------------------------------------------

# Tool Bar(16,16){	= NAME OF TOOLBAR (WIDTH, HEIGHT) *default = (16,16) 

# Print(16,16) {	= NAME OF BUTTON (WIDTH, HEIGHT) *none = Tool Bar specs
# ID_FILE_PRINT|Print 	= ID COMMAND, PLUGIN COMMAND, OR MACRO | MENU NAME (as defined in menus.cfg)
# Print this page 	= TOOL TIP		
# toolhot.bmp[0] 	= HOT IMAGE [INDEX WITHIN IMAGE FILE]
# toolcold.bmp[0] 	= COLD IMAGE [INDEX WITHIN IMAGE FILE]
# tooldead.bmp[0] 	= DISABLED IMAGE [INDEX WITHIN IMAGE FILE] *optional
# } 			= END OF BUTTON

# - 			= SEPARATOR

# } 			= END OF TOOL BAR

# NO TOOL BAR IMAGES 	= TEXT BASED TOOL BAR WITH BUTTON NAMES FOR IMAGES

# *Any changes will take effect after K-Meleon is restarted*
# ------------------------------------------------------------------------

But you must remember:
Quote
caktus
In any case it seems that first removing as many buttons as possible from Preverences and Veiw > Toolbars is the safest way to go.

K-Meleon in Spanish

Options: ReplyQuote
Re: Few Questions
Posted by: caktus
Date: August 26, 2008 11:18PM

Quote
desga2
But you must remember:
Thank you. Point well taken.smiling smiley

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote


K-Meleon forum is powered by Phorum.