![]() |
Plugin PHP help
Ok, so I've been playing around with tearing a few modifications apart and trying to make it to where you have to have a minimum number of posts to post links in signatures. But, I'm a little stuck lol. This is what I have in my plugin so far. Hook location: profile_updatesignature_start
PHP Code:
Thank you --------------- Added [DATE]1302114824[/DATE] at [TIME]1302114824[/TIME] --------------- Ok, quick update. There was an extra space in a bit of the code, so I removed that and now my signature gets saved again and I can still post links in the signature. So, now I need help trying to figure out what I need to add/edit/move to make it where users can't post links in their signatures until they reach a certain post count. Thank you :) |
So this isn't working?
PHP Code:
|
Quote:
|
Right now, I look at your plugin and you are performing operations on the variable $pagetext. I thought you wanted to do stuff to the signature? Shouldn't that be a different variable name?
|
Quote:
--------------- Added [DATE]1302124353[/DATE] at [TIME]1302124353[/TIME] --------------- Ok lol, I've tried: PHP Code:
PHP Code:
PHP Code:
|
Given the location of that hook, shouldn't you be able to use $signature ?
From profile.php: PHP Code:
PHP Code:
|
Quote:
|
1 Attachment(s)
Here's the product if anyone wants to play around with it and let me know what you can come up with....
Just import. No file or template edits needed |
1 Attachment(s)
The code I posted works for me
Attachment 127981 What I tried entering for the sig (without the spaces in the URL bbcode): Code:
This is a [ url=http://test.com]test[/url ] - test. |
Ok, yes, it works if you put in a regular url. Now, how do I make it so if a user tries to "go around" by using say....
Code:
vbulletin.com PHP Code:
EDIT: Thank you for you help too |
All times are GMT. The time now is 01:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|