Advanced search  

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

Pages: [1]   Go Down

Author Topic: Small "Hardwire" Question  (Read 10344 times)

0 Members and 1 Guest are viewing this topic.

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Small "Hardwire" Question
« on: November 19, 2005, 06:03:55 am »

I am using "Hardwire":
http://patty-loveless.net/gallery/

My question is....I want those links to be text only, not have all the buttons-- How can I make it text only on that area? I don't like the buttons at all.
 
Thanks for any help!!
Logged

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Small "Hardwire" Question
« Reply #1 on: November 19, 2005, 06:13:40 am »

My apologies- I did a search and found the answer on here! Thanks.
Logged

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Small "Hardwire" Question
« Reply #2 on: November 19, 2005, 06:37:18 am »

Well, maybe someone can help me:

I got the buttons gone...and have the links perfect...but only in Mozilla do they line up perfectly next to eachother. In IE, they go down. Can anyone tell me what I screwed up to make it to this? I don't understand how it looks perfect & the way I want it to in Mozilla, but not IE.

Thank You!!!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Small "Hardwire" Question
« Reply #3 on: November 19, 2005, 07:35:04 am »

can't see any navigation at all when going to the site you refered to. Post a link to the page where we can see the changed navigation (or a non-admin test user account if needed).
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Small "Hardwire" Question
« Reply #4 on: November 19, 2005, 08:59:05 am »

I don't see any menu on your site, either.

The easiest way to replace the buttons with simple text links is to copy the :

blocks of code in the Classic theme's theme.php file that begin with

Quote
<!-- BEGIN my_gallery -->


and ends with

Quote
<!-- END logout -->


and pasting them over the corresponding code blocks in the Hardwired theme's , theme.php file.

Dennis 
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Small "Hardwire" Question
« Reply #5 on: November 19, 2005, 09:31:28 am »

Dennis is of course right. However, you might have made a boo with the table cells. For details, attach your theme.php to your next posting (rename it to theme.txt before attaching it).
Logged

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Small "Hardwire" Question
« Reply #6 on: November 25, 2005, 01:17:51 am »

Sorry about that- I had accidentally taken the complete navigation off.

http://patty-loveless.net/gallery/

I did as Dennis suggested, and did the same for the others (the search, album list, etc, etc)--- but when I view the page in IE, it looks really messed up. I'm screwing up somewhere and can't figure out where:(


My theme.php is attached! I appreciate all the help, thanks so much!

« Last Edit: November 25, 2005, 01:28:10 am by Cole »
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Small "Hardwire" Question
« Reply #7 on: November 25, 2005, 01:52:41 am »

Looks like you have a host of other issues in your template.html file as well.  Can't say for sure but I see a lot of un-paired tr's and td's.

anyway,

try replacing the menu section of your file with the following AND make sure your browser [CONFIG default theme]  is pointing to your hardwired theme.  It looks like the Classic is selected by default.


Quote
// HTML template for main menu
$template_main_menu1 = <<<EOT
   <span class="topmenu">
       <table border="0" cellpadding="0" cellspacing="0">
              <tr>
<!-- BEGIN my_gallery -->
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> ::
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a>  ::
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
                        <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a> ::
<!-- END my_profile -->
<!-- BEGIN faq -->
                        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> ::
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> ::
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> ::
<!-- END upload_pic -->
<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->

          </tr>
         </table>
     </span>
EOT;
$template_main_menu2 = <<<EOT
    <span class="topmenu">
         <table border="0" cellpadding="0" cellspacing="0">
             <tr>
<!-- BEGIN album_list -->
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
<!-- END album_list -->
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
            </tr>
        </table>
    </span>
EOT;

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Small "Hardwire" Question
« Reply #8 on: November 25, 2005, 01:58:13 am »

Thanks so much!

I have that in now and it looks exactly how I want it to when I am using Mozilla...It still doesn't look right using IE--- the links all go down instead of going across.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Small "Hardwire" Question
« Reply #9 on: November 25, 2005, 03:14:58 am »

The first <table> bock above, try:

Quote
  <table border="0" cellpadding="0" cellspacing="0">

try

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

and if that doesn't work, look in your css.style file and search for


Quote
.topmenu {
        font-size : 100%;

and add right below the last line:

Quote
        white-space: nowrap;
Quote


Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Small "Hardwire" Question
« Reply #10 on: November 25, 2005, 03:31:19 am »

You've been such a great help, thanks so much, I've got it all working just perfectly now!!
Logged

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Small "Hardwire" Question
« Reply #11 on: November 25, 2005, 04:01:58 am »

One last teeny question, actually! How can I center those links? I put align="center" in the table, and it didn't do anything (anywhere I've tried centering it, it doesn't work). (Only in IE- In Mozilla it's centered perfect) It's centered in my template.html, and does in Mozilla, so I'm not sure what I've done LOL this time!




« Last Edit: November 25, 2005, 04:14:54 am by Cole »
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Small "Hardwire" Question
« Reply #12 on: November 25, 2005, 04:18:29 am »

Teeny, huh?  ;)

