Changing Table Cell Backgrounds within Posts

Mods etc.

Moderator: Integra Moderator

Changing Table Cell Backgrounds within Posts

PostAuthor: Dr. Bantham » Sun Jun 18, 2006 4:58 am

This is an odd request, but perhaps someone can point me in the right direction. I utilize Knowledge Base as a repository for stories, essays, interviews, etc. I would like to be able to change the background within the content to distinguish content. For instance, the interviewer could be defined as row1 and the interviewee as row2, thereby creating a visual distinction between the two parties (text color and background could vary). I am certain there is no way to do this in BBCode, but what if HTML is enabled?

If the above is not possible, could I reference the CMS styles in an HTML page which is called through IM Portal?
Last edited by Dr. Bantham on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 5:25 pm
Cash on hand: 0.00

Re: Changing Table Cell Backgrounds within Posts

PostAuthor: Dr. Bantham » Sun Jun 18, 2006 9:13 am

Surprisingly, I have managed partial success in my efforts. Enabling the span statement within ACP as acceptable HTML allows for application of valid IM CSS elements. However, since I wanted to display the content in a cell format in lieu of only applying the CSS to the text, I further allowed the use of table, tr and td as acceptable HTML. This works, though the table statements appear to introduce a line break before the table content for every statement called. Example follows:[code]Literature Is Entertainment Or It it Nothing: An Interview With Thomas Ligotti
By: Neddal Ayad
http://www.fantasticmetropolis.com/i/ligotti/)

Thomas Ligotti is North Americas pre-eminent writer of weird horror fiction. His work has appeared in dozens of magazines and anthologies. In 1997, his collection The Nightmare Factory won the Bram Stoker Award for Best Fiction Collection. à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€¦Ã¢â‚¬Å“The Red Tower,à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€š
Last edited by Dr. Bantham on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon Jun 19, 2006 2:44 pm

The whitespace is from the carriage returns in the HTML structure. When writing HTML you literally have to remove all extra carriage returns and spaces in between the > and the < of each consecutive HTML element. It can be a major pain, but should be easy to accomplish with a simple find-and-replace in a text editor, then paste the condensed code into your post.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: Changing Table Cell Backgrounds within Posts

PostAuthor: Dr. Bantham » Mon Jun 19, 2006 4:42 pm

Understood. Thanks for the clarification, Jason. I have further established that HTML is not being allowed in Knowledge Base to any extent. Even bold and italics tags are being ignored within KB, therefore it has nothing to do specifically with my allowing span and table tags. Again, these tags appear properly in the preview, but not when viewing the final article. Is HTML in KB working for others? If so, does anyone know which file handles this so that I may attempt a reconstruction?
Last edited by Dr. Bantham on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 5:25 pm
Cash on hand: 0.00

Re: Changing Table Cell Backgrounds within Posts

PostAuthor: Dr. Bantham » Mon Jun 19, 2006 5:36 pm

I installed a separate clean version of IM 1.40 on my server for testing purposes. I have determined through testing with this installation that HTML statements are not being formatted when viewing Knowledge Base articles. The preview shows the content properly, but the articles display the HTML code as standard text when viewed. This appears to be a bug, though I do not know if it is exclusive to IntegraMOD or if it is a general phpBB Knowledge Base problem. Can anyone help?
Last edited by Dr. Bantham on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon Jun 19, 2006 7:26 pm

phpBB doesn't have a knowledge base, this was one of the mods added to IntegraMod. It is a known issue at this point, with no known resolution (that I'm aware of).
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Adrian Rea » Mon Jun 19, 2006 7:45 pm

Sorry, I was sure I clicked submit in this thread after Jason's post. Real bad day!

The problem of posting HTML in the KB has been known for some time. I cannot see the article straight away but I know it is an acute one for many.

A further point on the html front, the latest phpbb updates have really tried to obliterate html posting functions. the issue being that they feel the risk is greater than the gain of having html functionality. <img>

Looking at the example you gave, the main differences appear to be just the background change on each character of the interview. Whilst HTML enhancement is out, you can use bbcode enhancement to help denote the different speakers. Plain bold, italics and colour of text can do this. You could even consider changing the font if need be. This would give instant delineation between speakers and is the way that most people do it.

To change the background of a line of text, I would think could be done by modifying a bbcode. If you can easily add a bold tag, I would have thought it it is not a giant leap to add a style code.

A
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]