vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Profile Enhancements - Blog block instead of tab in user profile (https://vborg.vbsupport.ru/showthread.php?t=174274)

Taragon 03-26-2008 10:00 PM

Blog block instead of tab in user profile
 
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

Code:

----------------------------
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

Quote:

Originally Posted by J98680B2423E (Post 1482949)
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:
Code:

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

if (defined('YUI_VERSION'))
Member Profile (3.7): Add Blog Tab member_build_blocks_start [Edit]

Replace the contents with: Code:
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:
Code:

if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '<') AND $userinfo['bloguserid'])
to Code:
Code:

if (!defined('YUI_VERSION') AND $userinfo['bloguserid'])
Member Profile: Inform member.php of blogs and new templates init_startup [Edit]

Change Code:
Code:

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

if (defined('YUI_VERSION'))
2.
Open includes/blog_init.php and go down to the bottom.

Replace
PHP Code:
PHP Code:

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


with

PHP Code:
PHP Code:

if (defined('YUI_VERSION')) 

Hope this will solve your problem :)

J98680Bxxxxx 04-05-2008 08:28 PM

Quote:

Originally Posted by tmiland (Post 1483851)
@ 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

Quote:

Originally Posted by tmiland (Post 1483851)
@ 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:
Code:

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

if (defined('YUI_VERSION'))
Member Profile (3.7): Add Blog Tab member_build_blocks_start [Edit]

Replace the contents with: Code:
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:
Code:

if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 1', '<') AND $userinfo['bloguserid'])
to Code:
Code:

if (!defined('YUI_VERSION') AND $userinfo['bloguserid'])
Member Profile: Inform member.php of blogs and new templates init_startup [Edit]

Change Code:
Code:

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

if (defined('YUI_VERSION'))
2.
Open includes/blog_init.php and go down to the bottom.

Replace
PHP Code:
PHP Code:

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


with

PHP Code:
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

Quote:

Originally Posted by blogcrash (Post 1568945)
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

Quote:

Originally Posted by samiro (Post 1596217)
its not working...

Actually it is working just fine :)
A few questions since your reply doesn't show what might be wrong.
  1. Have you installed vBulletin Blog?
  2. Do you have the 'normal' blog tab working? (the blog simply replaces the tab, nothing more)
  3. 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

Quote:

Originally Posted by Taragon (Post 1478440)
it's for vBulletin Blog by vbulletin.com

That 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!


All times are GMT. The time now is 05:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01418 seconds
  • Memory Usage 1,814KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete