Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hj Ahmad Rasyid Hj Ismail on August 20, 2010, 03:31:12 AM

Title: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on August 20, 2010, 03:31:12 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2704)

RIAST - Remove Index From Title (& Add Smart Title) For SEO

- For SMF 1.1.x and SMF 2.0.x
- Fully hook, no file modification for SMF 2.0.x.

1. Please do your own backup though every installation is backed up automatically.
2. On default the "- Index" can be seen on the browser as forum index page title and this mod when enabled will remove it.
3. This mod will now also change your forum title from "page title" to "forum name - page title".
4. Upon its successful installation, you will be directed to modsettings page where you can enable/disable this mod.
5. There is nothing fancy about this mod as it is just a simple trick to boost a bit of SEO (at least IMO).
6. You can test it in lower SMF 2.0.x and 1.1.x version too as IMO it should work just fine. ;)
7. For SMF 1.1x - this mod now requires Enhanced Mod Settings Page mod to be pre-installed (EMSPv100.zip is attached).


Thank you for using/testing it.


Yours friendly,
Abu Fahim Ismail.

BSD License. Feel free to modify accordingly but keep author's link if it is in there somewhere. ;)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvalidator.w3.org%2Fimages%2Fvalid_icons%2Fvalid-xhtml10&hash=f3694497572838dc55641db875ff57107ebabaed)  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fjigsaw.w3.org%2Fcss-validator%2Fimages%2Fvcss&hash=710d7530f8727db53c62cb8f44abbef39967e693)


Change Logs
#Version 1.3.0
- Rewriting the mod to fully use hooks for SMF 2.0.x
- Thus, no more file modifications.

#Version 1.2.1
- Fixing minor issues due to adding smart title.

#Version 1.2.0
- Add smart title instead of just removing index.

#Version 1.1.1
- Add option to turn it on and off.

#Version 1.1.0
- Covers both SMF version 1.1.x and 2.0.x

# Version 1.0.0
- Simply removes "- Index" from the forum title which can be seen in the browser.
Title: Re: Remove Index From Title
Post by: smitch6 on May 04, 2011, 02:06:15 PM
not sure why but i've had this on my forum RC4 for ages and the index is still there
i just tried it on another forum RC5 and it didn't work?
i've done a full browser reset
i'm using safari on a mac
Title: Re: Remove Index From Title
Post by: weerforum on December 21, 2012, 03:29:35 AM
Not working on my forum  :(
Title: Re: Remove Index From Title
Post by: Hj Ahmad Rasyid Hj Ismail on December 21, 2012, 03:35:03 AM
May I know what is your forum version, weerforum? I have just tested this on 2.0.2 forum last month and it was fine.

Quote from: Ahmad Rasyid Ismail on August 20, 2010, 03:31:12 AM
On default the "- Index" can be seen on the browser.

This mod simply will remove this "- Index" from the forum title.

Just to confirm, are you looking for this effect or something else?
Title: Re: Remove Index From Title
Post by: weerforum on December 21, 2012, 03:39:28 AM
Onely for to remove index from the url

http://weerforum.eu/index.php into http://weerforum.eu
Title: Re: Remove Index From Title
Post by: Hj Ahmad Rasyid Hj Ismail on December 21, 2012, 03:47:55 AM
That is removing index.php. You can use this mod here: http://custom.simplemachines.org/mods/index.php?mod=2709 i.e. RIPITP.zip to remove index.php in three main places (advisable) or RemoveIndexPhpFromUrl111.zip to remove index.php totally from your forum (not advisable as it breaks few things especially if you are using seo/sef mod).
Title: Re: Remove Index From Title
Post by: weerforum on December 21, 2012, 03:52:50 AM
Oeps i see many errors
Title: Re: Remove Index From Title
Post by: Hj Ahmad Rasyid Hj Ismail on December 21, 2012, 04:15:51 AM
You might have modified you Subs.php file most probably by portal mod. You may need to manually modify the relevant files if you want to continue. The mod also only support default curve theme. All other theme might have to be edited manually also. Do not proceed unless you know what you are doing.

I just updated the mod page with RIPFUC which stands for Remove Index.Php from URL completely. You might want to try that instead. This is safer than the previous one. You can revert back to me if there is any problem.
Title: Re: Remove Index From Title
Post by: Shambles on December 21, 2012, 04:18:45 AM
Quote from: Ahmad Rasyid Ismail on December 21, 2012, 04:15:51 AM
I just updated the mod page with RIPFUC ...

??? That's a classy acronym  :o
Title: Re: Remove Index From Title
Post by: Hj Ahmad Rasyid Hj Ismail on December 21, 2012, 04:23:16 AM
Thanks for reminding me about that. I will change the name soon. :)
Title: Re: Remove Index From Title
Post by: DarkT3rror on December 21, 2012, 04:25:07 AM
to me works perfectly! ;) ;) GJ ahmad
Title: Re: Remove Index From Title
Post by: weerforum on December 21, 2012, 04:26:05 AM
Quote from: Ahmad Rasyid Ismail on December 21, 2012, 04:15:51 AM
You might have modified you Subs.php file most probably by portal mod. You may need to manually modify the relevant files if you want to continue. The mod also only support default curve theme. All other theme might have to be edited manually also. Do not proceed unless you know what you are doing.

I just updated the mod page with RIPFUC which stands for Remove Index.Php from URL completely. You might want to try that instead. This is safer than the previous one. You can revert back to me if there is any problem.

Perfect Ahmad Rasyid Ismail

Thnx verry much  ;)
Title: Re: Remove Index From Title
Post by: Hj Ahmad Rasyid Hj Ismail on December 21, 2012, 04:45:41 AM
You are welcome. If you face any problem at all with that mod, do ask for support in its thread here: http://www.simplemachines.org/community/index.php?topic=396728.0
Title: Re: Remove Index From Title
Post by: N i g h t m a r e on December 21, 2012, 12:40:43 PM
Just installed, working perfectly for me

- http://pshomenation.x10.mx/smf/index.php?action=community
Title: Re: RIAST: Remove Index From Title (& Add Smart Title) For SEO (2.0.x & 1.1.x)
Post by: Hj Ahmad Rasyid Hj Ismail on August 17, 2014, 12:58:03 PM
This mod is updated. Details are in the opening post (http://www.simplemachines.org/community/index.php?topic=396718.0).

- This mod will now also change your forum title from "page title" to "forum name - page title".
- Upon its successful installation, you will be directed to mod settings page where you can enable/disable this mod.
-  For SMF 1.1x - this mod now requires Enhanced Mod Settings Page mod to be pre-installed (EMSPv100.zip).
Title: Re: RIAST: Remove Index From Title (& Add Smart Title) For SEO (2.0.x & 1.1.x)
Post by: Rain Forest on August 19, 2014, 05:43:27 AM
Thank you ahrasis!

I have this mod working on my 2.0.8 forums! :)
Title: Re: RIAST: Remove Index From Title (& Add Smart Title) For SEO (2.0.x & 1.1.x)
Post by: Hj Ahmad Rasyid Hj Ismail on August 19, 2014, 09:26:52 AM
Thank you. It will take sometimes before search engines populates their searches based on this new "smart" title (not really smart actually ;) ). Try to see its results after a month or so.
Title: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: Hj Ahmad Rasyid Hj Ismail on August 28, 2014, 07:37:43 AM
Updated to version 1.3.0 ;)

Change Logs
#Version 1.3.0
- Rewriting the mod to fully use hooks for SMF 2.0.x
- Thus, no more file modifications.

#Version 1.2.1
- Fixing minor issues due to adding smart title.

#Version 1.2.0
- Add smart title instead of just removing index.

#Version 1.1.1
- Add option to turn it on and off.

#Version 1.1.0
- Covers both SMF version 1.1.x and 2.0.x

# Version 1.0.0
- Simply removes "- Index" from the forum title which can be seen in the browser.
Title: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: clownclone on August 28, 2014, 10:30:44 PM
I found that with this mod (latest version with hook) installed and running on SMF 2.08 today 29 Aug 2014 that when I went to logout from my smf forum it wouldn't allow me...it couldn't find it's referer and I had to turn off and uninstall the mod to logout.
Title: Re: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: Hj Ahmad Rasyid Hj Ismail on August 29, 2014, 04:08:13 AM
Can you please provide more details like your error log both from your forum side and server side? As this mod doesn't deal with login or logout or menu etc. It is also being tested live and failed to have such an error before. I need details of error and not a mere claim like this to help. Otherwise, IMO it could be caused by session time out or other mods.
Title: Re: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: Burke ♞ Knight on August 29, 2014, 05:27:39 AM
Quote from: clownclone on August 28, 2014, 10:30:44 PM
I found that with this mod (latest version with hook) installed and running on SMF 2.08 today 29 Aug 2014 that when I went to logout from my smf forum it wouldn't allow me...it couldn't find it's referer and I had to turn off and uninstall the mod to logout.


Any other Mods installed?
Are you using a custom theme?
Any errors in the error logs? Apache, PHP, SMF?

