1. Add three custom profile fields - in my setup, they are as follows, but make a note of the field# for later in case yours are different:
Name = Blog RSS Feed (RSS Only!)
Single-Line Text Box Editable, Searchable, Members field6 The member enters his blog feed here.
Latest Blog Title
Single-Line Text Box Searchable, Members field7 This is filled automatically by Carp with the latest blog post at that feed.
Blog URL
Single-Line Text Box Searchable, Members field8 This is the URL to the blog, filled by Carp and used in postbit to make the blog title a live URL.
2. Create a new plugin called Carp Configuration and attach it to hook location: global_bootstrap_init_start
If you wish to restrict the latest blog display to only members in good standing, follow the instructions above but use the following code for postbit:
PHP Code:
<!-- latest blog hack for members in good standing only -->
<vb:if condition="!in_array($bbuserinfo[usergroupid],array(G1,G2,G3,G4,G5))">
<vb:if condition="$post['field6']">
<span class="smallfont">Recent Blog: <a href="{vb:raw post[field8]}" target="_blank">{vb:raw blogentry}</a></span>
</vb:if>
</vb:if>
<!-- end latest blog hack for members in good standing only -->
Replace "G1,G2,G3,G4,G5" by the usergroup ID numbers of any groups who should NOT show the latest blog.
For example, I restrict privileges for new members for the first 10 posts so they don't get to display their blogs. Similarly, I don't want blog titles and links displayed for banned members.
Therefore, I disable this for the following groups:
New member (Registered Members): 2
Probation: 22
Banned: 20
Blocked: 30
Post Moderation: 28
so I would use the following code in postbit:
PHP Code:
<!-- latest blog hack for members in good standing only -->
<vb:if condition="!in_array($bbuserinfo[usergroupid],array(2,20,22,28,30))">
<vb:if condition="$post['field6']">
<span class="smallfont">Recent Blog: <a href="{vb:raw post[field8]}" target="_blank">{vb:raw blogentry}</a></span>
</vb:if>
</vb:if>
<!-- end latest blog hack for members in good standing only -->
I did everything, and the blog rss isn't showing, only the text "Recent Blog :" is showing up, no URL neither RSS title .. I did EVERYTHING without any expetion ! I even changed cache time to 1 minute and still nothing shown from my blog, here is the url of a thread where nothing shown in my profile http://www.blogging-talk.com/showthr...?t=3&p=4#post4
It works perfectly but it affects my cms when a comment is posted in one of the articles via CMS and not the forums (SUITE Version 4.06), trying to figure out why it causes this error:
Quote:
Fatal error: Call to undefined function CarpCacheShow() in /home/buypoe/public_html/includes/class_postbit.php(284) : eval()'d code on line 2
Is it because CMS does not use postbit and its trying to find it?
Until recently, I wasn't using the CMS because it was too buggy. I'm just trying it out now and obviously something needs to be changed to register these variables more globally.
I'll update when/if I can figure it out. For now, it works for forum only.