The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
im trying to make a plugin this isnt it but its an example of what wont work!
Code:
$string = $vbulletin->GPC['message']; $Pos = strpos($string,"hello"); $vbulletin->GPC['message'] = $Pos; Hook Location : newthread_start what am i doing wrong? |
|
#2
|
|||
|
|||
|
Quote:
It is not echoing or displaying anything. |
|
#3
|
|||
|
|||
|
if i enter
$vbulletin->GPC['message'] = "dododo"; then try to post something it will only post "dododo" so i dont understand why i cant get it to post 15 or whatever for the numerical occurence for hello. |
|
#4
|
|||
|
|||
|
Try:
PHP Code:
|
|
#5
|
|||
|
|||
|
it changes it to hai: no matter what i do. even if i put hello or dont in the post
|
|
#6
|
|||
|
|||
|
I tested the code and it works, make sure you:
1.) Are creating a new thread, a reply wont work. 2.) It is in the correct hook location. |
|
#7
|
|||
|
|||
|
oh shoot it does work thanks so much for the help!!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|