Sponsored Content
The Lounge What is on Your Mind? Update on UNIX.COM Site Upgrades (Desktop) Post 303021202 by Neo on Monday 6th of August 2018 09:04:08 AM
Old 08-06-2018
Quote:
Originally Posted by Neo
This post is about the "Desktop" view, not "Mobile' ...


But, I still have not solved one of the original problems (the original sin) which is the fact that the CSS overflow function does not work for the bbcode pre tags, and so the scroll bar is currently for the entire post (wrong) and not for the text in the code tags.

I am pretty sure this problem happens because of how the original site uses table tags for each post; so I'm going to have to redesign all the posts to use only div tags without table tags (except for the small drop down / pop up menus).

There seems no way to get around this very boring and "not easy" part of the project, so I think I'll start on this in the next phase.

Basically, I think I'll create a new postbit template which on my user id will see, so when I fat finger some CSS or other make an error, only I will see the error, but you will only see the normal site.

Then, when we think I have it working OK, I'll make it live for testing.....

Thanks again.
I have fixed this problem... YAY!

Posts Converted to Divs - Overflow Works - Now Testing
 

5 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Anti-Unix site running Unix

I just wanted to share this piece of news to all of you, comments are unnecessary :) http://news.com.com/2100-1001-872266.html (1 Reply)
Discussion started by: J.P
1 Replies

2. AIX

How can I manage redundant HMC upgrades with firmware upgrades?

Lets says I have 2 HMC's A and B, connected to a p570 managed system. Right now the firmware level of the p570 is EM320_076 and that needs to be upgraded to EM340_095. Now the HMC's are at V7R3.3 and as per the code matrix the HMC's needs to be upgraded to V7R3.4 Servicepack 2. Now my... (5 Replies)
Discussion started by: balaji_prk
5 Replies

3. Programming

Need best forum site for java (as for unix its unix.com)

Hi All, Can anyone help me for knowing the java best side forums. where i will get a quick responce like here , as i am having lot of question. Thanks (1 Reply)
Discussion started by: aish11
1 Replies

4. Shell Programming and Scripting

Site update

Hi All, I have to go to some particular website for every day in backend, so i have created some script to pick that values, Is there any way to know the website updating, Because if site has mod. then my script is not giving proper data, so i need to check once in a day whether the site has... (1 Reply)
Discussion started by: Shenbaga.d
1 Replies

5. What is on Your Mind?

Quick Update on UNIX.COM Site Renovation: Bootstrap, Font Awesome and jQuery

Here is an update on the site renovation: After a lot of analysis and example programming, including testing out a number of Javascript framework and libraries, in the short term, we are getting the most bang-for-the-buck from these three basic, core tech areas: Bootstrap (CSS and... (2 Replies)
Discussion started by: Neo
2 Replies
HTML::WikiConverter::Normalizer(3pm)			User Contributed Perl Documentation		      HTML::WikiConverter::Normalizer(3pm)

NAME
HTML::WikiConverter::Normalizer - Convert CSS styles to (roughly) corresponding HTML SYNOPSIS
use HTML::TreeBuilder; use HTML::WikiConverter::Normalizer; my $tree = new HTML::TreeBuilder(); $tree->parse( '<p><font style="font-style:italic; font-weight:bold">text</font></p>' ); my $norm = new HTML::WikiConverter::Normalizer(); $norm->normalize($tree); # Roughly gives "<p><font><b><i>text</i></b></font></p>" print $tree->as_HTML(); DESCRIPTION
HTML::WikiConverter dialects convert HTML into wiki markup. Most (if not all) know nothing about CSS, nor do they take it into consideration when performing html-to-wiki conversion. But there is no good reason for, say, "<font style="font-weight:bold">text</font>" not to be converted into '''text''' in the MediaWiki dialect. The same is true of other dialects, all of which should be able to use CSS information to produce wiki markup. The issue becomes especially problematic when considering that several WYSIWYG HTML editors (e.g. Mozilla's) produce this sort of CSS-heavy HTML. Prior to "HTML::WikiConverter::Normalizer", this HTML would have been essentially converted to text, the CSS information having been ignored by "HTML::WikiConverter". "HTML::WikiConverter::Normalizer" avoids this with a few simple transformations that convert CSS styles into HTML tags. METHODS
new my $norm = new HTML::WikiConverter::Normalizer(); Constructs a new normalizer normalize $norm->normalize($elem); Normalizes $elem and all its descendents, where $elem is an HTML::Element object. SUBCLASSING
The following methods may be useful to subclasses. handlers my $handlers = $self->handlers; Class method returning reference to an array of handlers used to convert CSS to HTML. Each handler is a hashref that specifies the CSS properties and values to match, and the HTML tags and attributes the matched properties will be converted to. The "type", "name", "value", and "tag" keys may be used to match an element's property or attribute. "type" may be either "css" if matching a CSS property (in which case "name" must contain the name of the property, and "value" must contain the property value to match) or "attr" if matching an HTML tag attribute (in which case "name" must contain the name of the attribute, and "value" must contain the attribute value to match). "value" may be a string (for an exact match), regex (which will be used to match against the element's property or attribute value), coderef (which will be passed the property or attribute value and is expected to return true on match, false otherwise), or "*" (which matches any property or attribute value). A tag or list of tags can also be matched with the "tag" key, which takes either a string or an arrayref. To specify what actions the handler will take, the "new_tag", "new_attr", and "normalizer" keys are used. "new_tag" is required and indicates the name of the tag that will be created. "attribute" is optional and indicates the name of the attribute in the new tag that will take the value of the original CSS property. If a coderef is given as the "normalizer", it will be passed the value of the property/attribute and should return one suitable to be assigned to the new tag attribute. SEE ALSO
CSS AUTHOR
David J. Iberri, "<diberri@cpan.org>" BUGS
Please report any bugs or feature requests to "bug-html-wikiconverter at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-WikiConverter>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. COPYRIGHT &; LICENSE Copyright 2006 David J. Iberri, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2009-05-12 HTML::WikiConverter::Normalizer(3pm)
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy