Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

mark7144

Quote from: Dannii on June 20, 2009, 11:04:35 PM
Okay there are too many problems with 1.0RC, so I recommend going back to 0.9.3.
For those of us who have the right attitude, no effort required ;)

sneijder23

Some idea of my problem? 

Dannii

The right attitude is not to be running beta software when gold software is available instead.

sneijder23, go read what I posted above.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

sneijder23

ok sorry...

install the version 0.9.3 and no longer I have that problem, the problem that have now is with them paginate external to smf that redirection to the forum for example

www.zonagente.com/videos/

So that be shown I have to put

www.zonagente.com/videos/index.php

I have the same problem with it he paginates of blogs and the chat

, thanks by your aid Dannii

Dannii

#3904
Okay, so here are the changes needed to fix 1.0RC:

PrettyUrls-Filters.php:
Code (find) Select
if (strpos($match, '://') === false)
Code (replace) Select
if (!preg_match('~^[a-zA-Z]+:|^#|@~', $match) && SMF != 'SSI')

Code (find) Select
if (strpos($cacheableurl, '://') === false)
Code (replace) Select
if (!preg_match('~^[a-zA-Z]+:|@~', $cacheableurl) && !($cacheableurl == '' && isset($fragment[0])) && SMF != 'SSI')

QueryString.php, find and delete:
$buffer = str_replace('<head>', '<head><base href="' . $boardurl . '/" />', $buffer);

I've patched the 1.0RC package on the download pages.

Sorry everyone for the troubles this has caused!
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

sneijder23

I do not find that line in the file PrettyUrl-Filters.php, it but seemed is this

Quote
if (strpos($matches[2], '.') !== false)

Dannii

They're only the changes for 1.0RC, not 0.9.3.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

sneijder23

It can say changes for the 0.9.3 please? 

Dannii

0.9.3 didn't have the bugs I just fixed.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

_Anthony_

Thanks for the fix Danni!

sneijder23

It can tell me as to solve this problem that various users of the forums in Spanish we have and we cannot solve?


Quote
ok sorry...

install the version 0.9.3 and no longer I have that problem, the problem that have now is with them paginate external to smf that redirection to the forum for example

www.zonagente.com/videos/

So that be shown I have to put

www.zonagente.com/videos/index.php

I have the same problem with it he paginates of blogs and the chat

, thanks by your aid Dannii

SosniTo.sk

Hi,
I have a problem:
Fatal error: Call to undefined function pretty_generate_url() in /webhosting/sosnito.sk/www/Sources/ManageBoards.php on line 818
Quote//   Adding a URL?
   if (isset($_REQUEST['add']) && $_REQUEST['add'] != '')
   {
      require_once($sourcedir . '/Subs-PrettyUrls.php');

      $pretty_text = pretty_generate_url($_REQUEST['add']);
      //   Numerical or URLs the same as actions aren't allowed!
      if (is_numeric($pretty_text) || in_array($pretty_text, $context['pretty']['action_array']))
      {

Notice: Undefined index: pretty_action_array in /webhosting/sosnito.sk/www/index.php on line 87
Quote
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
   'action_array' => unserialize($modSettings['pretty_action_array']),
   'board_urls' => unserialize($modSettings['pretty_board_urls']),
   'db_count' => 0,
));
// Clean the request variables, add slashes, etc.
cleanRequest();

I use SMF 1.1.9

Please help...

Dannii

Quote from: sneijder23 on June 22, 2009, 03:11:11 AM
It can tell me as to solve this problem that various users of the forums in Spanish we have and we cannot solve?


Quote
ok sorry...

install the version 0.9.3 and no longer I have that problem, the problem that have now is with them paginate external to smf that redirection to the forum for example

www.zonagente.com/videos/

So that be shown I have to put

www.zonagente.com/videos/index.php

I have the same problem with it he paginates of blogs and the chat

, thanks by your aid Dannii
In 1.0RC, put this at the top of your .htaccess:
RewriteEngine on
RewriteRule ^videos/?$ ./videos/index.php [L,QSA]


Quote from: SosniTo.sk on June 22, 2009, 10:43:32 AM
Hi,
I have a problem:
Fatal error: Call to undefined function pretty_generate_url() in /webhosting/sosnito.sk/www/Sources/ManageBoards.php on line 818
Quote//   Adding a URL?
   if (isset($_REQUEST['add']) && $_REQUEST['add'] != '')
   {
      require_once($sourcedir . '/Subs-PrettyUrls.php');

      $pretty_text = pretty_generate_url($_REQUEST['add']);
      //   Numerical or URLs the same as actions aren't allowed!
      if (is_numeric($pretty_text) || in_array($pretty_text, $context['pretty']['action_array']))
      {

Notice: Undefined index: pretty_action_array in /webhosting/sosnito.sk/www/index.php on line 87
Quote
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
   'action_array' => unserialize($modSettings['pretty_action_array']),
   'board_urls' => unserialize($modSettings['pretty_board_urls']),
   'db_count' => 0,
));
// Clean the request variables, add slashes, etc.
cleanRequest();

I use SMF 1.1.9

Please help...
It musn't have been installed properly... Please go through the manual install instructions and check that all the changes were made, and that the uploaded files are complete.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Bruno36

Hello!

How to make it compatible with Pretty URLs Simple Image Upload is because when I send an image I receive an error.  :-[

QuoteNot Found
The requested URL /poubelle/addform.html was not found on this server.

Apache/1.3.33 Server at www.scooter-chinois-4t.com Port 80
Bruno36 the French
SMF 2.0.9

SosniTo.sk

Please write me the names of tables, which contain my database (the command for phpmyadmin) Thank you.

Dannii

Quote from: Bruno36 on June 22, 2009, 11:23:25 AM
Hello!

How to make it compatible with Pretty URLs Simple Image Upload is because when I send an image I receive an error.  :-[

QuoteNot Found
The requested URL /poubelle/addform.html was not found on this server.

Apache/1.3.33 Server at www.scooter-chinois-4t.com Port 80
Which version of this mod are you using? Can you show me a page with this error?

Quote from: SosniTo.sk on June 22, 2009, 11:31:11 AM
Please write me the names of tables, which contain my database (the command for phpmyadmin) Thank you.
http://code.google.com/p/prettyurls/wiki/DatabaseChanges
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Bruno36

Bonjour!

Simple Image Upload      1.1.0
http://custom.simplemachines.org/mods/index.php?mod=1669

Login: invite
Passe: 123456
http://www.scooter-chinois-4t.com/poubelle/?action=post
You should click on  "Ajouter une image a mon message" and then download an image
   
The error occurs while downloading the image
Bruno36 the French
SMF 2.0.9

Dannii

Change this line in Themes/default/GenericControls.template.php:
Code (find) Select
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=\' + escape(document.location.href), \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
Code (replace) Select
<a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=smf&lang=english&forumurl=' . $scripturl . '\', \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Ajouter une image a mon message</a>
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

SosniTo.sk

I've already repaired the database but still does not work.
When I click on the "Pretty URLs" shows:
Fatal error: Call to undefined function PrettyInterface() in /webhosting/sosnito.sk/www/Sources/Admin.php on line 134
Quote{
      require_once($sourcedir . '/PrettyUrls.php');
      return PrettyInterface();
   }

Dannii

PrettyUrls.php musn't have been installed properly. Upload the file from the package manually.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Advertisement: