Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 96 total)
  • @realfam

    Member

    that makes sense, I am just a little turned around in the code. I actually had Andy reply to this question once before and we could not get this to work, so the one who figures it out will be … “The Man” lol.

    @realfam

    Member

    official 1.0 release date yet?

    @realfam

    Member

    is this ready yet by chance?

    @realfam

    Member

    me too, anyone know about this?

    @realfam

    Member

    anyone know how to do this?

    @realfam

    Member

    i figured this out, I had to split the code up into seperate html and php files and make 2 templates. it works fine now. thanks

    @realfam

    Member

    I followed the Codex and created the template, it looks correct, but when I click “submit” to execute the script…I just get the index page. Any ideas on that? Here is my page code.

    <?php

    /*

    Template Name: Browse ExBriefs

    */

    ?>

    <?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <h2>Search</h2>

    <form name=”search” method=”post” action=”<?=$PHP_SELF?>”>

    Seach for: <input type=”text” name=”find” /> in

    <Select NAME=”field”>

    <Option VALUE=”first”>First Name</option>

    <Option VALUE=”last”>Last Name</option>

    <Option VALUE=”city”>City</option>

    <Option VALUE=”state”>State</option>

    <Option VALUE=”country”>Country</option>

    <Option VALUE=”gender”>Gender</option>

    </Select>

    <input type=”hidden” name=”searching” value=”yes” />

    <input type=”submit” name=”search” value=”Search” />

    </form>

    <?PHP

    //This is only displayed if they have submitted the form

    if ($_POST[searching] ==”yes”)

    {

    echo “<h2>Results</h2><p>”;

    //If they did not enter a search term we give them an error

    if ($_POST[find] == “”)

    {

    echo “<p>You forgot to enter a search term”;

    exit;

    }

    // Otherwise we connect to our Database

    include(“http://www.ex-brief.com/profiles/dbinfo.inc.php&#8221;);

    mysql_connect(localhost,$username,$password);

    @mysql_select_db($database) or die( “Unable to select database”);

    // We preform a bit of filtering

    $find = strtoupper($_POST[find]);

    $find = strip_tags($find);

    $find = trim ($find);

    //Now we search for our search term, in the field the user specified

    $data=mysql_query(“select * from contacts where “.$_POST[field].” like ‘%”.addslashes($find).”%'”);

    //And we display the results

    while($result = mysql_fetch_array( $data ))

    {

    echo $result;

    echo ” “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo “
    “;

    }

    //This counts the number or results – and if there wasn’t any it gives them a little message explaining that

    $anymatches=mysql_num_rows($data);

    if ($anymatches == 0)

    {

    echo “Sorry, there is no Ex-Brief for <b>”$find”</b> yet

    Please try again.

    “;

    }

    }

    ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    @realfam

    Member

    nevermind, i am really tired i guess, brain freeze, Doh! I figured it out. thanks

    @realfam

    Member

    anyone???

    @realfam

    Member

    ok. This script works perfectly, when you log in it takes you to a navigation area. There are links to various pages, including a link to your profile. The link to your profile simply says your username. Example. If you log in as help, there is a link in the navigation that says “help”. clicking on it takes you to your personal profile. That works well, there are 0 issues with the function. All I want to have happen is for the text that reads “help” if you log in as help to read “Profile”. thats the only change, I need no change at all to the actual function, just to the name of the link that appears, I want that to still have the same function, but just say “Profile” rather than the username.

    @realfam

    Member

    to see what I mean you can go to http://www.ex-brief.com and login with this info:

    User ID: help

    Pass: help

    Thsi is a fake test account so you can get an idea of what I am trying to do here.

    P.S. on some pages the widgets are bulleted, but not on all of them…Whats up with that?

    @realfam

    Member

    i had this working the way it was supposed to, that was not the issue. the only thing I wanted to make happen was instead of displaying the username of the person who is logged in, I just wanted the text to read “Profile”, but still take you to your personal profile page.

    @realfam

    Member

    sorry, that just gets a 404.

    @realfam

    Member

    I put that in and when you click the link it takes you to the homepage. I need it to take you to the User profile page. I think maybe I gave you the wrong info.

    @realfam

    Member

    i did and I didnt see anything. If it doesnt exist someone should make this plugin, I would but I am not a skilled coder.

    @realfam

    Member

    I will do that. thanks. I am sure it can be done with simple css or html but I can not seem to get it to work and I have tried everything I can think of. thanks

    @realfam

    Member

    I did that, before you posted the solution, and it seems there was an issue with the wildcard DNS. Thanks for the help though.

    @realfam

    Member

    the topic was not the best, but thats what I though about this. Anyone seen this before or have ideas?

    Try to access the subdomain (blog) directly you get this:

    Great Success !

    Apache is working on your cPanel® and WHM™ Server

    If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content.

    ATTENTION!

    If you are seeing this page instead of the site you expected, please contact the administrator of the site involved. (Try sending an email to <webmaster@domain>.) Although this site is running cPanel, WebHost Manager, and Apache software it almost certainly has no other connection to cPanel Inc. or the Apache Group. Please do not send mail about this site or its contents to cPanel Inc. or the Apache Group.

    About cPanel:

    cPanel is a leading provider of software for the webhosting industry. If you would like to learn more about cPanel please visit our website at http://www.cpanel.net. Please be advised that cPanel Inc. is not a web hosting company, and as such has no control over content found elsewhere on this site.

    About Apache HTTP Server:

    The Apache HTTP Server is an open source web server which powers many of the worlds web sites. The Apache HTTP server is part of the Apache Group’s many influential projects. Their efforts have helped shape much the world wide web, and they continue to be a dominating force in the web hosting industry.

    @realfam

    Member

    http://www.ex-brief.com

    under construction

    @realfam

    Member

    that worked, once again you are the man. thanks.

    I think the thread you closed ended up being related to WP, not specifically BP, but the people on here are more responsive thann the wordpress.org board. It looks like my background is making that line….not sure how to tweak the .css to make it work right.

    @realfam

    Member

    this sucks still not working, been a few days

    @realfam

    Member

    something similar. I dont want to run around and have to manually put this on all other pages, and all user pages…that could be really fun with a thousand or so members. Anyway, there has to be a simple way to add or remove something just on the main page and thats it to stop it from loading. Any ideas to simplify this?

    @realfam

    Member

    yes I added all of my email addresses but its not loading up yet.

    @realfam

    Member

    i uploaded my gravatar on there and did all the steps. still not showing up here, maybe it takes some time. thanks

    @realfam

    Member

    ok, thanks. much appreciated.

Viewing 25 replies - 51 through 75 (of 96 total)
Skip to toolbar