Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

can't find search tab!

i have a Version 2.0.18.8 and its embedded in a wordpress website
i;m using the VanillaAR tamplate
and i have no idea why i can't see the search tab!
this is the search code in the default.master.php

        <div class="Search"><?php
                $Form = Gdn::Factory('Form');
                $Form->InputPrefix = '';
                echo 
                    $Form->Open(array('action' => Url('/search'), 'method' => 'get')),
                    $Form->TextBox('Search'),
                    $Form->Button('Go', array('Name' => '')),
                    $Form->Close();
            ?></div>

please help me get the search back!

Comments

  • Options

    Upgrade to 2.0.18.11 first, there are some security updates.

    Most like your issue is to do with styling what do you mean tab? That is a search form, can you see that? is it in the source.

    grep is your friend.

  • Options

    yes :/ its in the source but i don't see the search form anywhere in my website :(
    energyui.com/discussions

  • Options

    What theme are you using for embedded? If it is EmbedFriendly the default.master is .tpl not .php

    it should contain <div class="SearchBox">{searchbox}</div> not that code

    If it in the html source, then it is a styling issue,

    Most styling issues can be solved by using firefox or chrome inspect or addons like firebug to find the markup in the DOM and test styling. Once you learn that most questions related css become resolvable.

    grep is your friend.

  • Options
    x00x00 MVP
    edited July 2014

    you can see quite clearly the search is there by using an inspect it is not being displayed becuase of display: none

    #Head form {
        background: none repeat scroll 0 0 #FFFFFF;
        border-radius: 2px;
        display: none; /*here*/
        float: right;
        margin: 15px 0 0;
        padding: 0;
        width: 250px;
    }
    

    grep is your friend.

  • Options
    x00x00 MVP
    edited July 2014

    You created this theme yourself? If so you should really be able to resolve issue like this on your own. This is professional job?

    Next time use an inspection tool like firebug. You can search the DOM for words like "search".

    grep is your friend.

  • Options

    i know i feel so stupid! i'm an architect not a programmer...and when i took this job i never imagined i'll start writing some code....the problem is i didn't deal with this site for almost a year and I've forgot everything ...also the new inspector is really bad! i can't get used to it .... tnx a lot for the tip with the "head form" i even forgot this is the search...now all is functional thanks to you guys! :D

  • Options
    businessdadbusinessdad Stealth contributor MVP

    @lizbovich said:
    i know i feel so stupid! i'm an architect not a programmer...and when i took this job i never imagined i'll start writing some code

    As a rule of thumb, keep in mind that every time you have to deal with a website, in any form or shape, there is a 90% chance that you will have to write some code. :)

  • Options

    hahah! yea sure but changing some css in wordpress isn't the same like modifying plugins and dealing with php :D

  • Options
    businessdadbusinessdad Stealth contributor MVP

    @lizbovich said:
    hahah! yea sure but changing some css in wordpress isn't the same like modifying plugins and dealing with php :D

    True, but you will still have to take that into account. The idea of touching a dynamic website without knowing any PHP (or the language behind it) is silly, it's next to impossible to stay away from such code.

  • Options
    peregrineperegrine MVP
    edited August 2014

    True, but you will still have to take that into account. The idea of touching a dynamic website without knowing any PHP (or the language behind it) is silly, it's next to impossible to stay away from such code.

    yes but its not rocket science or brain surgery. And php in general is about the simplest programming language in existence. Granted OOP concepts.etc are a steep learning curve. Simple php and theme design tweaks aren't really that difficult, if you have a couple of weeks to spend playing around on a local host, to get your feet wet.

    http://vanillaforums.org/discussion/20231/how-to-become-somewhat-adept-at-modifying-vanilla-to-meet-your-needs-for-free

    The way to learn is to create your own localhost and play around.

    troubleshoot...

    http://vanillaforums.org/discussion/comment/199091/#Comment_199091
    http://vanillaforums.org/discussion/comment/208333/#Comment_208333
    http://docs.vanillaforums.com/developers/troubleshooting/

    installation
    https://github.com/vanilla/vanilla/blob/master/README.md

    tips and tutorials...
    http://vanillaforums.org/discussion/comment/206536/#Comment_206536

    and setting correct permissions for reading and writing

    on /conf folder
    /uploads folder

    /cache/Smarty
    /cache/Smarty/compile

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    businessdadbusinessdad Stealth contributor MVP

    @peregrine said:
    yes but its not rocket science or brain surgery. And php in general is about the simplest programming language in existence.

    That was also my point (implictly). :)

Sign In or Register to comment.