The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
No worries man, thanks for your help. It should work...
|
#12
|
|||
|
|||
Quote:
I think you should really use the defined constant IPADDRESS, because it's been checked to make sure it contains an ipaddress and not something else (that you're then going to display), and also it uses the proxy settings to display the user's ip address instead of the proxy (if that applies to you). Anyway, one possible reason for Mark's code not working would be if you're not setting THIS_SCRIPT to 'donate' in your custom script. If you have a custom php file, then you must be creating and rendering the template in there? Then instead of using a plugin you could edit your donate.php and add code to register the ip address to the template. I can't give you the exact code for that without seeing donate.php, but maybe you can figure it out if you look at donate.php. It would be something like this (with the create and render calls already existing in your code): Code:
$templater = vB_Template::create('Donate'); // You might have other calls to register here $templater->register('userip', IPADDRESS); $templater->render(); If you don't want to change donate.php then you should be able to use a plugin like Mark suggested. Do you have a line something like Code:
define('THIS_SCRIPT', 'donate'); |
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|