171
karuna
Re: ShortURLs hack
  • 2004/3/27 10:09

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Quote:

karuna wrote:
Hi

I tried a earlier version of xoops_shorturls.php and loadpage.php(i don't down which version now i use maybe v4 or v5) the problem in the forum seems had been sloved

Best regards


Hmm there is another problem now

The copyright bar wen to go a wrong position.

http://ppfans.com/Snap1.jpg
or here
http://ppfans.com/html/myalbum-viewcat-cid-1.html

172
ullone
Re: ShortURLs hack
  • 2004/3/27 10:18

  • ullone

  • Friend of XOOPS

  • Posts: 49

  • Since: 2003/4/24


kenogui . Pardon my language (i'm italian).
I have tested your hack in my site. It work good but it has a problem with WebLog module.
Archive of WebLog module 1.2 give me an error.
I'm a newbie (i do not understand nothing in php) but i have correct ("BAD, I'M NOT AN EXPERT") it with this system :


.HTACCESS file :


#weblog eulisse Aggiunto 22 marzo 2004
RewriteRule ^modules/weblog/archive-([0-9]+)-([0-9]+)-([0-9]+).html$ modules/weblog/archive.php?year=$1&month=$2&user_id=$3 [L]



-------------------


MODREGEXP.PHP file :



"'(?<!/\/)modules/news/archive.php\"'",
"'(?<!/\/)archive.php\?year=([0-9]*)&month=([0-9]*)&user_id=([0-9]*)'",
"'(?<!/\/)archive.php\?year=([0-9]*)&month=([0-9]*)'",
"'(?<!/\/)modules/wfsection/\"'",


.......
.......
.......
.......
.......


"modules/news/archive.html\"",
"archive-\\1-\\2-\\3.html",
"archive-\\1-\\2.html",
"dossiers.html\"",


-------------

I have insert "'(?<!/\/)archive.php\?year=([0-9]*)&month=([0-9]*)&user_id=([0-9]*)'", and
"archive-\\1-\\2-\\3.html", because otherwise the script redirect bad to the other script.

173
ullone
Re: ShortURLs hack
  • 2004/3/27 10:29

  • ullone

  • Friend of XOOPS

  • Posts: 49

  • Since: 2003/4/24


For the moment i not insert any short module for my future sites. I wait the future versions.

For the rest. ...
Please kenogui and reynaldo collaborate. ... ...

I can not help you because i'm a newbie (and i'm also a "stupid man". ...). ...

But. ...
The script of kenogui work very good (i use Invision Board module) but the script of reynaldo, that is more powerfull, in Root, give me many strange error in my site. ...
I think that if you collaborate for some modification the result will be a great mod_rewrite short url module for all. ...

174
karuna
Re: ShortURLs hack
  • 2004/3/27 14:45

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


here is the debug info.

<!-- request: /m-newbb+viewforum+forum-3-sortname-p.post_time-sortorder-DESC-sortsince-100-start-30.html
-->
<!-- 
Loader Phpself: /loadpage.php-->
<!-- 
Loader Script name: /loadpage.php-->
<!-- 
Loader Script path: -->
<!-- Array
(
    [
0] => /m-newbb+viewforum+forum-3-sortname-p.post_time-sortorder-DESC-sortsince-100-start-30.html
    
[1] => m
    
[2] => newbb
    
[3] => 
)
-->
<!-- Array
(
)
-->
<!-- Array
(
    [
0] => /m-newbb+viewforum+forum-3-sortname-p.post_time-sortorder-DESC-sortsince-100-start-30.html
    
[1] => forum
    
[2] => 3
    
[3] => sortname
    
[4] => p.post_time
    
[5] => sortorder
    
[6] => DESC
    
[7] => sortsince
    
[8] => 100
    
[9] => start
    
[10] => 30
    
[11] => 
    [
12] => 
    [
13] => 
    [
14] => 
    [
15] => 
    [
16] => 
    [
17] => 
    [
18] => 
    [
19] => 
    [
20] => 
)
-->
<!-- 
Setting forum to 3-->
<!-- 
HTTP_GET_VARS[forumset to3-->
<!-- 
GET[forumset to3-->
<!-- 
Setting sortname to p.post_time-->
<!-- 
HTTP_GET_VARS[sortnameset top.post_time-->
<!-- 
GET[sortnameset top.post_time-->
<!-- 
Setting sortorder to DESC-->
<!-- 
HTTP_GET_VARS[sortorderset toDESC-->
<!-- 
GET[sortorderset toDESC-->
<!-- 
Setting sortsince to 100-->
<!-- 
HTTP_GET_VARS[sortsinceset to100-->
<!-- 
GET[sortsinceset to100-->
<!-- 
Setting start to 30-->
<!-- 
HTTP_GET_VARS[startset to30-->
<!-- 
GET[startset to30-->
<!-- 
Checking dir: -m--->
<!-- 
Entering dir: -modules--->
<!-- /
usr/local/www/html/www.ppfans.com/modules-->
<!-- 
Checking dir: -newbb--->
<!-- 
Entering dir: -newbb--->
<!-- /
usr/local/www/html/www.ppfans.com/modules/newbb-->
<!-- 
Checking dir: ---->
<!-- 
Script name: /index.php-->
<!-- 
Request uri: /index.php?forum=3&sortname=p.post_time&sortorder=DESC&sortsince=100&start=30-->
<!-- 
Php_self: /index.php-->
<!-- 
working dir: /usr/local/www/html/www.ppfans.com/modules/newbb-->
<!-- 
Loadingindex.php-->


<!-- Request uri: /index.php?forum=3&sortname=p.post_time&sortorder=DESC&sortsince=100&start=30-->

here should be

<!-- Request uri: /viewforum?forum=3&sortname=p.post_time&sortorder=DESC&sortsince=100&start=30-->

175
reynaldo
Re: ShortURLs hack
  • 2004/4/3 19:44

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:

kenogui wrote:

the parameter #4 " [4] => 539st" is wrong, it should be "539" only.
and we should have a 5th parameters called "st=10".

I think it's a start point for you, I'm currently trying to debug it, but you will be faster than me ....

thanks !


Kenogui:

Thanks a lot for your feedback. If I'm not confused, I think that problem was solved in last version. Try overwriting files with fix #6:
xoops_shorturls.txt6
loadpage.txt6

Let me know if after installing/overwriting with those you still have the same problem and I'll be glad to take a look at it.

About the SID thing, I'll take a look at it, but sometimes the easier way is to fix things right at the source. I have the same problem with my PHP installation adding a PHPSESSID to everything and I recompiled PHP without it and voila!

176
reynaldo
Re: ShortURLs hack
  • 2004/4/3 19:49

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Ullone: (and/or for those who already don't know it)

My hack doesn't work correctly (yet!) with a XOOPS installation inside a dir. As soon as I have time to write the next version, I'll fix/add this feature but for now I can't do anything about it

Sorry about it pal, but right now I'm short of time and can't work on a major version, just minor fixes.

177
reynaldo
Re: ShortURLs hack
  • 2004/4/3 20:55

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Karuna:

are you using the last version of the hack? (fix #6)

I can't reproduce this error at my sites

178
karuna
Re: ShortURLs hack
  • 2004/4/3 21:19

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


thanks

Yes i use v6

does your site's forum have more one page?It's works wrong when one forum have more than one page.

179
reynaldo
Re: ShortURLs hack
  • 2004/4/3 22:32

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Karuna:

I'm glad to say I found and fixed the problem :)

Unlike some of the fixes I had posted lately, this one was related to an error inside the hack and not to a bad coded module/template.

Try downloading this version:

http://www.wtmmail.com/XoopsShortUrls/loadpage.txt7

Remember to edit line 20 of the script if your default module is other than News.

Thanks for your help Karuna.

180
script_fu
Re: ShortURLs hack

Is there an updated zip file with all the needed files in it? Im not sure what to install where. The file above that you point to says its v4?

Can you clarify?

Login

Who's Online

206 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 206


more...

Donat-O-Meter

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

Latest GitHub Commits