Welcome aboard Visitor...

Daily Screenshot

Server Costs Target


84% of target met.

Latest Topics

- so i talked with Massi »
- See Commands »
- Now the fun begins »
- Qand answers have returned »
- Call to Arms »
- All Species 8572 Report in »
- hi there »
- Anyone still playing from a decade ago or longer? »
- Game still active. NICE! »
- help me »

Development Blog

- Roadmap »
- Hello strangers, it’s been a while... »
- State of DarkSpace Development »
- Potential planetary interdictor changes! »
- The Silent Cartographer »

Combat Kills

Combat kills in last 24 hours:
No kills today... yet.

Upcoming Events

- Weekly DarkSpace
11/23/24 +20.5 Hours

Search

Anniversaries

No anniversaries today.

Social Media

Why not join us on Discord for a chat, or follow us on Twitter or Facebook for more information and fan updates?

Network

DarkSpace
DarkSpace - Beta
Palestar

[FAQ
Forum Index » » General Support » » Changing HTML Titles
 Author Changing HTML Titles
culix
Midshipman

Joined: January 16, 2010
Posts: 10
From: Canada
Posted: 2010-01-19 16:11   
Hello,

I have a question/suggestion about the website and forum layout. I'm wondering if the web page TITLE tags could be changed to more accurately reflect their contents.

What I mean is: right now the title of the page you're looking at is probably "DarkSpace". This is because the HTML inside the web page has the tag "DarkSpace". This is good, but a bit unspecific. Every page on the site and every forum thread is titled "DarkSpace"!

I'm wondering if the titles could be changed to include the name of their page. For example, the "News" page could have the title "DarkSpace - News". Forum threads could display the thread name in their title. For example this thread would say "DarkSpace - Changing HTML Titles".

I think that more specific titles would make it easier to navigate the site. You can more easily see what page you're viewing with multiple tabs or windows. It would also greatly improve the search function, because rather than getting many results titled "DarkSpace" you would have hints about which page was more relevant. (this may also improve the search results if Google can better categorize pages, but I don't know for sure)



Anyway, I'm wondering if this is possible or if other people think it would be useful. I'm willing to help figure out and/or write some code if you need it. And sorry if this is posted in the wrong place - just let me know where it should go.


Thanks!
~culix
_________________


BackSlash
Marshal
Galactic Navy


Joined: March 23, 2003
Posts: 11183
From: Bristol, England
Posted: 2010-01-19 19:13   
Ah, the website. Glorious in some ways, and not so glorious in others. Come to think of it, it isn't glorious at all.

The website backend is TERRIBLY old and applies itself to very old HTML ideas. A new website and forum have always been on the books, but we don't have the time to do it, at all.

I'll have a see if I can make it reflect the website module being used (IE: Darkspace > Forum), but I'll need to find some time to do it.

- J
[ This Message was edited by: BackSlash on 2010-01-19 19:13 ]
_________________


Shigernafy
Admiral

Joined: May 29, 2001
Posts: 5726
From: The Land of Taxation without Representation
Posted: 2010-01-22 06:48   
The problem is this:

