Would anyone skilled in the area of CSS mind getting me started? I have tried to discover the element (div?) and CSS property that controls the physical position of the Advanced Forum thread table components but simply cant locate anything that makes it move. I think I need to use Clear in the correct place, but not sure where or how.
Currently the user info column (avatar, points, join date etc) is on the left of each forum post and comment. For my forum this uses up valuable horizontal pixel realestate.
I would like to theme the forum so that user info appears as a horizontal row at the top of each forum post.
For example, I want it to look a little like vBulletin layout:
http://www.vbulletin.com/forum/showthread.php?t=275089
Currently it looks like this:
http://socnet.shellmultimedia.com/node/897
The element I want to move (and its contents) is called .forum-comment-left.
Currently it sits to the left of .forum-comment-right. I want it to sit above it. I tried a clear-left and clear-right as a random guess, but no luck.
.forum-comment {
margin: 0px 0px 5px 0;
padding: 0 0 0 0;
border: thin solid black;
}
/* Header at the top of each post */
.post-info {
height: 2em;
}
.postedon{
padding: 0 5px;
float: left;
}
.posttitle{
padding: 5px;
width: 96%;
border-bottom: thin solid black;
}
.forum-comment .new {
float:left;
}
.post-num{
float: right;
margin-right: 5px;
}
.forum-post-wrapper {
clear:both;
border-top: thin solid black;
border-bottom: thin solid black;
}
.forum-comment-left {
float: left;
width: 150px;
line-height: 110%;
}
.forum-comment-left .author-name {
margin-bottom: 5px;
}
.forum-comment-left .picture {
float: none;
padding-left: 0px;
margin: .5em 0px .5em 0px;
}
.forum-comment-left .picture img {
padding: .5em;
height: 85px; /* reducing and unifying size of user pictures Thomas */
width: auto;
}
.author-title, .author-posts, .author-regdate, .author-points {
padding-bottom: .2em;
}
.forum-comment-right {
margin-left: 150px; /*Set left margin to LeftColumnWidth*/
}
.forum-comment-right .content {
margin: .5em;
}
#main #content .node .forum-comment .forum-comment-right .content {
padding-right: 5px;
}
.innertube{
margin: 10px 7px 10px 13px;
}
.forum-comment .links {
text-align: right;
height: 2.5em;
line-height: 2.5em;
margin: 2px 2px 2px 0px;
}
Comments
more code...
And the CSS that creates the table is here.
I am now trying to target the HTML that creates what appears to be a two column table. I want a two row, one column table. I cant even find that HTML....
I have been using this reference: http://www.w3.org/TR/CSS21/tables.html
To clarify...
There is no table involved in the forum thread layout. It's all divs and CSS voodoo I got off some tutorial and somehow managed to make work. So what you're looking for is the correct CSS voodoo to move the divs on top of each other, not a table, because there isn't one. Of course, you're free to add a table on your own site if that's easier for you. The HTML for each individual post in the thread is in advf-forum-post.tpl.php.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
Thanks for the pointer
I appreciate it, because I didn't know what voodoo I was chasing.
For any CSS gurus following this thread, I have managed to layer .forum-comment-left and .forum-comment-right almost as desired, but I cant bring the background blue shading and borders with comment-left as I slide it above comment-right (which is why I thought there was an underlying table structure)
Background
The background is forum-separater.jpg. You'll need to switch it vertical, I guess.
Boy, for an issue I won't fixed, I sure am commenting a lot. LOL! I don't know how to get the result you want but I guess I can offer a few bits here and there.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
Oh the satisfaction, I think I did it
:) what satisfaction! Thanks Michelle, our tips here and there did help a lot in both solving the problem and helping me to learn about CSS.
For the benefit of others, this is my rough solution requiring fine-tuning.
Note, there are two css files.
Step 1: in advanced_forum.css remove this line from the .forum-post-wrapper div (is it a div?)
background: url(images/forum-separater.jpg) repeat-y;
Step 2: in advanced_forum_structure.css remove this line from forum-comment-left div:
float:left;
Step 3: in same place and div as Step 2, change the width as follows:
width: 150px; .....changes to..... width: auto;
Step 4: in advanced_forum_structure.css change as follows for div .forum-comment-right:
margin-left: 150pt; .....changes to.... margin-left:0pt;
Step 5: re-arrange the user data, avatar etc in the new row as desired. Add shading to the new row, add a border on the bottom to separate from the post/comment title. etc etc
I went about this my own
I went about this my own way, you can see the results here:
http://www.wikijob.co.uk/forum/general-discussion/a-third-second-year-an...
It's not perfect but for a couple of hours of fiddling it's enough- if anybody wants to provide a more complete template, please do!
Founder @ Glass Analytics
Firefox Web Developer Add-ons
I rely - heavily - on the Web Developer add on in Firefox
https://addons.mozilla.org/en-US/firefox/search?q=web+developer&cat=1%2C4
Click on anything on the page and view it's nested css ...
Also useful: Measure It (how many pixels to move that) https://addons.mozilla.org/en-US/firefox/addon/539
And color picker ColorZilla https://addons.mozilla.org/en-US/firefox/addon/271
(for some reason this addon does not appear in the site search, I had to search mozilla.org from Google)
And anything else that strikes your fancy - I have a page load timer that prompted me to sign up with a different host today - and when placeholding I grab DummyLipsum...
~are you netsperienced? http://netsperience.org
~are you netsperienced?
♥ follow me @decibelplaces ∞
Tracking
Some nice info in this thread.
after all that...
It seems the most challenging css aspect is arranging the user info. Not easy at all.
modules to embed or import vBulletin
Seems to me if you want the look and feel of vBulletin, then use vBulletin in Drupal.
There are two basic approaches and separate modules for this
vb to Drupal will convert vBulletin http://drupal.org/project/vbtodrupal
note: not entirely working in Drupal 6 yet because depends on other modules not yet in v6
while
Drupal vB will embed vBulletin http://drupal.org/project/drupalvb
for more info see the vBulletin to Drupal? thread http://drupal.org/node/93127
~are you netsperienced? http://netsperience.org
~are you netsperienced?
♥ follow me @decibelplaces ∞
I don't like vBulletin at
I don't like vBulletin at all, I quite dislike it, I just like the way the posts and poster-info are physically displayed on the screen.
subscribing
subscribing
http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.
Why?
Seriously. Why do you keep bumping up old posts to subscribe to them? I keep seeing you do it over and over. There is no need to "subscribe" to something that is long over discussing. If you just want to bookmark it, use your browser's bookmark function. It annoys me on issues but at least there's a point there as it's the only way to get emailed when the issue is updated. But old forum posts don't email you and they generally don't get updates. Especially this one since it is horribly out of date and of no value anymore.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
why I do it
I am new to this. and while you are VERY familiar with this topic, I am not.
So I subscribe to it so I can keep it under my tabs section and I can review when I want.
Thank you for your concern for my learning process, but believe me I am capable of keeping track of information that I need. If you don't like my method, I appologize for annoying you.
But, it is easiest for me to keep thing in order this way. If you want to make another suggestion please do so.
thanks,
C
http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.
.
It has nothing to do with familiarity. You have bookmark capability in your browser. You can use that to organize the out of date theads you wish to follow without annoying everyone else on the thread. It's just common courtesy.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
.
Please respect the way I organize information and learn. I do not appreciate the hostility.
Your comments are neither helpful nor courteous.
If this information was in documentation, i wouldn't need to subscribe to it.
Thanks,
Chris
PS. You can use the contact form to contact me in the future if this is persistent issue for you.
http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.
.
I'm not being hostile. I'm attempting to teach you forum etiquette and aparantly failing.
This information doesn't need to be in the documentation. It is out of date.
As for email, no one gets an email on forum posts, but it does bump it up in the tracker. So everyone goes to click to see what's new and just finds you, "subscribing" because you are incapable of using your browser's bookmarks.
Anyway, I'm done with this. You obviously care more about your "methods of learning" than other peoples' time so I'm just wasting more time trying to teach you manners.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
Sorry, but Michelle is quite
Sorry, but Michelle is quite right. The proper way to bookmark web pages is to use the 'bookmark' function of the browser (hence the name 'bookmark'). Subscribing to ancient threads bumps the thread in the tracker of every single person who commented on it. This is extremely discourteous. Sorry, but irritating many others as a consequence of your preferred method of organization is not an acceptable tradeoff. You ask for courtesy while at the same time actively refusing to show it to anyone else on the thread-- quite hypocritical.
I suppose we could always lock threads that have not been active for more than a certain period of time, but that seems rather like throwing out the baby with the bath water. There are legitimate reasons for updating old inactive threads, it's just that 'subscribing' is not one of them.
The current functionality is lacking, no question, but if everyone simply exercises a little common courtesy for all, this shouldn't be necessary. And hopefully a lot of these usability issues will be addressed by the redesign.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Made a feature request
To be proactive, I made a feature request to see if Drupal.org can incorporate a bookmark feature so I can bookmark information and others not get an email about it.
http://drupal.org/node/357290
Subscribing has saved me hours in coming back to information that is needed but not in documentation. I use it to investigate new modules... in this case themeing a particular new module that I was investigating. I am hoping that this can be incorporated into Drupal.org so it can be more user friendly to those of us non-developers who want to embrace the platform.
--
Creating an activelyOUT community of LGBT professionals
http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.