![]() |
|
Article Options |
#46
|
|||
|
|||
Originally Posted by Lynne
I couldn't do anything, not even get into the ACP, every URL was met with the same error, the only way out was to upgrade to 5.1.0.![]()
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 ? No members have liked this post.
|
#47
|
||||
|
||||
Why don't you post screen shots of *exactly* what you did.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#48
|
|||
|
|||
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. No members have liked this post.
|
#49
|
|||
|
|||
BTW this link:
http://www.vbulletin.com/docs/html/profile gives a "Page not found" response --------------- Added 23 Apr 2014 at 13:39 --------------- 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. No members have liked this post.
|
#50
|
||||
|
||||
Please see this thread - http://www.vbulletin.com/forum/forum...profile-fields
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#51
|
||||
|
||||
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
No members have liked this post.
|
#52
|
||||||||||||||||||||
|
||||||||||||||||||||
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:
To:
Then edit the /core/includes/config.php file and change:
To:
To set that up for only your IP address (replace xxx.xxx.xxx.xxx with your IP), put these lines around the code:
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#53
|
|||
|
|||
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 10 Aug 2014 at 04:20 --------------- 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 10 Aug 2014 at 04:40 --------------- 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 No members have liked this post.
|
#54
|
||||
|
||||
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)">
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#55
|
|||
|
|||
Thanks for the tutorial!
I show my result ![]() No members have liked this post.
|
#56
|
|||
|
|||
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 No members have liked this post.
|
#57
|
||||
|
||||
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.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#58
|
|||
|
|||
Originally Posted by Lynne
i use vBulletin Default Theme, and not see this option in dropdown.![]()
![]() 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. No members have liked this post.
Last edited by vvlo; 04 Sep 2014 at 19:11. |
#59
|
||||
|
||||
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":
The word "Industry: " displays in my postpit but the values (picked by checkbox) do not display. How can I get the value of the field "Industry" to also be displayed? Thanks. No members have liked this post.
|
#60
|
||||
|
||||
That looks like it should work. Can I get a screen shot of your profile field 5?
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:31.