+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43293
Total Topics: 7522
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 98
Total: 98

Forum > Pretty Urls

prettyurls - DatabaseChanges.wiki

(1/1)

SMFHacks:
The Pretty URLs mod needs to make several changes to the database. This is a reference in case you need to manually edit or fix something.

If you ever want to completely remove the mod, you will need to remove all of these additions too. To be super-cool, use the uninstall tool.

New tables
| Name | Structure | Description | |:---------|:--------------|:----------------| | smf_pretty_topic_urls | id_topic: mediumint, pretty_url: varchar(80) | Stores the (partial) URLs for topics. Currently the only way to change a topic's URL is to edit this table manually. | | smf_pretty_urls_cache | url_id: varchar(255), replacement: varchar(255) | A complete list of every URL in the forum with its prettified replacement. The url_id column stores the original URL, with $scripturl and other common URLs shortened. |

New settings
Settings are stored in the smf_settings table. Many of these settings use serialized arrays, so the following PHP functions might be useful: serialize(), unserialize().

| Name | Description | |:---------|:----------------| | pretty_action_array | An array of forum actions, extracted from index.php. | | pretty_board_lookup | A serialized array of URL => ID_BOARD pairs, used for processing $_GET['board']. There can be more than one URL for each board. | | pretty_board_urls | A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs. | | pretty_enable_filters | Sets whether to prettify anything at all. 0 for no, 1 for yes. | | pretty_filters | A serialized array of filter data. | | pretty_filter_callbacks | A serialized array of callback function names, sorted by priority. Don't manually edit this, edit the pretty_filters setting instead. | | pretty_root_url | The base URL used by the board and topic filters, which by default is the same as $boardurl. |

Navigation

[0] Message Index

+- Recent Topics

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

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

Powered by EzPortal
Go to full version