vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   vBulletin Blog - Latest Entry in Postbit (https://vborg.vbsupport.ru/showthread.php?t=179647)

King Kovifor 05-17-2008 10:00 PM

Latest Entry in Postbit
 
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!

King Kovifor 05-18-2008 01:46 PM

Change Log

v1.0.0 (May 18, 2008)
  • First Public Release

v1.0.1 (July 18, 2008)
  • Fix! Now correctly pulls latest information correctly.

NNJJ 05-18-2008 02:07 PM

screenshot?

Super Jinni 05-18-2008 02:32 PM

screenshot please

Lizard King 05-18-2008 02:37 PM

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.

Nikke 05-18-2008 03:20 PM

Quote:

Originally Posted by Lizard King (Post 1523593)
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.

Care to elaborate on the easy way?

furst 05-18-2008 04:41 PM

Quote:

Originally Posted by Lizard King (Post 1523593)
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.

Don't do anything crazy like letting us know the easy way to do it.

furst 05-18-2008 07:10 PM

This product is actually not working properly for me. In some cases it doesn't show a title at all (even though the person has a blog), and at other times it links to the wrong blog.

I'm on 3.7 with the most recent vbBlog release.

Koroku 05-19-2008 03:27 AM

Great idea, too bad it's not yet working properly :(

Hornstar 05-19-2008 07:18 AM

yeah good idea, but looks like a few things can be improved first tho. thanks.

King Kovifor 05-19-2008 06:23 PM

Quote:

Originally Posted by Koroku (Post 1524352)
Great idea, too bad it's not yet working properly :(

Why does it never work when I release these things? Will look into it.

furst 05-19-2008 08:38 PM

Quote:

Originally Posted by King Kovifor (Post 1524982)
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.

Koroku 05-19-2008 10:37 PM

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?

furst 05-19-2008 11:14 PM

Quote:

Originally Posted by Koroku (Post 1525209)
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.

furst 05-19-2008 11:22 PM

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.

King Kovifor 05-20-2008 12:02 AM

Quote:

Originally Posted by furst (Post 1525246)
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.

rob30UK 05-20-2008 12:05 PM

This is already possible without an extra query ;)

furst 05-20-2008 01:59 PM

Quote:

Originally Posted by rob30UK (Post 1525666)
This is already possible without an extra query ;)

Tell us how.

King Kovifor 05-20-2008 03:18 PM

Quote:

Originally Posted by rob30UK (Post 1525666)
This is already possible without an extra query ;)

Please. Queries suck and I found the easiest way for me to code this.

furst 05-21-2008 11:37 PM

Quote:

Originally Posted by Lizard King (Post 1523593)
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 (Post 1525666)
This is already possible without an extra query ;)

Jeez, what's the big secret?

toucan42 05-21-2008 11:55 PM

anyone care to share how to do this without extra queries?

furst 05-23-2008 11:35 PM

So anyone else know the secret way to do it without a query?

furst 05-25-2008 04:28 PM

Quote:

Originally Posted by King Kovifor (Post 1525277)
That helps me a lot. I will try to fix it soon. And I don't have comments on my test blog.

Are you still going to come out with a fix? I'd take the extra query if I had to.

King Kovifor 05-25-2008 04:44 PM

Um. Yeah I will try to fix it soon. I won't have time to do it today.

furst 06-01-2008 10:56 PM

No luck finding a fix?

King Kovifor 06-02-2008 01:08 AM

No luck finding time. Will have time after Friday as school is out.

Greg-J 06-03-2008 09:54 PM

Hell, it doesn't even show up for me.

Using 3.7.1.

King Kovifor 06-04-2008 08:14 PM

What blog version are you using?

Greg-J 06-04-2008 08:25 PM

Quote:

Originally Posted by King Kovifor (Post 1540967)
What blog version are you using?

vBulletin Blog 1.0.5

furst 06-04-2008 08:38 PM

Quote:

Originally Posted by Greg-J (Post 1540980)
vBulletin Blog 1.0.5

Tried this?

https://vborg.vbsupport.ru/showpost....0&postcount=12

furst 06-16-2008 08:25 PM

Are there any plans to make this work in the near future?

King Kovifor 06-16-2008 11:24 PM

Yeah. Hopefully this summer...

KURTZ 06-22-2008 08:50 AM

i tried to install this onto my board but i get this error when i select the link in the postbit ...

'Invalid Blog specified. If you followed a valid link, please notify the administrator'

what's up?

edit: i'm back, just tested this onto another board ... it runs but there is another trouble ... it shows me the title of my latest entry in the postbit BUT if i select this it redirects onto my latest comment onto another user's blog, so not my latest entry ...

King Kovifor 06-22-2008 11:06 PM

Yeah, I haven't had the time to investigate it. :( I will try to get to it this week.

PoetJA-1975 06-30-2008 07:02 AM

Quote:

Originally Posted by Lizard King (Post 1523593)
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.

WTF?!?!? Why post such a cryptic message and neglect to elaborate.
Don't you think those who have read your post will be interested in knowing the "easy way" you so elegantly speak about? I'd like to know - think you could actually share it? Hello!

Jacquii.

furst 07-07-2008 10:45 PM

Best. Mod. Ever.

King Kovifor 07-08-2008 02:02 PM

Quote:

Originally Posted by furst (Post 1569575)
Best. Mod. Ever.

Thanks... Makes me want to throw everything aside and fix it.

Britmovie 07-08-2008 09:21 PM

Nope it says latest blog entry: and then nothing?

Dabbi 07-08-2008 09:41 PM

This is going to be great when you have time to get it to work right. :) (better yet without the query.)

In the meanwhile I've tagged this to watch. :cool:

King Kovifor 07-09-2008 02:21 AM

Quote:

Originally Posted by Britmovie (Post 1570449)
Nope it says latest blog entry: and then nothing?

Your entry has a comment on it. For some reason it doesn't work.

Quote:

Originally Posted by Dabbi (Post 1570464)
This is going to be great when you have time to get it to work right. :) (better yet without the query.)

In the meanwhile I've tagged this to watch. :cool:

It'll be with the query for now. :(


All times are GMT. The time now is 05:49 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.01476 seconds
  • Memory Usage 1,799KB
  • 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
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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