about UID
any way to show the UID on profile?
i mean the sequence of Registration .like ppl who was the 1st one register on vanillaforums.org he has the UID 1, ppl who 100th register on vanillaforums.org he has the UID 100 .
Best Answers
-
hgtonight MVP
What version of Vanilla are you running?
The url of the profile has the UserID in it. Where would you like to put it?
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
5 -
hgtonight MVP
There are no events fired in that spot. The best you can do via event hooking is right at the end of the list.
UserInfoModule_OnBasicInfo_Handler($Sender) { echo '<pre>'; var_dump($Sender); echo '</pre>'; }
If you really want to insert the user id right there, you will have to use an html override.
- Copy
/applications/dashboard/views/modules/userinfo.php
to/themes/YourTheme/views/modules/userinfor.php
- Add the following lines at line 23:
<dt class="UserID"><?php echo T('User ID'); ?></dt> <dd class="UserID"><?php echo htmlspecialchars($this->User->UserID); ?></dd>
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
5 - Copy
-
hgtonight MVP
Don't worry about the first part, that is for a different approach.
Double check your paths.
You need to copy
userinfo.php
from /applications/dashboard/views/modules to your custom theme directory.Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
1 -
hgtonight MVP
Look at the path in that image.
Carefully compare it to what I have written previously.
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
2
Answers
What version of Vanilla are you running?
The url of the profile has the UserID in it. Where would you like to put it?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight i wan to put it on the profile, after the username be4 the email.
@hgtonight 2.1b1
There are no events fired in that spot. The best you can do via event hooking is right at the end of the list.
If you really want to insert the user id right there, you will have to use an html override.
/applications/dashboard/views/modules/userinfo.php
to/themes/YourTheme/views/modules/userinfor.php
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight sry im noob...
where shud i put the code? -->?? UserInfoModule_OnBasicInfo_Handler($Sender) {
echo '
'; var_dump($Sender); echo '
'; }
i don hv userinfo.php under /applications/dashboard/views/modules/ & /themes/YourTheme/views/modules/
i only had class.userinfomodule.php under /applications/dashboard/views/modules/ floder...
is that same one?
btw i use default theme and my version is 2.1b1
Don't worry about the first part, that is for a different approach.
Double check your paths.
You need to copy
userinfo.php
from /applications/dashboard/views/modules to your custom theme directory.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
sry but i cant find a userinfo.php under the modules floder....
@hgtonight i use default theme i just rewrite some css, its 2.1b1version
Look at the path in that image.
Carefully compare it to what I have written previously.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight
haha i was blind =_=
thx man