Welcome to Geeklog, Anonymous Friday, October 04 2024 @ 11:11 pm EDT

Geeklog Forums

Quick Mod to the Professional Theme


Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
If you would like to move the search form in the GL 1.3.10 Default theme "professional", which by default is at the top left then you may find the following helpfull.

It's not a block that you can move currently but we can make it one.

You will find the HTML for the searchform in the leftblocks.thtml file. By removing that HTML and placing it into a block using the Block Editor, you can them make the search show anywhere you want it.

Step 1: Edit The file leftblocks.thml.
Contents after editing
Text Formatted Code

        <td class="block-featured-left" valign="top">
            <table width="100%" class="block-hightopborder-left"><tr><td valign="top">
                {geeklog_blocks}
                <img src="{site_url}/images/speck.gif" width="180" height="1" alt="">
        </td>
    </tr>
</table>
</td>
    <td class="block-outerborder-left"><img src="{site_url}/images/speck.gif" width="10" height="1" alt=""></td>

 

Step 2: Use the plugin Editor to create a block
  • Give it a suitable Block Title - like Site Search
  • Block Name needs to be one word - so searchblock is good.
  • Block Type: Normal
  • Paste the following code into the block contents form:
    Text Formatted Code

    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="searchform">
      <tr align="right">
        <td align="right">
            <form style="margin-bottom:0;" action="search.php" method="GET">
                <input type="text" name="query" size="30" maxlength="255" class="xpinputfield">
                 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="right"><input type="hidden" name="type" value="all">
                        <a href="/search.php" class="advancedsearch"></a>  
                            <input type="hidden" name="mode" value="search"></td>
                      <td width="40"><input type="submit" value="Search"></td>
                   </tr>
                </table>
            </form>
        </td>
      </tr>
    </table>

     


    Step 3: Adjust the position and side as required.




    Geeklog components by PortalParts -- www.portalparts.com
  •  Quote

    All times are EDT. The time is now 11:11 pm.

    • Normal Topic
    • Sticky Topic
    • Locked Topic
    • New Post
    • Sticky Topic W/ New Post
    • Locked Topic W/ New Post
    •  View Anonymous Posts
    •  Able to post
    •  Filtered HTML Allowed
    •  Censored Content