Orkut : PHP Code Highlight

By w35l3y Last update Sep 29, 2009 — Installed 359 times.

ScreenShot & Include

in
Subscribe to ScreenShot & Include 17 posts, 2 voices



Swarnava/Hea... Scriptwright
FirefoxWindows

change da include man...it doesnot work..

give dis include

// @include        htt*://*.orkut.*/*CommMsgs?cmm=*

And Give A ScreenShot Plz

Thanx

 
w35l3y Script's Author
FirefoxWindows

screenshot added, but could you please be more specific to the @include address ?

I don't like to @include this kind of expression

.tld means any domain/subdomain like .com, .com.br, ...

 
Swarnava/Hea... Scriptwright
FirefoxWindows

Add A Star Before CommMsgs..Because of Main#

 
Swarnava/Hea... Scriptwright
FirefoxWindows

How Its Work??Not Working For me

 
w35l3y Script's Author
FirefoxWindows

is it a post of a topic, an scrap or what ?

i hadn't thought to enable it to work on things other than posts.
i'll work on it right now.

the event is not triggered in the /Main# page, so this is not necessary.

 
Swarnava/Hea... Scriptwright
Opera

Its post on commMsg

 
w35l3y Script's Author
FirefoxWindows

Send me some examples of urls. (PM me if you wish)
This might be some problem of internationalization

 
Swarnava/Hea... Scriptwright
FirefoxWindows

http://www.orkut.co.in/Main#CommMsgs?cmm=435589...

is da comm must be html enable?

 
w35l3y Script's Author
FirefoxWindows

very good question!
no, the HTML should be disabled.
but if it is enabled, then change <?php to &lt;?php and this should work.

 
Swarnava/Hea... Scriptwright
Opera

But i post it on html disable comm but still not working

 
w35l3y Script's Author
FirefoxWindows

Do you use XPath Checker?
If so, could you please right-click on 2 different posts and copy the xpath to me ?

oh, and please add an alert before any other function call to make sure that this is not a @include problem.

There isn't any <?php in the link you posted.

EDIT:
This example worked to me
http://www.orkut.co.in/Main#CommMsgs?cmm=435589...
The only problem I can imagine for now is the missing <?php

 
Swarnava/Hea... Scriptwright
FirefoxWindows

yah now its working fyn..u hav in oug?:P whats ur name in orkut?

and i want use dis script at orkut manager through require method but its not working..plzz temme what should i do

 
w35l3y Script's Author
FirefoxWindows

to @require this script you need to add the following to your metadata block:

// @resource       highlight http://shjs.sourceforge.net/sh_style.css?v1
// @require        http://shjs.sourceforge.net/sh_main.min.js?v1
// @require        http://shjs.sourceforge.net/lang/sh_php.min.js?v1
// @require        http://userscripts.org/scripts/source/38981.user.js

 
Swarnava/Hea... Scriptwright
FirefoxWindows

I checked...Not Working..:(

 
w35l3y Script's Author
FirefoxWindows

It worked to me just fine!

// ==UserScript==
// @name           test
// @namespace      http://gm.wesley.eti.br/orkut
// @include        http*://www.orkut.tld/CommMsgs?cmm=*
// @include        http*://www.orkut.tld/Scrapbook*
// @include        http*://www.orkut.tld/Home*
// @include        http*://www.orkut.tld/Profile?*
// @include        http*://www.orkut.tld/Messages?msg=*
// @include        http*://www.orkut.tld/ProfileT?uid=*
// @resource       highlight http://shjs.sourceforge.net/sh_style.css?v1
// @require        http://shjs.sourceforge.net/sh_main.min.js?v1
// @require        http://shjs.sourceforge.net/lang/sh_php.min.js?v1
// @require        http://userscripts.org/scripts/source/38981.user.js
// ==/UserScript==

// ... no code is needed

 
Swarnava/Hea... Scriptwright
FirefoxWindows

use dis script..its not working

userscritps.org/33131

 
w35l3y Script's Author
FirefoxWindows

i'm sorry.
my script is working.
i said what you need to @require the script

change the position of your actual metadata block to the beginning of the script.
then add the @require'd files

that's all I can do for you.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel