User contrib theme editing help. User contrib theme editing help.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

User contrib theme editing help.

Started by docnomad, February 17, 2006, 04:44:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

docnomad

I am trying to change the user contributed theme, SMF.  I am trying to remove the User info, Newsbox and key stats boxes.  I have looked through theme.php, but I could not determine what to change.  I would also like to move the top row of buttons down to the next row with the others. 

Please see attached screenshot.

Thank You

Joachim Müller

edit themes/smf/template.html, find<table cellspacing="0" cellpadding="0" width="940" align="center" border="0">
  <tbody><br />
    <tr>
          <td style="padding-right:5px; padding-left:5px; font-size:large; padding-bottom:5px; padding-top:5px; font-family:Georgia, serif; white-space:nowrap" valign="bottom" colspan="2">
            <img style="float: right" alt="" src="themes/smf/images/smflogo.gif" width="250" /><font size="6" face="Georgia, serif">{GAL_NAME}
            </font> </td>
    </tr>
    <tr>
      <td valign="top"> <div class="headertitles" style="margin-right:5px; position:relative"><img height="12" alt="" src="themes/smf/images/blank.gif" /></div>

            <div class="headerbodies" style="background-image:url(themes/smf/images/box_bg.gif); margin-right:5px; position:relative">
              <img style="clear:both; left:-1px; position:absolute; top:-16px" alt="" src="themes/smf/images/userinfo.gif" />
              <table cellspacing="5" cellpadding="0" width="99%" border="0">
                <tbody>
                  <tr>
                    <td class="smalltext" style="font-family:verdana,arial,sans-serif" valign="top" width="100%">Welcome!
                      Please <a href="login.php">login</a> or <a href="register.php">register</a>.<br />
                      <br />
                      <br />
                      <br /> <font size="1" face="Arial,Helvetica,sans-serif">
                      <div id="Clock"></div>
                      <script type="text/javascript">
<!--

var DayNam = new Array(
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat");

var MnthNam = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");

function tick() {
  var hours, minutes, seconds, ap;
  var intHours, intMinutes, intSeconds;  var today;
  today = new Date();
  intDay = today.getDay();
  intDate = today.getDate();
  intMonth = today.getMonth();
  intYear = today.getYear();
  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();
  timeString = DayNam[intDay]+"  "+intDate;
  if (intDate == 1 || intDate == 8 || intDate == 31 || intDate == 20 || intDate == 21 || intDate == 22 || intDate == 23 || intDate == 24 || intDate == 25 || intDate == 26 || intDate == 27 || intDate == 28 || intDate == 29 || intDate == 30) {
    timeString= timeString + " ";
  } else if (intDate == 2 || intDate == 7 || intDate == 9 || intDate == 19) {
    timeString= timeString + " ";
  } else if (intDate == 3) {
    timeString= timeString + " ";
  } else {
    timeString = timeString + " ";
  }
  if (intYear < 2000){
        intYear += 1900;
  }
  timeString = " "+timeString+" "+MnthNam[intMonth]+" "+intYear;
  if (intHours == 0) {
     hours = "12:";
     ap = "am";
  } else if (intHours < 12) {
     hours = intHours+":";
     ap = "am";
  } else if (intHours == 12) {
     hours = "12:";
     ap = "pm";
  } else {
     intHours = intHours - 12
     hours = intHours + ":";
     ap = "pm";
  }
  if (intMinutes < 10) {
     minutes = "0"+intMinutes;
  } else {
     minutes = intMinutes;
  }
  if (intSeconds < 10) {
     seconds = ":0"+intSeconds;
  } else {
     seconds = ":"+intSeconds;
  }
  timeString = (document.all)? timeString+" - "+hours+minutes+seconds+" "+ap:timeString+" <br />The time is "+hours+minutes+" "+ap;
  var clock = (document.all) ? document.all("Clock") : document.getElementById("Clock");
  clock.innerHTML = timeString;
  (document.all)?window.setTimeout("tick();", 1000):window.setTimeout("tick();", 6000);
}

tick();

//-->
</script>
                      </font></font></font></td>
                  </tr>
                </tbody>
              </table>
            </div></td>
      <td style="padding-left:5px" valign="top" width="262"> <div class="headertitles" style="width:260px"><img height="12" alt="" src="themes/smf/images/blank.gif" /></div>

            <div class="headerbodies" style="background-image:url(themes/smf/images/box_bg.gif); margin-bottom:8px; width:260px; position:relative">
              <img style="left:-1px; position:absolute; top:-16px" alt="" src="themes/smf/images/newsbox.gif" />
              <!-- NewsBox add your text here  -->
              <div class="smalltext" style="font-family:verdana,arial,sans-serif; padding-right:5px; padding-left:5px; padding-bottom:5px; overflow:auto; padding-top:5px; height:50px">
                Coppermine - Just Installed</div>
              <!-- NewsBox add your text here  -->
            </div>
        <div class="headertitles" style="width:260px"><img height="12" alt="" src="themes/smf/images/blank.gif" /></div>

            <div class="headerbodies" style="background-image:url(themes/smf/images/box_bg.gif); width:260px; position:relative">
              <img style="left:-1px; position:absolute; top:-16px" alt="" src="themes/smf/images/keystats.gif" />
              <!-- KeyStats add your text here -->
              <div class="smalltext" style="font-family: verdana,arial,sans-serif; padding-right:5px; padding-left:5px; padding-bottom:5px; padding-top:5px; height:35px">
                Latest Link: <a href="http://damysterious.xs4all.nl/gallery/">DaMysterious</a></div>
              <!-- KeyStats add your text here -->
            </div></td>
    </tr>
  </tbody>
</table>
and remove it to get rid of the SMF header.

Then find{SYS_MENU}<br />{SUB_MENU}and replace with{SYS_MENU}{SUB_MENU}to get the menu into one line.


However, all you have left is pretty much looking like the classic theme, so I don't understand why you're going though all this - the whole point of the SMF theme is to make your coppermine gallery match the looks of your SMF board. Removing the key tokens, there's very little left of the original look.

docnomad

#2
Ok, I thought it was solved, I still have two lines, is it because of the horizontal rule I put in?

<table width="100%" style="background-color:white; padding:0px 0px;">
   
    <td width="100%"> <div align="left">
<hr align="center" size="1" noshade="noshade" />
        {SYS_MENU}{SUB_MENU}
      </div></td>
</table>


And the attachment shows what I get.

Joachim Müller

you'll have to edit theme.php then, find the line break in the sys menu and remove it.