PDA

View Full Version : Profile Enhancements - Blog block instead of tab in user profile


Taragon
27 Mar 2008, 01:25
Blog block instead of tab in user profile


Changes the look, and position if preferred of the blog tab in the user profile.


Demo: http://www.letsgather.net/members/taragon.html

----------------------------
blog_entry_profile

REPLACE all with:
----------------------------

<div class="alt1">
<div class="smallfont" align="left"><a href="blog.php?$session[sessionurl]b=$blog[blogid]">$blog[title]</a> <span class="shade"><phrase 1="$blog[date]" 2="$blog[time]">$vbphrase[posted_date_at_time]</phrase></span></div>
</div>

----------------------------
blog_member_block

REPLACE all with:
----------------------------

<if condition="$block_data['latestentries']">
<div class="alt1 block_row">
$block_data[latestentries]
</div>
</if>
<div class="<if condition="$block_data['latestentries']">alt2<else />alt1</if> smallfont block_row block_footer">
<a href="blog.php?$session[sessionurl]u=$prepared[userid]"><phrase 1="$prepared[username]">$vbphrase[view_xs_blog]</phrase></a>
</div>

----------------------------
MEMBERINFO

FIND:
----------------------------

$template_hook[profile_left_last]

----------------------------
CUT and paste after:
----------------------------

$blocks[groups]

----------------------------
Done!

Please keep in mind also some other mods are using the $template_hook[profile_left_last] hook.

By moving the position of this, also all other mods/tabs will reposition this same way. I currently havenít found a working solution for this yet.

All the best,

Cor

Yours Truly
27 Mar 2008, 17:22
Thanks for this :)

Gemma
27 Mar 2008, 19:00
Thank You :)

Gosef
27 Mar 2008, 19:24
good job !!!
thanks

christian8a
30 Mar 2008, 16:41
what blog product is that one?

Taragon
30 Mar 2008, 18:32
it's for vBulletin Blog by vbulletin.com

christian8a
30 Mar 2008, 20:16
sweet man, this thing to display on profiles is neat :up:

christian8a
30 Mar 2008, 20:42
where do you get that blog, I went there but couldnt find it

Taragon
30 Mar 2008, 22:13
It’s a paid product which you can buy from the member area at vbulletin.com.

At their forums is a working example (navbar) if you’d like to see more. (the modified navbar showed at the demo above isn’t included btw.)

J98680Bxxxxx
04 Apr 2008, 17:57
Thanks Taragon, *Installed* (templates modified) :up:, but not seen any changes. :( No blog block displayed in my public User Profile.

I do have a Blog feature installed and I have some entries posted in my blog.

Any hint?

corazorback
04 Apr 2008, 22:25
How would I get the recent blogs list for each user to show on their profile page? I have been trying to do this on 3.6 for such a long time. I want like the last 5 blogs to show on each users profile page and then a button to view all the rest of their blogs...

Have any ideas???

toucan42
05 Apr 2008, 15:23
Thanks Taragon, *Installed* (templates modified) :up:, but not seen any changes. :( No blog block displayed in my public User Profile.

I do have a Blog feature installed and I have some entries posted in my blog.

Any hint?

I have the blog product as well and no blog block or tab showing in user profile - running vB 3.7 RC 2

tmiland
05 Apr 2008, 21:50
@ toucan42

I had this problem too, you need to apply 2 fixes.

1.
Go into the Admin CP

Plugins & Products -> Plugin Manager ->

Admin: Process Featured Blog Entry admin_options_processing [Edit]

Change Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '>=')) to Code:
if (defined('YUI_VERSION')) Member Profile (3.7): Add Blog Tab member_build_blocks_start [Edit]

Replace the contents with: Code:
require_once(DIR . '/includes/class_profileblock_blog.php');
$blocklist['blog'] = array(
'class' => 'Blog',
'title' => $vbphrase['blog'],
);
eval('$template_hook[\'memberinfo_css\'] .= "' . fetch_template('blog_member_css') . '";'); Member Profile: Add Blog Links to standard MEMBERINFO display member_complete [Edit]

Change Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '<') AND $userinfo['bloguserid']) to Code:
if (!defined('YUI_VERSION') AND $userinfo['bloguserid']) Member Profile: Inform member.php of blogs and new templates init_startup [Edit]

Change Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '>=')) to Code:
if (defined('YUI_VERSION'))

