By kweisblatt on
I have drupal 4.7.3 and using the custom profile.
I have created a custom block that I want visible only on the user page. I have tried using user/* but it doesn't show. When I go to my user account the url looks like: http://cribfax.com/?q=user/1&time=1258035839
Is this messing it up or is it the user_profile.tpl file?
Thanks,
Kris
Comments
Please help
Bump...
I would also like to know the answer to this... anyone?
I actually can now do this
I actually can now do this and get it to show but have no idea what I did :) otherwise I would have posted a solution. I did disable a few mods so maybe that was the problem. What is going on, I will try and figure out what I did.
~~~~~~~~~~~~~~~~
Kris
Current project: www.cribfax.com
Got it
Haha, I actually got it too. It was a small option I was overlooking :)
Do you remember what it was
Do you remember what it was so if anyone else needs the solution?
I am also interested in what I actually did :D
~~~~~~~~~~~~~~~~
Kris
Current project: www.cribfax.com
Haha, yeah. It was just a
Haha, yeah. It was just a dumb little slip on my part. I set the page to be viewed on all users profile pages with the user/* command in the settings. However, what I didn't do is on the main blocks page, I didn't specify it to be in the "content" area. So now it shows up in the content area of all my users' pages. I know, I'm dumb :)
However, now I am having trouble with the organization of those blocks. I am using the user_profile.tpl file as I said, and I can organize the snippets wonderfully, but with these blocks, I have no clue how to put them where I want them. They just go by the weight system, and I don't know where to edit some code so that they will be where I want them on the page. Any ideas?
Yup, that I do know... I am
Yup, that I do know... I am not an expert, so if anyone else has a better suggestion, that would be great.
With that said:
Each block has a unique block ID. You can get the block ID by going to the admin-block section and right click on the block and select properties. I actually just view the source of my own pages that I want to change. (on windows toolbar:view-source)
Then you can see the complete page setup and then click edit-find and type in "block" to see the different block ID's.
However you do it, once you have the block ID, you can then change what it looks like and where it is on the page.
Go to your theme folder and find style.css
If you already changed your block styles here then you can just add on the position values you want.
If you haven't touched this page yet, just go down to the bottom of that page (in an editor) and add the follow:
#block-user-5 {
width: 150px;
font-weight: 80;
color: #336799;
text-align: left;
border:solid 2px #688ba8;
position: relative;
top: 15px;
left: 30px;
}
#block-user-5 .title {
width: 150px;
border-bottom:solid 2px #688ba8;
color: #688ba8;
font-size: 12px;
text-align: center;
padding: 1px 1px;
background-color: #dae2e9;
}
Keep in mind that hese are my blocks so you need to customize them according your own styles. I will go through what they do to save you or someone else some time:
# means you want only that block changed. If you want to change all blocks with a style it would look like this:
.block-block-ID {
width: 150px;
}
note the period in front instead.
You specifically wanted to change the position so only add in that style is that's the only thing you want to change. Here is a nifty little guide to help with css styles:
http://www.tizag.com/cssT/text.php
You can change the background color of the title and content of a block, change the border colors, change the text colors, sizes, position, and change the position of the whole block.
Let me know if you need more help.
~~~~~~~~~~~~~~~~
Kris
Current project: www.cribfax.com
try switching off the
try switching off the javascript in your browser and the block weights will pop up. Use it that way and it will stay the way you put it.
Jeff