vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Automatic Birthday Thread (https://vborg.vbsupport.ru/showthread.php?t=62613)

ChurchMedia 07-20-2004 05:19 AM

Quote:

Originally Posted by jluerken
Hi there,

the post is done very well in my 3.0.3er Version but the Thread does not get a title on the forumhome.

Take a look at my screen and you will see!


Hmmmm.... I'm running vB 3.0.0 and not having that problem. Double-check the code. See my screenshot from today.


(Edit)
Oh -- you said you're running 3.0.3 (you might want to update your profile). I'm not sure -- maybe that's the problem. I won't know until I upgrade to 3.0.3, which won't be for a couple of months....

jluerken 07-20-2004 05:48 AM

I checked the code (its not so much :D) and this is looking like yours!

ChurchMedia 07-20-2004 05:52 AM

Quote:

Originally Posted by jluerken
I checked the code (its not so much :D) and this is looking like yours!


Hmmmm..... I'm just not sure what the problem is, unless 3.0.3 handles something differently. Maybe someone familiar with 3.0.3 could help by looking at my code. Sorry!

Boofo 07-20-2004 08:37 AM

Quote:

Originally Posted by ChurchMedia
Hmmmm..... I'm just not sure what the problem is, unless 3.0.3 handles something differently. Maybe someone familiar with 3.0.3 could help by looking at my code. Sorry!

It's not updating the thread title or the link to the birthday thread with the last post icon. It is updating the last poster name fine, but not the other 2. It is pulling the infor from the last post made before the birthday cron job ran. Any idea what might be causing this?

ChurchMedia 07-20-2004 02:31 PM

Quote:

Originally Posted by Boofo
It's not updating the thread title or the link to the birthday thread with the last post icon. It is updating the last poster name fine, but not the other 2. It is pulling the infor from the last post made before the birthday cron job ran. Any idea what might be causing this?

That's strange. I never noticed it before, but you're right. For instance, last night it created a new birthday thread, but the title and link that shows up on the forum-home is for yesterday's birthday thread. Weird. Let me look into it and try to figure it out.

It seems to have the right title and link for new posts.... ???

Boofo 07-20-2004 06:55 PM

Quote:

Originally Posted by ChurchMedia
That's strange. I never noticed it before, but you're right. For instance, last night it created a new birthday thread, but the title and link that shows up on the forum-home is for yesterday's birthday thread. Weird. Let me look into it and try to figure it out.

It seems to have the right title and link for new posts.... ???

Yessir. Otherwise, it is normal. Just when it makes a birthday thread. Maybe the post query should be run before the thread query? ;)

Pitman 07-20-2004 07:35 PM

Quote:

Originally Posted by Boofo
Yessir. Otherwise, it is normal. Just when it makes a birthday thread. Maybe the post query should be run before the thread query? ;)

Yeah I noticed that when I first installed it, but it didn't really bother me because it usually doesn't stay the last post for long. But it changes the last poster's username but not the title ;x

Would be cool to get a fix to that though, thanks :)

ChurchMedia 07-20-2004 10:47 PM

Well, I tried switching the post and thread creation and it just creates an empty thread. I think the problem is with this line:

$log_threadid=$DB_site->insert_id();

I think the insert_id() function is no longer valid in vB3, so it enters a thread id that is NULL. So, it doesn't show up until the next day. Make sense?

Anyone know what the function insert_id() was replaced with?

jluerken 08-01-2004 10:53 AM

Quote:

Originally Posted by ChurchMedia
Well, I tried switching the post and thread creation and it just creates an empty thread. I think the problem is with this line:

$log_threadid=$DB_site->insert_id();

I think the insert_id() function is no longer valid in vB3, so it enters a thread id that is NULL. So, it doesn't show up until the next day. Make sense?

Anyone know what the function insert_id() was replaced with?

Any solutions so far?

ChurchMedia 08-01-2004 06:00 PM

Well, I've looked some code in newthread.php and I think I could re-write this hack to work correctly and streamline it a bit. I won't have time for a while, though (I've having surgery on Tuesday and will be out for a few weeks). I'll look back into it as soon as I can. :)

Thanks,


All times are GMT. The time now is 01:08 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.01161 seconds
  • Memory Usage 1,745KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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