Tetra-WebBBS Support Forum

replace text links with image links
In Response To: Re: 3 Mod Questions ()

: Mod #2 that I need: Replace text links (Post New, Reply,
: etc.) with image links.

:No mod required at all. It's configurable via language file.

Actually more mods than Brighton during the 60`s

For anyone replacing text links with image links

In webbbs_custom

$text{'0003'} = "<img src='http://www.yourdomain.com/reply.gif'>";

etc

Then your buttons may not look good against a coloured background

in css/site.css

background-color: #FFFFFF; where needed.

Again in css/webbbs.css - using an html converter to see what the original colour were so grey back grounds are not overwritten if yu wish to keep those.

And while you are in css/webbbs.css your nice clean image buttons have a line and brackets underneath

/* link */
a { color: blue; }
a:visited { color: blue; }
a:hover { color: red; }
a img { border: 0; }

/* navbar link to white */

div#glob_wrapbbs div.glob_navbar a { color: #FFFFFF; }

I also (perhaps unnecessarily) removed the square brackets

/* MSIE 5/6 don't support insertion of */
/* [] around link with :before and :after */
div.adm_navbar span a:before,
div.glob_navbar span a:before,
div.msg_gbnavbar span a:before,
span.teaser_mlnk a:before {
content: '';
}
div.adm_navbar span a:after,
div.glob_navbar span a:after,
div.msg_gbnavbar span a:after,
span.teaser_mlnk a:after {
content: '';
/*removed [ and ] */
}

I also found navbar links which i did not want:

In webbbs_settings.pl setting related options to 0 removes the link

eg:

$AllowRemoveNew = 0;

But also did

$text{'0015'} = "";
(removing for telltale)

$text{'01011'} = '';
for removing the email subscribe/unsubscribe link (still there as a line but white and small) - check the law in your country to see if it is necessary.

I did want extra image links on the same line, but the methods of adding links put my links on different lines. I suspect using the custom.pl one can create a table, table row and cel, then create a new cell after and add in image links there before closing the table, however this may affect the nice way navbar links move to accommodate to different page sizes and also in testing affected turned message links to white (possible as the table messed up the div.