Title: Re: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: clownclone on August 29, 2014, 09:25:18 AM
Quote from: BurkeKnight on August 29, 2014, 05:27:39 AM
Quote from: clownclone on August 28, 2014, 10:30:44 PM
I found that with this mod (latest version with hook) installed and running on SMF 2.08 today 29 Aug 2014 that when I went to logout from my smf forum it wouldn't allow me...it couldn't find it's referer and I had to turn off and uninstall the mod to logout.


Any other Mods installed?
Are you using a custom theme?
Any errors in the error logs? Apache, PHP, SMF?

BurkeKnight
No other mods installed except my updates from earlier version

1. SMF 2.0.8 Update 1.0
2. SMF 2.0.7 Update 1.0
3. SMF 1.1.19 / 2.0.6 Update 1.0

Theme Settings - SMF Default Theme - Curve

This was the error message from smf log

'Unable to verify referring url. Please go back and try again.'

Title: Re: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: Hj Ahmad Rasyid Hj Ismail on August 29, 2014, 10:19:18 PM
Please provide details of the error you mentioned. An error title won't help that much. SMF error log should be able to provide you with line of error, url of error etc. This will allow me to read and resolve the error properly. Thank you.
Title: Re: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: clownclone on August 29, 2014, 11:12:13 PM
Quote from: ahrasis on August 29, 2014, 10:19:18 PM
Please provide details of the error you mentioned. An error title won't help that much. SMF error log should be able to provide you with line of error, url of error etc. This will allow me to read and resolve the error properly. Thank you.

Mod is no longer installed, so I'm not sure how helpful this will be.

06db8bf6299a04997a59032390978337

http://xxxxxxxxxxxxx.com/index.php?action=logout;e085fabb20=06db8bf6299a04997a59032390978337

'Unable to verify referring url. Please go back and try again.'

Thanks anyway
Title: Re: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: Hj Ahmad Rasyid Hj Ismail on August 29, 2014, 11:55:15 PM
It is useful to determine whether it is coming from this mod or otherwise. And based on the details you provided, it is not from this mod. I believe this is an old bug supposedly to be resolved by SMF by version 2.0.4 onwards. I am not sure why this occurs to you though.

Though this mod doesn't do anything to the menu or its url or session time, just to be sure, I however have tested this mod again on fresh installed SMF version 2.0.8 and no such error occurs. Logout was just fine.

So, for the time being, I think I can safely conclude that your error is an isolated issue and has nothing to do with this mod.
Title: Re: RIAST: Remove Index & Add Smart Title For SEO (2.0.x & 1.1.x) (Hooks!)
Post by: clownclone on August 30, 2014, 12:24:47 AM
Thanks Ahrasis :) Maybe I'll give the mod another try tomorrow.

                            clownclone

                   
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: FishingManMatt on February 09, 2015, 03:39:43 PM
Hi,

First of all, many thanks for the great mod.

I am now on 2.0.9 and have just installed the mod.

All titles look great except the one on the main forum page which is now Forum Name - Forum Name - Index

In all other areas the title looks fine Forum Name - Page Title

Many thanks for your support!
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on February 10, 2015, 05:29:21 AM
The forum name should be just Forum Name while other page should Forum Name - Page Title. Are you using a custom theme? Can you attach your index.template.php file here?
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: FishingManMatt on February 10, 2015, 06:49:32 AM
Thank you for your reply ahrasis!

I am using the default theme. A few mods installed though I doubt any of them affects the page title.
Below is my index.template attached (with RIAST installed but disabled).
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on February 10, 2015, 09:44:43 PM
I have gone through it but cannot find anything so far. Can you list your mods?
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: FishingManMatt on February 11, 2015, 06:09:15 AM
Thank you very much for your support!

Here are my mods:
- Bad Behavior
- Change All Subjects
- Custom Blocks
- Ohara YouTube Embed
- TapaTalk for SMF
- Recent Forum Topics on Boardindex
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on February 14, 2015, 11:47:13 AM
Sorry. But haven't got time to test this recently. Will revert back once I managed to do that.
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: FishingManMatt on February 15, 2015, 09:03:01 AM
Quote from: ahrasis on February 14, 2015, 11:47:13 AM
Sorry. But haven't got time to test this recently. Will revert back once I managed to do that.
No problem! Once again, thank you for your support ahrasis!
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: rubbishnor on March 18, 2015, 06:33:52 AM
Already Done
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: telatabi on June 27, 2015, 11:37:55 AM
i tested it is perfect.
Title: Re: RIAST - Remove Index & Add Smart Title For SEO (Fully Hook!)
Post by: FishingManMatt on June 27, 2015, 05:21:19 PM
Hmm... Still not working as expected on my site :(