Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> HTML
Author Message
arahad
Hangin' Around



Joined: May 19, 2006
Posts: 30

PostPosted: Sat Nov 28, 2009 10:51 pm Reply with quote

No matter what I do when I post news all text is centered and does not align to the left. is there code I need to enter in with the text to get it to line up to the left and not center all the time? if so what? I have tried <br> etc but when i post the news it just shows as code and when i go back to edit its not there anymore. The top news article wont center anything though (the one with the edit option rite on the page), the same thing happens, when i try to center with <center> nothing happens and when i go back to edit the code is gone

Look here [ Only registered users can see links on this board! Get registered or login! ]

this is my allowable maybe something is missing

Code:
$AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"img"=>2,"center"=>1);


Thanks for any help
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Nov 29, 2009 4:50 am Reply with quote

I believe it is related to your theme. Have a look at the code and I think you will find there is a center tag in there.
 
View user's profile Send private message
arahad







PostPosted: Sun Nov 29, 2009 3:39 pm Reply with quote

ok, but where in the theme am I to look?
 
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Sun Nov 29, 2009 4:11 pm Reply with quote

try story_page.html and or story_home.html
and find something like < center > $ title $ content </ center >
 
View user's profile Send private message Send e-mail
arahad







PostPosted: Mon Nov 30, 2009 10:08 am Reply with quote

this is the story_home.html

Code:
<body bgcolor="#434343">

<table border="0" cellpadding="0" align=center cellspacing="0" width="95%">
  <!--DWLayoutTable-->
  <tr>
    <td height="68" colspan="2" valign="top"><img src="themes/Mech/images/stl.jpg" width="68" height="68"></td>
    <td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="themes/Mech/images/stm.jpg">
        <!--DWLayoutTable-->
        <tr>
          <td width="716" height="20">&nbsp;</td>
        </tr>
        <tr>
          <td height="48" align="center" valign="top"><font color="#FDD802"><strong>$title</strong></font></td>
        </tr>
      </table></td>
    <td colspan="2" valign="top"><img src="themes/Mech/images/str.jpg" width="68" height="68"></td>
  </tr>
  <tr>
    <td height="126" colspan="2" valign="top" background="themes/Mech/images/sl.jpg"><img name="lttable" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
    <td colspan="2" valign="top" bgcolor="#2e2e2e"> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
        <!--DWLayoutTable-->
        <tr>
          <td width="593" height="126" valign="top"> <table border="0" cellpadding="3" cellspacing="0" width="100%">
              <!--DWLayoutTable-->
              <tr>
                <td height="126" align="middle" vAlign="center" bgcolor="#2e2e2e" class="extras">                  <br> <a href="modules.php?name=News&amp;new_topic=$topic"><img src="$t_image" border="0" alt="$topictext" title="$topictext" align="right" hspace="10" vspace="10"></a><font color="#CCCCCC">$content</font><br>
                  <br> <font color="#CCCCCC">$posted</font><br> <br> <font color="#CCCCCC">$morelink
                </font> </td>
              </tr>
              <!--DWLayoutTable-->
            </table></td>
        </tr>
        <!--DWLayoutTable-->
        <!-- TITLE LINE -->
        <!-- STORY FOOTER TABLE -->
      </table></td>
    <td width="58" valign="top" background="themes/Mech/images/sr.jpg"><img name="rttable" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>
  <tr>
    <td width="58" height="58" valign="top"><img src="themes/Mech/images/sbl.jpg" width="58" height="58"></td>
    <td colspan="3" valign="top" background="themes/Mech/images/sbm.jpg"><img name="btm" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
    <td valign="top"><img src="themes/Mech/images/sbr.jpg" width="58" height="58"></td>
  </tr>
  <tr>
    <td height="1"><img src="themes/Mech/images/spacer.gif" alt="" width="58" height="1"></td>
    <td width="10"><img src="themes/Mech/images/spacer.gif" alt="" width="10" height="1"></td>
    <td></td>
    <td width="10"><img src="themes/Mech/images/spacer.gif" alt="" width="10" height="1"></td>
    <td><img src="themes/Mech/images/spacer.gif" alt="" width="58" height="1"></td>
  </tr>
</table>
  <br>


this is the story_page.htm

Code:
<body bgcolor="#434343">

<table border="0" cellpadding="0" align=center cellspacing="0" width="95%">
  <!--DWLayoutTable-->
  <tr>
    <td height="68" colspan="2" valign="top"><img src="themes/Mech/images/stl.jpg" width="68" height="68"></td>
    <td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="themes/Mech/images/stm.jpg">
        <!--DWLayoutTable-->
        <tr>
          <td width="716" height="20">&nbsp;</td>
        </tr>
        <tr>
          <td height="48" align="center" valign="top"><font color="#FDD802"><strong>$title</strong></font></td>
        </tr>
      </table></td>
    <td colspan="2" valign="top"><img src="themes/Mech/images/str.jpg" width="68" height="68"></td>
  </tr>
  <tr>
    <td height="126" colspan="2" valign="top" background="themes/Mech/images/sl.jpg"><img name="lttable" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
    <td colspan="2" valign="top" bgcolor="#2e2e2e"> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
        <!--DWLayoutTable-->
        <tr>
          <td width="593" height="126" valign="top"> <table border="0" cellpadding="3" cellspacing="0" width="100%">
              <!--DWLayoutTable-->
              <tr>
                <td height="126" align="middle" vAlign="center" bgcolor="#2e2e2e" class="extras">                  <br> <a href="modules.php?name=News&amp;new_topic=$topic"><img src="$t_image" border="0" alt="$topictext" title="$topictext" align="right" hspace="10" vspace="10"></a><font color="#CCCCCC">$content</font><br>
                  <br> <font color="#CCCCCC">$posted</font></td>
              </tr>
              <!--DWLayoutTable-->
            </table></td>
        </tr>
        <!--DWLayoutTable-->
        <!-- TITLE LINE -->
        <!-- STORY FOOTER TABLE -->
      </table></td>
    <td width="58" valign="top" background="themes/Mech/images/sr.jpg"><img name="rttable" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>
  <tr>
    <td width="58" height="58" valign="top"><img src="themes/Mech/images/sbl.jpg" width="58" height="58"></td>
    <td colspan="3" valign="top" background="themes/Mech/images/sbm.jpg"><img name="btm" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
    <td valign="top"><img src="themes/Mech/images/sbr.jpg" width="58" height="58"></td>
  </tr>
  <tr>
    <td height="1"><img src="themes/Mech/images/spacer.gif" alt="" width="58" height="1"></td>
    <td width="10"><img src="themes/Mech/images/spacer.gif" alt="" width="10" height="1"></td>
    <td></td>
    <td width="10"><img src="themes/Mech/images/spacer.gif" alt="" width="10" height="1"></td>
    <td><img src="themes/Mech/images/spacer.gif" alt="" width="58" height="1"></td>
  </tr>
</table>
  <br>


i did not find reference to what you said to look for and I am entirely new to this so I dont know what to do.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Dec 02, 2009 6:07 am Reply with quote

Ok, the theme is heavily controlled via tables to lay out the text. I see the following on many cell tags:

align="center"

Remove that attribute from the <td> tags where you do not want the centering to occur.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> HTML

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©