We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Search Bar | Forum

Ryax
Ryax May 13 '13
Hello folks,
I m really new to oxwall social solutions.I made my site but wondering why a social site doesn't gave a search for users.
I tried to make one by using this sql string :
--------------------------------------------------------------------
SELECT *FROM `ow_base_question_data`WHERE `questionName` LIKE 'realname'AND `textValue` LIKE '%'
--------------------------------------------------------------------

The above string actually searches for real name value of a user form db and gives out results
//----------------------------------------------
Code used :
<form action="search.php" method="post">
<input type="text" name="searchfor" />
<input type="submit" />
</form>

//------------------------------
PHP used :----------------------
<?php
// Credentials
$dbhost = "host";
$dbname = "dbname";
$dbuser = "dbuser";
$dbpass = "pass";

//    Connection
global $tutorial_db;

$tutorial_db = new mysqli();
$tutorial_db->connect($dbhost, $dbuser, $dbpass, $dbname);
$tutorial_db->set_charset("utf8");

//    Check Connection
if ($tutorial_db->connect_errno) {
    printf("Connect failed: %s\n", $tutorial_db->connect_error);
    exit();
}

extract $_POST;
$query = 'SELECT *FROM `ow_base_question_data`WHERE `questionName` LIKE 'realname'AND `textValue` LIKE '%'"';
$results = mysql_query($query);
while($row=mysql_fetch_assoc($result)) {
print($row['companyname']);
print("<br />");
}

?>

//--------------------------------
But i returned a failure........Can someone guide me to make a plugin for this code??

Please help me out!!
Daisy Team
Daisy May 15 '13
Ryax, I am a bit puzzled. The search functionality is already implemented in the software. You can find it at this page: http://demo.oxwall.org/users/search


Please provide me with more details on how exactly it should work.
TeamX
TeamX Jun 7 '13
I think you have to Create a New Search Bar like facebook, so that users can search  new users with out going to any other links as u have shown above.


I have implemented it on my website Gang Giz


Gang Giz - India's #1 Social Network

Daisy Team
Daisy Jun 12 '13
Stanly, the global search is a very essential feature and we will sooner or later add this feature. You may want to submit it as a new feature suggestion, so we can set its priority higher in the dev plan if the demand exists (i.e. others also vote for it).
Or search for the existing plugin in the Store.
TeamX
TeamX Jul 1 '13
@ daisy: Ok, try to develop a More advanced Advertisement solution for oxwall powered websites...... thinks  you people will do it in coming builds... and why the date of Ox. 1.6 extended , that worried me the most