to previous topic Print topic to next topic

 Root :: Developments :: Others :: Short URL and Projects
 Moderated by:
 
  Bottom  Short URL and Projects
shoplinks Posted: 30.06.2005, 23:00
Noob
Noob


registered: Jun 28, 2005
Posts: 2

Status:  offline
last visit: 01.07.05
Hi.
I noticed that you are using MagicXīs module projects on your site as we are in ours.
Iv'e been playing with short urlīs and came across a problem.
We cannīt see the progressbar in our block.
Comparing your link to the gd-process that controls the imagemaking.
Your looks like
Code
  1. module-projects-progress_gd-width-140-done-40-total-100.html

and our looks like
Code
  1. mod-projects-progress_gd-width-140-done-5--total.html

I noticed the diferens but don't understand why.
We are using dev-postnuke.com's short url mod and I asume that the project module falls under same general rules there.
Code
  1. # 24: General rules for modules with index.php?module=...
  2. RewriteRule ^mod-([a-zA-Z0-9_+]+)\.html$ index.php?module= [L]
  3. RewriteRule ^mod-([^-]+)-([^-]+)\.html$ index.php?module=&func= [L]
  4. RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&= [L]
  5. RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&= [L]
  6. RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&=&= [L]
  7. RewriteRule ^mod-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&=&=&= [L]
  8.  

Now we wonder what you have done to successfully bring fram the gd-function in that block.
Top  shoplinks send PM Homepage
 
Chestnut Posted: 01.07.2005, 00:03
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
mmm I don't remember doing anything special aside maybe bugfixes on my version... I'm using the rewrite rules from the xanthia pndocs folder (include the shorturls rewrite from the Xanthia's plugins folder)...

Here goes mine :

Code
  1. RewriteRule ^module-([^-]+)\.html$ index.php?module=&func=main [L,NC,NS]
  2. RewriteRule ^module-([^-]+)-([^-]+)\.html$ index.php?module=&func= [L,NC,NS]
  3. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&= [L,NC,NS]
  4. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&= [L,NC,NS]
  5. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&=&= [L,NC,NS]
  6. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&=&=&= [L,NC,NS]
  7.  


The problem might be in the other file, for me it's the ouputfilter.shorturls.php, might be different on yours.

Code
  1. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)"|',
  2. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
  3. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=main"|',
  4. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=main[#]([\w\d]*)"|',
  5. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)"|',
  6. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
  7. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',
  8. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
  9. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',
  10. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
  11. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',
  12. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"[#]([\w\d]*)|',
  13. $prefix . 'index.php\?module=([\w\d\.\:\_\/]+)&(?:amp;)?func=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',


GD can be a real pain sometimes... working sometimes on some browsers at home and not working on the same browser at work... I'll get rid of it soon anyway. icon_lol

Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Chestnut Posted: 01.07.2005, 00:07
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
Also check in the block file i-lastxprojects.php if this line is the same :

Code
  1. $progress_image = "<img src=\"index.php?module=projects&amp;func=progress_gd&amp;width=140&amp;done=". $progress . "&amp;total=100\" alt=\"\" />";


Your line apparently lacks the total while mine has it. In my block file, the 100 is hardcoded... might be me but I don't have the original anymore to compare.

Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
shoplinks Posted: 02.07.2005, 12:33
Noob
Noob


registered: Jun 28, 2005
Posts: 2

Status:  offline
last visit: 01.07.05
Thanks for the reply.
Might have to take a look at xanthia then.
Top  shoplinks send PM Homepage
 



Powered by pnForum Version 2.0.1
DarkMindZ