http://www.xoops.org/
Main Menu
Latest Articles
Popular Articles

Browsing this Thread:   1 Anonymous Users





not realy bugs ...
Just popping in
Joined:
2005/8/1 6:32
Group:
Registered Users
Posts: 7
Level : 1; EXP : 60
HP : 0 / 15
MP : 2 / 878
Offline
Hi,

first let me say: Thank You for the great module :)

I'm testing v1.0RC2 at XOOPS 2.0.13 and noticed that in empty category (no articles) if I select it it displays text: "Articles 1 to 0 of 0".

I also have a question - with smarty debug I found that when I select index page with categories, the value of category.id variable is "1". Is it possible to have this value empty or "0" for index page, have it set to the category when it is selected (this is how it works now) and also have it set to the coresponding category when article is selected (at the moment it is not set in that case).

Sorry for my messy english :)

Stefan

Posted on: 2005/8/2 19:53
Transfer the post to other applications Transfer


Re: not realy bugs ...
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 15425
Offline
Quote:
first let me say: Thank You for the great module :)


Thanks

Quote:
I'm testing v1.0RC2 at XOOPS 2.0.13 and noticed that in empty category (no articles) if I select it it displays text: "Articles 1 to 0 of 0".


It is something I will refine...

Quote:
I also have a question - with smarty debug I found that when I select index page with categories, the value of category.id variable is "1". Is it possible to have this value empty or "0" for index page, have it set to the category when it is selected (this is how it works now) and also have it set to the coresponding category when article is selected (at the moment it is not set in that case).


I'm not sure what you mean - the "category.id" variable in smarty is the ID of the category and changes for each category listed, so is dymanic and can't really be changed for just 1 or 0...

Posted on: 2005/8/2 21:52
_________________
Andy Mills
E-mail: Open in new window
Transfer the post to other applications Transfer


Re: not realy bugs ...
Just popping in
Joined:
2005/8/1 6:32
Group:
Registered Users
Posts: 7
Level : 1; EXP : 60
HP : 0 / 15
MP : 2 / 878
Offline
Hi,
thank you for your reply.

AndyM wrote:

Quote:

I'm not sure what you mean - the "category.id" variable in smarty is the ID of the category and changes for each category listed, so is dymanic and can't really be changed for just 1 or 0...


I didn't explain it very well - sorry. Let's say I have two categories - ID:1 and ID:2 with some articles in each. What I mean is when I'm in index page (no category selected - just "articles" from main menu) to have category.id 0 or don't have any. At the moment it is 1. When I select a category, to have its ID - it is working this way, so no change. When I select article lets say from category 2, to have category.id set to 2 (at the moment there is no such variable when reading article).

And a question I forgot to ask first time. Are there any plans to implement similar tags as [title]...[/title] in wfSection?

Stefan

Posted on: 2005/8/2 22:30
Transfer the post to other applications Transfer


Re: not realy bugs ...
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 15425
Offline
Do you mean that $category.id in the smarty debug black shows "1" on the main index page, with no article or category selected?

If so, that variable there shows the ID of the last category selected from the database, it's not set any other way (or hard coded to "1")...

I'll sleep on it anyway to see if it's any clearer tomorrow.

As for tags like [title][/title], I can't look at wf-sections as it seems they have chosen a function name that clashes with one in my AM-Events module, so it breaks XOOPS.

In any case, extra tags to perform various tasks can be added, but not until version 2 now.

Posted on: 2005/8/2 23:55
_________________
Andy Mills
E-mail: Open in new window
Transfer the post to other applications Transfer


Re: not realy bugs ...
Just popping in
Joined:
2005/8/1 6:32
Group:
Registered Users
Posts: 7
Level : 1; EXP : 60
HP : 0 / 15
MP : 2 / 878
Offline
Hi,

Quote:
Do you mean that $category.id in the smarty debug black shows "1" on the main index page, with no article or category selected?


Yes.

Quote:
If so, that variable there shows the ID of the last category selected from the database, it's not set any other way (or hard coded to "1")...


