The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to use replacement variables?
I posted this on vbulletin.com but maybe here is a better place.
-------------- In the registration "welcome" mail I need the URL of the server as a clickable link. Not the URL of the forum, which is $vboptions[bburl] but the servername alone. I made a replacement variable called 'serverurl' that contains the PHP code for the server name: Code:
http://<? echo $_Server['SERVER_NAME']; ?> [serverurl] $vboptions[serverurl] <serverurl> etc, nothing worked. How do I call a replacement variable? Can I have PHP code in a replacement variable? Is there another method to get just the URL of the server? |
#2
|
||||
|
||||
Mmh ... nobody knows that?
Impossible I make it easier: 1) How do I display my own phrases in templates? 2) How do I insert PHP variables/constants into a template? Thanks in advance, Peter |
#3
|
||||
|
||||
Replacement Variables are used to replace words on the pages of your site - not for emails sent out.
1) Your own phrase in a template? Create a global phrase and then call it like you do other phrases. 2) You can't put php into a template. You put php into a plugin and then put the output into a variable which you may then use in a template (assuming you register it for use in the template also). |
#4
|
||||
|
||||
Quote:
Quote:
And I have never called phrases myself. What is a phrase call: This ? [myValue] or this ? {vb:rawphrase myValue} or this ? $something[myValue] (number 2 is my favorite ...) Quote:
And something like {vb:raw $_SERVER['SERVER_NAME']} is not supposed to work? Sorry for being slow. Since MODx and vBulletin I am confused with plugins, snippets, chunks, phrases, products, and so on. All of them include something from somewhere. |
#5
|
||||
|
||||
Again too much text and too many questions?
Ok, a shorter version: What exactly do I have to do if I want the server name as a link in the text of an automated email, except of hardcoding it? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|