231
fredski
Tables within a page problems. HELP!
  • 2004/4/20 12:54

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I have just created my very first simple module ****round of applause*** and everything works ok apart from the fact that my tables spread right accross the content page although they should be set to 80%. Im using html as the content pages which are called by the following code in a php file in my module:-
<?php

include("../../mainfile.php");
include 
XOOPS_ROOT_PATH.'/header.php';
OpenTable();

include(
"pat-testing-prices.html");


CloseTable();
include (
"../../footer.php");
?>

even when I try to set the tables to a set size in the html they spread right accross the page.
Any help would be much appreciated.



232
fredski
Re: how to make xoops2 module??.
  • 2004/4/20 12:46

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Quote:
Here is a second possibility for creating your index.php, using an include(); instead of hardcoding the HTML in the php page. This helps make the code a bit more modular and easier to handle.
Create your html in Dreamweaver or whatever editor, then upload all files to this same module directory (myModule) for example)...and use this code to include it:

**********************************

<?php

include("../../mainfile.php");
include("../../header.php");
include("header.php");
OpenTable();

include("nameOfYourPage.html");


CloseTable();
include ("../../footer.php");
?>

This will work but give you errors due to the fact it's also looking for a header.php in the module directory. if your not going to have a specific header for your module then delete that line in the code i.e
include("header.php");



233
fredski
Re: Random Poll Block?
  • 2004/4/20 7:44

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I'm also interested in this feature, as I have a few polls running at the same time, the poll block can get very long. it would be good to have a random poll shown in the block, with any polls the user already voted in not being shown. Let me know if you found a way to do this Alf, or if anyone out there has found a way to do this.



234
fredski
Re: Oscommerce Module, Block Problems
  • 2004/4/19 11:16

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Thanks for that Herko, checked my header.php in the shop/includes and the problem was in there. All fixed now. ***until the next problem shows up ***



235
fredski
Oscommerce Module, Block Problems
  • 2004/4/19 10:01

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Im running Xooops with the Oscommerce module and for some reason my right blocks are dsplaced. In any other module the blocks are in the correct place next to the centre blocks, but in that one module only the right block gets pushed down for some reason. Please take a look at my site hereto see what I mean. Any help would be much appreciated. I asked on the Xoopshop forums but so far have not got any reply.



236
fredski
right block problems
  • 2004/4/15 9:46

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Im having problems getting my right blocks showing in the right place, they apear at the moment under the ccblocks but to the right of the clbock and crblock, which isnt the look im going for :) I need them to show to the right of all central block if present. any help would be much apreciated. it's probably something simple that im missing.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<!-- 
RMVadded module header -->
<
p align="center"><{$xoops_module_header}> 
  <
script type="text/javascript">
<!--
<{
$xoops_js}>
//-->
</script></head>
  <
body
<
a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.jpg" alt="Ideal Handling Logo" border="0" align="bottom" /></a
<
table width="100%" border="0" cellspacing="0" cellpadding="0">
  <
tr
    <
td class="pozdrav"> <div align="left">&nbsp;&nbsp;<{if $xoops_isuser}> <strong>Hello</strong
        <
a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a>&nbsp;<a href="<{$xoops_url}>/user.php">Welcome 
        Back
. </a>&nbsp; <{else}> <a href="<{$xoops_url}>/register.php">Register 
        now
</a> <strong>OR</strong> <{/if}> <span class="right"> <{if $xoops_isuser}> 
        <
a href="<{$xoops_url}>/user.php?op=logout"></a> <{else}> &nbsp;&nbsp;&nbsp;<a href="<{$xoops_url}>/user.php">Login</a
        <{/if}> </
span></div></td>
    <
td width="190" class="pozdrav"><form style="margin-top: 1px; margin-bottom: 0px" action="<{$xoops_url}>/search.php" method="post">
                &
nbsp;&nbsp;<input class="button" type="text" name="query" size="10" />
                <
input type="hidden" name="action" value="results" />
                <
input name="submit" type="submit" class="gumb" value="search" />
              </
form></td>
    <
td width="190" align="right" class="vrijeme"><span id="clock"></span> <script language="JavaScript" type="text/javascript" src="<{$xoops_imageurl}>images/clock.js">
      </
script> &nbsp;</td>
  </
tr>
</
table>
<
tr>          
<
table cellspacing="0" cellpadding="0" width="100%" border="0">
        <
tr align="center"
          <
td width="230" bgcolor="#6B6B6B"></td>
          <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>">HOME</a></td>
          <
td width="1" bgcolor="#d7d7d7"></td>
          <
td id="headmenu"><class="menuHead" href="<{$xoops_url}>/modules/shop/">PRODUCTS</a></td>
          <
td width="1" bgcolor="#d7d7d7"></td>
          <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/news/">NEWS</a></td>
          <
td width="1" bgcolor="#d7d7d7"></td>
          <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/newbb/">FORUM</a></td>
          <
td width="1" bgcolor="#d7d7d7"></td>
          <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/myads/">CLASSIFIED'S</a></td>
          <td width="1" bgcolor="#d7d7d7"></td>
          <td id="headmenu"><a class="menuHead" 
                  href="<{$xoops_url}>/modules/sections/">ARTICLES</a></td>
                  <td width="1" bgcolor="#d7d7d7"></td>
          <td id="headmenu"><a class="menuHead" href="<{$xoops_url}>/modules/archcontact/">CONTACT</a></td>
        </tr>
      </table>