The page layout and menus and boxes on the right and such (the interface, as it is named) is just a bunch of HTML framing. It includes your initial , etc tags, statically. The first bit of DB calling comes in quite a few lines later on the actual page, as it populates the menu by context (though there aren't ever any changes) and adds in the page content based on whether its the faq or forum or whatever. So we'd have to shift around quite a bit of code and establish the db connection earlier etc. <BR> <BR>Not that its not possible, but its surprisingly complicated given the code that runs this relic. <BR> <BR>Probably doable.. I'll try to coordinate with Jack and see if we can do anything about it. Should have done it about.. oh, nine years ago. <BR>_________________<BR><!-- BBCode Start --><B>* [S.W]AdmBito @55321</B><!-- BBCode End --> Sent <!-- BBCode Start --><B>\"I dunno; the French had a few missteps. But they're on the right track, one headbutt at a time.\"</B><!-- BBCode End --><BR> <HR>  <a href="mailto:shigernafy@palestar.com"><IMG SRC="http://www1.palestar.com/gamecq/phpBB/images/email.gif" BORDER=0 ALT="Email Shigernafy"></a> </TD></TR><TR BGCOLOR="#202020" ALIGN="LEFT"> <TD valign=top><a href=?module=profile.php&view=163560 name=376063><font color=#ffffff class=big_text><b>JBud</b></font></a><br><font class=side_text>Marshal</font><BR><BR>Joined: February 26, 2008<br>Posts: 1900<br>From: Behind you.<br></td><TD><img src="http://www1.palestar.com/gamecq/phpBB/images/posticon.gif">Posted: 2010-01-22 10:04   <HR> if only variables could go the oppisite direction and move back in time <BR> <BR>Alternatively we could use the URL it's self, since the URL is unique for each of these subjects, for example: <BR> <BR>$title = "DarkSpace"; <BR>if ($_GET['module'] == "forums.php"){ <BR> $title .= " - Forums"; <BR>} elseif ($_GET['module'] == faq.php){ <BR> $title .= " - F.A.Q."; <BR>} <BR> <BR>and so on <BR> <BR>of course, it is a pain in the ass too, there's quite a few modules, but it wouldn't be quite as much rewriting and more just adding. <BR> <BR> <BR><BR><font class=small_text>[ This Message was edited by: JBud on 2010-01-22 10:12 ]</font> <BR>_________________<BR>[-Point Jumper-][-Privateer Elite-][-Summus Dux-][-Praeclarae-] <BR>[img(RIP MY SIGNATURE DELETED AFTER 7 YEARS/img] <BR><!-- BBCode Start --><I>''Insisto Rector - Suivez le Guide - Tempus hostium est''</I><!-- BBCode End --><BR> <HR>  <a href="mailto:jbudorg@gmail.com"><IMG SRC="http://www1.palestar.com/gamecq/phpBB/images/email.gif" BORDER=0 ALT="Email JBud"></a>   <a href="http://www.budzique.com" TARGET="_blank"><IMG SRC="http://www1.palestar.com/gamecq/phpBB/images/www_icon.gif" BORDER=0 ALT="Goto the website of JBud"></a> </TD></TR><TR BGCOLOR="#000000" ALIGN="LEFT"> <TD valign=top><a href=?module=profile.php&view=196882 name=376113><font color=#ffffff class=big_text><b>culix</b></font></a><br><font class=side_text>Midshipman</font><BR><BR>Joined: January 16, 2010<br>Posts: 10<br>From: Canada<br></td><TD><img src="http://www1.palestar.com/gamecq/phpBB/images/posticon.gif">Posted: 2010-01-25 01:45   <HR> Hey thanks for the replies. It was not my intent to cause you a lot of work <IMG SRC="http://www1.palestar.com/gamecq/phpBB/images/smiles/icon_wink.gif">rnrnI was talking about this with BackSlash over PM, but do you want some help with this? I haven't written much PHP but I program and I have database experience. Let me know here or on PM; I can send you my email if you need it.rnrn~culix<BR><font class=small_text>[ This Message was edited by: culix on 2010-01-25 01:46 ]</font> <BR>_________________<BR><BR> <HR></TD></TR> </TABLE> </TD> </TR> </TABLE> <TABLE class=std_text ALIGN="CENTER" BORDER="0" WIDTH="95%"> <TR> <TD> </TD> <TD ALIGN="CENTER"> </TD> <TD ALIGN="RIGHT"> <FORM ACTION="viewforum.php" METHOD="GET"> <SELECT NAME="forum"> <OPTION VALUE="-1">Select a Forum </OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">General</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="113">Fan Fiction</OPTION> <OPTION VALUE="121">The Universe Today</OPTION> <OPTION VALUE="134">Fan Art</OPTION> <OPTION VALUE="172">Soap Box</OPTION> <OPTION VALUE="260">DarkSpace Assault</OPTION> <OPTION VALUE="282">The Trade Station</OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">Discussions</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="1">English (General)</OPTION> <OPTION VALUE="9">Deutsch (German)</OPTION> <OPTION VALUE="16">Español</OPTION> <OPTION VALUE="90">Français</OPTION> <OPTION VALUE="102">Nederlands (Dutch)</OPTION> <OPTION VALUE="236">Svenska (Swedish)</OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">Support</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="6">Client Installation Issues (Hardware/Drivers)</OPTION> <OPTION VALUE="13">Tactics & New Players</OPTION> <OPTION VALUE="100">General Support</OPTION> <OPTION VALUE="174">Questions</OPTION> <OPTION VALUE="182">Development Updates</OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">Development</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="5">Beta Testing Discussion</OPTION> <OPTION VALUE="17">Developer Announcements</OPTION> <OPTION VALUE="36">Developer Feedback</OPTION> <OPTION VALUE="74">Advanced Scripting Discussion</OPTION> <OPTION VALUE="79">Private Development Forum</OPTION> <OPTION VALUE="98">Basic Scripting Discussion</OPTION> <OPTION VALUE="175">Medusa Engine</OPTION> <OPTION VALUE="177">Development Updates</OPTION> <OPTION VALUE="184">Content Suggestions</OPTION> <OPTION VALUE="272">Player Submitted Maps</OPTION> <OPTION VALUE="285">* Development Blog *</OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">Organization</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="33">Staff Announcements</OPTION> <OPTION VALUE="40">Private Staff Discussion</OPTION> <OPTION VALUE="71">Player Management</OPTION> <OPTION VALUE="119">Private Administrator Discussion</OPTION> <OPTION VALUE="124">DarkSpace Events</OPTION> <OPTION VALUE="231">Documentation Discussion</OPTION> <OPTION VALUE="288">Event Organisation</OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">Groups</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="10">MoA</OPTION> <OPTION VALUE="11">GER</OPTION> <OPTION VALUE="12">eXS</OPTION> <OPTION VALUE="23"> Diplomacy</OPTION> <OPTION VALUE="24">BIS</OPTION> <OPTION VALUE="35">C `</OPTION> <OPTION VALUE="43">-[A]-</OPTION> <OPTION VALUE="44">PB</OPTION> <OPTION VALUE="68">S.W</OPTION> <OPTION VALUE="80">*TS*</OPTION> <OPTION VALUE="108">Evil</OPTION> <OPTION VALUE="126">TK</OPTION> <OPTION VALUE="149">-GTN-</OPTION> <OPTION VALUE="160">FS</OPTION> <OPTION VALUE="183">CEC</OPTION> <OPTION VALUE="186">Raven</OPTION> <OPTION VALUE="190">Myth</OPTION> <OPTION VALUE="192">SYN</OPTION> <OPTION VALUE="195">-BUM-</OPTION> <OPTION VALUE="218">=WKA=</OPTION> <OPTION VALUE="226">LAG</OPTION> <OPTION VALUE="242">UNSC</OPTION> <OPTION VALUE="243">:SA:</OPTION> <OPTION VALUE="254">*RSM*</OPTION> <OPTION VALUE="259">=Wolf=</OPTION> <OPTION VALUE="267"> Recruitment</OPTION> <OPTION VALUE="269">=ICC=</OPTION> <OPTION VALUE="277">EAFS</OPTION> <OPTION VALUE="286">:AoD:</OPTION> <OPTION VALUE="317">*FTL*</OPTION> <OPTION VALUE="318">MLP</OPTION> <OPTION VALUE="320">TFS</OPTION> <OPTION VALUE="321">-D</OPTION> <OPTION VALUE="322">=NoM=</OPTION> <OPTION VALUE="324">-KR-</OPTION> <OPTION VALUE="327">UEF</OPTION> <OPTION VALUE="328">Lord</OPTION> <OPTION VALUE="329">TRaF</OPTION> <OPTION VALUE="331">[-ML-]</OPTION> <OPTION VALUE="332">Mk</OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">Medusa</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="26">Development Updates</OPTION> <OPTION VALUE="28">Bugs</OPTION> <OPTION VALUE="-1"> </OPTION> <OPTION VALUE="-1">GameCQ</OPTION> <OPTION VALUE="-1">----------------</OPTION> <OPTION VALUE="27">Development Updates</OPTION> <OPTION VALUE="29">Bugs</OPTION> </SELECT> <INPUT TYPE="SUBMIT" VALUE="Go"> </FORM> </TD> </TR> </TABLE> <center><font size=-2>Page created in 0.009320 seconds.</font></center><br><br> <p align="center" class=small_text>Copyright © 2000 - 2024 Palestar Inc. All rights reserved worldwide.<br> <a href="http://www.darkspace.net/wiki/index.php/Rules_of_Conduct" target="roc">Terms of use</a> - DarkSpace is a Registered Trademark of <a href="http://www.palestar.com" target="_blank">PALESTAR</a> </p> </td> </tr> </table> </td> <td width="37" valign="top"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="100%" background="interface/images/interf_mid_clip.jpg"> <tr> <td width="100%" valign="top"> <img border="0" src="interface/images/interf_mid_top2.jpg" width="37" height="376"> </td> </tr> <tr> <td width="100%" valign="bottom"> <img border="0" src="interface/images/interf_mid_bot1.jpg" width="37" height="88"> </td> </tr> </table> </td> </tr> <tr> <td width="133" valign="bottom" height="28"> <img border="0" src="interface/images/interf_bot2.jpg" width="133" height="28"> </td> <td valign="top" height="28"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="100%" background="interface/images/interf_bot_clip.jpg"> <tr> <td width="100%"> <p align="right"><img border="0" src="interface/images/interf_bot_right.jpg" width="80" height="28"> </td> </tr> </table> </td> <td width="37" height="28" > <img border="0" src="interface/images/interf_mid_bot2.jpg" width="37" height="28"> </td> </tr> </table> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-11783202-1"); pageTracker._trackPageview(); } catch(err) {} </script> </body> </html>