rob (ademus05) wrote in logjam,
rob
ademus05
logjam

Changing the way logjam creates links to other journals

I wrote a patch to change the way logjam creates links to friends under the Make Link... menu option. With a maintainer's blessing, this change can be incorporated into the source.

This feature was added to mimic the way Semagic creates links to other journals. Any feedback?

Links to friends' pages that used to look like this:
arbitrary_text_with_link_to_logjam

would now look like this:
logjamarbitrary_text_with_link_to_logjam



diff -c src/link.c src2/link.c
*** src/link.c  Thu Nov 28 00:12:32 2002
--- src2/link.c Tue Mar  4 00:14:58 2003
***************
*** 135,141 ****
        } else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(ruser))) {
                /* build a "friends" link */
                char *link;
!               link = g_strdup_printf("<a href=\"%s/users/%s\">%s</a>",
                                conf_cur_server()->url,
                                gtk_entry_get_text(GTK_ENTRY(euser)),
                                gtk_entry_get_text(GTK_ENTRY(etext)));
--- 135,145 ----
        } else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(ruser))) {
                /* build a "friends" link */
                char *link;
!               link = g_strdup_printf("<a href=\"%s/userinfo.bml?user=%s\"><img alt=\"%s\" height=\"17\" src=\"%s/img/userinfo.gif\" border=\"0\" width=\"17\"
align=\"absmiddle\"></a><b><a href=\"%s/users/%s/\">%s</a></b>",
!                               conf_cur_server()->url,
!                               gtk_entry_get_text(GTK_ENTRY(euser)),
!                               gtk_entry_get_text(GTK_ENTRY(euser)),
!                               conf_cur_server()->url,
                                conf_cur_server()->url,
                                gtk_entry_get_text(GTK_ENTRY(euser)),
                                gtk_entry_get_text(GTK_ENTRY(etext)));
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 10 comments