News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[Depreciated]

Started by Depreciated, January 28, 2011, 06:29:42 PM

Previous topic - Next topic

Depreciated

Link to the mod


Compatibility
SMF 2.0

Description
Very simple mod to add a custom tiny url to your topics page (See screenshot) that makes it easier and prettier for people to share links with friends or on sites like twitter and facebook

Will add tinyurl.com and bit.ly support in v2.0

Examples:

This:
http://domain.com/index.php?topic=212489.0

Or even this:
http://domain.com/index.php?topic=212489.new;topicseen#new

Becomes this:
http://domain.com/t/212489

(Please read the below warnings in the 'Notes' section)

Have some suggestions to make this mod better? Please let me know in the support topic.

Notes
Requires: mod_rewrite to be installed and enabled for apache.

If you get any errors after installing this you didn't have mod_rewrite installed/enabled but you can simply fix this by removing the following code from your .htaccess file in your web root folder

#Tiny URL Mod
[code here]
#Tiny URL Mod


Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Install the package on the SMF Default 'Curve' Theme ONLY. Other themes will need manual edits.

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
v1.5 - 4th February 2011: Added support for boards and profiles
v1.0 - 25th November 2010: Initial Version

Depreciated

glad smf finally approved my mod as i'm going to be working on v2.0 very soon which with add support for boards, categories, and profile pages (etc) all will of course have option to enable/disable them via the admin cp :)

let me know if you have any other suggestion or things you'd like me to support thanks

Robin1989

Can you use a short URL instead of the sites full one so instead of domain.com it uses something like do.mn or something. Or have it use a service like bit.ly with there api's

Depreciated

Quote from: Robin1989 on January 31, 2011, 10:01:03 PM
Can you use a short URL instead of the sites full one so instead of domain.com it uses something like do.mn or something. Or have it use a service like bit.ly with there api's

sure i'm going to add support for sites like tinyurl.com and bit.ly in v2.0

Robin1989

ok cool - any eta on that or is that a while of as you only just released v1

Depreciated

Quote from: Robin1989 on February 03, 2011, 12:50:10 PM
ok cool - any eta on that or is that a while of as you only just released v1

no v2.0 will be out VERY soon ;)

(about a week)

Masterd


Depreciated

v1.5 - 4th February 2011: Added support for boards and profiles

Will add tinyurl.com and bit.ly support in v2.0 (ETA 1-2days)

Robin1989

cool - im just getting ready to update my forum so look forward to bit.ly support

diontoradan

any progress? bit.ly pro support would be great. i would like to integrate with my own url.

[unplugged]

@PaulpBaker

Great mod! Display and Message Index work perfectly. The profile TinyURL however, shows /p/1 on every profile. :)

In the code, I think the $context['user']['id'] should be $context['member']['id']. Works for me now.

@everyone

It's quite easy  to have your very own custom TinyURL address! Example: Buy a nice short domain name (like eots.me). Forward the domain to your SMF forum (see your host for instructions on how). Edit the 3 template files changing http://', $_SERVER['HTTP_HOST'], $modSettings['tinyurlmodsubfolder'], 't/', $context['current_topic'], ' to the URL for your newly forwarded domain like http://eots.me/t/';, $context['current_topic'], '
Make sure to pay attention to the /b/, /t/, and /p/ as they are specific to each file edited.

After installing the mod and making the small edits,

my links now look like     http://eots.me/t/7054
instead of                       http://www.empireofthesun.net/forum/index.php?topic=7054.msg21577#msg21577


Good stuff.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Lord Anubis

Very sweet mod, using Sunking's integration of a small url works perfect!

I went ahead and also configured this to work with my arcade... for instance

http://blabb.me/a/2566

instead of

http://www.blabbster.com/index.php?action=arcade;sa=play;game=2566

:)

philophil

this mod ******ed my forum up now i hav the msg: "The server made a boo boo." after i installed the mod can some one help me? :( how can i deinstall it?

Depreciated

mod updated for smf 2.0 final

tectonny

I tried to use but to enter the new link, the forum opens but with blank page or no content.

InfoStrides

Quote from: tectonny on June 18, 2011, 09:56:10 PM
I tried to use but to enter the new link, the forum opens but with blank page or no content.

I also encounter blank page.

Could it be because I have completely removed index.php from my forum? Please visit here to see http://www.theinfostrides.com

!RFAN

I have pretty urls mod installed.. when i use a shortened url using this mod it takes me to the index page

any solution?? :s

imsosocial

Hi im using this mod on The New 2.0.1 SMF forum and im getting this error

QuoteNot Found

The requested URL /t/20 was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at hxxp:imsosocial.me [nonactive] Port 80


is there any way to fix this :)

Advertisement: