We have several blocks on the right side, but for some reason when I visit the advanced blog page, it disappears from there and goes to the bottom left of the site.
See here: http://www.4242.hu/hu/advanced_blog/list
I was wondering why would it happen when a friend of mine told me that for example non-closed html tags could cause such. Then I validated the page and really:
W3 Validator results
It has several double-opened <p> tag and div around the "about" div...
A sidenote: Though I found several bugs in the module, it's an impressive work and I thought as soon as they'll get fixed, I'll love it so thank you :)
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | advanced_blog.patch | 3.71 KB | Paul Lomax |
| #14 | advanced_blog.patch | 3.49 KB | Paul Lomax |
Comments
Comment #1
fleetcommand commentedEh. Wrong url to the validator.. it
should be this
Comment #2
fleetcommand commentedI have found the error.. It's in line 512:
$blogger .= '<div class = "about"><h1>' . theme_username($account) . '</h1><p>';
Should be
$blogger .= '<div class = "about"><h1>' . theme_username($account) . '</h1></div>';
I replaced the wrong line in the module, so when you click the links I provided earlier, it will show you the site is validating now.
Comment #3
eidolon nightThanks for the catch. I'll put this in the next dev release.
Comment #4
eidolon nightUpdated in latest dev.
Comment #5
marcus0263 commentedDidn't have the problem until this latest dev release, now Blog list is badly formated. Updated Jun 25, here's the view
http://www.rejecttheherd.net/advanced_blog/list
Comment #6
fleetcommand commentedWell marcus, it's access denied for us, so we cannot see what looks wrong :)
However, I assume that the blogger's name and the word "Posts" is what you have in a wrong position. Well, that's a css problem then. If I'm correct and that's what you mean, then see the advanced_blog.css file:
.about {
float: left;
}
Then comment out that "float: ..." line. That will help. If not this is what you're looking for, then you need to specify it :)
Comment #7
marcus0263 commentedAaah, I fixed the "permissions" you should be able to see it now.
Anyway, that "helped" but if you take a look at the site there listing of the Bloggers is still a bit out of whack. Some are indented in (top few) and as you go down the list they slide all the way to the left. Plus the Blogger names are still out of whack.
I've also reproduced this with the Garlend Theme also.
Thanks for looking into it.
Comment #8
marcus0263 commentedHere's the badly formated page with the Garland Theme
http://pix.rejecttheherd.net/d/6079-1/advblogerr.png
Cheers
Comment #9
marcus0263 commentedValidating the page it finds a number of errors, example
Comment #10
fleetcommand commentedThen it must be a new issue in the -dev version. When I applied the modifications to beta1, it looks fine (see here: http://www.4242.hu/hu/blogs ).. however, when I tried -dev a few days ago, I also ended up with a wrong page (which had the same html validation errors as you posted). So -dev has a new issue about this. Maybe I'll track it down this evening if noone will do that by then.
Comment #11
fleetcommand commentedOk, I found two errors in the current (june 24) dev version:
check the .module file around line 516..
it looks like this
modify like this:
I hope this helps. Also, Eidolon, please fix it in the -dev.
Btw I don't see where the last div clear:left is closed and what is it used for, but now the page validates. I hope this is a correct way to fix this issue.
Comment #12
marcus0263 commentedWell it now validates and the page isn't as badly formed any longer. This page does still needs a lot of work though, like the double listing of Bloggers username and the exta "dot" on top of the Bloggers blog list.
I wish I knew CSS and HTML so I could help fix it, but I don't.
Comment #13
Paul Lomax commentedThe problem is this right here
Line 523
$output .= '<div style="clear:left">';a) Its a style in the markup
b) Its a hack
c) It doesn't have a closing
I'd say remove this line altogether, put a float on the main container element and a width of 100%.
Comment #14
Paul Lomax commentedThis patch should fix most of the issues on that page.
I think they are all pretty logical changes, enjoy.
Comment #15
marcus0263 commentedThanks, applied the patch but Hunk 1 and 2 puked ..
Comment #16
ggevalt commentedHi,
I placed the patch code in the .css and .module files. I then enabled the Bloggers block. It appeared as a block just fine, but then had this problem when I clicked "more" to the page view:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@@ -502,25 +501,24 @@ AND users.uid = 0 ORDER BY node.created DESC ' at line 3 query: SELECT * FROM node node @@ -502,25 +501,24 @@ AND users.uid = 0 ORDER BY node.created DESC LIMIT 0 , 5 in /var/www/html/youngwritersproject.org/sites/all/modules/advanced_blog/advanced_blog.module on line 501.
Needless to say that below the many warnings was a page that didn't look very good.
I doublechecked to make sure I had properly updated the coding on the Beta1 version, so either I just can't see an error I introduced, or the patch doesn't quite have all the fixes.
I tried the blogroll which did not list anything and I could not see how to set it to pull list... and blog info block did not appear.
This was a quick look see. I hope this helps. Let me know if you'd like us to test anything for you on a local site. This module would be of great use to us.
Thanks for your efforts.
Geoff
Comment #17
toma commentedI am using the last dev version in my website, and it does use an error to display
also it doesn't show the user picture nor the url path
you can check here
http://elbarca.com/advanced_blog/list
Comment #18
Paul Lomax commentedOkay, firstly sorry, my fault, that patch was built on the beta1 version. My bad.
Here is a version for the 6.x-1.x-dev copy, i've made a few other alterations too like added a placeholder if there is no user profile pic selected.
ggevalt: you haven't patched it properly, you need to use a version control system to apply the patch, download and install TortoiseSVN, once its installed you should have a new option on right click menu. Right click the patch file and choose TortoiseSVN > Apply Patch then navigate to the advanced_blog module folder and hit ok. A window will pop up with all the code, right click on one of the files in the small window and choose 'Patch all'.
There are many ways of doing this but this is probably one of the easier ones.
toma: This patch should fix most of your problems.
This module really needs some more work, all this stuff should be in theme functions in an ideal world, but I don't really have the skills or time to do it. Its a pretty handy module and has some nice functions but its all a little bit hacky.
Anyway I hope this helps some people.
Comment #19
ggevalt commentedtigerfish,
thanks for all your work. And thanks for the advice regarding the patch. I confess to having gone to the dark side, or, rather, to the enlightened side, depending on your point of view: I now use Macs. So Tortoise is a great program that I used while on a PC but have not found an equivalent for Macs. However, I will try it out with our PC and see how that works. And then we'll try out the module.
Thanks again.
g
Comment #20
toma commentedis it #18 apply to a dev version of the release, because i just download the dev but still get the same issue!
Comment #21
Paul Lomax commentedToma: There hasn't been any updates by the maintainer of this module for a couple of months so you'll have to apply the patch in post #18 yourself. Download the -dev version and the patch file then follow the instructions to use SVN to patch it.
Comment #22
dailypress commentedexample.com/advanced_blog/list
my footer changes completely. it turns light gray and the year 2009 is shifted to the top right corner covered behind my background!! ??
Comment #23
svendecabooterThe advanced_blog/list page has been cleaned up and refactored as part of my ongoing process to cleanup this module.
The latest HEAD version of this module produces valid HTML output, and is themeable through the Drupal theme system.
Part of the work done by Tigerfish Paul has been incorporated into the latest code. Thanks for providing the patch Paul!
A new release of this module will be released in a while, once the cleanup & fixing process has been finished.