Elftown Examples

This is some examples of how to fix small things in Heddate/Elftown.

The missing DIV-tag mission

When you view a private message, the text "letter number" is not having it's own DIV-tag. How should we fix that?

First, find the text "Letter number" in the texts.data-file. Use ^s in emacs to locate it and make sure that you only find this text in one place.

Then go to the heddate.pike file and search for the text ".2115." and you should find it in only one place. In this case, you find it in two places. The other place is in a function that prints the text for the spy-function.

But we do want to change the both places. So in the write_message()-place we find the code:

	     "...2115...: "+message->nr+
	    ((<2,3,5>)[((int)message->readnote)]?  "
	    ...2176....":"")+

Not that easy to understand, but we just add the DIV-tags that we want:

	    "<DIV CLASS=LETTERNUMBER>...2115...: "+message->nr+
	    ((<2,3,5>)[((int)message->readnote)]?  "
	    ...2176....":"")+"</DIV>\n"+

Then you have to upload the file to Elftown, talk to Hedda and so on. See work!


Back to index