Not logged in. · Lost password · Register
Forum: Customising UNB Designs RSS
Where is f.desc generated?
Avatar
NFG #1
Member since Sep 2006 · 120 posts
Group memberships: Members
Show profile · Link to this post
Subject: Where is f.desc generated?
I'm trying to create a minimalist template, and I'm stripping out most of the graphics and as much CSS as I can.  I've run into a problem though, with f.desc.  I'm trying to make it a hover-to-read feature, rather than a separate line, in forumlist.html.

What I want is this:

<a href="{$f.link}" title="{$f.desc}">{$f.name}</a>

But while f.name is a plaintext chunk, f.desc includes extra, unwanted code.  Instead of this:

<a href="forum/33" title="FORUMTITLE">Forum Name</a>

I get this:

<a href="forum/33" title="<span class="abbc">FORUMTITLE</span>">Forum Name</a>

As you can see, there's a <span class="abbc"> added to the forum title, which completely breaks the page design.  Why is this the only string (so far) lucky enough to have a <span> element added?  I can't find the file that creates this string so I can stop it from happening... 

Pointers appreciated.  =)
This post was edited on 2010-07-23, 02:48 by NFG.
Avatar
Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3814 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I'd need to grep the code to find the place. But for now, the ABBC span element is added because you can use ABBC formatting in forum descriptions, along with text colour or smileys and stuff like that. Even if the forum description won't be delivered with that span element, it would still be converted to HTML including formatting. So you'd need to alter the core code to get rid of that.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20110527-dev, © 2003-2011 by Yves Goergen
Page created in 234.5 ms (78.4 ms) · 41 database queries in 205.7 ms
Current time: 2012-02-07, 19:57:17 (UTC +01:00)