vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Last 10 posts by User? (https://vborg.vbsupport.ru/showthread.php?t=18412)

RobAC 05-29-2001 09:13 PM

Wayne,

A thousand thank-yous!!!!!!!!! :)

Wayne Luke 05-30-2001 12:22 AM

Quote:

Originally posted by auto
Cool deal Wayne!

Woohoo!! :p

It works, except for......

http://www.automotiveforums.com/vbul...info&userid=61

It actually shows any and all images, smilies, and vB code, plus the "..more" thing doesn't work :(

How do I fix this?

Thanks.

I don't know about the link not working.. It will as long as you didn't change your code and call showthread something else.

To make it so the vB Code stuff isn't parsed then remove the call to the bbcodeparse function...

look for:
bbcodeparse($snippet)

and replace with:
$snippet

RobAC 05-30-2001 12:35 AM

Wayne,

Just so you can see, this is what shows up in a user's profile:

New belts and harness bar 05-29-2001 at 03:51 PM
I just wanted to jump in and say "Thanks" to everyone here that's been coac<a href="showthread.php?postid=13148#post13148">more. ..</a><br>

RobAC 05-30-2001 12:41 AM

Wayne,

Thanks!!!! Removing the bbparsecode worked. The link now shows up appropriately.

RobAC 05-30-2001 12:48 AM

Actually, I found something else wrong. This line of code points to the same URL in all the posts listed in the user's profile:

$snippet = substr($message,0,160) . " (<a href=\"".$lastposturl."\">more...</a> )<br>";

I changed $lastposturl to $posturl in this line only and now it works properly.

Wayne Luke 05-30-2001 01:04 AM

I changed the post above to fix that.

I also made a change in the snippet so that BBcode is parsed correctly without interfering with the link.

auto 05-30-2001 01:11 AM

you know, there's another big problem :p
It displays posts in private forums as well.... :rolleyes:

Thanks for helping us out Wayne :)

auto 05-30-2001 01:17 AM

Also,
PHP Code:

$lastpostdate$username." has not made any posts yet."

shoule be
PHP Code:

$lastpostdate$userinfo[username]." has not made any posts yet."


RobAC 05-30-2001 01:22 AM

Looks great. Thanks Wayne!

Wayne Luke 05-30-2001 03:20 AM

Quote:

Originally posted by auto
you know, there's another big problem :p
It displays posts in private forums as well.... :rolleyes:

Thanks for helping us out Wayne :)

It should only show private forums if the person has permission to view them.


All times are GMT. The time now is 07:23 AM.

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.01121 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (2)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
  • (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