Advertisement:

Author Topic: Pretty URLs  (Read 2346437 times)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,475
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8040 on: December 08, 2020, 02:05:54 PM »
After you make the edit zip up all the pretty url files then upload the package to the smf package manager to install
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8041 on: December 08, 2020, 02:07:18 PM »
where are those files sir ? sorry but i am not very tech savvy. i have just copy pasted .zip file in package directory and tried installing it from admin

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,475
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8042 on: December 08, 2020, 02:18:17 PM »
in the zip file from pretty urrs.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8043 on: December 08, 2020, 02:21:31 PM »
i ahve it in zip file only sir under package folder from old backup

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8044 on: December 08, 2020, 02:24:15 PM »
You would then need to remove these lines from install.php
Code: [Select]
$smcFunc['db_drop_table']('{db_prefix}pretty_urls_cache');
$smcFunc['db_create_table']('{db_prefix}pretty_urls_cache', array(
   array('name' => 'url_id', 'type' => 'varchar', 'size' => 255),
   array('name' => 'replacement', 'type' => 'varchar', 'size' => 255),
), array(
   array('type' => 'primary', 'columns' => array('url_id')),
), array(), 'overwrite');

where can i find install.php ?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,475
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8045 on: December 08, 2020, 02:36:42 PM »
SMF2-0\install.php folder in the zip file.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8046 on: December 08, 2020, 02:51:03 PM »
SMF2-0\install.php folder in the zip file.

sorry but i cant see any folder with such name in my webspace

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,475
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8047 on: December 08, 2020, 02:51:54 PM »
not on the webspace you have to download and edit the zip for prettyurls.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8048 on: December 08, 2020, 02:57:20 PM »
not on the webspace you have to download and edit the zip for prettyurls.

done that and now below error

Table 'dbdg7ewvqjenhb.soft_pretty_urls_cache' doesn't exist
File: /home/customer/www/indian-femdom.com/public_html/Sources/Subs-PrettyUrls.php
Line: 312

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.10. The above error might possibly go away if you execute the latest version of upgrade.php.

Offline SoftAid

  • Semi-Newbie
  • *
  • Posts: 74
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8049 on: December 08, 2020, 03:08:35 PM »
Hello s10dulkar,

schouldn't it be a good idea to first install your old version of SMF (the Backup) and add the Pretty_URLs.php .
After this went well, then upgrade to SMF 2.0.17 ???

This would avoid this problem, I believe.
Just my 2 cents.

Softaid
SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8050 on: December 08, 2020, 03:09:56 PM »
Hello s10dulkar,

schouldn't it be a good idea to first install your old version of SMF (the Backup) and add the Pretty_URLs.php .
After this went well, then upgrade to SMF 2.0.17 ???

This would avoid this problem, I believe.
Just my 2 cents.

Softaid

mate trying everything from last 3 days. tried what you said also but that have different issues than this ones

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,475
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #8051 on: December 08, 2020, 03:10:48 PM »
Thats a good idea!
Yeah the issue is the table doesn't exist

Or run this query on db
Code: [Select]
CREATE TABLE `soft_pretty_urls_cache` (
  `url_id` varchar(255) NOT NULL,
  `replacement` varchar(255) NOT NULL,
 KEY (`url_id`(100))
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8052 on: December 08, 2020, 03:12:15 PM »
Thats a good idea!
Yeah the issue is the table doesn't exist

Or run this query on db
Code: [Select]
CREATE TABLE `soft_pretty_urls_cache` (
  `url_id` varchar(255) NOT NULL,
  `replacement` varchar(255) NOT NULL,
 KEY (`url_id`(100))
) ENGINE=MyISAM DEFAULT CHARSET=latin1
run successfully and returned below message
 MySQL returned an empty result set (i.e. zero rows). (Query took 0.0033 seconds.)

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8053 on: December 08, 2020, 03:14:44 PM »
it was installed now but everytime i click on any board it logs out user

Offline SoftAid

  • Semi-Newbie
  • *
  • Posts: 74
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8054 on: December 08, 2020, 03:15:40 PM »

run successfully and returned below message
 MySQL returned an empty result set (i.e. zero rows). (Query took 0.0033 seconds.)
[/quote]
Looks normal to me, the database is empty in the beginning, building up every time an url is used.
Yeah, I'am blond, sorry....  ;)

Monica

SoftAid

SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8055 on: December 08, 2020, 03:16:32 PM »

run successfully and returned below message
 MySQL returned an empty result set (i.e. zero rows). (Query took 0.0033 seconds.)
Looks normal to me, the database is empty in the beginning, building up every time an url is used.
Yeah, I'am blond, sorry....  ;)

Monica

SoftAid
[/quote]

it was installed now but everytime i click on any board it logs out user

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8056 on: December 09, 2020, 06:33:24 AM »
i was using http earlier with old host now on https that might be a problem ? any idea how to get this working friends.

Offline SoftAid

  • Semi-Newbie
  • *
  • Posts: 74
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8057 on: December 09, 2020, 07:04:56 AM »
Hello s10dulkar,

I'm not a programmer nor a specialist. I only know that when I updated my site from Http to Https Itherfore I had to ad .htaccess.
That redirects (renames?) all Http-adresses to Hppts.
Search on this site for .htaccess or "http to https"
An adittional search in the DB_Messages and replacing Http by Https did a good job to for links in the text of the Messages.

Good luck

SoftAid
SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)

Offline s10dulkar

  • Semi-Newbie
  • *
  • Posts: 39
Re: Pretty URLs
« Reply #8058 on: December 09, 2020, 07:07:41 AM »
Hello s10dulkar,

I'm not a programmer nor a specialist. I only know that when I updated my site from Http to Https Itherfore I had to ad .htaccess.
That redirects (renames?) all Http-adresses to Hppts.
Search on this site for .htaccess or "http to https"
An adittional search in the DB_Messages and replacing Http by Https did a good job to for links in the text of the Messages.

Good luck

SoftAid
this is what my htaccess have

Code: [Select]
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 8, 2020, 20:15

RewriteEngine on
RewriteBase /

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

Offline SoftAid

  • Semi-Newbie
  • *
  • Posts: 74
  • Gender: Male
  • 19 years happy working with SMF: Thanks
    • Oplossing.be
Re: Pretty URLs
« Reply #8059 on: December 09, 2020, 07:28:59 AM »
Did you went trough this

SoftAid
SMF forum 2.0.17
Dutch free computer help forum
Always welcome on Oplossing.be :-)