Author Topic: Trying to add a new page - help please.  (Read 4906 times)

0 Members and 1 Guest are viewing this topic.

Offline NicholasP

  • Newbie
  • *
  • Posts: 27
    • View Profile
Trying to add a new page - help please.
« on: July 12, 2006, 05:54:55 PM »
I am trying to add a link to the top right user box called "Resource Links."

I want to be able to click this link and have the contents show up like everything else does in the main window.

It is all basic html in the page. So far, this is what I have for the page itself(actual content omitted to save space on here).

Code: [Select]
<form method="post" action="{url_search}">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="1390" height="27" valign="top" class="head1">Resource Links</td>
          </tr>
          <tr>
            <td height="162" valign="top" class="row1">
<font size="3"><br>
INSERT TEXT HERE YADDA YADDA
</td>
            </tr>
        </table>
      </td>
    </tr>
  </table>
</form>

I had edited the lang/end/main file under the MISC Section to include:
Code: [Select]
$lang['resourcelinks'] = "Resource Links";

I had put the resourcelinks.html file under /templates/default/

I then edited the user_logininfo.html file to add:
Code: [Select]
&raquo; <a href="{url_resourcelinks}">{lang_resourcelinks}</a>


What am I doing wrong here? I am positive I am missing some crucial steps in this.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Trying to add a new page - help please.
« Reply #1 on: July 12, 2006, 06:12:27 PM »
... you must also register your new tag "url_resourcelinks" ...
... in includes/page_header.php find ...
Code: [Select]
$site_template->register_vars(array(

... insert below the following ...
Code: [Select]
"url_resourcelinks" => $site_sess->url(ROOT_PATH."templates/default/resourcelinks.html"),
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline NicholasP

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Trying to add a new page - help please.
« Reply #2 on: July 12, 2006, 06:29:54 PM »
Hmmm that helped a little... but it opened up the page alone and not in the main section of the gallery.

I really appreciate the help.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Trying to add a new page - help please.
« Reply #3 on: July 12, 2006, 06:38:55 PM »
Hmmm that helped a little...

...  :mrgreen: ...
... as you said above: I had put the resourcelinks.html file under /templates/default/ ...  :!:
... if you want a new_all_in_page than try this : http://www.4homepages.de/forum/index.php?topic=4996.msg21137#msg21137
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline NicholasP

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Trying to add a new page - help please.
« Reply #4 on: July 12, 2006, 06:41:41 PM »
thank you very much for the link! :)