Remove Language Select from homepage **SOLVED**

Webscribble WebJobs Script Forum. Anything Related To The WebJobs Script.

Remove Language Select from homepage **SOLVED**

Postby maverickblair on Tue Jan 06, 2009 10:23 am

How do I remove the Language select from the homepage. Webscribble documentation says:

To fix this problem, you must insert a blank form in the page "/templates/page_top.html". It is suggested that you insert this form in the same table cell as the Language drop-down was located. The form code may look like this:

<form name="fake" id="fake"></form>


But the page_top.html doesn't have a table, it utilizes div. So I changed it to tables. Here is my code:

Code: Select all

<!--Start top and Logo-->

<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>
   
    <td id="header_logo" width="50%" align="left" valign="top">
   
       <a href="index.php"><img src="images/logo.png" /></a>

       <div><?php echo $output['form_html']; ?></div>
       
   </td>
   
    <td id="header" width="50%" align="right" valign="top" style="padding: 5px 10px 0px 0px;">
       
        <a href="index.php">Home</a>&nbsp;&nbsp;<img src="images/line_dot.gif" hspace="10" align="absmiddle" alt="" border="0"/>
       
        <?php echo $output['login_link']; ?>&nbsp;&nbsp;<img src="images/line_dot.gif" hspace="10" align="absmiddle" alt="" border="0" />
       
        <a href="?page=contact_us"><?php echo $text['contact_us']; ?></a>
       
    </td>
  </tr>
</table>

<!--End top and Logo-->



Please help.

- maverick
Last edited by maverickblair on Fri Jan 09, 2009 10:16 am, edited 1 time in total.
maverickblair
 
Posts: 3
Joined: Tue Jan 06, 2009 10:15 am

Re: Remove Language Select from homepage

Postby paul on Thu Jan 08, 2009 10:01 pm

Send me ftp in a PM and I will have a look

Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

SOLVED: Remove Language Select from homepage

Postby maverickblair on Fri Jan 09, 2009 10:15 am

Sometimes the solutions to these problems are the simplest.


SOLUTION:
webjobs places the language select drop inside div tags. I simply created a CSS class and applied it to the div.

CAREER_STYLE.css
Code: Select all
div.hide   { display: none; }


PAGE_TOP.html
Code: Select all
<div class="hide">
          <?php echo $output['form_html']; ?>
</div>


Why does something this simple work???
Because the language select is actually a php generated form. If you apply the codes to your css and html and then view results in your browser. You can either use firebug (firefox) or right-click (IE) to view source code. From there you will see that the language form still generates and you don't throw off the rest of the country/city/state select droplist.

:D tada!
maverickblair
 
Posts: 3
Joined: Tue Jan 06, 2009 10:15 am


Return to Webscribble WebJobs Script Forum

Who is online

Users browsing this forum: No registered users and 50 guests

cron