xoops forums

Northern

Just can't stay away
Posted on: 2007/3/7 7:24
Northern
Northern (Show more)
Just can't stay away
Posts: 420
Since: 2004/12/26
#81

Re: Simplified URLs Hack

Ive tryed a few times.
SIMPLIFIED URLs FOR XOOPS 1.5
Xoops 2.0.16

All i get is a blank page.

the brouser shows in in the site, but i have no page content.

I had it working on the site prior to the update to 2.0.16.
any one else having this problem?

I can get Reynaldo's short url to work. but its not what im looking for.

BeeGirl033

Just popping in
Posted on: 2007/4/6 10:42
BeeGirl033
BeeGirl033 (Show more)
Just popping in
Posts: 4
Since: 2007/4/6 1
#82

Re: Simplified URLs Hack

IS there any other way?

Thanks guys.

MasterYoda

Just popping in
Posted on: 2007/9/8 5:23
MasterYoda
MasterYoda (Show more)
Just popping in
Posts: 4
Since: 2004/12/5
#83

Re: Simplified URLs Hack

Tested and working with 2.0.17

NavyCS

Just popping in
Posted on: 2007/10/3 22:26
NavyCS
NavyCS (Show more)
Just popping in
Posts: 12
Since: 2007/9/21
#84

Re: Simplified URLs Hack

How hard would it be to draw out the $xoops_pagetitle to create the file name in the url?

Like /modules/newbb/freshwater(forum)/caught-big-fish-today(topic).html

1000ac

Just popping in
Posted on: 2007/11/6 0:14
1000ac
1000ac (Show more)
Just popping in
Posts: 74
Since: 2005/9/14
#85

Re: Simplified URLs Hack

Quote:

NavyCS wrote:
How hard would it be to draw out the $xoops_pagetitle to create the file name in the url?

Like /modules/newbb/freshwater(forum)/caught-big-fish-today(topic).html


There is a hack for that... if you can get it to work
https://xoops.org/modules/newbb/viewto ... t&topic_id=61568&forum=15

vimana

Just popping in
Posted on: 2007/12/19 19:06
vimana
vimana (Show more)
Just popping in
Posts: 20
Since: 2005/1/26
#86

Re: Simplified URLs Hack with title in url

Sorry for my english

I noticed that with XOOPS if i change an url adding at the end &some_word, the link works anyway

for example
scrivere questo indirizzo:
writing:
http://www.beverfood.com/v2/modules/wordbook/entry.php?entryID=293

It's the same of

http://www.beverfood.com/v2/modules/w ... NIMAMENTE%20MINERALIZZATA


or using semplified url

http://www.beverfood.com/v2/wordbook+entry.entryID+293.htm

It'
s the same of

http
://www.beverfood.com/v2/wordbook+entry.entryID+293+ACQUA+MINIMAMENTE+MINERALIZZATA.htm


So i changed some templates of some modules adding at the link of an entry &<{$link.title}> for have the title in url too

here some examples:
hack of xdirectory based on the module mylinks:
I have chenged link.html templates
from:
 <
a href="<{$xoops_url}>/modules/adirectory/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"/><{$link.title}></a>
to:
<
a href="<{$xoops_url}>/modules/adirectory/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>&<{$link.title}>"/><{$link.title}></a>


I've just added &<{$link.title}> at the end of the link url:
you can see it here:
http://www.beverfood.com/v2/adirectory+viewcat.cid+177.htm
click over any link
example:
http://www.beverfood.com/v2/modules/a ... &lid=13565&COBIT%20ITALIA


The same thing here:
http://www.beverfood.com/v2/wordbook+category.categoryID+5.htm

wordbook module (example http://www.beverfood.com/v2/modules/w ... tryID=170&ACIDO%20CITRICO )

templates wb_category.html

from:
<
a href="<{$xoops_url}>/modules/<{$eachentry.dir}>/entry.php?entryID=<{$eachentry.id}> "><{$eachentry.term}></a>
to:

<
a href="<{$xoops_url}>/modules/<{$eachentry.dir}>/entry.php?entryID=<{$eachentry.id}>&<{$eachentry.term}>"><{$eachentry.term}></a>


I've just added &<{$eachentry.term}> (Term title) at the end of the entry's link

Now i have the title in the url but i'm using simplified url hack and it doesn't work:

for example i want to chenge:
http://www.beverfood.com/v2/modules/w ... tryID=170&ACIDO%20CITRICO

to
http://www.beverfood.com/v2/wordbook+ ... yID+170+ACIDO+CITRICO.htm

I'm not a php programmer so......
Are there any chances to change simplified_url.php for have + intead of %20?

Sorry for my english
Thanks in advice

roxanacaz

Just popping in
Posted on: 2008/2/15 11:40
roxanacaz
roxanacaz (Show more)
Just popping in
Posts: 3
Since: 2008/2/15
#87

Re: Simplified URLs Hack

Hi.
I've installed Simplified urls on XOOPS 2.0.16 and it doesn't work - it just doesn't show the new urls - everything looks ok, but with the usual old urls.
I've searched the forums, I've searched with Google and couldn't find an answer. I found that other XOOPS 2.0.16 sites are ok with simplified urls. What else coult it be?

I'm sure I followed the instructions corectly - the 2 files in root dir, correct settings in one of them, the code for htacces and the line in mainfile.

What am I missing? It doesn't work with any of the modules, no modules are excluded... What's wrong? Thank you!

Well, I checked again and saw that the line include "simplified_url.php"; for mainfile.php doesn't add. I added it for sure and it doesn't appear. I tried again and again and it doesn't want to stay there. :) Actaully I get this error when saving the file: [a fatal error or timeout occurred while processing this directive]

I guess if I solve this problem, simplified urls will work.

I'm editing again... I hope someone will find this useful.
It seems the mainfile.php didn't let me modify it due to the permissions. It was 444 so I modified it to 644, added the line and then put it back to 444. That's it and it's working!

Yurdal

Friend of XOOPS
Posted on: 2008/2/15 15:23
Yurdal
Yurdal (Show more)
Friend of XOOPS
Posts: 372
Since: 2005/3/27
#88

Re: Simplified URLs Hack

@roxanacaz
what kind of hosting you have? it seems te be a windows hosting, teh instructions are for a linux/apache hosting, maybe this is the reason

carrierlp

Just popping in
Posted on: 2008/3/3 6:18
carrierlp
carrierlp (Show more)
Just popping in
Posts: 11
Since: 2007/5/14
#89

Re: Simplified URLs Hack

Ive been using this module for the longest time, but after updating to a new version of xoops, and moving to a new server, it stopped working... can anyone assist me?

carrierlp

Just popping in
Posted on: 2008/3/3 6:20
carrierlp
carrierlp (Show more)
Just popping in
Posts: 11
Since: 2007/5/14
#90

Re: Simplified URLs Hack

o, and im also running on linux hosting on a dedicated server