vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   How to do that? see photo! (https://vborg.vbsupport.ru/showthread.php?t=37246)

Blue91 04-29-2002 09:44 AM

Quote:

Originally posted by FireFly
That's a part of our postbit:
Code:

<normalfont><b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]">$post[username]</a></b> [<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]"><img src="https://vborg.vbsupport.ru/images/postbit_find.gif" border="0" alt="Find more posts by $userinfo[username]" align="middle"></a>]</b></normalfont>


Where do I install this code to enable this feature? And do I need to edit any files, or is it just template based?

This is a great feature!

Birdie501 04-29-2002 09:46 AM

postbit template!

Blue91 04-29-2002 09:57 AM

Do I just paste it anywhere? And, will my search results be formatted/look like they do here? I love the way they are here.

Sorry for seemingly stupid questions, but I just set up my board for the first time yesterday, and am learning (not fast enough apparently, hehehe)

Regards,

Fred Bingham

Blue91 04-29-2002 12:18 PM

Wow, I figured it out on my own believe it or not. Maybe I AM learning quick. (not the code, just where the code GOES and minor manipulations, :D )


Here's a variable Im curious about though.... how can I edit that code to just do a search for posts in the past, say, 3 days. If it does a search for ALL posts, that's gonna end up taking forever.

Or is it already this way?

Again, sorry for seemingly simple questions.

Regards,

Blue91 04-29-2002 10:21 PM

anyone out there know how to conquer what was proposed in my post above this one?

Regards,

Admin 04-30-2002 06:15 AM

Blue: In search.php find this code:
Code:

  $wheresql="1=1".$forumsql.$usersql;
And add this portion of code right AFTER it:
Code:

  if (!empty($days)) {
          $wheresql .= ' AND post.dateline > '.(time() - (60*60*24*$days));
  }

Now change the link to this (in the postbit template):
Code:

<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]&days=3">
(3 being the number of days to search for)

Blue91 04-30-2002 04:34 PM

Hmm, that doesn't seem to be working. I put in the value 1 and I get more results than just the past day. I get the same results for 1 day as I do 7 days. Also, that made my "Latest posts in the past 24 hours" link at the top of my index page to not work, lol. I guess I'll just leave well enough alone.

Regards,

nulltone 05-21-2002 02:00 AM

Where can I find the "Online" or "Offline" hack which is currently in your postbit?


All times are GMT. The time now is 06:33 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.00992 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)bbcode_code_printable
  • (1)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
  • (8)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