Search

bbPress Showcase » bbPress Chat

  1. vikram_gripsack
    vikram_gripsack

    member
    Joined: Jun '09
    Posts: 10

    offline

    I understand the concern in sharing the number, I am fine and just curious and interested to talk with you for few minutes.

    I am attaching 3 images, please do have a look at your time.

    1) I have tested the search option as you have said, its working.
    2) the problem is I am desired to have something like search option to be dispalyed in the front page as like bbshowcase , so attaching image, pls check it.
    3) I liked so much the way , you enabled the search tab displaying in every post at the right side corner, intrested to have such option in my bbpress forum also, please check the attached image.

    4) I search results are displaying very clearly within the specified box , with no overlaps of the text, please suggest me where should i modify the code.(also attahced image of bbshowcase for reference)

    Please give your valuable suggestions.

    Thanks,
    -Vikram

    Attachments

    1. bbshowcase_search_results.png (28.6 KB, 2 downloads) 2 years old
    2. bbshowcase_topic_post_search.png (31.9 KB, 2 downloads) 2 years old
    3. bbshowcase_front_page_search.png (27.3 KB, 1 downloads) 2 years old
    4. search.png (35.7 KB, 5 downloads) 2 years old
    Dream Dream to Think , Think Think to Act.
    Posted 2 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 882

    offline

    You have needs beyond what I can help with if you do not know how to put a simple link in your templates to the search page.

    <?php echo '<a class="searchlink" href="'.bb_get_option('uri').'search.php">Search</a>'; ?>
    Posted 2 years ago #
  3. pastorbobsforum
    pastorbobsforum

    member
    Joined: Aug '10
    Posts: 12

    offline

    Hello.

    I am also using this plugin and the name speaks for itself, "super".

    I have one issue though. When I am performing a successful search, I receive a message, saying for instance 1 results found, showing 1 - 1

    Now, this message is not formatted in a way that would fit my theme.

    So, I managed to identify the style of this div,

    .indent {margin: 0 10px;}

    which I will have to change to .indent {margin: -3px 5px 12px 10px ;},
    but I don't know where can I find the stylesheet.

    Any suggestions are welcome.

    Regards,
    Bob

    Posted 1 year ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 882

    offline

    Indent is just a class I use on my own site as a wrapper.

    While I may use it on my plugins it won't have an effect elsewhere.

    It will affect more than the count summary, probably the entire output.

    You can put it into your regular stylesheet for your theme.

    Posted 1 year ago #
  5. pastorbobsforum
    pastorbobsforum

    member
    Joined: Aug '10
    Posts: 12

    offline

    _ck_ - 7 minutes ago  » 
    It will affect more than the count summary, probably the entire output.
    You can put it into your regular stylesheet for your theme.

    Well, if that is so, then I'll simply add the entire style of your plugin to my stylesheet, just in case.

    But what's weird is that this message No results found. displays properly, even though is using the same class, yet slightly modified:

    .indent {
    margin-bottom:0;
    margin-left:10px;
    margin-right:10px;
    margin-top:0;
    }

    Edit: it is definitely not a good idea to add the entire stylesheet of the plugin to my own sylesheet.

    This is what I've added, .indent {margin: -3px 5px 12px 10px ;}, with no result.

    Suggestions?

    Posted 1 year ago #
  6. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 882

    offline

    Since I am unlikely to ever update the plugin anymore, I would suggest just editing the plugin directly, simply wrapping whatever you want to affect in a <span></span> and adding a class in your stylesheet.

    Note that spans cannot change vertical spacing but I don't know what you are trying to achieve.

    Posted 1 year ago #
  7. pastorbobsforum
    pastorbobsforum

    member
    Joined: Aug '10
    Posts: 12

    offline

    I don't know what you are trying to achieve.

    I am trying to avoid the vertical overlapping that you have so accurately identified.

    This is the section of the plugin that I wanted to modify:

    <div class="indent"><font color="green"><?php echo $total." ";  _e('results found') ?>
    
    , showing <?php echo 1+($page-1)*$limit." - "; echo ($page*$limit>$total) ? $total : $page*$limit; ?></font></div>

    How would I apply the span there?

    Even though I didn't manage to change the search output as I wanted to, by inserting this .indent {margin: -10px 10px 10px 10px;} into my stylesheet, I worked around it by modifying the margin-top of my #latest. Now it behaves reasonably well. It's not exactly what I wanted, since I had my reasons for having that margin-top set up as it was, but it will have to do.

    One question if you don't mind. While some plugins come with their own .css file(s), some of yours do not. Is there a reason for that?

    Thank you for the support and keep up the good work.

    Regards,
    Bob

    Posted 1 year ago #
  8. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 882

    offline

    I don't use external css because every external file slows down a page. If you have a dozen plugins each with their own css, you have a dozen external files that give a browser quite a workout.

    .indent {margin: -10px 10px 10px 10px;}

    CSS margins are done via TOP RIGHT BOTTOM LEFT

    So -10px will cause the top to move 10 pixels UP.

    If that's the overlap problem, get rid of the minus sign.

    Posted 1 year ago #
  9. pastorbobsforum
    pastorbobsforum

    member
    Joined: Aug '10
    Posts: 12

    offline

    That was exactly how I wanted the margins to behave. You see, the - was placed there intentionally. I wanted the count summary 10px up, thus the -10px, and 10px underneath it, 10px. The aforementioned vertical overlapping...I blame it on my way of expressing myself.

    In what concerns the plugin editing, this is what I've done:

    <span class="indent"><font color="green">
    <?php echo $total." ";  _e('results found') ?>
    , showing <?php echo 1+($page-1)*$limit." - ";
    echo ($page*$limit>$total) ? $total : $page*$limit; ?>
    </font></span>

    With this class added to my stylesheet:
    .indent {margin: -10px 10px 10px 10px;}

    No change. But it's OK anyway. Thank you.

    Regards,
    Bob

    Posted 1 year ago #
  10. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 882

    offline

    SPANs cannot adjust vertical spacing, only horizontal.

    You can make it a DIV but then of course it will break the line.

    You can try this in your stylesheet though, might work:

    span.indent {display:inline-block;}

    Posted 1 year ago #

RSS feed for this topic

Post a reply to “bbpress search , super search”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
37 users online from in the past 30 minutes. 14 bots 23 guests
2,846 views today 6,910 yesterday 14,010 peak. Most at once 47 today 48 yesterday 131 peak. Visited today: codye, _ck_
2,231 posts in 377 topics over 62 months by 424 of 1,966 members. Latest: brmidot, somomoni, codye