The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using PHP to extract thread ID from a vbulletin URL ?
For example, say I make a variable
$url = 'https://vborg.vbsupport.ru/showthread.php?t=93531'; Now does anyone know a good PHP routing (using preg match possibly?) so strip out only the thread ID from that URL, in this case 93531 Thanks!! |
#2
|
||||
|
||||
Try looking up different functions for string manipulation in the php manual/site. I know I've seen something there to do what you want. http://us3.php.net/strings
|
#3
|
||||
|
||||
Also note that "t" is an alias for "threadid" in vBulletin (i.e. you can use both).
|
#4
|
|||
|
|||
Yea I've been trying to form a nice statement to extract that information but its just not working out for me, I bet its something that people have used all the time on here for various modfications so i'm hoping someone can copy/paste their string for everyone to use/
|
#5
|
||||
|
||||
Here's one I created quickly:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|