geimryk (geimryk) wrote in component_help,
geimryk
geimryk
component_help

  • Mood:

Component width on Friends page

I managed somehow by messing around with the code to change the width of the components in my journal to 70%, but my Friends page is unaffected.

I had tried changing the width using
 .entryHolderBg 
but for some reason that never worked....






function print_my_entries(Page p, string title) {





var string friends_subtitle = "Friends and Funnies of the flighty-minded fangirl™";

var string welcome_title = "Booyah!";

    var string welcome_note = "Welcome to my universe. You don't have to be crazy to read this, but it helps.";

    var Color header = $*header_bgcolor;

    var Color headerMinus5  = $header->darker(50);

    var Color headerPlus3   = $header->lighter(30);

    var string corner_color = "/p0"+$headerPlus3->substr(1,6)+"1"+$headerMinus5->substr(1,6)+"2"+$header->substr(1,6);



"""



        <td valign="top" width="70%">

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

                <tr>

                    <td colspan="3"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0"></td>

                </tr><tr>

            <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-top-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

                    <td class="dkLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                    <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-top-right.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

                </tr><tr>

                    <td class="ltLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                </tr><tr>

                    <td class="tabBg"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

                </tr><tr>

                    <td class="dkLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                    <td class="ltLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                    <td class="tabBg" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="3" alt="" border="0" /></td>

                    <td class="tabBg" width="100%">



    """;

"""<div class="userTitle"><center> """; print $p->title(); """ </center></div> """;

                if ($p.global_subtitle!="" and $p.view=="recent") {

                """ <div class="userSubtitle"><center><font color="#ffffcc"> """; print $p.global_subtitle; """ </font></center></div> """;

                }

                if ($p.global_subtitle!="" and $p.view=="friends") {

                """ <div class="userSubtitle"><center><font color="#ffffcc"> """; print $friends_subtitle; """ </font></center></div> """;

                }

"""



                    </td>

                    <td class="tabBg" width="3"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

                    <td class="ltLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                    <td class="dkLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                </tr><tr>

                    <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-bottom-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

                    <td class="tabBg"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

                    <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-bottom-right.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

                </tr><tr>

                    <td class="ltLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                </tr><tr>

                    <td class="dkLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                </tr>

            </table>



    """;



print_spacer();



# if ($p.view=="recent") {

#     print_entry_header("<b>$welcome_title<b>");

#     print_system_box_top();

#     print_content_top();

#     """ <div>"""; print $welcome_note; """</div> """;

#     print_content_bottom();

#     print_system_box_bottom();

#     print_spacer();

#        }







$p->print_body();



}





Anybody know where I can change the width of my Friends page as well?
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments