PDA

View Full Version : Advanced [php] code hack?


Gary King
03-29-2003, 09:44 PM
Is this hack publicly available? And if so, what's the link to it, because I can't find it here.

The hack that I am talking about, is the one being used here with the [ php ] tags, where it links the functions to pages on PHP.net

Example:


<?php

$test = testing

if (strlen($test) < 8)
{
print $test . " is " . strlen($test) . " characters.<br>";
}

?>


And strlen is linked to it's respective page at PHP.net

So anyone able to show me where I can find this, or is it not publicly available? :)

N9ne
03-29-2003, 10:29 PM
Erm good thing you brought this up, because they don't link to php.net anymore :confused:

filburt1
03-29-2003, 10:34 PM
The [sql] tag was broken recently too. I think it happened with the adminship transfer.

Gary King
03-29-2003, 11:01 PM
Today at 07:29 PM N9ne said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=375244#post375244)
Erm good thing you brought this up, because they don't link to php.net anymore :confused:


But the one in my original post links to php.net :rolleyes:

filburt1
03-29-2003, 11:02 PM
What I see:

(testing a theory):

echo strlen($s);

Brad
03-29-2003, 11:06 PM
You have to trun the option on in your user cps, shows up just fine for me.

Gary King
03-29-2003, 11:12 PM
Today at 08:02 PM filburt1 said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=375269#post375269)
What I see:

(testing a theory):

echo strlen($s);



Yep, it's in the Options part of the User CP.

Gary King
03-29-2003, 11:13 PM
Anyways, back to my original question; anyone know where I can find this hack? :p

Dean C
03-30-2003, 06:20 AM
http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=183

There you go :)

- miSt

N9ne
03-30-2003, 12:23 PM
Ah brilliant, it was in the options lol, I was wondering why it wasn't linking to php.net anymore, but then again, I had it set to yes before :confused:

Gary King
03-30-2003, 12:42 PM
Thanks mist!

Dean C
03-30-2003, 04:44 PM
Your welcome :)

- miSt

Xenon
03-30-2003, 08:15 PM
you should realize, that this hack slows down the showthread a lot and can even lead to timeouts on some pages of threads, so just use it if you really don't know the most functions ;)

Gary King
03-30-2003, 10:50 PM
Yep, thanks for the tip. Currently, my showthread is at 22 queries, which is alright.

I've got this hack installed for convenience more than anything :p