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


All times are GMT. The time now is 01:59 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.01127 seconds
  • Memory Usage 1,739KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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