Saturday, April 21, 2007

Custom help window can be opened by hacking into the Core.js file in MOSS 2007

I have been asked a few times about popping a custom help window (as opposed to a SharePoint Help window) while clicking on context sensitive help links on MOSS sites. This can be easily done by changing the "Core.js" file which can be found at "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\Core.js" on your MOSS web server. Once you locate the file, find the Javascript function "HelpWindowHelper()" and change it to suite your requirements. An example is provided below:

function HelpWindowHelper(strParam)
{
var strHelpUrl;

if (typeof(strParam)=="undefined")
{strHelpUrl="/_layouts/help.aspx?Lcid="+L_Language_Text;}
else if (strParam == "&Key=Custom") /* Present new Custom Help Windows when parameter is 'Custom' */
{strHelpUrl="/pages/CustomHelp.aspx?Lcid="+L_Language_Text+strParam;}
else
{strHelpUrl="/_layouts/help.aspx?Lcid="+L_Language_Text+strParam;}
var wndHelp=window.open(strHelpUrl, "STSHELP",
"height=500,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width=475"
);
wndHelp.focus();
}

Please note that this change should be tracked and documented as its a unsupported hack for future Service Pack releases of MOSS 2007 (as SPs might overwrite "Core.js" with its own new version, in which case you will loose your changes if you havent documented them)

15 comments:

Anonymous said...

Check this Blog from Chris for more info - http://sharepointnutsandbolts.blogspot.com/2007/08/adding-custom-help-pages-to-sharepoint.html

Anonymous said...

aion chinaaion china gold,
aion cn goldaion chinese gold,
aion gold chinaaion gold chinese,
china aion goldchinese aion gold,
aion china kinaaion chinese kina,
aion kina chinachina aion kina,
aion china buybuy aion china,
aion chinese server

gold
aion cn server

gold
,
aion china server goldchina aion server gold,
chinese aion server

gold
aion chinese server

gold
,
aion cn server kinaaion china server kina,
china aion server kinachinese aion server kinaaion online gold

WOW GOLD said...

Really very good blog for wow gold its really excellent. The content of your blog Is really superb.

BUY WOW GOLD said...

WOW GOLD, nice blog. its worth reading. I liked it very much

Anonymous said...

Hello !.
You re, I guess , probably very interested to know how one can collect a huge starting capital .
There is no need to invest much at first. You may start earning with as small sum of money as 20-100 dollars.

AimTrust is what you thought of all the time
The firm represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.

It is based in Panama with offices everywhere: In USA, Canada, Cyprus.
Do you want to become an affluent person?
That`s your chance That`s what you wish in the long run!

I`m happy and lucky, I began to take up real money with the help of this company,
and I invite you to do the same. It`s all about how to select a correct partner who uses your funds in a right way - that`s it!.
I take now up to 2G every day, and what I started with was a funny sum of 500 bucks!
It`s easy to start , just click this link http://uxyfowopo.o-f.com/ipikavyg.html
and go! Let`s take this option together to get rid of nastiness of the life

Anonymous said...

Hi there!
I would like to burn a theme at this forum. There is such a thing, called HYIP, or High Yield Investment Program. It reminds of financial piramyde, but in rare cases one may happen to meet a company that really pays up to 2% daily not on invested money, but from real profits.

For several years , I make money with the help of these programs.
I don't have problems with money now, but there are heights that must be conquered . I make 2G daily, and my first investment was 500 dollars only.
Right now, I managed to catch a guaranteed variant to make a sharp rise . Turn to my blog to get additional info.

[url=http://theblogmoney.com] Online investment blog[/url]

Anonymous said...

pmkeynote disbursement discern registries paragraph annoys releasei contemplate educative vermamba desperate
servimundos melifermuly

Anonymous said...

unjha registration maritime colspan plays agendas website overweight wager magnets upside
servimundos melifermuly

Anonymous said...

Good day, sun shines!
There have were times of troubles when I didn't know about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never thought that there weren't any need in big starting capital.
Nowadays, I feel good, I started to get real money.
It's all about how to select a correct companion who uses your money in a right way - that is incorporate it in real deals, parts and divides the income with me.

You can get interested, if there are such firms? I have to answer the truth, YES, there are. Please get to know about one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

Anonymous said...

Glad to greet you, ladies and gentlemen!

For sure you didn’t here about me yet,
friends call me Peter.
Generally I’m a venturesome gambler. recently I take a great interest in online-casino and poker.
Not long time ago I started my own blog, where I describe my virtual adventures.
Probably, it will be interesting for you to utilize special software facilitating winnings .
Please visit my web site. http://allbestcasino.com I’ll be glad would you find time to leave your opinion.

Anonymous said...

Hi,

When ever I surf on web I never forget to visit this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]ragavj.blogspot.com is filled with quality info. Frankly speaking we really do not pay attention towards our health. Let me present you with one fact here. Recent Research indicates that about 80% of all United States grownups are either obese or weighty[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] Hence if you're one of these individuals, you're not alone. In fact, most of us need to lose a few pounds once in a while to get sexy and perfect six pack abs. Now next question is how you can achive quick weight loss? Quick weight loss can be achived with little effort. Some improvement in of daily activity can help us in losing weight quickly.

About me: I am webmaster of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also health trainer who can help you lose weight quickly. If you do not want to go under painful training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for effortless weight loss.

King Bayern Munich said...

Hello, friends. The first time to your blog, let me very interested for the class. Write great!
Metal Hanger
Wooden Hanger
plush animal toys
bird toys
buy dog toys
plush toys manufacturer
cartoon toys
bear plush toys
pet bird toys
pet cat toys
best cat toys
wholesale cat toys
Pet Toys
spring suppliers
Lamp Light Fittings
lightning arresters
pin insulators
ceranuc lampholde
fuse cutout

King Bayern Munich said...

Hello, friends. The first time to your blog, let me very interested for the class. Write great!
meniscus lenses
fused silica
diesel generator
mobile light tower
china diesel engine
diesel engine supplier
china diesel generator
Snow thrower manufacturer
china Diesel water pump
Gasoline water pump
Board Production Line
Plastic Crusher
plastic pipe machinery
Plastic extrusion machinery
China Plastic Crusher
plastic pipe machine
pet strap machine
pp strap machine
Modern bathroom cabinets
stone shower tray
Buy Shower tray
antique bathroom cabinets
shower tray
cheap wash basin
bathroom wash basin
pu sofa leather
pvc leather

King Bayern Munich said...

Hello, friends. The first time to your blog, let me very interested for the class. Write great!
China Torches
bamboo torches
Pot Packing Candle
Bamboo Torch
total bamboo torch
bamboo garden gazebo
wooden barrels
chinese tea bags
wholesale tea bags
blooming tea
jasmine flower tea
chinese white tea
white tea supplier
white tea exporter
spring Mattress
Spring Clips
Mattress protector
Nonwoven Fabric
Printed fabric
Mattress Fabric

max said...


JasonMould founded in 2010 may be a prominent plastic injection molding manufacturer in China. JasonMould focuses on mold production for equipment , household appliances, medical equipment, surgical equipment also as monitoring systems. This company that possesses different machinery and expertise offer tools from small and precise mobile parts to the large automotive parts. The diversion strategies adopted by JasonMould are winning compliments from customers everywhere the planet .
China Custom Plastic Injection Molding Maker