Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest Entry in Postbit Details »»
Latest Entry in Postbit
Version: 1.0.1, by King Kovifor King Kovifor is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 3.7.2 Rating:
Released: 05-17-2008 Last Update: 07-18-2008 Installs: 26
Uses Plugins Auto-Templates
Translations  
No support by the author.

Introduction

This is a little mini modification that works with the vBulletin Blog. This will fetch the user's latest blog entry from the database and display it within the post bit.

Requirements
  • vBulletin Blog (will not install unless you have this)
  • vBulletin (tested with vB 3.7.0)
Installation

Installation is simple! All you have to do is upload the provided .xml file to install this product!

Show Your Support

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

Comments
  #12  
Old 05-19-2008, 06:23 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Koroku View Post
Great idea, too bad it's not yet working properly
Why does it never work when I release these things? Will look into it.
Reply With Quote
  #13  
Old 05-19-2008, 08:38 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
Why does it never work when I release these things? Will look into it.
As I described in post 8, this hack has two obvious problems for me. I fixed half of it. Now when it actually manages to show the entry title it links to the correct entry. I did this:

Change blogtextid to blogid:
Code:
<template name="postbit_latestblog" templatetype="template" date="1211120487" username="King Kovifor" version="1.0.0"><![CDATA[<div>$vbphrase[latestblogentry]: <a href="blog.php?b=$entry[blogtextid]">$entry[title]</a></div>]]></template>
However, I still can't figure out why an entry title doesn't even appear most of the time, but works perfectly for some people.
Reply With Quote
  #14  
Old 05-19-2008, 10:37 PM
Koroku Koroku is offline
 
Join Date: Oct 2006
Location: Minnesota, USA
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was appearing correctly for some users, but not others.

Perhaps it has something to do with characters? For instance, on the image that I posted, the blog title should have been
Quote:
v___v;
Perhaps the ; messed it up or something?
Reply With Quote
  #15  
Old 05-19-2008, 11:14 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Koroku View Post
It was appearing correctly for some users, but not others.

Perhaps it has something to do with characters? For instance, on the image that I posted, the blog title should have beenPerhaps the ; messed it up or something?
That's not it. I have people on my site with no special characters in their titles but it still doesn't work for them, while working for others.
Reply With Quote
  #16  
Old 05-19-2008, 11:22 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, I've found out what the problem is. For some reason, when the person has any comments on their blog, the Latest Blog Entry link does not appear correctly. I'm guessing the wrong variable is being used somewhere.
Reply With Quote
  #17  
Old 05-20-2008, 12:02 AM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by furst View Post
Ahh, I've found out what the problem is. For some reason, when the person has any comments on their blog, the Latest Blog Entry link does not appear correctly. I'm guessing the wrong variable is being used somewhere.
That helps me a lot. I will try to fix it soon. And I don't have comments on my test blog.
Reply With Quote
  #18  
Old 05-20-2008, 12:05 PM
rob30UK rob30UK is offline
 
Join Date: Oct 2005
Location: UK
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is already possible without an extra query
Reply With Quote
  #19  
Old 05-20-2008, 01:59 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob30UK View Post
This is already possible without an extra query
Tell us how.
Reply With Quote
  #20  
Old 05-20-2008, 03:18 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob30UK View Post
This is already possible without an extra query
Please. Queries suck and I found the easiest way for me to code this.
Reply With Quote
  #21  
Old 05-21-2008, 11:37 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King View Post
Warning this will add a query for each post in showthread however there is an easy way to do it without running any additional query.
Quote:
Originally Posted by rob30UK View Post
This is already possible without an extra query
Jeez, what's the big secret?
Reply With Quote
Reply


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 11:22 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.04475 seconds
  • Memory Usage 2,320KB
  • 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
  • (1)bbcode_code
  • (9)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
  • (3)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