vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vB3.5 15 Most Recent Searches Made By Our Members (https://vborg.vbsupport.ru/showthread.php?t=95270)

Oblivion Knight 09-11-2005 09:42 PM

I seem to remember that previously, admin searches were not displayed..

Is this not the case with this new version?

Boofo 09-11-2005 09:54 PM

Quote:

Originally Posted by Oblivion Knight
I seem to remember that previously, admin searches were not displayed..

Is this not the case with this new version?

They are displayed only to those who have access to whatever forums the searches are in. It is fully permissions based now. ;)

Alien 09-11-2005 10:30 PM

Quote:

Originally Posted by Boofo
They are displayed only to those who have access to whatever forums the searches are in. It is fully permissions based now. ;)

I should explain more accurately. :)

Each search that is submitted, yields a brand new instance of the new table code inserted into the search template.. Wierdest thing I ever saw.. I uninstalled and reinstalled several times (even on a fresh version) so I have no clue how it could be happening...

Say I go into search, and type "test" and JUST installed your hack for the first time. It will display flawlessly. Do it again for something like "funny", it will display TWO tables BOTH showing test and funny results. :)

Boofo 09-11-2005 11:28 PM

First of all, they are not tables, they are rows. And it is working exactly as it should. ALL it is doing is pulling the last 15 rows in the search table. Whatever is in those rows is what it will pull. Simple as that. ;)

Boofo 09-11-2005 11:28 PM

Show me a pic if I still don't understand.

Brandon Sheley 09-11-2005 11:51 PM

ty, * installs* worked just like it should. this will be a great tool for me to organize the forums for the members, depending on what they are searching for alot :)

phlogiston 09-12-2005 12:23 AM

Quote:

Originally Posted by Boofo
Show me a pic if I still don't understand.

The whole results table repeats. v1.0.2 of the product with vB 3.5 RC3

Looking at the search_intro plugin the code that looks for $navbar and adds the $last15searches variable to te template is within a foreach statement moving the last closing } up four lines may be all that's needed for a fix? :)

Boofo 09-12-2005 12:35 AM

Quote:

Originally Posted by Loco Macheen
ty, * installs* worked just like it should. this will be a great tool for me to organize the forums for the members, depending on what they are searching for alot :)

And it will you (Only Admins) to see who is doing the searches. ;)

Boofo 09-12-2005 12:37 AM

Quote:

Originally Posted by phlogiston
The whole results table repeats. v1.0.2 of the product with vB 3.5 RC3

Looking at the search_intro plugin the code that looks for $navbar and adds the $last15searches variable to te template is within a foreach statement moving the last closing } up four lines may be all that's needed for a fix? :)

Ok, I see what it is doing. I will have a fix shortly. ;)

Boofo 09-12-2005 12:50 AM

First post updated with fixed and working version. ;)


All times are GMT. The time now is 09:58 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.01061 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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