1
Ploutonakos
Re: Problem with template set manager

I can see that this problem is far too old but i recently had the exact same problem with line 93. I 've found the answer in www.xoopscube.jp (i can't speak japanese btw) and it was quite enlightening...:

Replaced:
echo '<li>'.$module->getVar('name').' [<a href="admin.php?fct=tplsets&op=listtpl&tplset='.$tplsetname.'&moddir='.$moddir.'">'._LIST.'</a> (<b>'.$filecount.'</b>)]</li>';


with:

if (is_object($module)) {
echo '<li>'.$module->getVar('name').' [<a href="admin.php?fct=tplsets&op=listtpl&tplset='.$tplsetname.'&moddir='.$moddir.'">'._LIST.'</a> (<b>'.$filecount.'</b>)]</li>';
} else {
echo '<li>unknown ModuleDirname =' . $moddir . '['._LIST.' (<b>'.$filecount.'</b>)]</li>';
}


and the module with the problem is on air!



2
Ploutonakos
Re: Problem with Admin's module section

Still didn't work... I suspect it's kind of problem with some module.



3
Ploutonakos
Problem with Admin's module section

Here is the thing:

Recently my hosting company decided to upgrade the php version on the server, to php5. I am having some problems since then.

Some modules didn't work but i fixed them one by one.
The problem that I couldn't fix is that in modules admin page, after the installed modules it appears nothing.

The last produced code in View Source is:
<table width='100%' border='0' class='outer' cellpadding='4' cellspacing='1'>
<tr align='center'><th>Module</th><th>Version</th><th>Action</th></tr>

which is the header for the modules that are not installed.

The funny thing is that php debug produces no errors at all!

Do you have any idea what can be wrong? I can't install any new module because I can't see the modules that exist in the "Modules" folder.

By the way i use XOOPS 2.0.13.2

Thanks in advance



4
Ploutonakos
Re: 2.0.13.2 -> 2.2.3a final Should I?

I would say NO!
I recently tried to install SmartFAQ 1.1 which should work on 2.2.3 but lots of problems came in my way.
2.0.13.2 is a perfect version... I can't understand why you are looking for trouble...



5
Ploutonakos
Re: Template Generation Problem

Tnx a lot man! I had really missed the modinfo.php file thing. As for the description, it appears in Templates section of system module, where you generate new templates.
C u around...



6
Ploutonakos
Re: problem with fymidgreenx2 theme

Source Code of your site shows that you're using fymidgreenx2 and I can see everything just fine... Menu, Login, Date, Time. I have also checked theme's code and at a first glance seems ok. Have you solved the problem or did you mean something else? ???



7
Ploutonakos
Re: Template Generation Problem

Ok... I searched the whole thing a little bit, so here are my results:
- If you want to make a block template, firstly, you should change the xoopsversion.php of the module you are going to use (if you want a general block use system module)
- Copy the last block section in xoopsversion.php and paste it just below, changing: $modversion['blocks'][i] to $modversion['blocks'][i+1] in each one of the option lines.
- SOme explanations for the parameters (not so sure but if I'm wrong correct me):
1) File: the php file that the block should use to withdraw it's variables
2) Name: _MI_"modulename"_BNAME(i+1) (this is typically the form of the name, i don't know if it's necessary to be like this)
3) Description: Your description about the block enclosed in double quotes
4) show_func: (not tested) I believe this is a function from "File" whose results will be in the block. (i believe this is optional)
5) template: The html file that will generate the block's appearance
6) options: (not so sure again) Options for the function that was retrieved with "show_func" (-=optional=-)
7) edit_func: I don't know what exactly this does but it is optional either way.


Request: Please correct my mistakes in a post so as not to mess things up... Thanks in advance



8
Ploutonakos
Re: Template Generation Problem

Still can't catch up with you...



9
Ploutonakos
Re: Template Generation Problem

You 're talking about templates...
In blocks I assume i have to do something like this:

$modversion['blocks'][i]['file'] = "xxx.php";
$modversion['blocks'][i]['name'] = _MI_"module"_BNAMEz;
$modversion['blocks'][i]['description'] = "desc";
$modversion['blocks'][i]['show_func'] = "????";
$modversion['blocks'][i]['template'] = 'xxx.html';



or something else?



10
Ploutonakos
Template Generation Problem

I make a block template (html file) in system/templates/blocks. Then, I go to template set manager where the new file is highlighted. I press generate and it says: "Selected file does not exist)"
Is there something I do wrong>? Maybe I have to do something else first (like, for example, add some lines of code somewhere?) ? Any help will be appreciated




TopTop
(1) 2 »



Login

Who's Online

236 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 236


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