Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Another trick to get around php not being enabled

Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-30-2007 14:43
I nominate Meade Pavarane for hedgehog of the year for this one!!!

from another thread:

From: Meade Paravane
If you paste formatted code _into_ php tags here, you can also get the spacing back by hitting the Quote button. Whenever I steal a script from the forums, I just quote the post then copy/paste that into SL.



So just hit the quote button for the post the code is in. Then either just select and copy the code or select all and copy. Paste into an empty script, Editor or notepad and strip what you don't won't in there. The code will be properly formatted and you also wont have any extenous spaces between some letters. Works Great!

For example, look at this code :

/54/c2/221807/1.html#post1749031

Notice the space in a few spots like:

········string·sText·=·llDumpList2String(glCardDat a,"\n";)·;

········string·sText·=·llDumpList2String(alParamet ers,"·";)·;

········gsNotecardName·=·(string)llList2String(alP arameters,0)·;

and so on.

Now if instead you hit the quote button, The text inside the post thread window doesn't have those spaces.

NOW GET THIS!!!!!! And this should get Meade a nomination for ground hog of the century or at least a Noble Peace Prize or something!!!

Look at this post:

/54/5d/226008/1.html#post1777252

It has no php tags and code is not formatted. Hit the quote button and take a look inside the reply window. The code is formatted!!!!!!!!!!!! WOO HOO!!!!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
11-30-2007 15:56
From: Jesse Barnett
I nominate Meade Pavarane for hedgehog of the year for this one!!!

from another thread:




So just hit the quote button for the post the code is in. Then either just select and copy the code or select all and copy. Paste into an empty script, Editor or notepad and strip what you don't won't in there. The code will be properly formatted and you also wont have any extenous spaces between some letters. Works Great!

For example, look at this code :

/54/c2/221807/1.html#post1749031/54/c2/221807/1.html#post1749031

Notice the space in a few spots like:

········string·sText·=·llDumpList2String(glCardDat a,"\n";)·;

········string·sText·=·llDumpList2String(alParamet ers,"·";)·;

········gsNotecardName·=·(string)llList2String(alP arameters,0)·;

and so on.

Now if instead you hit the quote button, The text inside the post thread window doesn't have those spaces.

NOW GET THIS!!!!!! And this should get Meade a nomination for ground hog of the century or at least a Noble Peace Prize or something!!!

Look at this post:

/54/5d/226008/1.html#post1777252/54/5d/226008/1.html#post1777252

It has no php tags and code is not formatted. Hit the quote button and take a look inside the reply window. The code is formatted!!!!!!!!!!!! WOO HOO!!!!


I tried and it didn't work...
_____________________
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-30-2007 16:01
Ah Heck. Works in Firefox and Opera. Doesn't work in IE.:(

Sorry for you MS IE fans. OH well. What does work is cpoying it and pasting into LSLEditor then hit ctrl D which will auto format it.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
11-30-2007 16:12
Works fine for me in IE7..

As much as I'd like to take credit for the trick, Jessie, I heard it from somebody else here in the forums. Not sre who, though..

edit: er.. read your post wrong. If somebody uses php tags, it works fine in at least IE7 - quote gets you the formatting back.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-30-2007 16:18
From: Meade Paravane
Works fine for me in IE7..

As much as I'd like to take credit for the trick, Jessie, I heard it from somebody else here in the forums. Not sre who, though..

hmmm I'm using IE7 also.

AH OK. I see, It works fine in IE7 for the 1st 2 tricks. You can see formatting of php tagged codes and it gets rid of spaces. The last trick about formatted code w/o php tags doesn't work in IE7.

And don't care who you heard it from, I heard it from you :) So your still my hero!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
11-30-2007 18:00
You mean this trick? Works fine for me in IE7.

From: Jesse Barnett
NOW GET THIS!!!!!! And this should get Meade a nomination for ground hog of the century or at least a Noble Peace Prize or something!!!

Look at this post:

/54/5d/226008/1.html#post1777252/54/5d/226008/1.html#post1777252

It has no php tags and code is not formatted. Hit the quote button and take a look inside the reply window. The code is formatted!!!!!!!!!!!! WOO HOO!!!!
_____________________
.
:) To contact forum folks, join the inworld group "The Forum Cartel". New residents with questions about SL more than welcome! We has parties!

:) To contact forum scripters, join the inworld group "Scriptoratti" (thanks Void!). New scripter questions welcome!
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-30-2007 18:31
From: Nika Talaj
You mean this trick? Works fine for me in IE7.

Cool! I went into user CP and changed options from Enhanced-Full WYSIWIG to the Standard Editor and then the code w/o php tags shows as formatted after hitting the reply window in IE7.

Give it a try and see if making the change works for you Bobbyb30.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
Now with Linking power....
11-30-2007 22:31
just to add to the fun... notice somepeople can still make working links and others can't? the secret's in the sauce....

instead of using [.url][./url] to enclose links
use [.img][./img]

the only caveat is that most urls MUST contain a ? for this to work... if your url doesn't have one, add it to the end, the link will work just fine... it's how I have a working link in my sig, and how I link other content....

just beware, when hitting preview, editing, or quoting a post that uses this trick, the edit pane will convert urls formatted this way back to [.url][./url] tags... so you have to overwrite them in these cases (I use ctrl+a, ctrl+c when prieviewing, and ctrl+a,ctrl+v to reget my original formating, then edit from there if neccessary)

obviously remove the '.' from the tags to use them. they're only there for users of greasemonky to see them too

example: the following link will work for all browsers...
https://wiki.secondlife.com/wiki/User:Void_Singer

EDIT: if you make changes in the USER CP as Jesse mentioned, to the simplest editor format, the links do NOT revert inside of the edit window on preview... good to know
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -