![]() |
Quote:
Also, regarding the templates vs. phrases issue: I originally thought to use phrases. But then I discovered you can't use variables, such as $vboptions[hometitle] in phrases. Is there a way to use variables like that in phrases? If so, I can re-write the hack. But when I put in that variable in a phrase I was testing, it just came out on the page literally, dollar sign and everything. |
Phrase with Variable:
Code:
Hello {1}, how are you? Code:
<phrase 1="$bbuserinfo[username]">$vbphrase[hello_x_how_are_you]</phrase> |
I have updated the hack to include the new plugin provided by KirbyDE. The instructions have been updated. No vBulletin file modifications are necessary. (I copied that file mod from some other hacks that group templates the same way. Now I know it's not necessary to do it like that, and I'll probably create plugins like this for other hacks I've installed and return that file to its stock form.)
Due to the small change in method, the hack is now 2.0.1. This version does not include any phrases as KirbyDE has suggested. It will take me a short while to get all that done and tested, at which point we will probably have 2.1.0. If you have already installed 2.0.0, and are going to upgrade to 2.0.1, simply do this: Removed the modification to your adminfunctions_template.php file, and add the product again, making sure to overwrite the existing version. |
Quote:
Code:
Hello, {1}! How are you today, {1}? |
Quote:
I have another hack I may release soon that's also going to be using a variable through the URL in the same way that $e is used here. However, in this other hack, the value of the variable, $p, will be some text, like file.php?p=something. What should I define that as and how? |
Wait, I think I answered my own question...
In the httperror.php file, the line Code:
'e' => TYPE_STR Code:
'e' => TYPE_UINT (But in the other hack I mentioned, where $p is some text, leave it set to TYPE_STR, right?) |
Great, thanks for the hack.
|
Yes, that is correct.
You might want to read my tutorial, it describes what are the clean variable types in vBulletin. :) Basically, since you are passing an integer through the "e" variable, you should force the integer type on it, but it's just for security's sake :) |
Updated to 2.0.2 based on code change suggested by Dark Visor.
If you have 2.0.1, make the change as described in post# 16 above and upload the modified httperror.php file. If you have 2.0.0, basically do what is in post# 13 above (undo the modification to adminfunctions_template.php, then re-add the product, overwriting the existing version), PLUS upload the new httperror.php file. |
i have noticed that members who are not viewing a error page are listed as viewing error page in Who is online.
i have been talking with one member who has told me that. could that be caused by this modification? |
All times are GMT. The time now is 09:17 AM. |
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:
|