Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 175
Total: 175

Author Topic: any pretty url version compatible with rc3?  (Read 6910 times)

0 Members and 1 Guest are viewing this topic.

Offline G1

  • Full Member
  • ***
  • Posts: 132
    • View Profile
any pretty url version compatible with rc3?
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: any pretty url version compatible with rc3?
« Reply #1 on: January 07, 2011, 09:32:26 am »
What edits? It should work fine with rc4
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline G1

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: any pretty url version compatible with rc3?
« 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)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: any pretty url version compatible with rc3?
« Reply #3 on: January 07, 2011, 06:42:35 pm »
If you using a package parser select rc3
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline G1

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: any pretty url version compatible with rc3?
« 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)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: any pretty url version compatible with rc3?
« Reply #5 on: January 07, 2011, 08:18:31 pm »
Fine something similar and make the change to it that's what I do
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline G1

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: any pretty url version compatible with rc3?
« 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 :(

Offline G1

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: any pretty url version compatible with rc3?
« 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 »

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
6491 Views
Last post November 20, 2007, 08:54:18 pm
by anyoldcard
6 Replies
16613 Views
Last post August 13, 2009, 10:08:32 pm
by SMFHacks
6 Replies
8052 Views
Last post January 22, 2010, 03:57:47 pm
by bluedevil
1 Replies
2915 Views
Last post January 01, 2013, 12:37:24 pm
by SMFHacks
2 Replies
2905 Views
Last post January 01, 2020, 08:53:50 pm
by Rock Lee

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal