31
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/18 8:47

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


i know it's not hideously difficult, but compared to just puttin two includes into an HTML file, it is complex.

Also, how can the HTML possibly load faster than a flat HTML file by being in a smarty template?
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



32
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/17 21:09

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


problem is... the URL will then be in the "modules/" directory.

i need the URL to be at the root level (e.g. "XOOPS_ROOT/advertising", not "XOOPS_ROOT/modules/advertising").

Any other suggestions?

Thanks again!
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



33
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/17 21:09

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


problem is... the URL will then be in the "modules/" directory.

i need the URL to be at the root level (e.g. "XOOPS_ROOT/advertising", not "XOOPS_ROOT/modules/advertising").

Any other suggestions?

Thanks again!
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



34
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/17 15:43

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


ok, i've figured it out almost...

in order to get the right-hand side bar to appear on my custom page, i have to enable each of the right-hand blocks for "All Pages".

BUT, the problem is that once i do that, they appear on pages i don't want them to.

So, is there a way to exclude certain modules from a block's display properties, instead of include certain modules?

In other words, i want everything *except* the forum, but the only way to do that currently is to select "Top Page", "Contact Us", "Web Links", "News", "Members" etc... which then excludes my custom pages.
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



35
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/17 15:36

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


thanks for this, but to be honest, it all looks too complex for me to bother with...

given that the method i'm already using partially works, isn't it going to be a minor tweak to get the right-hand side-bar to appear as well as the header, left side bar and footer?

Thanks again, but creating a module is not really what i'm after. The URL i care about (domain.com/advertising/) and i don't want the page to appear on the main menu anyway.

Does anyone know how to get the right-hand side bar to appear using the "basic include statement" method above?
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



36
fishspon
Re: Adding a single page to Xoops under a specific URL
  • 2006/12/17 13:24

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


thanks for the responses... an extra module is not really what i'm after, so i decided to implement method 1 on the above URL - basic include statements, but i'm having a little difficulty.

The header and footer are included perfectly, but i have no right-hand side bar.

Please take a look at the page for what i'm on about:http://www.hififorum.co.uk/advertising/

Do you know how to get the right side bar to appear as well?

My index.php file looks like this:

<?php
include("../mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
?>
Test
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>


Thanks in advance!
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



37
fishspon
Adding a single page to Xoops under a specific URL
  • 2006/12/17 8:35

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


Hello,

I need to add a page to my XOOPS installation under a new directory.

My site:http://www.hififorum.co.uk/

The page i want to add:http://www.hififorum.co.uk/advertising/

Obviously, i could just create the directory on my web server and put an HTML file in there, but then i would have the dynamic side-bars and the bannerad bar along the top.

The only content i need on that page is text, preferably with the ability of placing HTML into it.

Does anyone know how i can do this?

Thanks in advance!
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



38
fishspon
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 15:11

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


perfect! thank you
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



39
fishspon
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 14:43

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


indeed it is, but that was the first bit of code.

the code i'm currently using is as below:

<!-- End right blocks loop -->
      </
td>

      <{/if}>

    </
tr>
  </
table>

  <
table cellspacing="0">
    <
tr id="hobbsadvertbar">
      <
td align='center'>
        <{
php}>
          include(
"test.php");
          include(
"../../advertising/intelliLink/adverts.php");
        <{/
php}>
      </
td>
    </
tr>
  </
table>

  <
table cellspacing="0">
    <
tr id="footerbar">
      <
td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a></td>
    </
tr>
  </
table>
</
body>
</
html>


any clues?
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]



40
fishspon
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 14:19

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


excellent! i can now execute PHP code!

However, i still cannot execute include(""); calls.

print(""); works perfectly, but include(""); does not work at all. it doesn't even produce an error.

Any ideas why this is?

Thanks again people!
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]




TopTop
« 1 2 3 (4) 5 6 7 ... 16 »



Login

Who's Online

162 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits