SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 10:40:46 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 48
Total: 48
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: any pretty url version compatible with rc3?  (Read 1232 times)
G1
Full Member
***
Offline Offline

Posts: 132


View Profile
« on: January 07, 2011, 01:27:24 am »

i downloaded and used the rc4, but it had some edits i couldnt find where to put. help
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #1 on: January 07, 2011, 09:32:26 am »

What edits? It should work fine with rc4
Logged
G1
Full Member
***
Offline Offline

Posts: 132


View Profile
« Reply #2 on: January 07, 2011, 11:39:47 am »

oh im using rc3 now btw, dont ask why lol ( for a mod i really really wanted haha)
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: January 07, 2011, 06:42:35 pm »

If you using a package parser select rc3
Logged
G1
Full Member
***
Offline Offline

Posts: 132


View Profile
« Reply #4 on: January 07, 2011, 07:56:16 pm »

// Maybe integrations want to change where we are heading?


i cant find this line to edit, what do i do if this happens?(this occurs in some mods and i just dont install anymore but i need pretty URLS)
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #5 on: January 07, 2011, 08:18:31 pm »

Fine something similar and make the change to it that's what I do
Logged
G1
Full Member
***
Offline Offline

Posts: 132


View Profile
« Reply #6 on: January 07, 2011, 08:27:19 pm »

i c. i just cant seem to find anything similarly worded and im afraid by putting it in the wrong position might completely mess everything up Sad
Logged
G1
Full Member
***
Offline Offline

Posts: 132


View Profile
« Reply #7 on: January 09, 2011, 09:48:16 pm »

hacks can you help me install pretty urls? its just that one edit i need installed, i tried ignoring it but it gave me redirection problems and posting gave some similar redirection errors(although posting was actually fine, just it couldnt redirect back to page). thanks
should i just put this somewhere in subs.php?
Im told to look for this:

"// Maybe integrations want to change where we are heading?"

and replace it with this: (I cant find the line above anywhere)

   //   Redirections should be pretty too
   if (!empty($modSettings['pretty_enable_filters']))
   {
      global $sourcedir;
      require_once($sourcedir . '/PrettyUrls-Filters.php');
      $url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));
      $filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
      foreach ($filter_callbacks as $callback)
      {
         $pretty_url = call_user_func($callback, $url);
         if (isset($pretty_url[0]['replacement']))
            break;
      }
      if (isset($pretty_url[0]['replacement']))
         $setLocation = $pretty_url[0]['replacement'];
      $setLocation = str_replace("\x12", '\'', $setLocation);
      $setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);
   }
   
   // Maybe integrations want to change where we are heading?

tried putting it in somewhere and got errors asap. ugh
« Last Edit: January 10, 2011, 12:15:27 am by hendo fan » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.236 seconds with 18 queries.