what are the conditions so only friends can see...and yes logged in to see...
|
Quote:
Thank you! |
The only template $onlinestatus is used is postbit_onlinestatus.
postbit_legacy is a template, you wouldn't make a plugin on a template, you'd make a plugin on a hook. Some hooks are postbit_display_start and posbit_display_complete. There are many others of course but I'd imagine you'd need to make a plugin on one of them. |
Great! Thank you...
|
Hey Joe, if you are still reading this thread, I have an update and a question.
As I said, I posted at vbadvanced.com and finally got a response that helped a bit, but I haven't solved the complete issue. I am so close and was hoping if you see what I have you could offer a suggestion: SO, I have finally got the custom field to display to both the admin and the user who posted it. Now, I need an else statement that tells the forum to not display it to any one else. Here is what I have: Code:
<vb:if condition="$field['fieldid'] == 5 AND (is_member_of($bbuserinfo, 6) OR $bbuserinfo['userid'] == $entry['userid'])"> Any ideas? Thanks, Kether |
Quote:
Code:
<vb:if condition="$field['fieldid'] == 5 AND (is_member_of($bbuserinfo, 6) OR $bbuserinfo['userid'] == $entry['userid'])"> |
Quote:
I really appreciate your help. Wish I could get a response as fast in the vba site. :) Thanks, Kether ----------- I wonder if instead of editing a template, I should be editing a php file and putting the condition around a specific field ID. So, if that field ID is called, it will only be displayed to the conditions of the field. Not sure here.... just guessing. Thoughts? |
Editing the PHP wouldn't be of any help- any condition you can test in PHP you can test in the template.
The only part of your conditional I don't know off hand is $entry['userid']- I've never used it before so I don't know what data it's returning. In the template put this code: Code:
{vb:raw entry.userid} EDIT- Looking over your code are you sure it's $field['fieldid'] and not $entry['fieldid'] ? |
Quote:
$entry['userid'] - I believe is returning the user who posted the article. (But again- I am guessing as I copied what suggested.) I will work on it some more and post back anything I find. Thanks Joe!! Kether --------------- Added [DATE]1308935315[/DATE] at [TIME]1308935315[/TIME] --------------- Quote:
Not sure what to make of that as it is not a field id nor is it a user id. But it always placed it where i put that code. Kether |
Sorry man... VBA Dynamics is a commercial mod I just don't have access to so I don't know how it's designed or what fields may be available.
If there is a php hook available somewhere you could make a plugin with this code, it will print out all available fields for $entry and see if any of them match the userid. Code:
echo "<pre>"; |
All times are GMT. The time now is 10:51 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:
|