211
shivaji
Re: Working on new version
  • 2004/5/31 10:24

  • shivaji

  • Friend of XOOPS

  • Posts: 179

  • Since: 2003/9/18


Hi Carnuke/Reynaldo:

Thanks for the excellent work !

In my opinion, v.04 was created keeping in mind for all modules, not a throwaway features. Just think like this what will happen if few of our module/pages will show .html and other modules which were not hacked will show the standard .php urls. Even phpnuke and postnuke short urls hack created using standard modules and I can tell you, many people do not use such a hack (including me) because we are using opensource for various module contribution from developers and should not restrict to few core modules. Soon you make this hack module specific, you will start getting fload of request for user specific module short urls hack. Integrity will loose. XOOPS need to be something special then rest :)

Reynaldo, please think over it again before making a new version. Many people use module apart from few standard one line mylinks, news etc.

I run v4.0 in two of my site and run perfectly well. only thing its require little more time to make the short look really short and something meaningfull.

http://www.domain.com/m-xdirectory+index+.html
http://www.domain.com/m-news+index+.html
http://www.domain.com/modules/PP-News/index.php
http://www.domain.com/m-contact+index+.html
http://www.domain.com/search.php

I think this is the high time when module developer have to follow some convention keeping in mind short url hack by Reynaldo

Regards,
Shivaji.

212
reynaldo
Re: Working on new version
  • 2004/5/31 18:06

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Shivaji:

Thanks for your suggestions.

What we (Carnuke and me) meant by "module selective" is that you would be able to turn off the hack for some modules if they don't work properly well, but the hack will still "dynamically" support every module.

As Carnuke said, not everybody follows the guidelines when programming modules and sometimes not even for something so simple as designing a template.

This would make supporting modules easier and less time critical. For example, if Mr.XYZ releases a module tomorrow called IncrediModule and for some reason it does not work fine with hack, you would just turn off support for that module and everyone would be happy.

I still don't know if this would prevent all errors from happening as a "Rewritten" module would still link to a non-compliant module using Rewritten urls... for example, News module would link to IncrediModule as:
http://www.yoursite.com/m-IncrediModule+index+.html

I'll see how it goes after I put together a few more lines of code

213
reynaldo
Problems with www.
  • 2004/5/31 19:44

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Hi:

For those of you who had problems with this hack when calling your domain from http://domain.com if XOOPS is installed at http://www.domain.com there is a patch released by XOOPS Developers.

As I said before, this error was not caused by my hack even when it jumped out right after using it.

The url with the instructions is at:
http://sourceforge.net/tracker/index.php?func=detail&aid=898776&group_id=41586&atid=430842

Even if you are not using my ShortUrls hack you should apply this patch to avoid getting a blank page or a "module not found error" if you try to access your site with a subdomain other than the one specified at XOOPS Installation.

214
script_fu
Re: Problems with www.

I have checked some of the posters websites here in this thread that are running short url's. Some of the sites display the same error in the news section at the end of each story. The print image is broken? Meaning that it's not there... Why is this and how can it be fixed?

215
reynaldo
Re: Problems with www.
  • 2004/6/5 0:34

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:

script_fu wrote:
I have checked some of the posters websites here in this thread that are running short url's. Some of the sites display the same error in the news section at the end of each story. The print image is broken? Meaning that it's not there... Why is this and how can it be fixed?


Script_Fu:
Most of the time that is caused because some templates don't follow html standards and the script/hack can't detect the image to replace its link correctly.

I've tried to fix those problems as soon as I find them (or someone reports them), but you would be surprised how many modules and templates out there violate HTML standars and even XOOPS module design rules.

You can check my test site http://www.wtmmail.com and you would see the hack works fine with News Module and the template I'm using.

216
Stewdio
Re: Problems with www.
  • 2004/6/5 0:37

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1



reynaldo wrote:
Quote:


you would be surprised how many modules and templates out there violate HTML standars and even XOOPS module design rules.


No I wouldn't ;)

217
script_fu
Template problem with news print grafic...

Okay.... so now I know its in my themplate... Which file do I edit to fix the grafic? Is it in system or news? I've looked all through them to no avail...

Or which themplate do you use? So I can switch to that one instead...

I really need to fix that grafic its going to drive me nuts...lol

218
script_fu
Re: Template problem with news print grafic...

Okay I found it...
---------------------------------
news_archive.html
---------------------------------






<{foreach item=year from=$years}>
<{foreach item=month from=$year.months}>





<{/foreach}>
<{/foreach}>

<{$lang_newsarchives}>
<{$month.string}> <{$year.number}>


<{if $show_articles == true}>






<{foreach item=story from=$stories}>

">



<{/foreach}>

<{$lang_articles}><{$lang_actions}><{$lang_views}><{$lang_date}>
<{$story.title}><{$lang_printer}> <{$lang_sendstory}><{$story.counter}><{$story.date}>



<{$lang_storytotal}>


<{/if}>


Looks okay to me... it pulls the friend.gif
but not the print.gif ???

219
reynaldo
Re: Template problem with news print grafic...
  • 2004/6/5 2:18

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


SCript_fu:

Let me see the url to your site and I would take a look as soon as possible.


220
script_fu
Re: Template problem with news print grafic...

Ty
http://www.mrpart.com

You url's rock....

Login

Who's Online

191 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 191


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