I would suggest reading the thread and trying the suggestions users have posted already regarding that error.
|
Lynne, Here is my code:
{vb:data userInfo, user, fetchProfileInfo, {vb:raw conversation.userid}} <vb:if condition="$userInfo['field6']"><li><label>{vb:phrase field6_title}:</label> <span>{vb:raw userInfo.customFields.default.field6_title.val}</span></li></vb:if> It is working perfectly to show TEXT put in the field. I would like to put a URL in the field and have the word Feedback linked to that URL. Can you help. This seems like I should be able to do it easy peasy... and my mind is drawing a blank. TY TY --------------- Added [DATE]1393213800[/DATE] at [TIME]1393213800[/TIME] --------------- LYNNE! You ROCK! Ok, I figured it out! I was also able to add a second value after the link! *YAY* *YAY* PHP Code:
we will have to manually update these values, but until there is a mod, this will work. Muddling through! Thanks again LYNNE for your help! |
I'm glad you got it working. :)
|
Tried this on a 5.0.5 and it broke the board !
"There is a serious error and the page cannot be rendered" Deleted hook Disabled hook system, board still not functioning |
Not sure exactly what you did, but this is only a hook and it seems strange that it would cause that sort of error. You can go into debug mode and see what the real error is. Also, don't forget to Clear System Cache after doing something.
|
Quote:
I tried the same in 5.1.0, and the same thing happened, eventually gave up on it, is there an easier way to add these fields to the postbit ? |
Why don't you post screen shots of *exactly* what you did.
|
I'm confident I followed your instructions correctly, I'm hesitant to go through the process again, in case I "break" the forum again.
You would think there would be an easier way to incorporate fields into postbit. |
BTW this link:
http://www.vbulletin.com/docs/html/profile gives a "Page not found" response --------------- Added [DATE]1398260380[/DATE] at [TIME]1398260380[/TIME] --------------- Attempted this again, followed the instructions to the letter. Exactly the same result. There is a serious error and the page cannot be rendered Would advise that users of 5.0.5 and 5.1.0 do not use this until a fix is posted. |
Please see this thread - http://www.vbulletin.com/forum/forum...profile-fields
|
I'm using 5.1.3 A6 and I still cannot get this to display the profile fields, here is the code I am using in the template conversation_fields
Code:
{vb:data userInfo, user, fetchProfileInfo, {vb:raw conversation.userid}} |
I just put your code into the template on my site and it works just fine.
If you are still getting the This is a Serious Error message on your page, then go into debug mode and see what the real error is. To enable debug mode edit the /config.php file and change: Code:
$config['debug'] = false; Code:
$config['debug'] = true; Code:
// $config['Misc']['debug'] = true; Code:
$config['Misc']['debug'] = true; Code:
if($_SERVER['REMOTE_ADDR'] == "xxx.xxx.xxx.xxx") { |
How would I display a piece of information in the postbit only if the user VIEWING the page is logged in and in the supermoderator or admin user group?
--------------- Added [DATE]1407644438[/DATE] at [TIME]1407644438[/TIME] --------------- Actually, I think I got it... but this could probably be cleaned up... I'm also not 100% sure membergroupids is an array? This is vb5.1.2 <vb:if condition="in_array($bbuserinfo[usergroupid], array(5,6,16))"> <vb:if condition="in_array($userInfo['membergroupids'], array(14,15))"> <span style="color:red;font-weight:bold;">Display Stuff Here</span><br> </vb:if> </vb:if> --------------- Added [DATE]1407645650[/DATE] at [TIME]1407645650[/TIME] --------------- And one more update... userinfo['membergroupids'] shows up as a string when I do a debugvardump. How do I check to see if it contains the group ID? vBulletin doesn't allow you to search in a string according to http://bit.ly/1uBdO1U |
I believe is_member_of is the function your would want to use.
<vb:if condition="is_member_of($bbuserinfo, 5, 6, 16)"> <vb:if condition="is_member_of($userInfo, 14, 15)"> |
1 Attachment(s)
Thanks for the tutorial!
I show my result :) |
hi
I can not find Admincp > Styles & Templates > Style Manager > Add New Template Instead There is : Add New style And there is no place to add code |
Add New Template is a dropdown next to the style. The default dropdown will say Style Variable Editor, so just click on that to see the other options.
|
Quote:
dropdown option :edit setting add child style download delete style I added a child style and did change it and the problem was solved. Thank you. |
Hello--
I am following this tutorial and have created a new category called "Custom" and added a new field called "industry". "Industry" has several check boxes for the user to check. The "Custom" category has ID = 1 and the industry field is field=5. I created and added this code to a template called "conversation_fields": PHP Code:
Thanks. |
That looks like it should work. Can I get a screen shot of your profile field 5?
|
1 Attachment(s)
Attached are the screen shots.
Thanks. |
For the option, you cut off the screen right where it says Display Page - do you have it set to Edit Profile? I think it needs to be for this to work.
|
Quote:
Thanks for the help! |
Quote:
I want to place the new fields of postbit below number of post. How can I do it? Thanks |
Quote:
|
Quote:
Thank you. |
Does this no longer working on 5.1.8 Alpha 6? All of a sudden the extra profile fields stopped showing.
|
All times are GMT. The time now is 07:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|