Quote:
Originally Posted by FreshFroot
If this was made into a product. Wouldn't that then kill all your unknown bugs and let it work properly.
I assume the bugs exist because the forum uses AJAX too? And since it's not a plugin, it counters the forum reply/edit AJAX model.
So if this was a plugin and the right hooks were used, I assume the bugs would not be there anymore?
|
Not exactly, what's causing the issue is that when you post in AJAX in vBulletin, your submitting all the code in the postbit template. And that just happens to be where this modification code needs to be to display where it does. JavaScript doesn't post, at least in the research of I've done about it, when going through AJAX. I've seen numerous queries on the web on how to make that happen, but I've not seen any discussions providing a solution. Although, it has been some time since I did my initial research. Even if it were a plugin, the code would still be displayed via AJAX, creating the same issue for you.
Also, I'm looking into doing this into a product. But it doesn't look like it would be anywhere near as flexible as a simple template edit.
Quote:
Originally Posted by dcuellar
I've used this before and I went ahead and installed it again.
Attached is a picture of one of my tabs. I'm posting this tab in particular because I've added a function which alerts the user if they do not have that profile field filled and then allows them to click on a link that takes them to edit their profile.
The only one who can see that is the person who posted that particular message. 
Everyone else just sees the available profile fields.
Here is the code FOR ONE TAB w/ONE ENTRY (copy and paste entry for more) for those interested. Just insert the appropriate info where you see red:
Code:
<!-- TAB 5 CONTENT -->
<div id="tab5{vb:raw post.postid}" class="tabcontent">
<vb:if condition="$post[fieldX]">
<div class="eti_postbit"><b>Field Title:</b> <br />{vb:raw post.fieldX}</div>
<vb:else />
<vb:if condition="$bbuserinfo[userid] == $post['userid']" >
<div class="eti_postbit"><b>About Me:</b>
<br /><p align="center">NO ENTRY. COMPLETE YOUR PROFILE <a href="http://www.xxxxxxxxxx.com/forum/profile.php?do=editprofile">HERE</a>.</p>
</div>
</vb:if>
</vb:if>
</div>
|
Okay, I kinda like that. First chance I get, I'll add that to the list of variations on the first page. Thanks.
Quote:
Originally Posted by dcuellar
Can anyone tell me what the vbcredits piece of code is? I believe the one listed here is from the old vbcredits.
Does anyone have it for vbCredits II?
|
I don't have it installed yet, but you should be able to find out from whomever is supporting that now. Check to see if the new code is just a new template displaying via a hook, and you should be able to blank the template and copy the code over to the tabs.