vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   looking for a "Users recent posts" hack (https://vborg.vbsupport.ru/showthread.php?t=41580)

Mntsnow 07-27-2002 04:50 AM

looking for a "Users recent posts" hack
 
1 Attachment(s)
I want to put a link next to my logged in user's names on the forums index page that would link to a search page listing their recent posts. I have ran a couple of searches and not found one. Help?


Want it to come up with info such as this (my user name for example)
http://www.xtremepccentral.com/vbfor...duser&userid=1

So in short there would be a link at the top of the forum that looked like this that did the search I listed above. instead of the normal "view new posts" which searches for posts since the users last visit (or better yet have both links :) )

Mntsnow 07-27-2002 05:21 AM

1 Attachment(s)
NeverMind I got figured it out...

Basically edit your forum home template / forumhome and at around line 23 change

Quote:

<td align="right"><smallfont>$welcometext<br><b>$newpo sts<b></smallfont></td>
to
Quote:

<td align="right"><smallfont>$welcometext<br><b>$newpo sts<br>
<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userid">Your Recent Posts</a></b></smallfont></td>
It will look like this

Boofo 07-27-2002 05:41 AM

That doesn't work for me. :) How far back is it supposed to go?

Quote:

Originally posted by Mntsnow
NeverMind I got figured it out...

Basically edit your forum home template / forumhome and at around line 23 change


to


It will look like this


Mntsnow 07-27-2002 12:35 PM

Durring my testing on 2 different boards (2.2.2 and 2.2.6) it is able to actually go back to the start of both of my boards (a bit over 8 months for one and 4 months for the other)

When you say it's not working for you is it not doing anything or what?

Boofo 07-27-2002 12:46 PM

It keeps giving me the "try some different terms" error.

Quote:

Originally posted by Mntsnow
Durring my testing on 2 different boards (2.2.2 and 2.2.6) it is able to actually go back to the start of both of my boards (a bit over 8 months for one and 4 months for the other)

When you say it's not working for you is it not doing anything or what?


Mntsnow 07-27-2002 06:33 PM

Other hacks in use? what happens when you try a straight forward search such as http://www.yourdomain.com/forums/sea...duser&userid=1 ? (substitute the user ID for whoever's ID you want to try but #1 is usually the board admin)

Boofo 07-27-2002 06:42 PM

When I try it like you suggested here, it works fine. Are you sure this is the line you are using? (I'm just asking since it works with it the other way. :))

<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userid">

Or should it be this?

<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]">

Quote:

Originally posted by Mntsnow
Other hacks in use? what happens when you try a straight forward search such as http://www.yourdomain.com/forums/sea...duser&userid=1 ? (substitute the user ID for whoever's ID you want to try but #1 is usually the board admin)

Mntsnow 07-27-2002 06:57 PM

Quote:

<td align="right"><smallfont>$welcometext<br><b>$newpo sts<br>
<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userid">Your Recent Posts</a></b></smallfont></td>
is an exact cut & paste out of my 2.2.6 board.

Boofo 07-27-2002 07:11 PM

I figured it out. I am putting it in the forumhome_welcometext template which is called in the forumhome template. If I put it in the forumhome template, it works. It won't work when I put it in the forumhome_welcometext template. And ideas how to make it work there? :)

Mntsnow 07-28-2002 02:17 AM

Sorry I dont off the top of my head but I will snoop around on my beta board and see if I can come up with something...

But you should have told me earlier that you were trying to put it elsewhere as I did list where the hack was to be done
Quote:

Basically edit your forum home template / forumhome
and we could have prevented the running around


All times are GMT. The time now is 01:41 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.00988 seconds
  • Memory Usage 1,737KB
  • 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
  • (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