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)
-   -   Last X Posts Titles on Non-VB page (https://vborg.vbsupport.ru/showthread.php?t=62624)

Umpakati 04-17-2005 04:33 AM

I felt dumb when I realized, but make sure $db_name is set to the right database. I got the same error as you guys before:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxx/public_html/lastposts3.php on line 48

Gastongr 04-28-2005 01:05 AM

I'd like to have this but in a all the vb pages.
I know there are many hacks for that but not for all pages, and if there are they display many details and requiere mayor edits.
Is there any way to include a php file from a template like footer or header?

Gastongr 04-28-2005 01:59 AM

i have solved this creating a new variable containing the file in the phpinclude_start template. Then in just insert that variable where i want this displayed.
This is working in all pages except in showthread.php and forumdisplay.php where i get this error
Code:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /includes/lastposts.php on line 47
This is line 47 in /includes/lastpost.php
Code:

while($thread_get=mysql_fetch_array($thread_sql))
how can i solve it?

Gastongr 04-28-2005 02:11 AM

My line 47 is actually line 48 of the original file

Gastongr 04-28-2005 02:23 AM

Just saw the fixed file by therczone. I'll try it now.
What's suppoused to be my thread prefix?
db table prefix?

Gastongr 04-28-2005 02:49 AM

I really don't know what's wrong with this i did all the suggested in this thread, but the error is still there.
Can someone help me?

smdani 05-09-2005 10:13 AM

This is a great hack.
I use it a lot into my website.
I would like to show also 400 first characters of a post below the link. I tried to select the text through the mysql sentence, but it appears unformatted (no spidering tags).
Anyone knows how to do this?

Thanks in advance

lazyseller 05-15-2005 12:31 AM

if u dont use a prefix u delete this line YOURPREFIXHERE_ in both instances for people who are having trouble...

MarketingPatch 06-28-2005 08:28 PM

Also the error message :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/traffic/public_html/marketingpatch/lastposts.php on line 48

Gutspiller 08-08-2005 03:23 PM

How do I get this to exclude forums as well? Also, does it respect viewable permissions so it won't show mod forum posts to people that aren't allowed?

Thanks.


All times are GMT. The time now is 09:15 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.01063 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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