<table border="0" cellpadding="0" cellspacing="0" id="glavna">
  <tr> 
    <td id="leftcolumn"> 
      <!-- Start left blocks loop -->
      <{foreach item=block from=$xoops_lblocks}> <div class="<{cycle values="blockTitle"}>"><{$block.title}></div>
          <div class="blockContent"><{$block.content}></div>
          <img src="<{$xoops_imageurl}>images/160.gif" width="160" height="1" alt="" />
          <{/foreach}> 
      <!-- End left blocks loop -->
    </td>
    <td id="centercolumn"> 
      <!-- Display center blocks if any -->
      <{if $xoops_showcblock == 1}> <table cellspacing="0">
        <tr> 
          <td id="centerCcolumn" colspan="2"> 
            <!-- Start center-center blocks loop -->
                <{foreach item=block from=$xoops_ccblocks}> <table align="center" cellpadding="0" cellspacing="2">
                  <tr> 
                    <td> <div class="blockTitle"><{$block.title}></div>
                      <div class="blockContent"><{$block.content}></div></td>
                  </tr>
                </table>
                <{/foreach}> 
                <!-- End center-center blocks loop -->
          </td>
        </tr>
        <tr> 
          <td id="centerLcolumn"> 
            <!-- Start center-left blocks loop -->
                <{foreach item=block from=$xoops_clblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <tr> 
                    <td> <div class="blockTitle"><{$block.title}></div>
                      <div class="blockContent"><{$block.content}></div></td>
                  </tr>
                </table>
                <{/foreach}> 
                <!-- End center-left blocks loop -->
          </td>
          <td id="centerRcolumn"> 
            <!-- Start center-right blocks loop -->
                <{foreach item=block from=$xoops_crblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <tr> 
                    <td> <div class="blockTitle"><{$block.title}></div>
                      <div class="blockContent"><{$block.content}></div></td>
                  </tr>
                </table>
                <{/foreach}> 
                <!-- End center-right blocks loop -->
          </td>
        </tr>
      </table>
      <{/if}> 
      <!-- End display center blocks -->
      <div id="content"> <{$xoops_contents}> </div></td>
    <{if $xoops_showrblock == 1}> 
    <td id="rightcolumn"> 
      <!-- Start right blocks loop -->
      <{foreach item=block from=$xoops_rblocks}> <div class="<{cycle values="blockTitle,blockTitle"}>"><{$block.title}></div>
          <div class="blockContent"><{$block.content}></div>
          <img src="<{$xoops_imageurl}>images/160.gif" width="160" height="1" alt="" />
          <{/foreach}> 
      <!-- End right blocks loop -->
    </td>
    <{/if}> </tr>
</table>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="dole">
  <tr>
    <td><div class="privatnost">
        <div align="center"><br />
            <!-- Start Custom Links  /  Edit or remove next line -->
            <a href="%3c%7b$xoops_url%7d%3e/modules/news/article.php?storyid=4">License 
            Information</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/news/article.php?storyid=5">Privacy 
            Policy</a>&nbsp;|&nbsp;<a href="%3c%7b$xoops_url%7d%3e/modules/archcontact/">Contact</a><br />
          <br />
          <!-- End Custom Links -->
          <br />
            Copyright © 2004 by Ideal Handling Ltd&nbsp;|&nbsp; 
            <!-- Webmaster, dont remove this text. It denied by license! -->
            <{$xoops_footer}><br />
        </div>
      </div></td>
  </tr>
</table>

<br>
</body>
</html>



237
fredski
Multisite Hack
  • 2004/4/8 13:27

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


On which site do I modify the mainfile.php and the database.php? the main site or the satallite sites? Also what would I do to get the satallite sites to point to the main site database. I'm a bit of a noob to this sort of thing so I always need walking through things.



238
fredski
Re: Wrapping exteral content php into xoops
  • 2004/4/8 8:20

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I know how to get the initial external content page I select to include with
<?php include "website-here";?>
but then all the links contained in the XOOPS page will take me to the main XOOPS site. Is there a way to contain it so the links wont go to the external linked page but will include the linked page within the initial site page. Another possibility maybe would be to have multiple XOOPS sites all sharing the same database, would that work do you think? Problem is I wouldnt know the first thing about putting that in practice. Any help before I lose all my hair would be appreciated.



239
fredski
Re: Wrapping exteral content php into xoops
  • 2004/4/6 8:47

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Ok, what If I didn't want to use XOOPS on my satalite sites, but have XOOPS on my main site. On the satalite sites I would have a different header and then the main site embeded below it. It needs to be embeded as it needs to be crawled by the search engines for that domain. How would I go about that??? Anyone know how???



240
fredski
Wrapping exteral content php into xoops
  • 2004/4/2 12:31

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I have a few websites and would like to combine them using one main site and the others to display the content of the main site. I know I could do this with frames on the other sites but I realy don't like frames. I would like to use XOOPS on all the sites, and need the content to be searchable. is there any module/hack currently available that would do this??




TopTop
« 1 ... 21 22 23 (24) 25 »



Login

Who's Online

186 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 186


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