Author Topic: New Pics, what am I missing ??  (Read 7951 times)

0 Members and 1 Guest are viewing this topic.

Offline GooSe_1977

  • Newbie
  • *
  • Posts: 43
    • View Profile
New Pics, what am I missing ??
« on: November 28, 2005, 07:57:23 PM »
Hi, I changed the link to my gallery so that u start on the news page.
http://www.bastian-dammers.de/images/4images/index.php?template=news

As you can see I tried to put the New Pics at the top of this page, but ir didn't work  :?:

Can someone post the code I need  :D

THX

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: New Pics, what am I missing ??
« Reply #1 on: November 29, 2005, 12:11:13 AM »
the "custom template" feature does not support more then a plain template with some basic tags that regirstered in page_header.php.
So, you'll need create a whole new .php code file with copy of new images block from index.php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline GooSe_1977

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: New Pics, what am I missing ??
« Reply #2 on: November 29, 2005, 09:15:53 AM »
Hmm, I'm not shure igf I undestand you right ....

Here's the complete page, I took the details.html and deletet the parts I didn't need.

Code: [Select]
{header}
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
<table cellpadding="0" cellspacing="0"  width="100%" border="0" bgcolor="#000000">
 <tr>
  <td width="100%">
   <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="100%" height="62" background="{template_url}/images/bbcell.gif">
    <tr>
     <td width="50%" align="left"><img src="{template_url}/images/4imgs.gif" width="246" height="58" align="center" alt="" /></td>
     <td width="50%" align="right" >
<form method="post" action="{url_search}">
              <table border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>
                    <input type="text" name="search_keywords" size="15" class="searchinput" />
                  </td>
                  <td>
                    <input type="submit" value="{lang_search}" class="button" name="submit" />&nbsp;
                  </td>
                </tr>
                <tr valign="top">
                  <td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </tr>
              </table>
            </form>
     </td>
   </tr>
  </table>
</td>
</tr>
</table>
     
    </td>
  </tr>
  <tr>
    <td class="bordercolor">
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
           

<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td class="navbar" height="23">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td align="left" width="50%">
        <img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}
       </td>
       <td align="right" width="50%">
     
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;
       </td>
      </tr>
     </table>
    </td>
   </tr>
  </table>




            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" class="row2" valign="top">
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">{user_box} </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  {if random_cat_image}
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">
                        <br />
                        {random_cat_image}
                        <br />
                        <br />
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  {endif random_cat_image}
                  <p align="center">
                    <?php
                    
echo date("d.m.Y, H:i"); 
 ?>

                  </p>
<?php include("4darkm.php"); ?>
                 
                  <br />
                </td>
                <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" width="1" height="1" alt="" /></td>
                <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" width="18" height="18" alt="" /></td>
                <td width="100%" valign="top"><p align="center">&nbsp;</p>
                  <p>&nbsp;</p>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head1" valign="top">{lang_new_images}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="head1">{new_images}</td>
                    </tr>
                  </table>
                  <p align="center">&nbsp;</p>
<P><CENTER><SCRIPT LANGUAGE="JavaScript" SRC="http://www.thedealer1.de/newsposting/view.pl?id=bastian"></SCRIPT></CENTER><BR><BR>
                <p align="center">&nbsp;</p>
                <p align="center">&nbsp;</p>
                <p align="center">&nbsp;</p>
                <p align="center">&nbsp;</p>
                <table width="450" border="0" align="center" cellpadding="1" cellspacing="0">
                  <tr>
                    <td class="head1"><table width="100%" border="0" cellspacing="0" cellpadding="3">
                        <tr>
                          <td valign="top" class="head1">{lang_user_online}</td>
                        </tr>
                        <tr>
                          <td valign="top" class="row2"> {lang_user_online_detail} <br />
            {user_online_list} </td>
                        </tr>
                    </table></td>
                  </tr>
                </table>                <p align="center">&nbsp;</p>
                </td>
            <td width="19" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="19" height="19" /></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
     
    </td>
  </tr>
</table>
{footer}

And here's the page in action http://www.bastian-dammers.de/images/4images/index.php?template=news

Another thing I can't figure out is why I am missing the random image ??

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: New Pics, what am I missing ??
« Reply #3 on: November 29, 2005, 12:10:27 PM »
also du müsstest die index.php kopieren und sie dann news.php nennen, alles was Du nicht brauchst musst du aus der news.php entfernen... Und in der news.php natürlich noch die neuen Templates definieren...

Hoffe das hilft dir...

Offline GooSe_1977

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: New Pics, what am I missing ??
« Reply #4 on: November 29, 2005, 01:38:41 PM »
ok, aber wie defeniere ich neue templates ?

eigentlich find ich meine jetzige lösung gut, nur halt das das random image fehlt. Auf anderen Seiten mit dem selben Lösungsweg haben die das aber noch, nur weiss ich/die nicht was bei mri fehlt .....

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: New Pics, what am I missing ??
« Reply #5 on: November 29, 2005, 05:58:45 PM »
$templates_used = 'home,category_bit,whos_online,thumbnail_bit';
$main_template = 'home';

das steht in der index.php und in der news.php müsstest du dort statt home dann news eingeben, aber dafür muss eine news.html im template ordner liegen.
whos_online kannste dann löschen weil das ja nur auf der startseite angezeigt werden soll. thumbnail_bit ist für die neue bilder nötig...

Offline GooSe_1977

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: New Pics, what am I missing ??
« Reply #6 on: November 29, 2005, 09:12:29 PM »
werd ich mal testen wenn ich wieder nen klaren kopf hab ....