News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)

Started by SlammedDime, December 05, 2009, 10:08:40 PM

Previous topic - Next topic

Arantor

No, just edit the links in the custom block you have.
Holder of controversial views, all of which my own.


~DS~

Quote from: Arantor on May 08, 2010, 07:52:44 PM
No, just edit the links in the custom block you have.
Not all of them are in the blocks, like the "help" tab.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SlammedDime

Sounds like you didn't make your custom help introduction tag properly...  It does not look anything close to what the default SMF help page looks like, so it must be custom, which means you made the links on that page wrong.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

~DS~

Quote from: SlammedDime on May 08, 2010, 08:19:32 PM
Sounds like you didn't make your custom help introduction tag properly...  It does not look anything close to what the default SMF help page looks like, so it must be custom, which means you made the links on that page wrong.
Yes it's custom using the Language Editor. And I haven't change any links on the help page.

HTML tag:
<p><a href="http://thetwoworldsforum.com/index.php/topic,2.0.html"><strong>Forum Guideline & Rules</strong></a></p>
This is in the help page and in the blocks as well.

Using BBcode:
[url=http://thetwoworldsforum.com/index.php/topic,2.0.html][b]Forum Guideline & Rules[/b][/url]
This is on the topic (which when using SEF enabled it will redirect to homepage while clicking that.)

Removing .html and clear cache doesn't seem to work as well.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SlammedDime

I'm confused and you're not being entirely clear...

<p><a href="http://thetwoworldsforum.com/index.php/topic,2.0.html"><strong>Forum Guideline & Rules</strong></a></p>

Where is that at in a standard SMF help contents?  My 'Introduction' page looks nothing like yours... where did yours come from?  Where is the HTML where it get's it's contents?  Look at even the one here at SMF... it looks nothing like what you have.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Xarcell

#645
Quote from: SlammedDime on May 08, 2010, 05:19:12 PM
Sorry Xarcell, I haven't had time to play with it...

Can you (as Arantor said), explain how it 'doesnt work'?

Here is the link to the original post: http://www.simplemachines.org/community/index.php?topic=352351.msg2563400#msg2563400

It says:
QuoteI know this doesn't help much, since TinyPortal Beta5 hasn't been released to the public yet.

But...

SimpleSEF breaks TP, because it's automatically detects and alters the URL's. One cannot write articles, change themes through the theme box, etc.

Example URL's:
http://yoursite.com/index.php?action=tpadmin;sa=addarticle_html  - works
Becomes: http://yoursite.com/tpadmin/sa,addarticle_html/ - doesn't work

Is there any information that I can pass along to Bloc, to help fix this with TP?

Anytime a user tries clicks a link to write an article, it returns a blank page. Although viewing an article works just fine. I have a test site here: www.feyorin.com you can see the theme changer on the homepage doesn't work either.


Arantor

I have a feeling the _ is what's causing issues, but I'll defer to Dime on this one.
Holder of controversial views, all of which my own.


~DS~

Quote from: SlammedDime on May 08, 2010, 08:59:43 PM
I'm confused and you're not being entirely clear...

<p><a href="http://thetwoworldsforum.com/index.php/topic,2.0.html"><strong>Forum Guideline & Rules</strong></a></p>

Where is that at in a standard SMF help contents?  My 'Introduction' page looks nothing like yours... where did yours come from?  Where is the HTML where it get's it's contents?  Look at even the one here at SMF... it looks nothing like what you have.
Admin> Language >English> Manual> manual_intro_overview
and in the box I replace as my own.  :P

Anyway this is not what I am talking about. Creating links in BBcode or HTML had make it redirect to homepage.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

~DS~

Or had replace all to homepage link instead of what's in the BBcode/HTML
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

~DS~

So uninstalling and reinstalling many times back and forth breaks a new errors in the log:
8: Undefined index: simplesef
File: /home/user/public_html/forum.com/Sources/Admin.php
Line: 157


8: Undefined index: simplesef
File: /home/user/public_html/forum.com/Sources/ManageSettings.php
Line: 2328


Manual check all the edits in the files, seem fine and correct in place.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SlammedDime

The links you were creating were not the links you should have been using.... you need to use standard SMF links (index.php?topic=1.0), not SMF Queryless Url links (index.php/topic,1.0.html).

As for the errors... the only guess I would have is that you don't have the language strings in the language file properly.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

~DS~

#651
Quote from: SlammedDime on May 08, 2010, 11:59:19 PM
The links you were creating were not the links you should have been using.... you need to use standard SMF links (index.php?topic=1.0), not SMF Queryless Url links (index.php/topic,1.0.html).

As for the errors... the only guess I would have is that you don't have the language strings in the language file properly.

O_O', I see...now it works. But how did it covert to / and , in the first place? It edit itself somehow...Will play around more with it.

EDIT: Fixed. Everything works now as should.
One major problem...
If someone copy and paste the url from within the forums in post or whatever with SEF enabled, with SEF disabled the url doesn't work or convert to back to SMF's native url.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

~DS~

#652
Ok here's what happen:

If you have Search engine friendly URLs
Apache/Lighttpd only!
enabled before installing SEF, chances are all the links posts in the forum are screwed which doesn't work with SEF. (which will redirect to the homepage)

Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0


With "Search engine friendly URLs" enabled:
/index.php/topic/932.0

I have SEF disabled for now until there is a walkaround or support that link. Not sure if it's a bug but worth a look, Dime.
This isn't good especially with huge forums that have many links with "Search engine friendly URLs" and install SEF after.  :-\


"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Raffoz

i installed it, but in the admin panel, near custom fields, it doesn't appear the title of the settings... i can click it but there's no title...
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

feline

Quote from: Dismal Shadow on May 09, 2010, 08:20:42 AM
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0

With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
That you can simple fix with follow..
Find in SimpleSEF.php (function ob_simplesef($buffer)) the string:

  // Grab the topics...
$matches = array();

and add before:

// convert SMF-Seo urls..
  if(preg_match_all('~' . preg_quote($scripturl) . '\/topic\,[-a-zA-Z0-9+&@#/%?=\~_|!:,.;\[\]]+~', $buffer, $matches, PREG_PATTERN_ORDER) > 0)
  {
    foreach($matches[0] as $link)
      $buffer = str_replace($link, str_replace(array('/topic,', '.html'), array('?topic=', ''), $link), $buffer);
  }

That converts exist SMF seo url's ..

Fel


Raffoz

Quote from: feline on May 09, 2010, 02:35:32 PM
Quote from: Dismal Shadow on May 09, 2010, 08:20:42 AM
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0

With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
That you can simple fix with follow..
Find in SimpleSEF.php (function ob_simplesef($buffer)) the string:

  // Grab the topics...
$matches = array();

and add before:

// convert SMF-Seo urls..
  if(preg_match_all('~' . preg_quote($scripturl) . '\/topic\,[-a-zA-Z0-9+&@#/%?=\~_|!:,.;\[\]]+~', $buffer, $matches, PREG_PATTERN_ORDER) > 0)
  {
    foreach($matches[0] as $link)
      $buffer = str_replace($link, str_replace(array('/topic,', '.html'), array('?topic=', ''), $link), $buffer);
  }

That converts exist SMF seo url's ..

Fel


sorry feline,
is it for everyone to convert all the already existing links? or for that there's already the inside option?
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

feline

#656
If you have enabled "Search engine friendly URLs" in SMF before you use SimpleSEF, then this patch will convert existing urls so SimpleSEF can handle these links.
Note that the links are NOT changed in Topics/Messages, it's changed only on runtime, so you can alway disable SSEF. Also Note, that you can NOT SSEF links in topics convert back to SMF format !

Fel

~DS~

Quote from: feline on May 09, 2010, 02:35:32 PM
Quote from: Dismal Shadow on May 09, 2010, 08:20:42 AM
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0

With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
That you can simple fix with follow..
Find in SimpleSEF.php (function ob_simplesef($buffer)) the string:

  // Grab the topics...
$matches = array();

and add before:

// convert SMF-Seo urls..
  if(preg_match_all('~' . preg_quote($scripturl) . '\/topic\,[-a-zA-Z0-9+&@#/%?=\~_|!:,.;\[\]]+~', $buffer, $matches, PREG_PATTERN_ORDER) > 0)
  {
    foreach($matches[0] as $link)
      $buffer = str_replace($link, str_replace(array('/topic,', '.html'), array('?topic=', ''), $link), $buffer);
  }

That converts exist SMF seo url's ..

Fel
That finally works, thanks.  :)
Please update this in the next version, Dime.
Quote from: feline on May 09, 2010, 03:02:06 PM
If you have enabled "Search engine friendly URLs" in SMF before you use SimpleSEF, then this patch will convert existing urls so SimpleSEF can handle these links.
Note that the links are NOT changed in Topics/Messages, it's changed only on runtime, so you can alway disable SSEF. Also Note, that you can NOT SSEF links in topics convert back to SMF format !

Fel
That's one con of SEF.  :(
The link will not work if you paste url with SEF and disable SEF, the url doesn't work nor convert it back to SMF format. Hope there is a way.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SlammedDime

Anything is possible, just a matter of how much time we have to invest in coming up with a solution.  I might be able to come up with a reverse converter, but no promises
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

~DS~

Quote from: SlammedDime on May 09, 2010, 11:09:36 PM
Anything is possible, just a matter of how much time we have to invest in coming up with a solution.  I might be able to come up with a reverse converter, but no promises
Great, that's one thing keeping me from having this for a while. Surprised  no one reported.  :)
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Advertisement: