![]() |
Quote:
PHP Code:
|
lol why didn't i think of the " != "
Thanks buddy - miSt |
hey Logician,
Can this hack be use to hide or show certain features such as avatars depending on current server load? If yes, what's the conditionals for that? Thanks! This is a really useful hack! |
Quote:
But if you can add another hack which will assign the server load (or anything you like) to a global variable (like in global.php) then yes it can. After you assign the variable value, you should edit postbit template and find the avatar variable (was it $post[avatar] ?) and replace it with this code: PHP Code:
EDIT: BTW. do not forget that this may not help much since the template modifications is just about the visual design. That is, your db would be still queried for the avatar in this example but just not displayed to the end user inside your template. So it wouldnt help decreasing server load much.. just the bandwidth maybe :) |
Logician - you genius!!
You would not believe the work this hack has saved me, and I installed it in under a minute! Thanks! |
Can i use a condition of the ip of the user? Is there a var that in it is the user-ip?
|
You could try using:
PHP Code:
|
NTDLR's method should work.. The hack is compatible with ALL variables in the memory so if I guess $HTTP_SERVER_VARS[REMOTE_ADDR] will work..
Also vb saves user's IP address in "$ipaddress" variable in global.php, so $ipaddress should work too. However I'm sure you are well aware that IP address is not a good mainstay for conditionals since many users have dynamic IP. |
Excellent Hack! Now even I can feel like a power user!!
JakeC |
I installed this hack and all of a sudden my forums started to show the default templates for every style I have. The template is still the same (in the user cp), but my forums just show the default one... I tried uploading the old functions.php but it did not fix the problem. Any ideas??
|
All times are GMT. The time now is 07:59 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:
|