1
c-edge
AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 8:48

  • c-edge

  • Just popping in

  • Posts: 5

  • Since: 2004/2/12


Hello,

I've installed XOOPS recently, and everything went fine. I'm now trying to create my own theme... And I thought that the easiest way was to modify an existing one.

So I've modified phpkaox with my own colors in the theme.html file and modified also the style.css file. It should have looked great... but instead, a blank page...

I've read all french and english forums I found but I still haven't found what I'm looking for (thx bono...)

So I've tryed just to copy the original phpkaox theme and rename it... after having uploaded it in the theme folder... changed the theme to the new name in the preferences... I had a fantastic BLANK screen...

So does anyone know how to modifiy a theme ?

Hopefully I had phpmyadmin installed to change the theme field to previous state

THANK YOU IN ADVANCE FOR YOUR HELP !!!

2
Herko
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 8:54

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


When you get a blank page, turn on php-debug in the system admin -> preferences -> general settings page, and then return to the page that gives the blank. Then you'll see why it is blank, as the errors that are generated are reported there. So, you can fix the problem

Herko

3
c-edge
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 9:06

  • c-edge

  • Just popping in

  • Posts: 5

  • Since: 2004/2/12


THX for your hyperfast answer !

I receive a "Parse error: parse error, unexpected T_ENDFOREACH in /data/htdocs/web21/templates_c/number1^theme.html on line 74"

So I'm going to investigate...

Anyway, this file is generated by XOOPS, do you know where the bug should be ?


4
philou
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 9:07

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


Have you rename the theme.html ?
just the folder ?

In debug mode what XOOPS said ?

5
c-edge
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 9:15

  • c-edge

  • Just popping in

  • Posts: 5

  • Since: 2004/2/12


The problème seems to be around here :

<!-- Start left blocks loop -->
            <<font color="#CCCCCC">{foreach item=bloc</font>k from=$xoops_lblocks}>
            <table cellspacing="0" cellpadding="2">
              <tr>
                <td class="blockTitle">&nbsp;<?php echo $this->_tpl_vars['block']['title']; ?>
</td>
              </tr>
              <tr>
                <td class="blockContent"><?php echo $this->_tpl_vars['block']['content']; ?>
</td>
              </tr>
            </table>
(this is line 74)-->     <?php endforeach; endif; ?>
            <!-- End left blocks loop -->


any clue ?

6
philou
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 9:18

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


template_c is a cache folder..
you can edit this file and see the in the code what's wrong.
After this you can change you theme.html

7
c-edge
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 9:22

  • c-edge

  • Just popping in

  • Posts: 5

  • Since: 2004/2/12


tu veux dire que je peux modifier ce qui se trouve dans le templates et le copier tel quel une fois que c'est bon dans mon répertoire theme ?

Sorry for the non french speakers... just for a better understanding...

Hello,

j'ai modifier mon fichier number1^theme.html et ça fonctionne maintenant...

niiiiiiiiiiiiiiiiiiickel merci !

8
philou
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 10:20

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


non... il ne faut pas !
il faut rectifier le theme.html dans le repertoire theme.
Comme le dossier template_c est un cache tu perdras les modifs quand le contenu sera actualisé

9
Herko
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 11:03

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


There are a lot of codes here that aren't necessary at all. You use <?php tags that aren't needed, as Smarty is a template engine, and brings your dynamically generated codes to the HTML file. I see <<font and then {foreach , while it should be <font and <{foreach. In other words, this is very buggy code. Just look at a few theme.html files, and you'll see how it can be done best.

oh, and I don't mind other languages, as long as an english translation is provided for us non-french reading folk

Herko

<!-- Start left blocks loop -->
            <<font color="#CCCCCC">{foreach item=bloc</font>k from=$xoops_lblocks}>
            <table cellspacing="0" cellpadding="2">
              <tr>
                <td class="blockTitle">&nbsp;<?php echo $this->_tpl_vars['block']['title']; ?>
</td>
              </tr>
              <tr>
                <td class="blockContent"><?php echo $this->_tpl_vars['block']['content']; ?>
</td>
              </tr>
            </table>
(this is line 74)-->     <?php endforeach; endif; ?>
            <!-- End left blocks loop -->



10
jlm69
Re: AAAAAAaaargh !!! XOOPS drives me crazy !
  • 2004/2/12 11:50

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


another problem would be a typo on line 2 of the code you showed

{foreach item=bloc</font>k from=$xoops_lblocks}>

you placed the </font> in the middle of the word block.

When cutting and pasting you should watch carefully where you place things.

hope that adds to the help.

Login

Who's Online

228 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 228


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