1
jimbofoxman
AMS and SmartSection.......GRRRRR

I really like using SmartSection, but the dang spotlight feature doesn't work. After numerous inquiries as to when this feature was going to be added (doesn't work in the latest release...STILL) I gave up and installed AMS 2.41 cause it had a spotlight feature.

Not sure I like AMS either. It doesn't index articles very well at all. I have broken out topics, in this case; United States and Great Britian. I put 2 articles in US and 1 in GBR. When you have more than one, it just puts them right after another, so you can't select US and then select from an index of articles with in the US Topic.

Here is my SITE so you can see what you mean.

This is really starting to bum me out.

WHAT TO DO, WHAT TO DO

2
brash
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 1:44

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Have you tried setting the "Article Display Layout" in AMS preferences to "By Topic". If you want seperate spotlight blocks for each topic using the AMS Spotlight feature, then all you have to do is create a spotlight mini block for each of your topics. Once that is done configure each mini block to "Latest in Topic" and then set the appropriate topic that should be used for that block.

Alternatively to that, have you checked out phppp's articles module? I really think it is one of the most promising for article management with Xoops.
IT Headquarters
Innovative IT Solutions

3
davidl2
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 6:56

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Which version of XOOPS are you using? (I suspect 2.2?)

4
jimbofoxman
Re: AMS and SmartSection.......GRRRRR

Quote:

davidl2 wrote:
Which version of XOOPS are you using? (I suspect 2.2?)


Yeah, sorry............2.2.4 (pretty sure I upgraded from .3)

5
davidl2
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 11:44

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Ah - I think there is an issue with Smartsection and 2.2.x with this feature

You'd best check on http://www.smartfactory.ca - - as a few people have commented about this, so perhaps we can sort some sort of fix?

6
marcan
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 16:37

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Quote:
I really like using SmartSection, but the dang spotlight feature doesn't work.

I investigate the problem and it seems that this is a problem with XOOPS 2.2.x. The way XOOPS 2.2.x saves array options for block has changed since 2.0.x and I could not see a way to save array anymore... This is why it is still not fixed.

Perhaps other people could help us with this ?

CHeers !
.:: marcan (aka mal aka Marc-André) ::.
.:: Open Source :: The SmartFactory ::.
.:: XOOPS Professional Services :: INBOX International ::.

7
Dave_L
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 16:51

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I don't remember how block options were stored in 2.0.x, but in 2.2.4 they're stored as a serialized array.

For example, the block_instance.options column for one of my blocks is:

a:2:{i:0;s:3:"150";i:1;s:1:"5";}

That value, when unserialized, is:

array(0 => '150', 1 => '5');

Does that help?

8
marcan
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 17:12

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Quote:
I don't remember how block options were stored in 2.0.x, but in 2.2.4 they're stored as a serialized array.

I beleive they were stored like this in 2.0.x also. The problem deeper I think. Here is an example. Let's suppose this is the options for a block :

$options = array(=> '150'=> '5');

Let's suppose this block has a third option which is an array. The options array will then look like this :
Quote:
$options = array(0 => '150', 1 => '5', 2, => array(0 => '1', 1 => '2'));

In 2.0.x, I beleive that each option within the $options array was check to know if it was itself an array. If so, then the option was implode and transformed into a string. So the actual $options saved in the database was a serialized version of :
Quote:
$options = array(0 => '150', 1 => '5', 2, => '1, 2');


This does not seems to happen in 2.2.x. If we take the same example, in 2.2.x, the $options saved in the database would be this :
Quote:
$options = array(0 => '150', 1 => '5', 2, => 'array');


Am I explaining myself correctly ? What am I missing ?

Cheers !
.:: marcan (aka mal aka Marc-André) ::.
.:: Open Source :: The SmartFactory ::.
.:: XOOPS Professional Services :: INBOX International ::.

9
Dave_L
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 17:48

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I see what you mean. I didn't know that an individual block option could be an array.

I'd have to spend a lot of time studying the code to see if 2.2.x supports that.

10
marcan
Re: AMS and SmartSection.......GRRRRR
  • 2006/5/30 18:02

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


I understand

Perhaps Skalpa, phpp or Mithrandir could help us on this.

Thanks !
.:: marcan (aka mal aka Marc-André) ::.
.:: Open Source :: The SmartFactory ::.
.:: XOOPS Professional Services :: INBOX International ::.

Login

Who's Online

343 user(s) are online (267 user(s) are browsing Support Forums)


Members: 0


Guests: 343


more...

Donat-O-Meter

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

Latest GitHub Commits