TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,097
  • Total Topics: 21,345
  • Online today: 770
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 722
  • Total: 723
  • @rjen

Users of TP & Pretty URLs

Started by eldacar, May 09, 2008, 05:09:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eldacar

Hello all you users of TP and Pretty URLs (if there are any of you that is...)

What TP URLs would you like to be prettified? I notice that articles now use ?page=articletitle, which could easily be converted to http://domain.com/page/articletitle/, would you like that? Is there anything else that could be changed? All suggestions are welcome!

JPDeni

It looks as though the current Pretty URLs mod intereferes with the functioning of TinyPortal. Someone the other day was unable to use one of the textareas to edit a block and it was the direct result of the mod. I wrote something for someone a while back which required the passing of a variable to an article through a link. Since he used the mod, the variable didn't pass and the code didn't work.

Unless these things can be worked out, I would suggest that people using TP not use the Pretty URLs.

eldacar

Yeah I'm currently looking into that now. I'm pretty sure the problem is on TP's end, and if I can track it down I'll let you all know so it can be fixed.

JPDeni

What about the passing of variables? As a coder, I hate the idea of going to all the work to write custom code and then find out that a mod has made it impossible for the code to work.

eldacar

Passing variables should be fine. Can you show me an example of what doesn't work?

JPDeni

#5
Well, I had some code for a "Hall of Fame" to go with the awards mod. I wrote a block that listed 5 random recipients of a random award. Then the user wanted a "More" link to an article that listed all of the recipients of that award. I needed to pass the award number to the article. I used index.php?page=#;award=# and then used $_GET['award'] to determine which award to search for.

The only reason that we could figure out that it didn't work was because of the SEO mod.

How would I pass a variable in a URL with your Pretty URLs?

eldacar

#6
I think your bbcode got corrupted there...

JPDeni


eldacar

#8
Nope... it's still inserting a list...

Should be this yes?
I used index.php?page=[#];award=[#] and then used $_GET['award'] to determine which award to search for.

Can you provide a full example rather than one with placeholders?

Did you try using $_REQUEST['award']?

That URL shouldn't even have been touched by Pretty URLs...

JPDeni

Sorry.

index.php?page=4;award=5

QuoteDid you try using $_REQUEST['award']?
No. I tried using $_GET['award'] which is what I always use for variables passed in a URL.

QuoteThat URL shouldn't even have been touched by Pretty URLs...
Well, it didn't work. Although it could have been a different mod. I stay away from that kind of mod myself.

Anyway, until the problem with the editor is worked out, I definitely would not suggest that people use both TP and your mod.

This website is proudly hosted on Crocweb Cloud Website Hosting.