Ok Im using
SMF 2.0 RC5
and in packages it says my TP version is
1.104
I tried to install 1.105 but it says its not compatible.
I have had this problem for some time.
If I create a block to show a list of Articles in Category
it creates the list fine but if you click on the link it gives you a blank page ..
it creates a link that is something like
www.mikrokopter.us/index.php?page=Using%20the%20Fat%20Shark%20Dominator%27s%20with%20the%20Yellow%20Jacket%20Dual%20Diversity%20Reciever
the link that works to the article is
www.mikrokopter.us/index.php?page=12
is there a fix for this?
Thanks
Ziggy
You are very far behind in your SMF install. I would highly suggest you upgrade to the latest SMF 2.0.2 because there have been security holes that have been fixed since RC5. I dropped support for SMF 2 RC4 and RC5. TP may still install if you use the version emulation option in the package manager.
I'll take a look at the article title problem and see what I can find out in the mean time.
ETA:
Looks like the issue is the apostrophe in the title. Remove it and the article should work. Until then, I'll work on fixing this for the next release. Thanks for reporting!
Just some food for thought for everyone. It order to make the URL's work properly I had to make a couple of small changes. However, the thought came to me that in order to make the title retain it's SEO look, I was wondering if anyone thinks we should convert spaces?
For example when you have a title like "Cool Trucks" it would currently look like this in the URL "page=Cool%20Trucks" because browsers have to encode certain characters (like spaces) in order to use them properly. How about if we automatically converted spaces to something like a + or _ character? This way the URL would come out like this: "page=Cool_Trucks" or "page=Cool+Trucks". It looks much better than what is currently happening. I already added the code to make it use an underscore, I just want to make sure someone else doesn't have a better idea.
That actually sounds like a great idea. However, personally, I think I would like the "+" character better than the "_" character. First instance, when using Chrome, and I put "Ichbin knows what he is doing" in the address bar, the browser converts that to the following ...
https://www.google.com/search?sourceid=chrome&ie=UTF-8&q=Ichbin+knows+what+he+is+doing
ZarPrime
Converting the spaces does sound like a great idea since this is something that has been done for ages and makes good sense. :)
Quote from: ZarPrime on February 08, 2012, 10:30:49 AM
That actually sounds like a great idea. However, personally, I think I would like the "+" character better than the "_" character. First instance, when using Chrome, and I put "Ichbin knows what he is doing" in the address bar, the browser converts that to the following ...
https://www.google.com/search?sourceid=chrome&ie=UTF-8&q=Ichbin+knows+what+he+is+doing
ZarPrime
I think google makes sense to use the plus sign because you are actually adding words together in a search. We really can use any character we want. I don't recall much of what other software's do. I thought wordpress used the underscore, but I can't find any info at the moment.
Well, the underscore would work as well, but would that make the url's for "pages" search engine friendly? I think that's probably the most important consideration.
Edit: Hmmm, should we be discussing this in the Team Board? :)
The more I look around, it looks like the dash "-" is used more than anything else. I think I'll change it to use that. As for a team discussion, I think it's fine to discuss these things in public. You never know who may come along with a better idea or something. Who knows, maybe it'll get people involved here. :)
see here:
RFC 3986 URI Generic Syntax January 2005
reserved = gen-delims / sub-delims
gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
The purpose of reserved characters is to provide a set of delimiting
characters that are distinguishable from other data within a URI.
URIs that differ in the replacement of a reserved character with its
corresponding percent-encoded octet are not equivalent. Percent-
encoding a reserved character, or decoding a percent-encoded octet
that corresponds to a reserved character, will change how the URI is
interpreted by most applications. Thus, characters in the reserved
set are protected from normalization and are therefore safe to be
used by scheme-specific and producer-specific algorithms for
delimiting data subcomponents within a URI.
A subset of the reserved characters (gen-delims) is used as
delimiters of the generic URI components described in Section 3. A
component's ABNF syntax rule will not use the reserved or gen-delims
rule names directly; instead, each syntax rule lists the characters
allowed within that component (i.e., not delimiting it), and any of
those characters that are also in the reserved set are "reserved" for
use as subcomponent delimiters within the component. Only the most
common subcomponents are defined by this specification; other
subcomponents may be defined by a URI scheme's specification, or by
the implementation-specific syntax of a URI's dereferencing
algorithm, provided that such subcomponents are delimited by
characters in the reserved set allowed within that component.
URI producing applications should percent-encode data octets that
correspond to characters in the reserved set unless these characters
are specifically allowed by the URI scheme to represent data in that
component. If a reserved character is found in a URI component and
no delimiting role is known for that character, then it must be
interpreted as representing the data octet corresponding to that
character's encoding in US-ASCII.
2.3. Unreserved Characters
Characters that are allowed in a URI but do not have a reserved
purpose are called unreserved. These include uppercase and lowercase
letters, decimal digits, hyphen, period, underscore, and tilde.
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
So it's better you use - or _ for space replacements ...
See even Feline will come around for ideas. :) Thanks Feline.
Not a problem .. we have written a SEF engine, so we have a little bit know how about this ;)