Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2002, 04:50 AM
Mntsnow Mntsnow is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default looking for a "Users recent posts" hack

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 )
Attached Images
File Type: gif hackrequest.gif (970 Bytes, 0 views)
Reply With Quote
  #2  
Old 07-27-2002, 05:21 AM
Mntsnow Mntsnow is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Images
File Type: gif myhack.gif (925 Bytes, 0 views)
Reply With Quote
  #3  
Old 07-27-2002, 05:41 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 07-27-2002, 12:35 PM
Mntsnow Mntsnow is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 07-27-2002, 12:46 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 07-27-2002, 06:33 PM
Mntsnow Mntsnow is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #7  
Old 07-27-2002, 06:42 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #8  
Old 07-27-2002, 06:57 PM
Mntsnow Mntsnow is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 07-27-2002, 07:11 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 07-28-2002, 02:17 AM
Mntsnow Mntsnow is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:38 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.04602 seconds
  • Memory Usage 2,278KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete