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?


All times are GMT. The time now is 12:53 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.01278 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete