Page 1 of 4 1 2 3 4 >
Topic Options
#5912 - 03/09/10 02:16 AM Any of you guys know PHP to create a Self Search Feature here?
lightningrod Offline

Rising in the Light

Registered: 10/15/09
Posts: 1382
Any of you guys know PHP or know someone who knows some PHP, to create a Self Search Feature here?

I asked in a php forum and this was the only Reply


Quote:

Most forums these days have this feature, I doubt you have to go back as far as wwwthreads or ubb.threads.

If you already have a search in place, all you have to do is modify the query's WHERE clause by adding `user_id` = x

Php Code:
PHP Code:
$query .= ' AND `user_id` = ' . $user->id   


Where `user_id` is the user table's primary key, and $user->id is the current logged in user ID.
_________________________
Jeremiah 51:14 The LORD of hosts has sworn by Himself: Surely I will fill you with men, as with locusts, And they shall lift up a shout against you.

Top
#5913 - 03/09/10 05:01 AM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: lightningrod]
Zampan0 Offline
Waiting

Registered: 10/15/09
Posts: 536
Loc: Arizona
This is great! Please give us a button to click so we can use this feature.

"Any of you guys know PHP or know someone who knows some PHP, to create a Self Search Feature here?"

I may know someone I'll try to ask. Is this called 'html'? Maybe I can find a manual on the net. Please respond.


Edited by Zampan0 (03/09/10 05:05 AM)
_________________________
________

Top
#5917 - 03/09/10 07:43 AM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: Zampan0]
lightningrod Offline

Rising in the Light

Registered: 10/15/09
Posts: 1382
Originally Posted By: Zampan0
This is great! Please give us a button to click so we can use this feature.

"Any of you guys know PHP or know someone who knows some PHP, to create a Self Search Feature here?"

I may know someone I'll try to ask. Is this called 'html'? Maybe I can find a manual on the net. Please respond.



Eventually I'm going to move this Thread to the Members Only Section

To make this easier for us, all we have to do is modify an existing php script here, and turn it into a self search feature

Which still will be very difficult for us, unless we can find someone who knows some php


This is the php script here for Active Topics


Php Code:

<?php
//	Whoops!  If you see this text in your browser,
//	your web hosting provider has not installed PHP.
//
//	You will be unable to use UBB until PHP has been properly installed.
//
//	You may wish to ask your web hosting provider to install PHP.
//	Both Windows and Unix versions are available on the PHP website,
//	http://www.php.net/
//
//
//
//	Ultimate Bulletin Board
//	Script Version 7.5.5
//
//	Program authors: Rick Baker
//	Copyright (C) 2010 Mindraven.
//
//	You may not distribute this program in any manner, modified or
//	otherwise, without the express, written consent from
//	Mindraven.
//
//	You may make modifications, but only for your own use and
//	within the confines of the UBB License Agreement
//	(see our website for that).
//
//	Note: If you modify ANY code within your UBB, we at Mindraven
//  cannot offer you support -- thus modify at your own peril :)

if(!defined("UBB_MAIN_PROGRAM")) exit;

function page_activetopics_gpc () {
	return array(
		"input" => array(
			"range" => array("range","get","int"),
			"page" => array("page","get","int"),
			"type" => array("type","get","alpha"),
		),
		"wordlets" => array("activetopics"),
		"user_fields" => "t2.USER_TOPIC_VIEW_TYPE, t2.USER_TIME_FORMAT, t2.USER_TOPICS_PER_PAGE",
		"regonly" => 0,
		"admin_only" => 0,
		"admin_or_mod" => 0,
	);
}

function page_activetopics_run () {
	global $tree, $userob, $user, $in, $ubbt_lang, $config, $forumvisit, $visit, $dbh, $html, $style_array;

	extract($in, EXTR_OVERWRITE | EXTR_REFS); // quick and dirty fix - extract hash values as vars

	// Set up page size based upon user preference or board config
	$PostsPer = array_get($user, 'USER_TOPICS_PER_PAGE', $config['TOPICS_PER_PAGE']);
	 if (!$page || $page < 1) $page = 1;
	if (!$PostsPer) $PostsPer = 25;

	// First check what timestamp we use to check new posts against
	if ($userob->is_logged_in) {
		if (!isset($_SESSION['forumvisit']['visit']) || !is_array($_SESSION['forumvisit']['visit'])) {
			$_SESSION['forumvisit']['lastonline'] = $user['USER_LAST_VISIT_TIME'];
			$query = "
				select LAST_VISIT_TIME,FORUM_ID
				from {$config['TABLE_PREFIX']}FORUM_LAST_VISIT
				where USER_ID = ?
			";
			$sth = $dbh->do_placeholder_query($query,array($user['USER_ID']),__LINE__,__FILE__);
			while(list($last_visit,$board_id) = $dbh->fetch_array($sth)) {
				$_SESSION['forumvisit']['visit'][$board_id] = $last_visit;
			}
		}
	}

	$timeline = $html->get_date();
	if ($range == 1) {
		$header = $ubbt_lang['ACTIVE_24'];
		$timeline = $timeline - 86400;
	} elseif ($range == 2) {
		$header = $ubbt_lang['ACTIVE_48'];
		$timeline = $timeline - (86400 * 2);
	} elseif ($range == 7) {
		$header = $ubbt_lang['ACTIVE_7'];
		$timeline = $timeline - (86400 * 7);
	} else {
		$header = $ubbt_lang['ACTIVE_24'];
		$timeline = $timeline - 86400;
	} // end if

	// Based upon user's permissions, build a list of allowable forums
	$boards = array();
	foreach($tree['active'] as $k => $v) {
		if ($userob->check_access("forum","READ_TOPICS",$k)) {
			$boards[] = $k;
		}
	}
	$board_in = join(",",$boards);
  if (!$board_in) $board_in = '0';

	// How many active topics?
	$total_topics = 0;
	if ($type == "p") {
		$query = "
			select	count(t1.POST_ID)
			from	{$config['TABLE_PREFIX']}POSTS as t1,
				{$config['TABLE_PREFIX']}TOPICS as t2,
				{$config['TABLE_PREFIX']}FORUMS as t3
			where	t1.POST_POSTED_TIME > ?
				and t1.TOPIC_ID = t2.TOPIC_ID
				and t3.FORUM_ACTIVE_POSTS = 1
				and t2.FORUM_ID in ($board_in)
				and t2.FORUM_ID = t3.FORUM_ID
				and t1.POST_IS_APPROVED = 1
				and t2.TOPIC_STATUS <> 'M'
		";
	} else if ($type == "u") {
		$query = "
			select	count(t1.TOPIC_ID)
			from	{$config['TABLE_PREFIX']}TOPICS as t1,
				{$config['TABLE_PREFIX']}FORUMS as t2
			where	t1.TOPIC_LAST_REPLY_TIME > ?
				and t1.FORUM_ID in ($board_in)
				and t1.FORUM_ID = t2.FORUM_ID
				and t2.FORUM_ACTIVE_POSTS = 1
				and t1.TOPIC_REPLIES = 0
				and t1.TOPIC_IS_APPROVED = 1
				and t1.TOPIC_STATUS <> 'M'
		";
	} else {
		$query = "
			select	count(t1.TOPIC_ID)
			from	{$config['TABLE_PREFIX']}TOPICS as t1,
				{$config['TABLE_PREFIX']}FORUMS as t2
			where	t1.TOPIC_LAST_REPLY_TIME > ?
				and t1.FORUM_ID in ($board_in)
				and t1.FORUM_ID = t2.FORUM_ID
				and t2.FORUM_ACTIVE_POSTS = 1
				and t1.TOPIC_IS_APPROVED = 1
				and t1.TOPIC_STATUS <> 'M'
		";
	}
	$sth = $dbh->do_placeholder_query($query,array($timeline),__LINE__,__FILE__);
	list($total_topics) = $dbh->fetch_array($sth);

	// What is our limit clause?
	if ($page == 1) {
		$limit = "limit $PostsPer";
	} else {
		$limit = "limit " . (($page - 1)  * $PostsPer) . ", $PostsPer";
	}

	$extra = "and t2.TOPIC_LAST_POST_ID = t3.POST_ID and t2.TOPIC_LAST_REPLY_TIME > ? and t2.TOPIC_LAST_POSTER_ID = t4.USER_ID";
	$poster_field = "t2.TOPIC_LAST_POSTER_NAME";
	$time_field = "t2.TOPIC_LAST_REPLY_TIME";
	if ($type == "p") {
		$extra = "and t2.TOPIC_ID = t3.TOPIC_ID and t3.POST_POSTED_TIME > ? and t3.USER_ID = t4.USER_ID AND t3.POST_IS_APPROVED = 1";
		$poster_field = "t4.USER_DISPLAY_NAME";
		$time_field = "t3.POST_POSTED_TIME";
	} else if ($type == "u") {
		$extra = "and t2.TOPIC_REPLIES = 0 and t2.TOPIC_LAST_POST_ID = t3.POST_ID and t2.TOPIC_LAST_REPLY_TIME > ? and t2.TOPIC_LAST_POSTER_ID = t4.USER_ID AND t3.POST_IS_APPROVED = 1";
	} // end if
	$topics = array();
	$query = "
		SELECT t1.FORUM_ID, t1.FORUM_TITLE, t3.POST_SUBJECT, t3.POST_ICON, t3.POST_POSTED_TIME, $poster_field, t3.POST_BODY,
					 t2.TOPIC_ID, t3.POST_ID, t1.FORUM_IS_GALLERY, t2.TOPIC_VIEWS, t2.TOPIC_REPLIES, t2.TOPIC_CREATED_TIME, t4.USER_MEMBERSHIP_LEVEL,
					 t5.USER_NAME_COLOR
			FROM {$config['TABLE_PREFIX']}FORUMS as t1,
					 {$config['TABLE_PREFIX']}TOPICS as t2,
					 {$config['TABLE_PREFIX']}POSTS as t3,
					 {$config['TABLE_PREFIX']}USERS as t4,
					 {$config['TABLE_PREFIX']}USER_PROFILE as t5
		WHERE t1.FORUM_ID IN ($board_in)
			AND t1.FORUM_ACTIVE_POSTS = 1
			$extra
			AND t2.FORUM_ID = t1.FORUM_ID
			AND t2.TOPIC_STATUS <> 'M'
			AND t2.TOPIC_IS_APPROVED = 1
			AND t4.USER_ID = t5.USER_ID
		ORDER BY $time_field DESC
		$limit
	";
	$sth = $dbh->do_placeholder_query($query,array($timeline),__LINE__,__FILE__);
	$i = 0;
	while(list($forum_id,$forum_title,$post_subject,$post_icon,$post_time,$poster_name,$post_body,$topic_id,$post_id,$is_gallery,$topic_views,$topic_replies,$topic_time,$level,$color) = $dbh->fetch_array($sth)) {

		if ($is_gallery) $post_icon = "image.gif";
		// Check for unread posts
		if (isset($_SESSION['topicread'][$topic_id])) {
			$checkread = $_SESSION['topicread'][$topic_id];
		} else {
			$checkread = $_SESSION['forumvisit']['visit'][$forum_id];
		} // end if

		$topics[$i]['gonew'] = 0;
		if ($post_time > $checkread) {
			$topics[$i]['gonew'] = 1;
		}
		// Prepare the body preview (tooltip) and also clean up the inline one on the page
		//
		// Gotta clean out the [ and ], as they are keys to the .js parser. Also need to fix graemlin links
		$topics[$i]['tooltip'] = "";
		if ($config['TOOLTIP_LENGTH'] && $config['TOOLTIP_LENGTH'] > 0) {
			$tooltip = str_replace("]", "&rbr;", str_replace("[", "&lbr;", $post_body));
			$tooltip = str_replace("<<GRAEMLIN_URL>>", "{$config['BASE_URL']}/images/{$style_array['graemlins']}", $tooltip);
			$tooltip = htmlspecialchars($html->truncate($tooltip, $config['TOOLTIP_LENGTH']));
			$topics[$i]['tool_tip'] = "title=\"header=[{$ubbt_lang['TOOLTIP_HEADER']}] body=[{$tooltip}]\"";
		}
		// Now clean up the body itself
		$post_body = preg_replace('/<div class="ubbcode-block"><div class="ubbcode-header">(.*?)<\/div><div class="ubbcode-body"><div style="display: none;">(.*?)<\/div><\/div><\/div>/si', "{$ubbt_lang['SPOILER_CONTENT']}", $post_body);
		$post_body = preg_replace("/\<br\s*\/?\>/i", " ", $post_body);
		$topics[$i]['post_body'] = substr(strip_tags($post_body),0,250);

		$topics[$i]['forum_id'] = $forum_id;
		$topics[$i]['forum_title'] = $forum_title;
		$topics[$i]['post_subject'] = $post_subject;
		$topics[$i]['post_icon'] = $post_icon;
		$topics[$i]['post_time'] = $html->convert_time($post_time,$user['USER_TIME_OFFSET'],$user['USER_TIME_FORMAT']);
		$topics[$i]['poster_name'] = $html->user_color($poster_name,$color,$level);

		$topics[$i]['post_id'] = $post_id;
		$topics[$i]['topic_id'] = $topic_id;
		$topics[$i]['start_time'] = $html->convert_time($topic_time,$user['USER_TIME_OFFSET'],$user['USER_TIME_FORMAT']);
		$topics[$i]['color'] = ($i&1) ? "alt-topicsubject" : "topicsubject";
		$topics[$i]['row'] = $i;
		$i++;
	} // end while

	$pages = ceil($total_topics / $PostsPer);
	$pages = $html->paginate($page,$pages,"activetopics&range=$range&type={$type}&page=");

	if (!$user['USER_TOPIC_VIEW_TYPE']) {
		$mode = $config['TOPIC_DISPLAY_STYLE'];
	} else {
		$mode = $user['USER_TOPIC_VIEW_TYPE'];
	}

	$link_1 = "<a href='" . make_ubb_url("ubb=activetopics&range=1&type={$type}", "", false) . "'>{$ubbt_lang['ACTIVE_24']}</a>";
	$link_2 = "<a href='" . make_ubb_url("ubb=activetopics&range=2&type={$type}", "", false) . "'>{$ubbt_lang['ACTIVE_48']}</a>";
	$link_7 = "<a href='" . make_ubb_url("ubb=activetopics&range=7&type={$type}", "", false) . "'>{$ubbt_lang['ACTIVE_7']}</a>";

	if ($range == 1) {
		$link_1 = $ubbt_lang['ACTIVE_24'];
	} elseif ($range == 2) {
		$link_2 = $ubbt_lang['ACTIVE_48'];
	} elseif ($range == 7) {
		$link_7 = $ubbt_lang['ACTIVE_7'];
	}

	if ($type == "t") {
		$t_link = "{$ubbt_lang['ACTIVE_TOPICS']}";
		$p_link = "<a href='" . make_ubb_url("ubb=activetopics&range={$range}&type=p", "", false) . "'>{$ubbt_lang['ACTIVE_POSTS']}</a>";
		$u_link = "<a href='" . make_ubb_url("ubb=activetopics&range={$range}&type=u", "", false) . "'>{$ubbt_lang['ACTIVE_NO_ANSWERS']}</a>";
	} else if ($type == "u") {
		$u_link = "{$ubbt_lang['ACTIVE_NO_ANSWERS']}";
		$p_link = "<a href='" . make_ubb_url("ubb=activetopics&range={$range}&type=p", "", false) . "'>{$ubbt_lang['ACTIVE_POSTS']}</a>";
		$t_link = "<a href='" . make_ubb_url("ubb=activetopics&range={$range}&type=t", "", false) . "'>{$ubbt_lang['ACTIVE_TOPICS']}</a>";
	} else {
		$p_link = "{$ubbt_lang['ACTIVE_POSTS']}";
		$t_link = "<a href='" . make_ubb_url("ubb=activetopics&range={$range}&type=t", "", false) . "'>{$ubbt_lang['ACTIVE_TOPICS']}</a>";
		$u_link = "<a href='" . make_ubb_url("ubb=activetopics&range={$range}&type=u", "", false) . "'>{$ubbt_lang['ACTIVE_NO_ANSWERS']}</a>";
	}

	$smarty_data = array(
		"topics" => & $topics,
		"display" => $mode,
		"pages" => $pages,
		"link_1" => $link_1,
		"link_2" => $link_2,
		"link_7" => $link_7,
		"t_link" => $t_link,
		"p_link" => $p_link,
		"u_link" => $u_link
	);

	$cfrm = make_ubb_url("ubb=cfrm", "", false);
	return array(
		"header" => array (
			"title" => "{$ubbt_lang['ACTIVE_TOPICS']} : $header",
			"refresh" => 0,
			"user" => $user,
			"Board" => "",
			"javascript" => array('boxover.js'),
			"bypass" => 0,
			"onload" => "",
			"breadcrumb" => "<a href=\"{$cfrm}\">{$ubbt_lang['FORUM_TEXT']}</a> &raquo; {$ubbt_lang['ACTIVE_TOPICS']} $header",
		),
		"template" => "activetopics",
		"data" => & $smarty_data,
		"footer" => true,
		"location" => "",
	);
}

?>






Remember, these are the only How To Instructions that I have right now:



Quote:

Most forums these days have this feature, I doubt you have to go back as far as wwwthreads or ubb.threads.

If you already have a search in place, all you have to do is modify the query's WHERE clause by adding `user_id` = x

Php Code:
PHP Code:
$query .= ' AND `user_id` = ' . $user->id   


Where `user_id` is the user table's primary key, and $user->id is the current logged in user ID.

_________________________
Jeremiah 51:14 The LORD of hosts has sworn by Himself: Surely I will fill you with men, as with locusts, And they shall lift up a shout against you.

Top
#5918 - 03/09/10 09:05 AM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: lightningrod]
lightningrod Offline

Rising in the Light

Registered: 10/15/09
Posts: 1382
Right now, this self search script does not exist

I can copy the Active Topics script and change it's name to Self Search and then modify it

If it did exist, I would have to Add the link on top here, where it says:

Portal Page - Forum List - My Stuff - User List - Calendar - Active Topics - Search - FAQ


To do that, I would have to add the link here:

Can any of you guys figure out how to add that here?


Code:
{* Script Version 7.5.5 *}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang.XML_LANG}" lang="{$lang.XML_LANG}" dir="{$lang.READ_DIRECTION}">
<head>
	<title>{if $inputTitle}{$inputTitle|strip_tags} - {/if}{if $powered}{$powered} UBB.threads&trade;{else}{$config.COMMUNITY_TITLE}{/if}</title>
	<meta name="generator" content="UBB.threads {$version}" />
	{$headerinsert}
	{$refresh}
	<meta http-equiv="Content-Type" content="text/html; charset={$lang.CHARSET}" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link rel="stylesheet" href="{$config.BASE_URL}/styles/common.css?v={$version}" type="text/css" />
	<link rel="stylesheet" href="{$stylesheet}?v={$version}" type="text/css" />
	<link rel="shortcut icon" href="{$config.BASE_URL}/images/{$style_array.general}/favicon.ico" />
	{$rss_feed}
	<script type="text/javascript">
		// <![CDATA[
		var baseurl		= "{$config.BASE_URL}";
		var fullurl		= "{$config.FULL_URL}";
		var script		= "{ubb url="" full="true"}";
		var imagedir		= "{$style_array.general}";
		var myUid		= '{$myid}';
		var submitClicked 	= "{$lang.SUBMIT_CLICKED}";
		var open_block		= new Image();
		open_block.src		= baseurl + "/images/{$style_array.general}/toggle_open.gif";
		var closed_block	= new Image();
		closed_block.src	= baseurl + "/images/{$style_array.general}/toggle_closed.gif";
		var loadingpreview	= "{$lang.LOADING_PREVIEW}";
		var today		= '{$today}';
		var s_priv		= '{$s_priv}';
		// ]]>
	</script>
{foreach from=$javascript item=script}
	<script type="text/javascript" src="{$config.BASE_URL}/ubb_js/{$script}?v={$version}"></script>
{/foreach}

{if $config.MAX_WIDTH_IMAGE}
<style type="text/css">
.post_inner img {literal}{{/literal}
	max-width: {$config.MAX_WIDTH_IMAGE}px;
{literal}}{/literal}
</style>
{/if}

</head>
<body{if $onload} onload="{$onload}"{/if} onclick="{literal}if(event.which!=3){clearMenus(event)}{/literal}"{if $onunload} {$onunload}{/if}>
<a id="top"></a>

{if $admin_closed_message}
{$tbopen}
<tr><td bgcolor="red" align="center">
<span style="font-size: 12pt; font-weight: bold;">
FORUM IS CURRENTLY CLOSED!
</span>
</td></tr>
<tr>
<td class="alt-1">
{$closed_message}
</td>
</tr>
{$tbclose}
{/if}

<div id="content">
{$headerfile}

<div id="active_popup" style="display: none;">
	<table class="popup_menu">
		<tr>
			<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=t"}">{$lang.ACTIVE_TOPICS}</a></td>
		</tr>
		<tr>
			<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=p"}">{$lang.ACTIVE_POSTS}</a></td>
		</tr>
		<tr>
			<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=u"}">{$lang.ACTIVE_NO_ANSWERS}</a></td>
		</tr>
	</table>
</div>
<script type="text/javascript">
	registerPopup("active_popup");
</script>

{if $search_link}
<div id="search_popup" style="display: none">
	<form method="post" action="{ubb url=""}">
		<input type="hidden" name="ubb" value="dosearch" />
		<input type="hidden" name="daterange" value="0" />
		<input type="hidden" name="where" value="bodysub" />
		<input type="hidden" name="fromsearch" value="1" />
		<input type="hidden" name="checkwords" value="1" />

		<table class="popup_menu">
			<tr>
				<td nowrap='nowrap' class="popup_menu_header">{$lang.SEARCH_HEADER}</td>
			</tr>
			<tr>
				<td class="popup_menu_content noclose">
					<label>
						<input type="text" name="Words" class="form-input" />
						<input type="submit" name="textsearch" value="{$lang.GO_BUTTON}" class="form-button" />
					</label>
				</td>
			</tr>
			<tr>
				<td class="popup_menu_content"><a href="{ubb url="ubb=search"}">{$lang.ADVANCED_BUTTON}</a></td>
			</tr>
		</table>
	</form>
</div>
<script type="text/javascript">
	registerPopup("search_popup");
</script>
{/if}

{if $myspace_link == 1}
<div id="myspace_popup" style="display: none;">
<table class="popup_menu">
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=viewmessages"}">{$lang.MY_PRIVATES}</a></td></tr>
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=editbasic"}">{$lang.EDIT_PROF}</a></td></tr>
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=editdisplay"}">{$lang.EDIT_DISPLAY}</a></td></tr>
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=myhome&n=1"}">{$lang.VIEW_WATCH}</a></td></tr>
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=showprofile&User=`$myid`"}">{$lang.VIEW_PROF}</a></td></tr>
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=userposts&id=`$myid`"}">{$lang.MY_POSTS}</a></td></tr>
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=mybuddies"}">{$lang.MY_BUDDIES}</a></td></tr>
{if $config.MY_FEEDS}
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=myfeeds&show=1"}">{$lang.MY_FEEDS}</a></td></tr>
{/if}
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=subscriptions"}">{$lang.MY_SUBS}</a></td></tr>
<tr><td class="popup_menu_content"><a href="{ubb url="ubb=mycookies"}">{$lang.MYCOOKIES}</a></td></tr>
</table></div>
<script type="text/javascript">registerPopup("myspace_popup");</script>
{/if}

<table align="center" width="{$config.TABLE_WIDTH}" cellpadding="0" cellspacing="0">
<tr>
<td>
{$tbopen}
<tr>
<td class="breadcrumbs">
<span style="float:right">{$welcome}
{if $mood && $config.ENABLE_MOODS}
<span title="{$lang.CHANGE_MOOD}" style="cursor: pointer" onclick="showChromeless('{ubb url="ubb=changemood"}','mood',400,300);">
<img name="mood" src="{$config.BASE_URL}/images/{$style_array.mood}/{$mood}" style="vertical-align:middle" alt="{$lang.CHANGE_MOOD}" /> &darr;
</span>
{/if}
</span>
<span style="float:left">
{if $config.ENABLE_MAIN_PORTAL}
<a href="{ubb url=""}">{$config.COMMUNITY_TITLE}</a>
{else}
<a href="{$config.HOMEPAGE_URL}">{$config.HOMEPAGE_TITLE}</a>
{/if}
{if $breadcrumb}
 &raquo; {$breadcrumb}
{/if}
</span>
</td>
</tr>
<tr>
<td class="navigation">
{if $new_user_link}
<a href="{ubb url="ubb=newuser"}">{$lang.NEW_USER}</a> &nbsp;&nbsp;
{/if}
{if $cp_link}
<a href="{$config.BASE_URL}/admin/index.php">{$lang.ADMIN_MENU}</a> &nbsp;&nbsp;
{/if}
{if $config.ENABLE_MAIN_PORTAL}
<a href="{ubb url=""}">{$lang.PORTAL}</a> &nbsp; &nbsp;
{/if}
<a href="{ubb url="ubb=cfrm"}">{$lang.FORUM_LIST}</a> &nbsp;&nbsp;
{if $myspace_link == 1}
<span style="cursor: pointer;" id="myspace_control" onclick="showHideMenu('myspace_control','myspace_popup')">
<a href="javascript:void(0);">{$lang.MY_SPACE}</a>
<img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</span>
{elseif $myspace_link == 2}
<a href="{ubb url="ubb=viewmessages"}">{$lang.MY_SPACE}</a>
{/if}
{$new_flasher} &nbsp;&nbsp;&nbsp;
{if $user_list}
<a href="{ubb url="ubb=showmembers"}">{$lang.USER_LIST}</a> &nbsp;&nbsp;&nbsp;
{/if}
{if $config.CALENDAR}
<a href="{ubb url="ubb=calendar"}">{$lang.CALENDAR}</a> &nbsp;&nbsp;&nbsp;
{/if}
<span style="cursor: pointer;" id="active_control" onclick="showHideMenu('active_control','active_popup')">
<a href="javascript:void(0);">{$lang.ACTIVE_TOPICS}</a>
<img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</span> &nbsp;&nbsp;&nbsp;
{if $search_link}
<span style="cursor: pointer;" id="search_control" onclick="showHideMenu('search_control','search_popup')">
<a href="javascript:void(0);">{$lang.TEXT_SEARCH}</a>
<img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</span> &nbsp;&nbsp;&nbsp;
{/if}
<a href="{ubb url="ubb=faq"}">{$lang.FAQ_TEXT}</a>
</td>
</tr>
{$tbclose}

</td>
</tr>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0" style="margin-top: -5px">



?

_________________________
Jeremiah 51:14 The LORD of hosts has sworn by Himself: Surely I will fill you with men, as with locusts, And they shall lift up a shout against you.

Top
#5919 - 03/09/10 09:15 AM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: lightningrod]
lightningrod Offline

Rising in the Light

Registered: 10/15/09
Posts: 1382
I just sent a message to SlackerSlayer to this thread

He knows some code


Maybe he can figure some of this stuff out


Eventually I will move this thread to the Members Only section here
_________________________
Jeremiah 51:14 The LORD of hosts has sworn by Himself: Surely I will fill you with men, as with locusts, And they shall lift up a shout against you.

Top
#5920 - 03/09/10 12:34 PM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: lightningrod]
Zampan0 Offline
Waiting

Registered: 10/15/09
Posts: 536
Loc: Arizona
If one of us figures this out, so all that needs to be done is click a button to see one's posts, do we win anything? If so, what will the winner receive.

Please Respond,

z.
_________________________
________

Top
#5922 - 03/09/10 01:03 PM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: lightningrod]
Ruben Offline
Rising in the Light

Registered: 10/16/09
Posts: 50
Loc: Florida
I still don't quite understand what is so special about the self search.
But there is something in place already when viewing a users profile. Or for that matter use the advanced search and enter your name.
For instance Lightningrod is user #3
url would be
http://www.demongov.com/ubbthreads/ubbthreads.php/ubb/userposts/id/3

Or click the link below.
Show his posts click here

And you can also use Mystuff>>Posts to display your posts.


Edited by Ruben (03/09/10 01:07 PM)

Top
#5923 - 03/09/10 02:06 PM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: Ruben]
Ruben Offline
Rising in the Light

Registered: 10/16/09
Posts: 50
Loc: Florida
As far as adding another menu item in the header.
http://www.ubbcentral.com/forums/ubbthreads.php/ubb/showflat/Number/227001
Is a good start to look at.

Top
#5924 - 03/09/10 02:39 PM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: Zampan0]
lightningrod Offline

Rising in the Light

Registered: 10/15/09
Posts: 1382
Originally Posted By: Zampan0
If one of us figures this out, so all that needs to be done is click a button to see one's posts, do we win anything? If so, what will the winner receive.

Please Respond,

z.



Don't kill yourself. Forget this shit. No one can figure this shit out
_________________________
Jeremiah 51:14 The LORD of hosts has sworn by Himself: Surely I will fill you with men, as with locusts, And they shall lift up a shout against you.

Top
#5925 - 03/09/10 02:41 PM Re: Any of you guys know PHP to create a Self Search Feature here? [Re: Ruben]
lightningrod Offline

Rising in the Light

Registered: 10/15/09
Posts: 1382
Originally Posted By: Ruben
I still don't quite understand what is so special about the self search.
But there is something in place already when viewing a users profile. Or for that matter use the advanced search and enter your name.
For instance Lightningrod is user #3
url would be
http://www.demongov.com/ubbthreads/ubbthreads.php/ubb/userposts/id/3

Or click the link below.
Show his posts click here

And you can also use Mystuff>>Posts to display your posts.



Because with just one click, you can see all the unique Replies to your posts and Replies

You don't have to scan the entire Forum


Originally Posted By: Ruben
As far as adding another menu item in the header.
http://www.ubbcentral.com/forums/ubbthreads.php/ubb/showflat/Number/227001
Is a good start to look at.



Thanks bro, but I can't figure that shit out

_________________________
Jeremiah 51:14 The LORD of hosts has sworn by Himself: Surely I will fill you with men, as with locusts, And they shall lift up a shout against you.

Top
Page 1 of 4 1 2 3 4 >










Notice: This site contains copyrighted material, the use of which has not always been specifically authorized by the copyright owner. We make such material available in an effort to advance awareness and understanding of issues relating to civil rights, economics, individual rights, international affairs, liberty, science & technology, etc. We believe this constitutes 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information please visit: http://www.law.cornell.edu/uscode/17/107.shtml.