No, it is not the last selected, but always the first category. If I select a category (lets say ID:4) and then go back to index page it has ID:1

Quote:
As for tags like [title][/title], I can't look at wf-sections as it seems they have chosen a function name that clashes with one in my AM-Events module, so it breaks XOOPS.


It works like [pagebreak] but creates an index page like a table of content where the text in [title] tag is shown as a link to coresponding page (chapter, as [pagebreak] still can be used to break it in smaller parts). This way a big article could be organized as a book for easy browsing.
However, it is not a future I'm missing at the moment, because I have just a few short articles:)

While playing with module I also noticed that if I select empty category, the next buton is active and after selecting it it show "Articles 11 to 0 of 0", "Articles 21 to 0 of 0" and so on.

Stefan

Posted on: 2005/8/3 6:04
Transfer the post to other applications Transfer


Re: not realy bugs ...
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 15425
Offline
Quote:
No, it is not the last selected, but always the first category. If I select a category (lets say ID:4) and then go back to index page it has ID:1


Hmm, I think we're getting our wires crossed somewhere...

Quote:
As for tags like [title][/title], I can't look at wf-sections as it seems they have chosen a function name that clashes with one in my AM-Events module, so it breaks XOOPS.


Quote:
It works like [pagebreak] but creates an index page like a table of content where the text in [title] tag is shown as a link to coresponding page (chapter, as [pagebreak] still can be used to break it in smaller parts). This way a big article could be organized as a book for easy browsing.
However, it is not a future I'm missing at the moment, because I have just a few short articles:)


I believe I know what you mean, it is something I have thought of for v2.

Quote:
While playing with module I also noticed that if I select empty category, the next buton is active and after selecting it it show "Articles 11 to 0 of 0", "Articles 21 to 0 of 0" and so on.


I have fixed this now. If there is only the one page of articles, the pagination links, etc., will not be shown at all.

Posted on: 2005/8/3 19:07
_________________
Andy Mills
E-mail: Open in new window
Transfer the post to other applications Transfer


Re: not realy bugs ...
Just popping in
Joined:
2005/8/1 6:32
Group:
Registered Users
Posts: 7
Level : 1; EXP : 60
HP : 0 / 15
MP : 2 / 878
Offline
Hi,

Quote:
Hmm, I think we're getting our wires crossed somewhere...


sorry I could not explain well what I mean. In my theme.html file I have this code: "<{$xoops_dirname}><{$category.id}>". First part displays module directory name. Second part is related only to articles module.

Now, when I select articles from main menu and go to index page with list of categories and articles it shows "articles1". I plan to use the id to customize the vue depending on the category, but at that stage there is not a category selected so my point is it shuld be only "articles" (or "articles0" if that would be easier).

When I select a category from the list everything is ok - it displays "articles*" with "*" meaning the coresponding number of the category selected.

When I select an article to read it displays only "articles" with no reference for the category where the article is.

Hope it is more clear this time :)

Quote:
I believe I know what you mean, it is something I have thought of for v2.


That's a great news :)))

Stefan

Posted on: 2005/8/3 20:25
Transfer the post to other applications Transfer


Re: not realy bugs ...
Just popping in
Joined:
2005/8/1 6:32
Group:
Registered Users
Posts: 7
Level : 1; EXP : 60
HP : 0 / 15
MP : 2 / 878
Offline
adding this to article.php does most of the job, but I'm not shure if thist is the corect way to do it :)

$article['art_posted_datetime'] = post_date($myrow['art_posted_datetime'], $xoopsModuleConfig['dateformat']); //
//-------------------------CODE
$category = array();
$category['id'] = $myrow['art_cat_id'];//
$xoopsTpl->assign('category', $category);
//-------------------------CODE

Stefan

Posted on: 2005/8/4 9:29
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
Donate!
Please consider donating to help continued development of my XOOPs modules. Read more here.

Search
Advertisements
Copyright © 2001-2009 sirium.net