Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > Support (1.77) > 2 Custompages with pid=2 & other page with pid=20 not working > Post Reply


Post Reply
Icon:
Message:



[More smilies...]
Bold   Italic   Underline   Code   Email   Quote   Url   Image   
Rights

HTML is Off
Smilies are On
BB Code is On
[img] Code is On

Disable smileys?
Use signature?
Turn BBCode off?
Receive email notification of new replies?

Topic Review


posted on 3/15/2006 at 03:41 PM

Thanks Shawn, it worked out perfect.

Also your shorter form you didn't tested worked perfect.




posted on 3/14/2006 at 08:07 PM

If you were to have a custom page for pid=2 and another for pid=20, it would all work fine, but since you're wanting to use some regular expressions, they need to be like this to match correctly:

pid=(1|2|3|4|5|6|7|18|19)$
pid=(8|9|10|11|12|13|14|15|16|17)$
pid=(20|21|22|23|24)$

Normally, pid=1 would also match pid=10 and pid=2 would match pid=20 because pid=1 is contained within pid=10 and pid=2 is in pid=20, right. But I put in some logic in AutoTheme so that if someone created custom page pid=2 and another pid=20 and they called the page with pid=20 it would match the one with the most characters, which is pid=20 and that is correct.

But you are using regular expressions that need to have some other logic because your first one that has the 2 has more characters than the third one that has the 20. So AutoTheme matches the options that have the most characters. Making sense?

So what I've done in your example is add the $ which represents the end of the line, so the first one will not match pid=20 only pid=2 because 2 is the last character.

-Shawn

I didn't test, but these should also work and are shorter if you have many consecutive numbers:

pid=([1-7]|18|19)$
// 1 thru 7 or 18 or 19

pid=([8-9]|1[0-7])$
// 8 thru 9 or a 1 followed by 0 thru 7 (10-17)

pid=(2[0-4])$
// a 2 followed by 0 thru 4 (20-24)

[Edited on 3/14/2006 by Shawn]




posted on 3/14/2006 at 05:16 PM

It seems that the Custom Pages with Autoblock and the module htmlpages have his little problem.

I have 3 Custom Pages with 3 Autoblocks

1. Custom Page is htmlpages pid=1|2|3|4|5|6|7|18|19 with Autoblock 3

2. Custom Page is htmlpages pid=8|9|10|11|12|13|14|15|16|17 with Autoblock 4

3. Custom Page is htmlpages pid=20|21|22|23|24 with Autoblock 5


to 1. Custom Page, when I click the link for pid=19 it will display but with Autoblock 4 from the 2. Custom Page

to 3. Custom Page with Autoblock 5, any link for pid=20 to 24 will display but instead of Autoblock 5 it will be Autoblock 3 displayed.

Any Ideas how to fix this problem?




posted on 3/11/2006 at 07:34 PM

It's not working.

Now I even don't get the Autoblock with the link for pid=22 to work at all. Even if I remove the custom module for pid=2




posted on 3/11/2006 at 06:09 PM

Yes, I tested with 1 and 10 and it worked fine. Try pid=2$

-Shawn




posted on 3/11/2006 at 05:34 PM

Ok, what I don't get is, that the custom modules and autoblock only are reacting by the 2 and the 20st like this.

If this is like this they also should react by 1 and 10 the same way, but there is everything just fine.


I played a little bit around I figured out that it happend will all 20st id's. not only 20, also 21, or 22.

Please could you give me an idea where to look, so I can try to figure it out by myself?

[Edited on 11/3/2006 by mazsalleh]




posted on 3/9/2006 at 11:27 PM

Yes, that's what I thought I fixed. I'll check it.

-Shawn




posted on 3/9/2006 at 11:51 AM

actualy the pid=2 or 20 don't have a & behind it. It seems more that the custom page is going with the first value 2 and forget about the 0 behind it. or 0 don't have a value for it.




posted on 3/9/2006 at 12:13 AM

Thought I had fixed this, but if the URLs have a & after the pid=2, pid=20 etc, then try adding the & in the custom page options (pid=2&

Let me know...

Thanks!
-Shawn




Icon depicting mood of post posted on 3/8/2006 at 05:05 PM

I have 2 different custom pages for displaying my htmlpages.

1 custom page is for pid=1|2|3|4 etc.

the other one for pid=20|21|24

I created 2 different menublocks for it. But always when I click the link for pid=20 I get the menu block where the pid=2 is located, while the Menu Block for pid=20 is missing.

When I delete the custom page for pid=2, the custom page and menu block for pid=20 will show properly.

Since I need this 2 custom pages I need a fix for it. Or should I always change the pid in the database to one more when I reach pid 30 / 40 / 50 etc?



Main Menu

Get AutoTheme

Featured Item

Smooth
Smooth
$19.95

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 175

Powered by the AutoTheme HTML Theme System
Page created in 0.097320 Seconds