vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Search for Posts in Thread by Username (https://vborg.vbsupport.ru/showthread.php?t=91629)

buro9 09-15-2005 06:21 AM

This is good... and so close to what I had hacked into 3.0.x

What I'm looking for is a search function that can be given a threadid and userid, not username. And that can be called from a GET query, such as search.php?threadid=123&userid=123 and then show the results as posts.

Where I put this is on the popup showing number of people who posted in a thread. I made the numbers clickable so that the opener window changed to show which posts they were.

That should be in vBulletin by default and is not.

But my question is... how could I adjust the hack to use userid, and what should be the URL I would need to see the results?

EasyTarget 09-15-2005 02:14 PM

How could I edit this so that the boxes are separated by a title? One box that says Username and one that says Keyword.

Like the hack that lets you search posts and titles.

Andreas 09-15-2005 02:17 PM

Just modify the Template as you like :)

EasyTarget 09-16-2005 08:48 AM

Code:

<div class="vbmenu_popup" id="threadsearch_menu" style="display:none">
<form action="search.php" method="post">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite">
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="do" value="process" />
                        <input type="hidden" name="searchthread" value="1" />
                        <input type="hidden" name="showposts" value="1" />
                        <input type="hidden" name="searchthreadid" value="$threadid" />
                        <if condition="$show['searchthreaduser']">
                        <div class="vbmenu_option">$vbphrase[username]:</div>
                        <input type="text" class="bginput" name="searchuser" size="20" /><br />
                        </if>
Keyword:<br>
                        <input type="text" class="bginput" name="query" size="20" />$gobutton<br />
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]">$vbphrase[advanced_search]</a></td>
        </tr>
        </table>
</form>
</div>

is there anything I should add or fix from this code so that its more correct? I changed the div class to vbmenu_option and I added the word 'keyword:'. Is there some other/better way to do this?

The Wise One 10-10-2005 03:08 PM

installed. thanks.

buro9 10-10-2005 03:25 PM

Is there a way to call this with a URL like:
search.php?threadid=XXX&userid=YYY

And have it show everything that someone has posted in a thread?

cnutter 10-10-2005 05:25 PM

I tried to install this but It didnt seem to work so what did I miss?

I made teh proper edit in the templet and installed the plugin any ideas?

Andreas 10-10-2005 05:28 PM

@buro9
Yes, it's possible.
do=process&searchthreadid=X&userid=Y

@cnutter
What exactly does not work?

cnutter 10-10-2005 05:33 PM

Quote:

Originally Posted by KirbyDE
@cnutter
What exactly does not work?


KirbyDE,

Maybe, I am not getting it but when I went to a forum to do a search in a very large thread on my site to test it I couldnt find/see the search field as show in your screen shot of the hack.

I maybe missing something.... :ermm:

cnutter 10-10-2005 05:46 PM

KirbyDE

I figured it out....

Code:

<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
There are two instances of this exact line in the SHOWTHREAD templet.

I had put it above the wrong one.

Its fixxed now.... thanx....


All times are GMT. The time now is 09:54 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.01154 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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