51
TottoBG
Re: Upgrade from 2.0.7.3 to 2.0.13.2
  • 2005/11/16 21:37

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Unfortunately, you have to go all the long way from 2.0.7.3 to 2.0.13.2. Use the patches just the order they are. Some users here in the forums have confirmed it has worked for them as they have just overwritten the files patch by patch and then update the system module and the other needed modules only on the final step, but it has not been working in all cases I think..



52
TottoBG
Re: Right and Left Side
  • 2005/11/16 21:23

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Have you tried it with the default theme? Cause in my opinion it could only be a theme problem for not showing the right blocks but only left but don't know..



53
TottoBG
Re: Template Generation Problem
  • 2005/11/16 21:10

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


That's it!
Quote:
- 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.

At least the way I understand it. And now lets try to figure out the thing with parameters:
Quote:
1) File: the php file that the block should use to withdraw it's variables

Something like this here. Everything thay needs to be initialized for the block comes from this file.
Quote:
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)

It's just the constant name that the system will use for this block. You have to give it a text name in your module/language/yourlanguage/modinfo.php file, sth like
Quote:
define('_MI_MODULENAME_BLOCKNAME','Title of your block');

i.e. just add such a line there (you'll find similar already defined for the other available blocks). This is the name of the block that will appear in your admin's blocks list.
Quote:
3) Description: Your description about the block enclosed in double quotes

I'm missing where this description comes for, but at least it's just block description
Quote:
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)

I don't think it's optional, cause I find it for every other module's block I look at now. So the .php file we already mentioned in 1) just defines it in itself and it's called so the block to be visualized.
Quote:
5) template: The html file that will generate the block's appearance

OK, so we came with it from the real begining and no questions come here I think .
Quote:
6) options: (not so sure again) Options for the function that was retrieved with "show_func" (-=optional=-)

You can find in some of the other blocks that they has some options for themselves, some values that they use in their visualization. So this field just defines the default options values delimeted by '|' I think.
Quote:
7) edit_func: I don't know what exactly this does but it is optional either way.

Like we had show_func for showing the block here we have edit_func it seems for editing . But I'm not sure the way it is used, have to look around.
Hey, it came long but it's at the end now . Hope we've cleared things for ourselves now. Good luck!



54
TottoBG
Re: Template Generation Problem
  • 2005/11/15 21:29

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Oh, my mistake, sorry. It should be what you've already found althought I haven't tried it. Each block template is connected to the respective block that is using it, so in that lines you've found now the
$modversion['blocks'][i]['template'] = ...

line should be preserving place for the block template.



55
TottoBG
Re: show all members of a groupe
  • 2005/11/15 20:04

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Hey, great hack silver! Thanks a lot! Obligatory, I have to test it, cause I find it really useful.



56
TottoBG
Re: Template Generation Problem
  • 2005/11/15 20:02

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Hi Ploutonakos,
You have to edit the xoops_version.php file that is in your module directory - the one you're adding template to. In that file you'll find some line that are like
$modversion['templates'][i]['file'] = 'xxx.html';
$modversion['templates'][i]['description'] = '';

Add the same two lines to the bottom with next num (i) that is free, i.e. an index number for you template for this module, and the new template name on the place of 'xxx.html'. Then upload xoops_version.php back to the server and go to the administration area of your system to update the module. That is. When you do it all an information that there's some new template will be added to the DB, so when you press 'Generate' next to the new template name after that it will be generated.
Good luck!



57
TottoBG
Re: building a dating website with xoops any mod suggestions ?
  • 2005/11/13 21:20

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Check this:
Friendfinder 3.3



58
TottoBG
Re: Custom block doesn't work in IE
  • 2005/11/13 20:59

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Is it really working in FF? You need a '=' sign after each 'href' property, mean between the property and its value. Like
<a href="http://www.avenue411.com/newsite/modules/news/index.php?storytopic=4">News</a>
And html recognizes only one space when there is in your text. If you need more just use the '&nbsp;' special character.
Good luck!



59
TottoBG
Re: Integrate a Laterooms.com XML feed within Xoops
  • 2005/11/13 20:23

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Maybe it's well-formed xml document but it doesn't fit the standarts - it got no header part as it's needed so it could be a problem. The xhld module recognizes standart rss/atom feeds but not sure if it does with such an xml document as yours.
Not able to help you much. Sorry about that.



60
TottoBG
Re: Unable to edit theme.html
  • 2005/11/13 20:12

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Quote:

rserrano wrote:
I'm having the same problem, I can see my MyTheme^theme.html in the templates_c directory, if I edit it shows is a old compiled template, if I delete it, I get a blank page. Is there a way to force the compilation of MyTheme^theme.html?

I do have the preferences option on: Update module template .html files from themes/your theme/templates directory?

Hey, it's not the file in the templates_c directory what you need to modify. But theme.html that is in your themes/Your theme/ directory. Like for example, /themes/default/theme.html .




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 11 »



Login

Who's Online

258 user(s) are online (185 user(s) are browsing Support Forums)


Members: 0


Guests: 258


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