Changing a php file

Hi, could anyone help me, i whould liketo change a php file but i get an error on top off my web page.

 

i would like to chage the browse.php file

i don't want to see  online or with pictures.

 

is that possible?

 

 

Quote · 18 Mar 2009

Open browse.php and find code below and hide this code

 

<div class="only">
' . $photo_only_check . '

' . $online_only_check . '

</div>

 

change it to

 

<!-- <div class="only">
' . $photo_only_check . '

' . $online_only_check . '

</div> -->

Quote · 19 Mar 2009

Hi, thanks for your help but....i still get the error on top of site:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/browse.php:1) in /home/mysite/public_html/inc/design.inc.php on line 488

 

Any thoughts

 

thanks again

Quote · 19 Mar 2009

If you get an error before you edit it to what I wrote you will still have an error...

 

Upload new browse.php file and do what I write above, it shall work.

Quote · 19 Mar 2009

Yeah, it doesn't work... it get the error, i have the original browse.php file.

 

if any ideas give me a shout...

 

but i get the ideas of putting it as a comment.

 

does any thing have to do with the design.inc.php

Thanks

Quote · 19 Mar 2009

 

Yeah, it doesn't work... it get the error, i have the original browse.php file.

 

if any ideas give me a shout...

 

but i get the ideas of putting it as a comment.

 

does any thing have to do with the design.inc.php

Thanks

 

What does line 488 say?  Did you recompile your language?

Quote · 19 Mar 2009

well line 488 says : header( 'Content-type: text/html; charset=utf-8' );         in the design.inc.php

 

and recompile ?  do you mean the button compile,  in between edit and delete if so than yes i just tried it and i still get the error message.

 

thanks

Quote · 19 Mar 2009

Hi, thanks for your help but....i still get the error on top of site:

Warning: Cannot modify header information - headers already sent by (output started at /home/xfindout/public_html/browse.php:1) in /home/xfindout/public_html/inc/design.inc.php on line 488

Any thoughts

thanks again

This error normally due to whitespaces before the code .Go to design.inc.php at line 488, backspace all the whitespaces before line 488.

Quote · 19 Mar 2009

Hi guys,

 

well i tried to erase the white space and nothing...

then i tried erasing the 488 line and that kind of worked, i have no more error on top of the site but

now the site is not centered its on the right.

 

anything else someone can think about?

 

thanks

Quote · 19 Mar 2009

Yes !!!

 

ok, i got it, finaly i went to the css file browse.css and in the class only(.only) i added display: none

 

i also had to bring down the .submit after the .only

 

so the code looks like this from line 85:

 

 

.only
 {
  text-align:center;
  display:none
 }
 .submit,

 

 

rather then:

 

.submit,
 .only
 {
  text-align:center;
 }
 

 

 

 

 

Quote · 19 Mar 2009

Any idea how to get rid of everything except the member thumbnails?

Thank

Quote · 20 Mar 2009

 

Any idea how to get rid of everything except the member thumbnails?

 

Thank

 

You hides this code

 

<!--<form id="browse_form" action="' . $_SERVER['PHP_SELF'] . '" method="get">
            <div class="browse_form_wrapper">

                <div class="browse_form_row">
                    <div class="clear_both"></div>
                       <div class="label">' . _t('_Sex') . ':</div>
                        <div class="value">' . $sex_options .'</div>
                    <div class="clear_both"></div>
                </div>

                <div class="browse_form_row">
                    <div class="clear_both"></div>
                        <div class="label">' . _t('_DateOfBirth') . ':</div>
                        <div class="value">' .
                            _t("_from") . '&nbsp;' . $age_option_start .    '&nbsp;' . _t("_to") . '&nbsp;' . $age_option_end .
                        '</div>
                    <div class="clear_both"></div>
                </div>

                <div class="browse_form_row">
                    <div class="clear_both"></div>
                        <div class="label">' . _t('_Country') . ':</div>'.
                        '<div class="value">' .
                            $country_options .'&nbsp;<img id="flagImageId" src="'. $country_def_flag .'" alt="flag" />
                        </div>
                    <div class="clear_both"></div>
                </div>

               <div class="only">
                    ' . $photo_only_check . '
                    ' . $online_only_check . '
                </div>

                <div class="submit">
                    <input id="search" name="search" type="submit" value="'. _t('_Show') .'" />
                </div>

            </div>
        </form>-->

Quote · 4 Apr 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.