![]() |
Well, I can guarantee that this error is not from my hack, but from your mistake, either in applying this hack, or in upgrading to 2.2.7 or some other thing you did. :) Like you said, this hack is as simple as it gets. You can basically uninstall this hack, and do it again, or try this.
Find this bit of code (basically what you posted in your post at the end): PHP Code:
PHP Code:
|
thanks erwin... naw, it's closed up... i just posted those three lines to show which line had the error.
i know it's not your hack (it's unbelievably easy), but thought that maybe you (or someone else) might know. thanks anyway. edit... did the file modifications at home and it worked. must have had something to do with the browser based cp that i was using to do the hack at work, cause i did it three times (being very careful) and each time got the same result... ah well, works now... that's all that mattters. thanks. *clicks installed* |
It worked just fine for me (the users age and all) Except I lost the profile button in my postbit.
For those of you that may run into the same problem here is what I did instead of what was stated to do with the admin/functions.php to solve this issue, I did the following and all is working great on my 2.2.7 Board! ### Open admin/functions.php ### ### Find ### PHP Code:
PHP Code:
|
I've found a simple script to echo Roman numbers, i'll attach it.
maybe you can let this work with this mod, would be great. :) |
Mmm... I'll have a look... but wouldn't it be a hassle for members to have to work out what the Roman numerals stand for? My age is VIIVMXCII... ??? :D
|
Fun Erwin ;)
|
I noticed something, with the Age in the profile thingy, it says
Age: Age:16 How can I make it say Age: 16 ? Thankx |
Oops.
In members.php, find: PHP Code:
PHP Code:
https://vborg.vbsupport.ru/showthrea...103#post290103 The hack for the postbit remains unchanged, and works. :) |
Installed and working on 2.2.9! Excellent!
|
How would I go about adding this to the Admin CP so that when I edit a user's profile I can see their age calculated next to where it shows their birthdate? :D
|
Thanks a lot, great hack!
|
~ clicks install..... I have plans for this :)
|
installs
|
Erwin, is there any way to make $age = "Age: $userage<br>"; template controlled without the queries shooting up?
I did it like this: Code:
// Age in postbit - Erwin Many thanks, Oblivion Knight. |
Add
age to the $templatesused=" section in showthread.php under the POSTBIT section. :) |
Quote:
I tried this and the queries still stay much higher than they were before. It doesn't help that I'm not feeling well at the moment I guess.. :sleep: |
There are 2 templatesused="
in showthread.php Put that template "age" in both of them and see if it helps. Yes, you need to use your code for templates to be used. By caching the template, you should not incur any queries at all. It can be done. |
Well I'll be.. I could have sworn I tried that. :p
Until the new template is added, the queries stay higher than they should be (probably something I forgot last time). Then once it's added, the queries return to normal. |
Glad to know it works, and it does not add any queries. :)
|
Added this hack a while back. Works great and like someone said above, I too have plans for this. ^^;;
|
installed, thanks!
|
Awesome hack! I'm having a problem installing it on one of my themes, though. I have everything entered in correctly, but I still get Age: Age: 21.
I have no idea why it's doing this. Any suggestions? Patricia |
Quote:
|
Thank you so much! :D I have another question: when I remove Age: from the postbit, I have a space in between the edge of the table/box and the letter "A" I've been wracking my brain all night trying to fix it :(
Patricia I took the "Age:" part out, and doing so messes up the way it should look on the forum as far as colors go. Here's a picture of the second "Age:" and a pic of it removed. Removing it changes the colors :( |
Try removing Age: from the code then. It's one or the other, you can't have it in the code and the template. :)
|
What changed in this for VB3? I thought it would work just find but it didn't. What needs to be changed for it to work? Thanks.
|
Quote:
|
Installed and working on vb 2.3.5
|
I like this hack, so that's why I installed it, easy install.
- Teenage World /me click's install |
All times are GMT. The time now is 11:41 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:
|