Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Dissapearing Test Styles  (Read 3227 times)

0 Members and 1 Guest are viewing this topic.

rlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Dissapearing Test Styles
« on: November 03, 2004, 06:11:50 pm »

hi,
i updated my stylesheet and the changes worked alright until-

i cut some code from the template.html file and put it in the theme.php file.

the strange thing is, all the table background styles still work, while the text ones don't, and they are all correctly defined in the same file.

can anyone help?

richard
« Last Edit: November 04, 2004, 04:56:59 pm by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Dissapearing Test Styles
« Reply #1 on: November 03, 2004, 06:31:38 pm »

link?

Joachim
Logged

rlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Dissapearing Test Styles
« Reply #2 on: November 04, 2004, 09:06:54 am »

no link i'm afraid, it's not on-line yet. but the theme.php code looks like this:

Code: [Select]

// HTML template for main menu
$template_main_menu = <<<EOT
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <!-- BEGIN register -->
<!-- END register -->
    <!-- BEGIN allow_memberlist -->
<!-- END allow_memberlist -->
    <!-- BEGIN login -->
<td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{LOGIN_TGT}">home</a></td>
<!-- END login -->
<!-- BEGIN album_list -->
<td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a></td>
<!-- END album_list -->
<!-- BEGIN my_gallery -->
<td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a></td>
<!-- END my_gallery -->
<!-- BEGIN my_profile -->
<td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a> </td>
<!-- END my_profile -->
<!-- BEGIN faq -->
    <td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a></td>
<!-- END faq -->
    <!-- BEGIN upload_pic -->
<td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a></td>
<!-- END upload_pic -->
    <td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{LASTUP_TGT}">{LASTUP_LNK}</a></td>
    <td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a></td>
    <td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{TOPN_TGT}">{TOPN_LNK}</a></td>
    <td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a></td>
<td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{FAV_TGT}">{FAV_LNK}</a></td>
<td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{SEARCH_TGT}">{SEARCH_LNK}</a></td>
<!-- BEGIN enter_admin_mode -->
    <td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a></td>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
    <td class="text_menu_main" align="center" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a></td>
<!-- END leave_admin_mode -->
    <!-- BEGIN logout -->
<td class="text_menu_main" align="center" nowrap=nowrap><span class="text_orange_01"><a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a></span></td>
<!-- END logout -->
  </tr>
</table>
EOT;

// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT
  <tr>
    <td bgcolor="#000000" colspan="19" height="24">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="editpics.php?mode=upload_approval" title="">{UPL_APP_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="config.php" title="">{CONFIG_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="albmgr.php{CATL}" title="">{ALBUMS_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="catmgr.php" title="">{CATEGORIES_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="usermgr.php" title="">{USERS_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="groupmgr.php" title="">{GROUPS_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="banning.php" title="">{BAN_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="db_ecard.php" title="">{DB_ECARD_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="reviewcom.php" title="">{COMMENTS_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="searchnew.php" title="">{SEARCHNEW_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="util.php" title="">{UTIL_LNK}</a></span></td>
          <td class="text_menu_user_admin" align="center" valign="middle" onmouseover="mOver(this);" onmouseout="mOut(this);"  nowrap=nowrap><span class="text_blue_02"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></span></td>
 <td class="blue_08" width="23">&nbsp;</td>
        </tr>
      </table></td>
    <td class="footer_border"></td>
    <td bgcolor="#000000"></td>
  </tr>
  <tr>
    <td colspan="20" class="footer_border" height="1"></td>
    <td bgcolor="#000000"></td>
  </tr>
EOT;


whereas the relevant css classes look like this:

Code: [Select]
.text_menu_main {
        font-family: Arial, Helvetica, sans-serif;
color: #0000ff;
background: #000033;
        font-weight: normal;
        font-size: 10;
margin: 0px;
margin-top:0px;
margin-left: 0px;
padding-top: 0px;
padding-left: 0px;
padding-bottom: 0px;
}


.text_blue_02 {
        font-family: Arial, Helvetica, sans-serif;
color: #0099FF;
        font-weight: normal;
        font-size: 10;
margin: 0px;
margin-top:0px;
margin-left: 0px;
padding-top: 0px;
padding-left: 0px;
padding-bottom: 0px;
}


.text_menu_user_admin {
        font-family: Arial, Helvetica, sans-serif;
color: #0099FF;
background: #000033;
        font-weight: normal;
        font-size: 10;
margin: 0px;
margin-top:0px;
margin-left: 0px;
padding-top: 0px;
padding-left: 0px;
padding-bottom: 0px;
}


a:link {
    color : #ffffff;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
TEXT-TRANSFORM: lowercase;
font-size: 10;
}

a:active {
    color : #ff9900;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
TEXT-TRANSFORM: lowercase;
font-size: 10;
}

a:hover  {
    color : #ff9900;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
TEXT-TRANSFORM: lowercase;
font-size: 10;
}

a:visited  {
    color : #ffffff;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
TEXT-TRANSFORM: lowercase;
font-size: 10;
}


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Dissapearing Test Styles
« Reply #3 on: November 04, 2004, 09:59:24 am »

no link i'm afraid, it's not on-line yet. but the theme.php code looks like this:
No link, no help (at least from me), sorry.

Joachim
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Dissapearing Test Styles
« Reply #4 on: November 04, 2004, 11:04:08 am »

It is very difficult to help you if you do not give us enough information - you could have atleast highlighted the code you changed!!!
Logged
SANIsoft PHP applications for E Biz

rlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Dissapearing Test Styles
« Reply #5 on: November 04, 2004, 11:16:12 am »

Sorry, but I changed it all. I'm trying to rewrite the style completely (though not from scratch). The only areas of relevance are the class calls I would guess. I've isolated the problem to the CSS itself but it's still got me baffled.
« Last Edit: November 04, 2004, 12:39:55 pm by rlm »
Logged

rlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Dissapearing Test Styles
« Reply #6 on: November 04, 2004, 01:32:02 pm »

solved!
(conflicting (coppermine) styles for links.)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.