Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Switch Order of Page Titles

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bobby131313 Posted - 03 June 2007 : 14:22:10
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!

<
15   L A T E S T    R E P L I E S    (Newest First)
AnonJr Posted - 19 July 2009 : 09:46:05
Maybe the problem is with the Jump to last post code?
leatherlips Posted - 19 July 2009 : 08:20:25
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.
Carefree Posted - 19 July 2009 : 07:35:14
I didn't find it but I see that it's not displaying/duplicating topic IDs any longer. I guess all's well.
leatherlips Posted - 18 July 2009 : 07:16:59
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!
Carefree Posted - 18 July 2009 : 01:19:42
It will most likely be in "topic.asp". Post a link to that file in .txt format for us to review.
leatherlips Posted - 17 July 2009 : 19:46:13
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.
Carefree Posted - 17 July 2009 : 15:27:57
You must have a variable which isn't being reset, but is being regularly appended to.
leatherlips Posted - 17 July 2009 : 14:14:00
Now I am getting the reply id three times in the browser header and tab!



What is causing this?
leatherlips Posted - 08 July 2009 : 22:11:31
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?
leatherlips Posted - 13 March 2009 : 20:07:01
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
leatherlips Posted - 13 March 2009 : 19:38:25
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.
leatherlips Posted - 13 March 2009 : 19:35:22
I just did this to my forum. Very easy and nice feature! Thanks!
Lon2 Posted - 19 February 2009 : 19:09:11
Thank you for the code, bobby!

Now if I can only figure out how to add page numbers to the Title Tag...<
Etymon Posted - 04 June 2007 : 13:14:23
Gotta take the plunge at some point. <
bobby131313 Posted - 04 June 2007 : 11:50:41


You're welcome.

My first mod, simple though it may be.

<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07