Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Switch Order of Page Titles
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

bobby131313
Senior Member

USA
1163 Posts

Posted - 03 June 2007 :  14:22:10  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Tested only on version 3.04.05.

Since the page title is still very important in SEO and most search engines only look at the first 60-65 characters I decided to switch the order of my page titles for forums and topics.

Default setup is Forum Name (set in admin panel) then either the Topic Title or the Forum Title depending on the page. So if you have a long forum name and a long Topic Title or Forum Title, part of the Topic Title or Forum Title will be cut off in the page title (as far as SE's go). I would rather have the forum name cut off on the long ones. Your opinion may vary.

So here's how to change it....

Open inc_func_common.asp...

To change Topic Page Titles

Find:

					if intShowTopicTitle = 1 then strTempTopicTitle = " - " & chkString(ttopics("T_SUBJECT"),"display")
					set ttopics = nothing
					strNewTitle = strForumTitle & strTempTopicTitle



Replace it with:

					if intShowTopicTitle = 1 then strTempTopicTitle = chkString(ttopics("T_SUBJECT"),"display") & " - "
					set ttopics = nothing
					strNewTitle = strTempTopicTitle & strForumTitle 


To change Forum Page Titles

Find:

					strNewTitle = strForumTitle & " - " & strTempForumTitle


Replace it with:

					strNewTitle = strTempForumTitle & " - " & strForumTitle


Very simple, always make backups!

<

Switch the order of your title tags

Edited by - bobby131313 on 03 June 2007 14:26:26

Etymon
Advanced Member

United States
2383 Posts

Posted - 04 June 2007 :  06:55:06  Show Profile  Visit Etymon's Homepage  Reply with Quote
Thank you! <
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 04 June 2007 :  11:50:41  Show Profile  Visit bobby131313's Homepage  Reply with Quote


You're welcome.

My first mod, simple though it may be.

<

Switch the order of your title tags
Go to Top of Page

Etymon
Advanced Member

United States
2383 Posts

Posted - 04 June 2007 :  13:14:23  Show Profile  Visit Etymon's Homepage  Reply with Quote
Gotta take the plunge at some point. <
Go to Top of Page

Lon2
Junior Member

USA
151 Posts

Posted - 19 February 2009 :  19:09:11  Show Profile  Reply with Quote
Thank you for the code, bobby!

Now if I can only figure out how to add page numbers to the Title Tag...<

Edited by - Lon2 on 19 February 2009 19:12:15
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 13 March 2009 :  19:35:22  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I just did this to my forum. Very easy and nice feature! Thanks!

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 13 March 2009 :  19:38:25  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I also like how it shows the name of the topic on the tab of the browser as well as the button in the taskbar (windows) if the page is minimized.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 13 March 2009 :  20:07:01  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I took mine a little further and changed the other forum pages too. If interested you can do this:

In inc_func_common.asp (3.4.06) look for:


      Case "members.asp"
         strNewTitle = strForumTitle & " - Members"
      Case "active.asp"
         strNewTitle = strForumTitle & " - Active Topics"
      Case "faq.asp"
         strNewTitle = strForumTitle & " - Frequently Asked Questions"
      Case "search.asp"
         strNewTitle = strForumTitle & " - Search"
      Case "pop_profile.asp"
         if request.querystring("mode") = "display" then
            strNewTitle = strForumTitle & " - View Profile"
         elseif request.querystring("mode") = "edit" then
            strNewTitle = strForumTitle & " - Edit Profile"
         else
            strNewTitle = strForumTitle & " - Profile"
         end if
      Case "register.asp"
         strNewTitle = strForumTitle & " - User Agreement and Registration"

And replace it with this:


      Case "members.asp"
	 strNewTitle = "Members - " & strForumTitle
      Case "active.asp"
	 strNewTitle = "Active Topics - " & strForumTitle
      Case "faq.asp"
	 strNewTitle = "Frequently Asked Questions - " & strForumTitle
      Case "search.asp"
	 strNewTitle = "Search - " & strForumTitle
      Case "pop_profile.asp"
         if request.querystring("mode") = "display" then
	    strNewTitle = "View Profile - " & strForumTitle
         elseif request.querystring("mode") = "edit" then
	    strNewTitle = "Edit Profile - " & strForumTitle
         else
	    strNewTitle = "Profile - " & strForumTitle
         end if
      Case "register.asp"
	 strNewTitle = "User Agreement and Registration - " strForumTitle

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 08 July 2009 :  22:11:31  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I'm not sure if it has anything to do with this mod, but I just noticed that if you click to go to the last thread of a reply, it shows the id number twice in the browser title and tab:



What needs to be changed to remove that?

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 17 July 2009 :  14:14:00  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Now I am getting the reply id three times in the browser header and tab!



What is causing this?

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 17 July 2009 :  15:27:57  Show Profile  Reply with Quote
You must have a variable which isn't being reset, but is being regularly appended to.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 17 July 2009 :  19:46:13  Show Profile  Visit leatherlips's Homepage  Reply with Quote
quote:
Originally posted by Carefree

You must have a variable which isn't being reset, but is being regularly appended to.

What do I need to check and where? I'm not sure how to correct it.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 18 July 2009 :  01:19:42  Show Profile  Reply with Quote
It will most likely be in "topic.asp". Post a link to that file in .txt format for us to review.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 July 2009 :  07:16:59  Show Profile  Visit leatherlips's Homepage  Reply with Quote
quote:
Originally posted by Carefree

It will most likely be in "topic.asp". Post a link to that file in .txt format for us to review.

Here it is. Thanks for looking!

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 19 July 2009 :  07:35:14  Show Profile  Reply with Quote
I didn't find it but I see that it's not displaying/duplicating topic IDs any longer. I guess all's well.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 19 July 2009 :  08:20:25  Show Profile  Visit leatherlips's Homepage  Reply with Quote
For me it is still duplicating the reply id's. I noticed it only does it in IE8.

If you click on the little blue arrow on the default.asp page () that is when it does it. If the arrow goes to the main topic it is fine. If the arrow goes to a reply, that is when I get the multiple id's in the address.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07