View Full Version : Profile Enhancements - Blog block instead of tab in user profile
Taragon
03-26-2008, 10:00 PM
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
03-27-2008, 03:22 PM
Thanks for this :)
Gemma
03-27-2008, 05:00 PM
Thank You :)
Gosef
03-27-2008, 05:24 PM
good job !!!
thanks
christian8a
03-30-2008, 02:41 PM
what blog product is that one?
Taragon
03-30-2008, 04:32 PM
it's for vBulletin Blog by vbulletin.com
christian8a
03-30-2008, 06:16 PM
sweet man, this thing to display on profiles is neat :up:
christian8a
03-30-2008, 06:42 PM
where do you get that blog, I went there but couldnt find it
Taragon
03-30-2008, 08:13 PM
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-04-2008, 03:57 PM
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-04-2008, 08:25 PM
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
04-05-2008, 01:23 PM
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
04-05-2008, 07:50 PM
@ 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
04-05-2008, 08:28 PM
@ 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
04-05-2008, 09:05 PM
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
04-07-2008, 11:52 AM
@ 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
04-07-2008, 04:03 PM
very nice mod!
dreads
04-29-2008, 10:59 PM
installed
Thanks!
blogcrash
07-07-2008, 09:54 AM
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-07-2008, 04:43 PM
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 https://vborg.vbsupport.ru/showthread.php?t=184631
If you have installed above product, feel free to hit the 'Mark as installed' button :)
samiro
08-11-2008, 01:13 PM
its not working...
Taragon
08-11-2008, 04:42 PM
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
09-07-2008, 12:40 AM
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
09-07-2008, 05:03 AM
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
09-19-2008, 07:35 PM
can u share your entire memberinfo template ?
Boosted Panda
09-20-2008, 07:34 PM
I edited my memberinfo the same way. Ill post it soon.
Blackhat
09-29-2008, 11:18 PM
is there a way to get the recipe for your complete memberinfo page ? :)
Taragon
09-29-2008, 11:47 PM
I'll release it soon. I just have to find a bit of spare time somewhere :)
Emmmmrz
10-29-2008, 08:43 PM
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
03-28-2009, 12:59 PM
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!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.