Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Blog block instead of tab in user profile Details »»
Blog block instead of tab in user profile
Version: 1.00, by Taragon Taragon is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.x Rating:
Released: 03-26-2008 Last Update: 03-26-2008 Installs: 25
Template Edits
Re-useable Code Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-04-2008, 08:25 PM
corazorback corazorback is offline
 
Join Date: Sep 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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???
Reply With Quote
  #13  
Old 04-05-2008, 01:23 PM
toucan42 toucan42 is offline
 
Join Date: Sep 2006
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J98680B2423E View Post
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
Reply With Quote
  #14  
Old 04-05-2008, 07:50 PM
tmiland tmiland is offline
 
Join Date: Mar 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ 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
Reply With Quote
  #15  
Old 04-05-2008, 08:28 PM
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Location: Bridge - Enterprise
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmiland View Post
@ 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

Reply With Quote
  #16  
Old 04-05-2008, 09:05 PM
corazorback corazorback is offline
 
Join Date: Sep 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 04-07-2008, 11:52 AM
Taragon's Avatar
Taragon Taragon is offline
 
Join Date: Sep 2007
Location: The Netherlands
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmiland View Post
@ 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)
Reply With Quote
  #18  
Old 04-07-2008, 04:03 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice mod!
Reply With Quote
  #19  
Old 04-29-2008, 10:59 PM
dreads dreads is offline
 
Join Date: Feb 2007
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed
Thanks!
Reply With Quote
  #20  
Old 07-07-2008, 09:54 AM
blogcrash blogcrash is offline
 
Join Date: Jun 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 07-07-2008, 04:43 PM
Taragon's Avatar
Taragon Taragon is offline
 
Join Date: Sep 2007
Location: The Netherlands
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blogcrash View Post
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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:41 AM.


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.05865 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (15)bbcode_code
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete