News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Pretty URLs

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

Previous topic - Next topic

vbgamer45

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

s10dulkar

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

vbgamer45

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

s10dulkar

i ahve it in zip file only sir under package folder from old backup

s10dulkar

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 ?

vbgamer45

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

s10dulkar

Quote from: vbgamer45 on December 08, 2020, 02:36:42 PM
SMF2-0\install.php folder in the zip file.

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

vbgamer45

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

s10dulkar

Quote from: vbgamer45 on December 08, 2020, 02:51:54 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.

SoftAid

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 :-)

s10dulkar

Quote from: SoftAid 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

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

vbgamer45

Thats a good idea!
Yeah the issue is the table doesn't exist

Or run this query on db

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

s10dulkar

Quote from: vbgamer45 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

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.)

s10dulkar

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

SoftAid


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 :-)

s10dulkar

Quote from: SoftAid 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.)
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

s10dulkar

i was using http earlier with old host now on https that might be a problem ? any idea how to get this working friends.

SoftAid

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 :-)

s10dulkar

Quote from: SoftAid 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
this is what my htaccess have

# 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

SoftAid

Did you went trough this

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

Advertisement: