Bug Reports & Suggestions Problems with the script? Want to recommend a new feature or improvement? Please post your feedback here.


Reply
 
LinkBack Thread Tools Display Modes
Old 07-27-2010, 01:17 PM   #1 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 3
speedfire is on a distinguished road
Default Replace with a link instead of entering URL

Hi guys,

Can your advise a newbie like me on how to modify the entering URL box with a permanent proxified web link.

PLs advise.
speedfire is offline
Country: Singapore
 
Reply With Quote
Old 08-05-2010, 09:42 PM   #2 (permalink)
Moderator
 
04blatca's Avatar
 
Join Date: May 2010
Location: United Kingdom
Posts: 214
04blatca is a splendid one to behold04blatca is a splendid one to behold04blatca is a splendid one to behold04blatca is a splendid one to behold04blatca is a splendid one to behold04blatca is a splendid one to behold04blatca is a splendid one to behold04blatca is a splendid one to behold
Send a message via MSN to 04blatca Send a message via Skype™ to 04blatca
Default

You can remove the URL box on the homepage by removing this code from your main.php in the theme folder:

Code:
<form action="includes/process.php?action=update" method="post" onsubmit="return updateLocation(this);" class="form">
            <input type="text" name="u" id="input" size="40" class="textbox">
            <input type="submit" value="Go" class="button">
            &nbsp;
            [<a style="cursor:pointer;" onclick="document.getElementById('options').style.display = (document.getElementById('options').style.display=='none'?'':'none')">options</a>]
            <ul id="options">
<?php foreach ( $toShow as $option ) echo <<<HTML
               <li>
                  <input type="checkbox" name="{$option['name']}" id="{$option['name']}"{$option['checked']}>
                  <label for="{$option['name']}" class="tooltip" onmouseover="tooltip('{$option['escaped_desc']}')" onmouseout="exit();">{$option['title']}</label>
               </li>
HTML;
?>
            </ul>
            <br style="clear: both;">
         
         </form>

To add a link to go to a site via your proxy add this code where you deleted the URL box code:


Code:
<?php
echo "<a href=\"", proxifyURL('http://example.com'), "\">Site Name</a>";
?>
04blatca is offline
Country: United Kingdom
 
Reply With Quote
Old 08-22-2010, 10:16 AM   #3 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 3
speedfire is on a distinguished road
Default

Thanks for ur great help.
speedfire is offline
Country: Singapore
 
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:22 PM.
© 2006-2010 Glype. All Rights Reserved.