Well then maybe I should simply forget that you asked?

But then someone else might come along and reply something like this:

Look in your template.html file and center the menus like this:

Quote
    <tr>
        <div align="center">
              {SYS_MENU}<br />{SUB_MENU}
        </div>
    </tr>
    <tr>
        <div align="center">{ADMIN_MENU}
        </div>
    </tr>

and then the joke would be on me.

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Cole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Small "Hardwire" Question
« Reply #13 on: November 25, 2005, 04:59:08 am »

This must be part of my problem with my template.html file you were mentioning earlier.  I originally had a problem getting a header in the gallery & a friend of mine sent me her template with that.  Whenever I put in the code above, it takes my header to the bottom of the page, and then makes the gallery wide enough to fill the page. LOL, I know, I'm a pain  :D I've had Coppermine before, and had it working great- I just never bothered customizing it all that much until now, lol.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Small "Hardwire" Question
« Reply #14 on: November 25, 2005, 05:14:26 am »

Hmmm

try putting the align="center" into the <span        > statement.

Then attach a copy of your template.html, I'll have a look at it.

But I won't be getting back till tomorow... it's turkey time here in Hawaii.
That's turkey, sushi, pies, cakes, roast beef, other goodies.
And we all know that is a priority numero uno .

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Small "Hardwire" Question
« Reply #15 on: November 25, 2005, 09:37:36 am »

Cole,

When combined, this is what your template.html and theme.php generates, where:

The first <table>, <tr>, and <td>
have no matching pairs to close the table, row, and column:    </table>, </tr>, and </td>

The third block starting with <table> and ending with </table> doesn't do anything. There is no code in there whatsoever. Just a lot of empty tables and cells.

The last <table>,  <tr>, <td>, block ends abruptly, as well.  No closing pairs.

As it is not in your theme.php, it has to be in the template.html.
try aligning your code as I have in the displayed block to make it easier to read and match open and closing table entities.   Then try to figure out where each should be closed.  I suspect the last three do nothing as well.  The first three should be closed in reverse order where the last three are. And the third set or block could probably be eliminated, all together.


Dennis   

Quote
<body>

<table width="650" border="0" cellspacing="0" cellpadding="0" align="center">

  <tr>
    <td align="center" valign="middle">
   
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                         <td align="center"><img src="http://www.patty-loveless.net/gallery/themes/hardwired/images/plngallery.png" width="750" height="306">
                         </td>
                </tr>
                 <tr>
                         <td width="100%" align="center"><p>                                           
                                <span class="topmenu">
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                           <tr>
<!-- BEGIN login -->
                                                  <a href="login.php?referer=%2Fgallery%2F">Login</a>
<!-- END login -->
                                            </tr>
                                     </table>
                                  </span>     
                                  <span class="topmenu">
                                      <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                              <tr>
<!-- BEGIN album_list -->
                              <a href="index.php?cat=0" title="Go to the album list">Album list</a> ::
<!-- END album_list -->
                              <a href="http://www.patty-loveless.net/">PLN Home</a> ::
                              <a href="thumbnails.php?album=lastup&cat=0">Last uploads</a> ::
                              <a href="thumbnails.php?album=topn&cat=0">Most viewed</a> ::
                              <a href="thumbnails.php?album=favpics">My Favorites</a> ::
                              <a href="search.php">Search</a>
                                              </tr>
                                        </table>
                                   </span> </p>
                         </td>
                  </tr>
       </table>
                   <div align="left"></div>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="center" valign="top">&nbsp;
                     </td>
                  </tr>
                  <tr>
                       <td align="center" valign="top">
                       </td>
                  </tr>
                  <tr>
                        <td align="center" valign="top">
                        </td>
                   </tr>
       </table>
                <img src="images/spacer.gif" width="1" height="15" /><br />
       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                 <tr>
                        <td align="center" valign="top">
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.