292971
kain
Re: apache and /modules/news
  • 2003/6/6 0:15

  • kain

  • Just popping in

  • Posts: 56

  • Since: 2002/1/9 9


sorry for bumping..
I've tried the php way, but nothing, there are too many class/include to modify and I can't rewrite part of core to do this..
maybe mod_rewrite for apache can work, but I think if we write a rule that points again to document root it will results in an infinite loop (index.php <-> /modules/news/index.php).
I don't want to use frames.. nobody out there have tried to solve this problem?

ps. I use XOOPS 1.3.10



292972
chapi
Re: Main Menu
  • 2003/6/5 20:26

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Why don't you try a liiiiittle bit on your own?!
As mentioned before ...

Quote:

Add the following..
<!-- Add a static menu entry -->
<a class="menuMain" href="{LINK}">{DESCRIPTION}</a>

Wash, Rinse, Repeat...


If you are linking to something, under XOOPS you can do something like the following..
<{$xoops_url}>/modules/cjaycontent/index.php?id=2


Just do what he said and add a link link this
<a class="menuMain" href="<{$xoops_url}>/babstats">My new Link</a>

or this
<a class="menuMain" href="http://suaotwsquad.com/babstats">My new Link</a>

Eventually a target="_self" is required, that the link don't open in a new window.



292973
hsalazar
Re: Some pointers on how to build a theme
  • 2003/6/5 20:24

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


rabideau:

The .js files should be within the HEAD tags, and the javascript call goes at the end of the file, just before the closing BODY tag.

I've modified the look of my site so I don't have the horizontal menu anymore (now I have four vertical menus on the left side), but I'll share here the file theme.html I used to have. It'll be useful if you want to see the syntax for using Tigra Menu, but also to take a look at a page built mostly using DIV tags.

Here's the code, with the comments translated:

<!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="en" lang="en">
<
head>
    <
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
    <
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
    <
meta name="robots" content="<{$meta_robots}>" />
    <
meta name="keywords" content="<{$meta_keywords}>" />
    <
meta name="description" content="<{$meta_description}>" />
    <
meta name="rating" content="<{$meta_rating}>" />
    <
meta name="author" content="<{$meta_author}>" />
    <
meta name="copyright" content="<{$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}>" />

    <
script language="JavaScript" src="<{$xoops_url}>/include/menu.js"></script>
    <
script language="JavaScript" src="<{$xoops_url}>/include/menu_items.js"></script>
    <
script language="JavaScript" src="<{$xoops_url}>/include/menu_tpl.js"></script>

    <
script type="text/javascript">
    <!--
    <{
$xoops_js}>

    function 
goToURL(page) { top.location page }

    
//-->
    
</script>


</
head>

<!-- 
Header -->
<
body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<
div id="logo">
    <
a href="<{$xoops_url}>">
        <
img src="<{$xoops_imageurl}>logo.gif" width="150" height="80" border="0">
    </
a>
    </
div>

<
div id="banner"><{$xoops_banner}></div>

<
div id="barra-superior-clara">
    <
div style="float:left; width: 10px; height: 20px;"><img src="<{$xoops_imageurl}>ulc.gif" width="10" height="20" border="0"></div>
    <
div style="float:right; width: 10px; height: 20px;"><img src="<{$xoops_imageurl}>urc.gif" width="10" height="20" border="0"></div>
</
div>
<
div class="boxclear"> </div>

<
div id="barra-superior-oscura"> <!-- This is the bar that holds the login and the search form -->

<{if !
$xoops_isuser}>
<!-- If 
NOT an useryou see login formno search -->
<
div align="left">
<
form action="<{$xoops_url}>/user.php" method="post">
    <
span class="navtextwht"User: </span
    <
input type="text" name="uname"  size="15" maxlength="20" class="formTextBox" />
    <
span class="navtextwht"Password: </span 
    <
input type="password" name="pass"  size="15" maxlength="20" class="formTextBox" />
    <
input type="hidden" name="op" value="login" />
    <
input name="btnEntrar" type="submit" id="btnEntrar" class="formButton" value="Enter" />
    <
input name="btnRregistrarme" type="button" id="btnRregistrarme" class="formButton" value="Registrarme" onClick="goToURL('http://www.puntoflotante.com/register.php')"/>
</
form>
</
div>

<!-- If 
USERdisplay the search form -->
<{else}>
<
div align="right">
    <
form action="<{$xoops_url}>/search.php" method="post">
    <
input type="text" name="query" class="formTextBox" />
    <
input type="hidden" name="action" value="results" />
    <
input name="btnBuscar" type="button" id="btnBuscar" class="formButton" value="Search" />&nbsp
    </
form>
</
div>

<{/if}>

</
div>

<
div id="envoltura">
<
div id="bloque-izq">
<
div class="leftcolumn"
    <!-- 
Start left blocks loop -->
    <{foreach 
item=block from=$xoops_lblocks}>
    <{include 
file="pf/theme_blockleft.html"}>
    <{/foreach}>
    <!-- 
End left blocks loop -->
</
div>
</
div>

<
div id="bloque-der">
<
div id="content">

<!-- 
Main table -->
<
table width="590" border="0" valign="top" cellspacing="6" cellpadding="0">
<
tr valign="top">

<!-- If 
there's no right column, display only this column -->
<td valign="top" class="contentbox">

<!-- Begin center display showing those blocks defined as center-center -->
<table width="100%" cellpadding="0" cellspacing="0" align="center">
    <tr> 
        <td class="centercolumn" valign="top">
        <div class="centercolumn"> 
            <!-- Start center-center blocks loop -->
            <{foreach item=block from=$xoops_ccblocks}>
                <{include file="pf/theme_blockcenter_c.html"}>
                <div class="box5"></div>
            <{/foreach}>
            <!-- End center-center blocks loop -->
        </div>
        </td>
    </tr>
</table>

<!-- Begin showing full-width center content -->
<table width="100%" cellpadding="0" cellspacing="0" align="center">
    <tr> 
        <td class="centercolumn" valign="top">
            <div class="content"> 
                <{$xoops_contents}>
            </div>
        </td>
    </tr>
</table>


<!-- And last, show the half-width center blocks, if any -->
<{if $xoops_showcblock == 1}>

<!-- This table holds the half-width center blocks -->
<table width="100%" cellpadding="0" cellspacing="0" align="center">
    <tr> 

        <!-- Center-left column -->
        <td class="centerLcolumn" valign="top"> 
            <div class="centerLcolumn"> 
            <!-- Start center-left blocks loop -->
                <{foreach item=block from=$xoops_clblocks}>
                    <{include file="pf/theme_blockcenter_l.html"}>
                <{/foreach}>
             <!-- End center-left blocks loop -->
            </div>
        </td>

        <!-- Center-right column -->
        <td class="centerRcolumn" valign="top"> 
        <div class="centerRcolumn"> 
            <!-- Start center-right blocks loop -->
            <{foreach item=block from=$xoops_crblocks}>
                <{include file="pf/theme_blockcenter_r.html"}>
            <{/foreach}>
            <!-- End center-right blocks loop -->
        </div>
        </td>
    </tr>
</table>
<{/if}>
<!-- Ends display of half-width center blocks -->
</td>

<!-- If there is a right column, we need to add a 10px wide column -->
<{if $xoops_showrblock == 1}>

<!-- This is the column -->
<!-- Taken out to use margins...
<td width="10">
</td>
-->

<!-- This is the actual right column -->
<td width="150" valign="top" align="right" class="rightcolumn">
<div class="rightcolumn"> 
    <!-- Start right blocks loop -->
    <{foreach item=block from=$xoops_rblocks}>
        <{include file="pf/theme_blockright.html"}><br />
    <{/foreach}>
    <!-- End right blocks loop -->
