Html Block Exp

It's still not working !


This is the code i insert into the box right !

<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="_top">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
<input type="hidden" name="client" value="pub-0915650683949696"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>

This is what i get after i want to edit this code :

<!-- Search Google -->
<center>
<form method=\"get\" action=\"http://www.google.com/custom\" target=\"_top\">
<table bgcolor=\"#ffffff\">
<tr><td nowrap=\"nowrap\" valign=\"top\" align=\"left\" height=\"32\">
<a href=\"http://www.google.com/\">
<img src=\"http://www.google.com/logos/Logo_25wht.gif\" border=\"0\" alt=\"Google\" align=\"middle\"></img></a>
<label for=\"sbi\" style=\"display: none\">Enter your search terms</label>
<input type=\"text\" name=\"q\" size=\"31\" maxlength=\"255\" value=\"\" id=\"sbi\"></input>
<label for=\"sbb\" style=\"display: none\">Submit search form</label>
<input type=\"submit\" name=\"sa\" value=\"Search\" id=\"sbb\"></input>
<input type=\"hidden\" name=\"client\" value=\"pub-0915650683949696\"></input>
<input type=\"hidden\" name=\"forid\" value=\"1\\\"></input>
<input type=\"hidden\" name=\"ie\" value=\"ISO-8859-1\"></input>
<input type=\"hidden\" name=\"oe\" value=\"ISO-8859-1\"></input>
<input type=\"hidden\" name=\"cof\" value=\"GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1\"></input>
<input type=\"hidden\" name=\"hl\" value=\"en\"></input>
</td></tr></table>
</form>
</center>

Proud Hosted by Zarconia.net
Quote · 31 Oct 2009

changed some code in the file BxDolPageViewAdmin.php - back to Dol7Beta7 code where it work

File inc/classes/BxDolPageViewAdmin.php (~line 236)  -> function saveItem( $aData )

(deleted all BX_TAGS_XXX code on the process_db_input)

Code:

function saveItem( $aData ) {
$iID = (int)$aData['id'];

$sQuery = "SELECT `Func` FROM `{$this -> sDBTable}` WHERE `ID` = $iID";
$sFunc  = db_value( $sQuery );
if( !$sFunc )
return;

$sCaption = process_db_input($aData['Caption'], BX_TAGS_STRIP);
$sVisible = is_array( $aData['Visible'] ) ? implode( ',', $aData['Visible'] ) : '';

if( $sFunc == 'RSS' )
$sContentUpd = "`Content` = '" . process_db_input($aData['Url'], BX_TAGS_STRIP) . '#' . (int)$aData['Num'] . "',";
elseif( $sFunc == 'Echo' )
$sContentUpd = "`Content` = '" . process_db_input($aData['Content'], BX_TAGS_NO_ACTION, BX_SLASHES_NO_ACTION) . "',";
elseif( $sFunc == 'XML' ) {
$iApplicationID = (int)$aData['application_id'];
$sContentUpd = "`Content` = '" . $iApplicationID . "',";
} else
$sContentUpd = '';

$sQuery = "
UPDATE `{$this -> sDBTable}` SET
`Caption` = '{$sCaption}',
{$sContentUpd}
`Visible` = '{$sVisible}'
WHERE `ID` = '{$iID}'
";
db_res( $sQuery );

echo _t( process_pass_data($aData['Caption']) );
}

Changed code:

function saveItem( $aData ) {
$iID = (int)$aData['id'];

$sQuery = "SELECT `Func` FROM `{$this -> sDBTable}` WHERE `ID` = $iID";
$sFunc  = db_value( $sQuery );
if( !$sFunc )
return;

$sCaption = process_db_input($aData['Caption']);
$sVisible = is_array( $aData['Visible'] ) ? implode( ',', $aData['Visible'] ) : '';

if( $sFunc == 'RSS' )
$sContentUpd = "`Content` = '" . process_db_input($aData['Url']) . '#' . (int)$aData['Num'] . "',";
elseif( $sFunc == 'Echo' )
$sContentUpd = "`Content` = '" . process_db_input($aData['Content']) . "',";
elseif( $sFunc == 'XML' ) {
$iApplicationID = (int)$aData['application_id'];
$sContentUpd = "`Content` = '" . $iApplicationID . "',";
} else
$sContentUpd = '';

$sQuery = "
UPDATE `{$this -> sDBTable}` SET
`Caption` = '{$sCaption}',
{$sContentUpd}
`Visible` = '{$sVisible}'
WHERE `ID` = '{$iID}'
";
db_res( $sQuery );

echo _t( process_pass_data($aData['Caption']) );
}

Quote · 31 Oct 2009

You are a star, Thanks for the Fix , great Job .

Laughing Finnaly getting back to life lol

thanks Man .

Eli

Peace and Bread

Proud Hosted by Zarconia.net
Quote · 31 Oct 2009

One last question , you see when i want to change the name _html Block for exp to _Google Search and place it in the web page it does show like this _Google Search instead of Google Search , do you have any idea how to fix it ?

Thanks again .

Eli.

Proud Hosted by Zarconia.net
Quote · 31 Oct 2009

Settings/Languages Settings - box Manage Keys -> Click on Add key


Key name: _Google Search
Category: System
String text for English language: Google Search


SAVE


That's it...

Quote · 31 Oct 2009

How about a ticket for this?

Quote · 31 Oct 2009

Nice one man , that what i was looking for start my web site lol

I don't think so i have so many bugs for the moment to sort out , but if there's anything i will report it .

Thanks you very much again ,

Peace and Bread forever ,

Eli .

Proud Hosted by Zarconia.net
Quote · 31 Oct 2009

Ticket added: http://www.boonex.com/trac/dolphin/ticket/1395

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 31 Oct 2009

Thanks, Michael! Could you kindly take a peak at the couple of bugs I have reported today and see if they mount to ticket-status?

Quote · 31 Oct 2009

this never work for me guys

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 2 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.