2.
Open includes/blog_init.php and go down to the bottom.

Replace
PHP Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '>='))

with

PHP Code:
if (defined('YUI_VERSION'))

Hope this will solve your problem :)

J98680Bxxxxx
05 Apr 2008, 22:28
@ toucan42

I had this problem too, you need to apply 2 fixes.
...
Hope this will solve your problem :)

Hi tmiland,

I have implemented those suggestions, still nothing displayed. I am running vB 3.7 RC 2

:(

corazorback
05 Apr 2008, 23:05
Will this work with 3.6.8?

I am trying to get latest blogs on the members profiles of their latest blogs. Sort of how MySpace does it...

Any suggestions

Taragon
07 Apr 2008, 13:52
@ toucan42

I had this problem too, you need to apply 2 fixes.

1.
Go into the Admin CP

Plugins & Products -> Plugin Manager ->

Admin: Process Featured Blog Entry admin_options_processing [Edit]

Change Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '>=')) to Code:
if (defined('YUI_VERSION')) Member Profile (3.7): Add Blog Tab member_build_blocks_start [Edit]

Replace the contents with: Code:
require_once(DIR . '/includes/class_profileblock_blog.php');
$blocklist['blog'] = array(
'class' => 'Blog',
'title' => $vbphrase['blog'],
);
eval('$template_hook[\'memberinfo_css\'] .= "' . fetch_template('blog_member_css') . '";'); Member Profile: Add Blog Links to standard MEMBERINFO display member_complete [Edit]

Change Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '<') AND $userinfo['bloguserid']) to Code:
if (!defined('YUI_VERSION') AND $userinfo['bloguserid']) Member Profile: Inform member.php of blogs and new templates init_startup [Edit]

Change Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '>=')) to Code:
if (defined('YUI_VERSION'))

2.
Open includes/blog_init.php and go down to the bottom.

Replace
PHP Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '>='))

with

PHP Code:
if (defined('YUI_VERSION'))

Hope this will solve your problem :)

thanks tmiland! (just got home from a small holiday)

Reeve of shinra
07 Apr 2008, 18:03
very nice mod!

dreads
30 Apr 2008, 00:59
installed
Thanks!

blogcrash
07 Jul 2008, 11:54
Hi there...
I saw you forum and i liked the "Blogs" link drop down with blogs directory, blog search and so on.

How did you do that??

Can you help me with the code for that please?

Thanks in advance and best regards from Portugal

Taragon
07 Jul 2008, 18:43
Hi there...
I saw you forum and i liked the "Blogs" link drop down with blogs directory, blog search and so on.

How did you do that??

Can you help me with the code for that please?

Thanks in advance and best regards from Portugal
Hello blogcrash,

Thank you for your reply!
I hope this will be what you were looking for http://www.vbulletin.org/forum/showthread.php?t=184631

If you have installed above product, feel free to hit the 'Mark as installed' button :)

samiro
11 Aug 2008, 15:13
its not working...

Taragon
11 Aug 2008, 18:42
its not working...

Actually it is working just fine :)
A few questions since your reply doesn't show what might be wrong.

Have you installed vBulletin Blog?
Do you have the 'normal' blog tab working? (the blog simply replaces the tab, nothing more)
Do you actually have a blog entry made?

Boosted Panda
07 Sep 2008, 02:40
Taragon have you released code on how to make your profile page the way you have it! I love it without those pesky tabs!

Boosted Panda
07 Sep 2008, 07:03
btw I got this to work.

Do everything as said but it is:
$blocks[blog] and you have to remove the template start and end locations.

Konstantinos
19 Sep 2008, 21:35
can u share your entire memberinfo template ?

Boosted Panda
20 Sep 2008, 21:34
I edited my memberinfo the same way. Ill post it soon.

Blackhat
30 Sep 2008, 01:18
is there a way to get the recipe for your complete memberinfo page ? :)

Taragon
30 Sep 2008, 01:47
I'll release it soon. I just have to find a bit of spare time somewhere :)

Emmmmrz
29 Oct 2008, 22:43
it's for vBulletin Blog by vbulletin.comThat would be something to add in the description; that it's only for that paid add-on.

AWMGolfer
28 Mar 2009, 14:59
I know it's been a while for this thread but I have used this on 3.8 with no issues but just have one question. I still have the blog tab and I would like to just have the blog block on the right with no blog tab. What do I need to do to remove the tab? Thanks in advance!