Skip to content

Commit 84b426e

Browse files
Added links to wiki + tool tips
Added some tool tips per: smrealms#12 Added link to wiki per: smrealms#18 Also added 2 images, 1 informational (tool tips), 1 help (links to wiki) Added links to wiki pages on various pages.
1 parent 258aae1 commit 84b426e

21 files changed

+41
-30
lines changed

admin/Default/1.6/universe_create_save_processing.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,8 @@ function createGame($gameID) {
645645

646646
$db->query('REPLACE INTO alliance_thread_topic (game_id, alliance_id, thread_id, topic) VALUES (' . $db->escapeNumber($gameID) . ', ' . $db->escapeNumber(NHA_ID) . ', 22, \'Ships\')');
647647
$text = 'Everything you do in SMR is done while you are flying some kind of ship - it can be anything from an escape pod to a huge IkThorne mothership, but you are always the pilot of something. In addition to the neutral ships, each race also has unique ships that only race members can purchase. You can find the SMR shiplist here:<br />
648-
<br />
649-
<a href="http://www.smrealms.de/manual.php?52">http://www.smrealms.de/manual.php?52</a><br />
648+
<a href="http://www.smrealms.de/ship_list.php target="_blank">http://www.smrealms.de/ship_list.php</a> <br />
649+
Additional information relating to ships can be found in the <a href="http://wiki.smrealms.de/" target="_blank">SMR wiki</a><br />
650650
<br />
651651
It is important to choose ships to match your budget and your needs, and the biggest or most expensive ships are not always the best ones for all purposes.<br />
652652
<br />
@@ -674,7 +674,7 @@ function createGame($gameID) {
674674
$db->query('REPLACE INTO alliance_thread_topic (game_id, alliance_id, thread_id, topic) VALUES (' . $db->escapeNumber($gameID) . ', ' . $db->escapeNumber(NHA_ID) . ', 23, \'Weapons\')');
675675
$text = 'SMR has a wide variety of weapons with which to arm your ships, and information on weapon capabilities can be found here:<br />
676676
<br />
677-
<a href="http://www.smrealms.de/manual.php?53">http://www.smrealms.de/manual.php?53</a><br />
677+
<a href="http://www.smrealms.de/weapon_list.php">http://www.smrealms.de/weapon_list.php</a><br />
678678
<br />
679679
There are a few things to consider when choosing weapons, and the weapon combination that works for one player may not be suited to the style or the needs of another.<br />
680680
<br />

admin/Default/universe_create_end.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@
237237

238238
$db->query('REPLACE INTO alliance_thread_topic (game_id, alliance_id, thread_id, topic) VALUES ('.$game_id.', 302, 22, \'Ships\')');
239239
$text = 'Everything you do in SMR is done while you are flying some kind of ship - it can be anything from an escape pod to a huge IkThorne mothership, but you are always the pilot of something. In addition to the neutral ships, each race also has unique ships that only race members can purchase. You can find the SMR shiplist here:<br />
240-
<br />
241-
<a href="http://www.smrealms.de/manual.php?52">http://www.smrealms.de/manual.php?52</a><br />
240+
<a href="http://www.smrealms.de/ship_list.php target="_blank">http://www.smrealms.de/ship_list.php</a> <br />
241+
Additional information relating to ships can be found in the <a href="http://wiki.smrealms.de/" target="_blank">SMR wiki</a><br />
242242
<br />
243243
It is important to choose ships to match your budget and your needs, and the biggest or most expensive ships are not always the best ones for all purposes.<br />
244244
<br />
@@ -266,7 +266,7 @@
266266
$db->query('REPLACE INTO alliance_thread_topic (game_id, alliance_id, thread_id, topic) VALUES ('.$game_id.', 302, 23, \'Weapons\')');
267267
$text = 'SMR has a wide variety of weapons with which to arm your ships, and information on weapon capabilities can be found here:<br />
268268
<br />
269-
<a href="http://www.smrealms.de/manual.php?53">http://www.smrealms.de/manual.php?53</a><br />
269+
<a href="http://www.smrealms.de/weapon_list.php">http://www.smrealms.de/weapon_list.php</a><br />>
270270
<br />
271271
There are a few things to consider when choosing weapons, and the weapon combination that works for one player may not be suited to the style or the needs of another.<br />
272272
<br />

engine/Default/alliance_forces.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
AND expire_time >= ' . $db->escapeNumber(TIME) . '
5353
ORDER BY ' . $categorySQL . ', ' . $subcategory);
5454

55-
$PHP_OUTPUT.= '<div align="center">';
55+
$PHP_OUTPUT.= '<div align="center"><a href="http://wiki.smrealms.de/index.php?title=Game_Guide:_Forces" target="_blank"><img align="right" src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Forces"/></a>';
5656

5757
if ($db->getNumRows() > 0) {
5858
$PHP_OUTPUT.= 'Your alliance currently has ';

engine/Default/forces_list.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
$container['subcategory'] = $category;
3838

3939
$PHP_OUTPUT.=create_table();
40+
$PHP_OUTPUT.=('<a href="http://wiki.smrealms.de/index.php?title=Game_Guide:_Forces" target="_blank"><img align="right" src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Forces"/></a><br />');
4041
$PHP_OUTPUT.=('<tr>');
4142
setCategories($container,'sector_id',$category,$categorySQL,$subcategory);
4243
$PHP_OUTPUT.=('<th align="center">');
@@ -76,7 +77,7 @@
7677
}
7778

7879
else
79-
$PHP_OUTPUT.=('You have no deployed forces');
80+
$PHP_OUTPUT.=('You have no deployed forces <a href="http://wiki.smrealms.de/index.php?title=Game_Guide:_Forces" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Forces"/></a>');
8081

8182

8283
function setCategories(&$container,$newCategory,$oldCategory,$oldCategorySQL,$subcategory) {

engine/Default/game_join_processing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
$db->query('INSERT INTO player_has_alliance_role (game_id, account_id, role_id,alliance_id) VALUES ('.$db->escapeNumber($gameID).', '.$db->escapeNumber($account->getAccountID()).', 2,'.$db->escapeNumber(NHA_ID).')');
188188
//we need to send them some messages
189189
$message = 'Welcome to Space Merchant Realms, this message is to get you underway with information to start you off in the game. All newbie and beginner rated player are placed into a teaching alliance run by a Veteran player who is experienced enough to answer all your questions and give you a helping hand at learning the basics of the game.<br /><br />
190-
Apart from your leader (denoted with a star on your alliance roster) there are various other ways to get information and help. Newbie helpers are players in Blue marked on the Current Players List which you can view by clicking the link on the left-hand side of the screen that says "Current Players". Also you can visit the SMR Manual via a link on the left which gives detailed information on all aspects fo the game.<br /><br />
190+
Apart from your leader (denoted with a star on your alliance roster) there are various other ways to get information and help. Newbie helpers are players in Blue marked on the Current Players List which you can view by clicking the link on the left-hand side of the screen that says "Current Players". Also you can visit the SMR Wiki via a link on the left which gives detailed information on all aspects fo the game.<br /><br />
191191
SMR is a very community orientated game and as such there is an IRC Chat server setup for people to talk with each other and coordinate your alliances. There is a link on the left which will take you directly to the main SMR room where people come to hang out and chat. You can also get help in the game in the #smr room. You can access this by typing /join #smr-help in the server window. If you prefer to use a dedicated program to access IRC Chat rather than a browser you can goto http://www.mirc.com which is a good shareware program (asks to register the program after 30 days but you can still use it after 30 days so you won\'t get cut off from using it) or http://www.xchat.org which is a free alternative. In the options of either program you will need to enter the server information to access the server. Add a new server and enter the server address irc.coldfront.net using port 6667. Once connected you can use the /join command to join #smr (/join #smr) or any other room on the server as normal.<br /><br />
192192
Apart from this you can view the webboard via a link on the left to join in community chat and conversations, ask questions for help and make suggestions for the game in various forums.<br /><br />
193193
To get underway, click the alliance link on the left where you can get more information on how to get started on the alliance message board which will get you into your alliance chat on IRC so you can get started and have your questions answered.<br /><br />Depending on the size and resolution of your monitor the default font size may be too large or small. This can be changed using the preferences link on the left panel.';

engine/Default/preferences_processing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
'You changed your email address registered within SMR and need to revalidate now!'.EOL.EOL.
5757
' Your new validation code is: '.$account->getValidationCode().EOL.EOL.
5858
'The Space Merchant Realms server is on the web at '.URL.'/.'.EOL.
59-
'You\'ll find a quick how-to-play here '.URL.'/manual.php'.EOL.
59+
'You\'ll find a quick how-to-play here <a href="http://wiki.smrealms.de/index.php?title=Video_Tutorials#A_Look_At_The_Game">SMR Wiki: A look at the game</a>'.EOL.
6060
'Please verify within the next 7 days or your account will be automatically deleted.',
6161
6262

engine/Default/trader_status.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
$PHP_OUTPUT.= '<table class="standard fullwidth"><tr><td style="width:50%" class="top">';
1111

12-
$PHP_OUTPUT.= '<span class="yellow bold">Protection</span><br />';
12+
$PHP_OUTPUT.= '<span class="yellow bold">Protection</span><a href="http://wiki.smrealms.de/index.php?title=Game_Guide:_Federal_Protection" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Protection"/></a><br />';
1313
if($player->getNewbieTurns()) {
1414
$PHP_OUTPUT.= 'You are under <span class="green">NEWBIE</span> protection.<br /><br />';
1515

@@ -38,7 +38,7 @@
3838
$PHP_OUTPUT.= '<br />';
3939

4040
$container['body'] = 'council_list.php';
41-
$PHP_OUTPUT.=create_link($container, '<span class="yellow bold">Politics</span>');
41+
$PHP_OUTPUT.=create_link($container, '<span class="yellow bold">Politics</span><a href="http://wiki.smrealms.de/index.php?title=Game_Guide:_Politics_and_the_Ruling_Council" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Politics"/></a>');
4242
$PHP_OUTPUT.= '<br />';
4343

4444
require_once(get_file_loc('council.inc'));
@@ -58,7 +58,7 @@
5858
$PHP_OUTPUT.= '<br /><br />';
5959

6060
$container['body'] = 'trader_savings.php';
61-
$PHP_OUTPUT.=create_link($container, '<span class="yellow bold">Savings</span>');
61+
$PHP_OUTPUT.=create_link($container, '<span class="yellow bold">Savings</span><a href="http://wiki.smrealms.de/index.php?title=Banks" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Banks"/></a>');
6262
$PHP_OUTPUT.= '<br />You have <span class="yellow">';
6363

6464
$PHP_OUTPUT.= number_format($player->getBank());
@@ -67,7 +67,7 @@
6767
$PHP_OUTPUT.= '</td><td class="top" style="width:50%">';
6868

6969
$container['body'] = 'trader_bounties.php';
70-
$PHP_OUTPUT.=create_link($container, '<span class="yellow bold">Bounties</span>');
70+
$PHP_OUTPUT.=create_link($container, '<span class="yellow bold">Bounties</span><a href="http://wiki.smrealms.de/index.php?title=Headquarters" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Bounties"/></a>');
7171

7272
$PHP_OUTPUT.= '<br /><span class="green">Federal: </span>';
7373
$bounty = $player->getCurrentBounty('HQ');
@@ -82,14 +82,14 @@
8282
else
8383
$PHP_OUTPUT.= 'None';
8484

85-
$PHP_OUTPUT.= '<br /><br /><span class="yellow bold">Ship</span><br />Name: ';
85+
$PHP_OUTPUT.= '<br /><br /><span class="yellow bold">Ship</span><a href="http://www.smrealms.de/ship_list.php" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Ship List"/></a><br />Name: ';
8686

8787
$PHP_OUTPUT.= $ship->getName();
8888
$PHP_OUTPUT.= '<br />Speed: ';
8989
$PHP_OUTPUT.= $ship->getRealSpeed();
9090
$PHP_OUTPUT.= ' turns/hour<br />Max: ';
9191
$PHP_OUTPUT.= $player->getMaxTurns();
92-
$PHP_OUTPUT.= ' turns<br /><br /><span class="yellow bold">Supported Hardware</span><br />';
92+
$PHP_OUTPUT.= ' turns<br /><br /><span class="yellow bold">Supported Hardware</span><a href="http://wiki.smrealms.de/index.php?title=Game_Guide:_Technologies" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Technologies"/></a><br />';
9393

9494
if (!$ship->canHaveScanner() &&
9595
!$ship->canHaveIllusion() &&
@@ -104,7 +104,7 @@
104104
if ($ship->canHaveDCS()) $PHP_OUTPUT.= 'Drone Scrambler<br />';
105105
}
106106

107-
$PHP_OUTPUT.= '<br /><a href="'.URL.'/level_requirements.php" target="levelRequirements"><span class="yellow bold">Next Level</span></a><br />';
107+
$PHP_OUTPUT.= '<br /><a href="'.URL.'/level_requirements.php" target="levelRequirements"><span class="yellow bold">Next Level</span></a><a href="http://wiki.smrealms.de/index.php?title=Game_Guide:_Experience_Levels" target="_blank"><img src="images/silk/help.png" width="16" height="16" alt="Wiki Link" title="Goto SMR Wiki: Experience Levels"/></a><br />';
108108
$db->query('SELECT level_name,requirement FROM level WHERE requirement>' . $db->escapeNumber($player->getExperience()) . ' ORDER BY requirement ASC LIMIT 1');
109109
if(!$db->nextRecord()) {
110110
$db->query('SELECT level_name,requirement FROM level ORDER BY requirement DESC LIMIT 1');
@@ -143,12 +143,12 @@
143143

144144
$container = array();
145145
$container['url'] = 'note_add_processing.php';
146-
$form = create_form($container,'New Note');
146+
$form = create_form($container,'Create New Note');
147147
$PHP_OUTPUT.= $form['form'];
148148
$PHP_OUTPUT.= '<table cellspacing="0" cellpadding="0" class="nobord nohpad">
149149
<tr>
150-
<td class="top">Note:&nbsp;</td>
151-
<td colspan="2"><textarea spellcheck="true" name="note"></textarea></td>
150+
Enter text in the box below to create a new note.<br />(examples: trade routes, weapon locations, key alliance related locations)
151+
<td><textarea spellcheck="true" name="note"></textarea></td>
152152
</tr>
153153
</table><br />';
154154
$PHP_OUTPUT.= $form['submit'];

htdocs/email_processing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
'You changed your email address registered within SMR and need to revalidate now!'.EOL.EOL.
6060
' Your new validation code is: '.$account->getValidationCode().EOL.EOL.
6161
'The Space Merchant Realms server is on the web at '.URL.'/.'.EOL.
62-
'You\'ll find a quick how-to-play here '.URL.'/manual.php'.EOL.
62+
'You\'ll find a quick how-to-play here <a href="http://wiki.smrealms.de/index.php?title=Video_Tutorials#A_Look_At_The_Game">SMR Wiki: A look at the game</a>'.EOL.
6363
'Please verify within the next 7 days or your account will be automatically deleted.',
6464
6565

htdocs/images/silk/help.png

786 Bytes
Loading

htdocs/images/silk/information.png

778 Bytes
Loading

0 commit comments

Comments
 (0)