Light URL Plugin Maybe?

oOo--STAR--oOo

  • @Arantor Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time
  • Posts: 43
Re: Light URL Plugin Maybe?
« Reply #30, on April 20th, 2012, 11:10 PM »
Hey Arantor.

I really don't understand your terminology when you go about converting URL.
The routes it will take to get it and what needs to be done to make it.

To make this work for topics and posts requires one extra row with the hash of the short URL.
All you have to do is on every topic display pull that row out again and apply that to the link you want to display for the short link.

Then okay navigating to it, so simple, 1st you would do a check to see if it is a short URL they have entered, then link that to the topic for navigation.

I mean you can spare one IF statement right?
You make it sound really complicated.To me it sounds like an easy process to do this.

I'm just having fun making scripts lol.
Hey Arantor, don't take offence o.k ;)

I spoken to you a few times, over at SMF when i required help and you always get a lil hot headed.. Chill man.
Passes a spliff :P


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Light URL Plugin Maybe?
« Reply #31, on April 20th, 2012, 11:51 PM »
OK, let me explain a few things.

Routing is the process of getting from a URL to the right PHP file(s) to make it work. When the URL directly has index.php in it, it usually works out OK, the webserver calls index.php with the rest of the URL as parameters. Anything that deviates from the norm in ANY fashion is going to be unreliable.

Using index.php?stuff where you're not using index.php?stuff=stuff is going to be unreliable at best.

The other problem is that applying this to Wedge is a fucking nightmare, to put it bluntly. How many places are there index.php?topic=x but that it forms part of something else? Even cases like index.php?topic=1.0 is not the same as index.php?topic=1.15 which still has to be converted and processed, before you get into the realms of index.php?action=dlattch;attach=1;topic=1 for something else.
Quote
I mean you can spare one IF statement right?
You make it sound really complicated.To me it sounds like an easy process to do this.
That's because it is really complicated.

It's not just about the fact you have multiple URLs going to the same place, it's the fact you also have to serve up those forms of URL too. What's the point of using index.php?do/txxxxx when nothing else uses that? So then you get into the realms of rewriting URLs on the fly (unless you REALLY want to rewrite every single place where topic URLs are generated), which brings me back to the aforementioned problem.

Then you're still talking about yet more ifs that have to be run every single page view. Which means for a feature I don't want, I don't like, I'd still have to cope with the load of it in the core, and before anyone says about how it's 'just an if', it's still an if plus all the related code that is loaded every page view that I don't want to cope with.
Quote
I spoken to you a few times, over at SMF when i required help and you always get a lil hot headed.. Chill man.
Passes a spliff :P
Have you ever had to deal with people who are addicted to drugs? Have you ever been attacked by people who are trying to mug you for their next drug fix? Until you have, please do not tell me how I should approach my life.

In any case, the reason I'm "making this so difficult" is because I know how much of a nightmare this is to actually use in real life, as opposed to a script operating in a vacuum. If something like this gets added to the core, you won't be the person supporting it, I will be. And if it's a plugin, it's still going to be my problem because people will use that plugin and other plugins I write (since I'm likely to write the most plugins for Wedge) and will complain when plugins don't play nicely together, so again it's still going to be my problem.

This is why I'm hot headed, because I'm usually the one that has to pick up the mess others leave behind. Never mind the tens of thousands of hours I've spent learning my trade. I'm not actively making a living at this precise moment in time having just moved house and broken up with my long term girlfriend after ten years, but once I get sorted out here, I'll be back to making my living writing code, something a lot of people actually forget about me. They forget that I'm not just some cantankerous hermit doing it in my spare time, it's what puts food on my table. So yes, when I deal with people who think they know better than me, I will be short with them until they can demonstrate they actually are, because they're invariably not depending on it to put food on their table.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

oOo--STAR--oOo

  • @Arantor Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time
  • Posts: 43
Re: Light URL Plugin Maybe?
« Reply #32, on April 21st, 2012, 12:15 AM »
Takes another toke of the spliff.
Hey I ain't addicted to weed I just like to chill now and then.. Its part of having fun G ;)

O.k. boss, I see your points.
You have talent I agree, but your perception on others, I think you can take a better view and understand that while you might be better at one thing there is certainly something that anyone is better than you at.

Most people see life like a competition. I see it like competition is better in numbers eeek eek  I choked on my spliff lol.

Lighten up buddy ;)
If I can help you guys I will. Its as simple as that ;)


MultiformeIngegno

  • Posts: 1,337

oOo--STAR--oOo

  • @Arantor Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time
  • Posts: 43
Re: Light URL Plugin Maybe?
« Reply #34, on April 21st, 2012, 12:26 AM »
Quote from MultiformeIngegno on April 21st, 2012, 12:23 AM
STAR are you a karma guy or something similar..? :P
Lol, yeah you can say that.
I like Arantor, if he had some of my spliff, he would like me 2 lol :P

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Light URL Plugin Maybe?
« Reply #35, on April 21st, 2012, 10:27 PM »
Given that a decade ago I was addicted to alcohol, I do not wish to get into any kind of substance abuse, and will be firmly discouraging suggestions of it.