xoops forums

shivaji

Friend of XOOPS
Posted on: 2004/5/31 10:24
shivaji
shivaji (Show more)
Friend of XOOPS
Posts: 179
Since: 2003/9/18
#211

Re: Working on new version

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.

reynaldo

Not too shy to talk
Posted on: 2004/5/31 18:06
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#212

Re: Working on new version

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

reynaldo

Not too shy to talk
Posted on: 2004/5/31 19:44
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#213

Problems with www.

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. ... roup_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.

script_fu

Friend of XOOPS
Posted on: 2004/6/4 23:39
script_fu
script_fu (Show more)
Friend of XOOPS
Posts: 1494
Since: 2002/12/27
#214

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?

reynaldo

Not too shy to talk
Posted on: 2004/6/5 0:34
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#215

Re: Problems with www.

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.

Stewdio

Community Support Member
Posted on: 2004/6/5 0:37
Stewdio
Stewdio (Show more)
Community Support Member
Posts: 1560
Since: 2003/5/7 1
#216

Re: Problems with www.


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 ;)

script_fu

Friend of XOOPS
Posted on: 2004/6/5 1:06
script_fu
script_fu (Show more)
Friend of XOOPS
Posts: 1494
Since: 2002/12/27
#217

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

script_fu

Friend of XOOPS
Posted on: 2004/6/5 1:15
script_fu
script_fu (Show more)
Friend of XOOPS
Posts: 1494
Since: 2002/12/27
#218

Re: Template problem with news print grafic...

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

<table>
<tr>
<th><{$lang_newsarchives}></th>
</tr>

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

<tr class="even">
<td><a href="./archive.php?year=<{$year.number}>&month=<{$month.number}>"><{$month.string}> <{$year.number}></a></td>
</tr>

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

</table>

<{if $show_articles == true}>

<table>
<tr>
<th><{$lang_articles}></th><th align="center"><{$lang_actions}></th><th align="center"><{$lang_views}></th><th align="center"><{$lang_date}></th>
</tr>

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

<tr class="<{cycle values="even, odd"}>">
<td><{$story.title}></td><td align="center"><a href="<{$story.print_link}>"><img src="images/print.gif" alt="<{$lang_printer}>" /></a> <a href="<{$story.mail_link}>" target="_top" /><img src="images/friend.gif" alt="<{$lang_sendstory}>" /></td><td align="center"><{$story.counter}></td><td align="center"><{$story.date}></td>
</tr>

<{/foreach}>

</table>

<div>
<{$lang_storytotal}>
</div>

<{/if}>


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

reynaldo

Not too shy to talk
Posted on: 2004/6/5 2:18
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#219

Re: Template problem with news print grafic...

SCript_fu:

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

script_fu

Friend of XOOPS
Posted on: 2004/6/5 2:29
script_fu
script_fu (Show more)
Friend of XOOPS
Posts: 1494
Since: 2002/12/27
#220

Re: Template problem with news print grafic...

Ty
www.mrpart.com

You url's rock....