</div>
</td>

<!-- If there'
s no right content definedthere's no extra column -->
<{else}>
<{/if}>
</tr>
</table>
</div>

<div id="barra-inferior-oscura"><p> </p>
</div>

<div id="barra-inferior-clara">
    <span class="izq">
        <span class="copyright"><{$xoops_footer}></span>
    </span>
    <span class="der">
        <span class="copyright"><a href="http://www.puntoflotante.com/modules/impressum">¿Cómo se hace Punto flotante?</a></span>
    </span>
</div>
<div class="boxclear"> </div>
</div>
</div>
<script language="JavaScript">
    <!--
    new menu (MENU_ITEMS, MENU_POS);
    //-->
<!-- </script>

</body>
</html>


As you can see, I uploaded the .js files into the /includes directory. And of course, you still need to change the links and images to use your own.

I hope this is useful to you. I there's anything else you might want to ask, please do so.

Happy Xoopsing!



292974
jad2000
Re: Main Menu
  • 2003/6/5 20:02

  • jad2000

  • Just popping in

  • Posts: 16

  • Since: 2003/4/12


Yo I need help w/ the question above.



292975
rabideau
Re: Some pointers on how to build a theme
  • 2003/6/5 19:41

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Hello Horatio,

I downloaded some of the items you suggested from tigra. I built a set of menu items I'd like to add to my site (banner at the top). I've dug around the various XOOPS files looking for where I should place the new js... and succeeded in getting lost

Can you provide some pointers as to where I might look? I'd love to incorporate these on the site... but for now, I don't know where they should go.

Thank you in advance.



292976
rabideau
Re: Some pointers on how to build a theme
  • 2003/6/5 13:57

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


As always your insights are exceptional. Thank you for the useful advice

Along the lines of editting html, php files, I have a great deal of difficulty (probably because I'm old... ) visualizing my work (the hand code, view, edit process is difficult for me--). Are there any tools that are available to assist with this problem (which is especially problematic with themes)?

In the past, I have used tools like Dreamweaver, FrontPage, etc. to make the work more WYSIWG oriented. I have even stooped to trying that with some of my php/html efforts-- with only limited success.



292977
onokazu
Re: XOOPS and ODBC
  • 2003/6/5 9:30

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Sounds very interesting..it's now available for download on this site here.



292978
all41
XOOPS and ODBC
  • 2003/6/5 8:10

  • all41

  • Just popping in

  • Posts: 2

  • Since: 2003/6/5 7


Hi! I have finally made something for Open Source community.
This file is ODBC layer for XOOPS - PHP Content Management System.
Installing it You can Use XOOPS with almost any database (supporting ODBC).
There are still some problems especially when CREATING TABLES but this layer will
let you connect to a "existing" database via ODBC.

Soon You will be able to download it from www.xoops.org.(I hope)

Please test it and tell me if it can be used.
----------------------
All41
roznicki@o2.pl



292979
kirk999
Re: Xoops Hosting Forum Launched
  • 2003/6/5 4:34

  • kirk999

  • Just popping in

  • Posts: 1

  • Since: 2003/6/5 4


I am a relative newbie with xoops, so take my comments as such. I just set up a site withhttp://www.mediatemple.net/
They have php and mysql. XOOPS uploaded and installed without problem. I don't know if you were looking for hosts that actively support XOOPS or not (I don't believe mediatemple does). However, they have a reputation in the Flash world for good servers for dynamic content.



292980
jtrag
List Links In Alphabetical Order???
  • 2003/6/4 23:38

  • jtrag

  • Just popping in

  • Posts: 1

  • Since: 2003/6/4 1


Is there a way I can get the links module to list the links in alphabetical order? I don't like the way it lists them by "last modified". I basically want all the links in the links section to be put in alphabetical order automatically. Thanks in advance for any help!
If you want to visit my site it is: AutomotiveMechanic.net







Login

Who's Online

152 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

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

Latest GitHub Commits