Code: Select all
'U_SELECT_TOPIC' => "$url&i=$id&mode=forum_view&action=merge_select" . (($forum_id) ? "&f=$forum_id" : ''),
Code: Select all
/*** 2012-03-01 BEGIN AmigoJack
Also incorporate board seach for getting a topic ID ***/
'U_FIND_TOPIC'=> append_sid( 'search.'. $phpEx, 'sr=topics&sf=titleonly&form=mcp&field=to_topic_id&simple=1' ),
/*** 2012-03-01 END ***/
Code: Select all
<a href="{U_SELECT_TOPIC}" >{L_SELECT_TOPIC}</a>
Code: Select all
| <a href="{U_FIND_TOPIC}" onclick="find_username(this.href); return false;">{L_FIND_TOPIC}</a>
Code: Select all
$view = request_var('view', '');
Code: Select all
/*** 2012-03-01 BEGIN AmigoJack
Also incorporate board seach for getting a topic ID ***/
$bSimplePopup= request_var( 'simple', 0 )== 1;
if( $bSimplePopup ) {
$sFindForm= request_var( 'form', '' );
$sFindField= request_var( 'field', '' );
if( !preg_match( '/^[a-z0-9_-]+$/i', $sFindForm ) ) $sFindForm= '';
if( !preg_match('/^[a-z0-9_-]+$/i', $sFindField ) ) $sFindField= '';
} else $sFindForm= $sFindField= '';
/*** 2012-03-01 END ***/
Code: Select all
$u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : '';
Code: Select all
/*** 2012-03-01 BEGIN AmigoJack
Also incorporate board seach for getting a topic ID ***/
if( $bSimplePopup ) {
$u_search.= '&simple=1&form='. $sFindForm. '&field='. $sFindField;
$user-> add_lang( 'memberlist' );
}
/*** 2012-03-01 END ***/
Code: Select all
'S_SHOW_TOPICS' => ($show_results == 'posts') ? false : true,
Code: Select all
/*** 2012-03-01 BEGIN AmigoJack
Also incorporate board seach for getting a topic ID ***/
'S_IN_SEARCH_POPUP'=> $bSimplePopup,
'S_FORM_NAME'=> $sFindForm,
'S_FIELD_NAME'=> $sFindField,
/*** 2012-03-01 END ***/
Code: Select all
if ($_SID)
{
$s_hidden_fields['sid'] = $_SID;
}
Code: Select all
/*** 2012-03-01 BEGIN AmigoJack
Also incorporate board seach for getting a topic ID ***/
if( $bSimplePopup ) {
$s_hidden_fields['simple']= 1;
$s_hidden_fields['form']= $sFindForm;
$s_hidden_fields['field']= $sFindField;
}
/*** 2012-03-01 END ***/
Code: Select all
'S_FORUM_OPTIONS' => $s_forums,
'S_SELECT_SORT_DIR' => $s_sort_dir,
Code: Select all
/*** 2012-03-01 BEGIN AmigoJack
Also incorporate board seach for getting a topic ID ***/
'S_SEARCH_FIELDS'=> $search_fields,
'S_SHOW_RESULTS'=> $show_results,
'S_IN_SEARCH_POPUP'=> $bSimplePopup,
/*** 2012-03-01 END ***/
Code: Select all
<!-- INCLUDE overall_header.html -->
Code: Select all
<!-- IF S_IN_SEARCH_POPUP -->
<!-- INCLUDE simple_header.html -->
<!-- ELSE -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
Code: Select all
<dd><label for="sf1"><input type="radio" name="sf" id="sf1" value="all" checked="checked" /> {L_SEARCH_TITLE_MSG}</label></dd>
<dd><label for="sf2"><input type="radio" name="sf" id="sf2" value="msgonly" /> {L_SEARCH_MSG_ONLY}</label></dd>
<dd><label for="sf3"><input type="radio" name="sf" id="sf3" value="titleonly" /> {L_SEARCH_TITLE_ONLY}</label></dd>
<dd><label for="sf4"><input type="radio" name="sf" id="sf4" value="firstpost" /> {L_SEARCH_FIRST_POST}</label></dd>
Code: Select all
<dd><label for="sf1"><input type="radio" name="sf" id="sf1" value="all" <!-- IF S_SEARCH_FIELDS eq "all" -->checked="checked" <!-- ENDIF -->/> {L_SEARCH_TITLE_MSG}</label></dd>
<dd><label for="sf2"><input type="radio" name="sf" id="sf2" value="msgonly" /> {L_SEARCH_MSG_ONLY}</label></dd>
<dd><label for="sf3"><input type="radio" name="sf" id="sf3" value="titleonly" <!-- IF S_SEARCH_FIELDS eq "titleonly" -->checked="checked" <!-- ENDIF -->/> {L_SEARCH_TITLE_ONLY}</label></dd>
<dd><label for="sf4"><input type="radio" name="sf" id="sf4" value="firstpost" /> {L_SEARCH_FIRST_POST}</label></dd>
Code: Select all
<label for="show_results1"><input type="radio" name="sr" id="show_results1" value="posts" checked="checked" /> {L_POSTS}</label>
<label for="show_results2"><input type="radio" name="sr" id="show_results2" value="topics" /> {L_TOPICS}</label>
Code: Select all
<label for="show_results1"><input type="radio" name="sr" id="show_results1" value="posts" <!-- IF S_SHOW_RESULTS eq "posts" -->checked="checked" <!-- ENDIF -->/> {L_POSTS}</label>
<label for="show_results2"><input type="radio" name="sr" id="show_results2" value="topics" <!-- IF S_SHOW_RESULTS eq "topics" -->checked="checked" <!-- ENDIF -->/> {L_TOPICS}</label>
Code: Select all
<!-- INCLUDE overall_footer.html -->
Code: Select all
<!-- IF S_IN_SEARCH_POPUP -->
<!-- INCLUDE simple_header.html -->
<!-- ELSE -->
<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
Code: Select all
<!-- INCLUDE overall_header.html -->
Code: Select all
<!-- IF S_IN_SEARCH_POPUP -->
<!-- INCLUDE simple_header.html -->
<script type="text/javascript">
// <![CDATA[
function insert_marked(topics)
{
if (typeof(topics.length) == "undefined")
{
if (topics.checked) insert_id(topics.value);
}
else if (topics.length > 0)
{
for (i = 0; i < topics.length; i++)
{
if (topics[i].checked)
{
opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value= topics[i].value;
break;
}
}
}
self.close();
}
// ]]>
</script>
<!-- ELSE -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
Code: Select all
<!-- IF S_SHOW_TOPICS -->
<!-- IF .searchresults -->
Code: Select all
<!-- IF S_IN_SEARCH_POPUP -->
<form method="post" id="results" action="{S_SEARCH_ACTION}" onsubmit="insert_marked(this.find_topic); return false">
<!-- ENDIF -->
Code: Select all
<dt <!-- IF searchresults.TOPIC_ICON_IMG -->style="background-image: url({T_ICONS_PATH}{searchresults.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF -->><span class="wrap-content">
Code: Select all
<!-- IF S_IN_SEARCH_POPUP --><label for="find_topic{searchresults.TOPIC_ID}"><input type="radio" name="find_topic" id="find_topic{searchresults.TOPIC_ID}" value="{searchresults.TOPIC_ID}" /> {L_SELECT}:</label><!-- ENDIF -->
Code: Select all
<!-- ELSE -->
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<strong>{L_NO_SEARCH_RESULTS}</strong>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<!-- ELSE -->
Code: Select all
<!-- IF S_IN_SEARCH_POPUP -->
<fieldset class="display-options">
<input type="submit" name="submit" value="{L_SELECT_MARKED}" class="button2" />
</fieldset>
</form>
<!-- ENDIF -->
Code: Select all
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
Code: Select all
<!-- IF S_IN_SEARCH_POPUP -->
<!-- INCLUDE simple_footer.html -->
<!-- ELSE -->
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
Code: Select all
));
Code: Select all
/*** 2012-03-01 BEGIN AmigoJack
Also incorporate board seach for getting a topic ID ***/
'FIND_TOPIC'=> 'Find topic',
/*** 2012-03-01 END ***/
Do you get a popup at all? If not: does it stay in the same tab/window? Or does a new maximized tab or window open?Jessica wrote:it's not going into a popup
Do you mean that clicking on "find member" does not open a popup, too - or in contrast to "find topic" does open a popup?Jessica wrote:(also does that when I got to send a PM and click on Find a Member)
it goes to the same tabAmigoJack wrote:Do you get a popup at all? If not: does it stay in the same tab/window? Or does a new maximized tab or window open?Jessica wrote:it's not going into a popup
Do you mean that clicking on "find member" does not open a popup, too - or in contrast to "find topic" does open a popup?Jessica wrote:(also does that when I got to send a PM and click on Find a Member)
I can't reproduce it anyway: I get a popup (speak: a window or tab with lower height and width dimensions than the browser itself) the same way as clicking on "find member".