TinyPortal

Development => Support => Topic started by: Stroopy on March 10, 2009, 03:24:27 PM

Title: How to edit the way the block look like.
Post by: Stroopy on March 10, 2009, 03:24:27 PM
I want to change the way the blocks look by adding a image border around it and stuff.
Does anyone knows in what file and where I can find the block code so I can change it.

These are the blocks I want to edit.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fdeltastrikeforce.com%2Fimages%2Fblock1.jpg&hash=149a0f844212a50c6b1835396ba5035617868e86)
Title: Re: How to edit the way the block look like.
Post by: G6Cad on March 10, 2009, 03:26:36 PM
Ask the theme creator to help you.
Cant even point you in any direction as you didnt provide any sort of info according to our posting guides,
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
Title: Re: How to edit the way the block look like.
Post by: Stroopy on March 10, 2009, 03:30:12 PM
All I really want to know is in what file(s) and where I can find the code for the block(s) so I can edit them.
Title: Re: How to edit the way the block look like.
Post by: Renegd98 on March 10, 2009, 03:32:06 PM
If you use FireFox and add the Firebug add-on you will be able to figure out what your asking about.
Title: Re: How to edit the way the block look like.
Post by: ed_m2 on March 10, 2009, 03:41:43 PM
Quote from: Renegd98 on March 10, 2009, 03:32:06 PM
If you use FireFox and add the Firebug add-on you will be able to figure out what your asking about.

yup almost everything you would ever want to do with the blocks is defined in the stylesheet associated with the theme.
Title: Re: How to edit the way the block look like.
Post by: Stroopy on March 10, 2009, 03:53:03 PM
Sorry to bother but all I can find is this:

/* This is used on tables that should just have a border around them. */
.tborder {
padding: 1px;
border: 1px solid #1c1c1c;
}


But what I look for is the html part of the blocks.
Title: Re: How to edit the way the block look like.
Post by: ZarPrime on March 10, 2009, 08:05:51 PM
Stroopy,

I don't want to sound rude or anything like that but whenever you need one of us here to help you with something (which we are more than happy to do), no matter how simple it is, you need to Read and Reply to the Posting Guidelines (http://www.tinyportal.net/index.php/topic,581) in your first post.

If you had done that, the first person who responded in this thread would have been able to give you the exact answer you were looking for in a matter of seconds.

If you had placed the information we ask for in your first post, we would have known that your site was located at http://deltastrikeforce.com and that you use the 49iner Theme by Crip.  This would have enabled us to go straight to your site and have a look at it, after which we could have told you that if you change ...

/* This is used on tables that should just have a border around them. */
.tborder {
padding: 1px;
border: 1px solid #1c1c1c;
}


to this ...

/* This is used on tables that should just have a border around them. */
.tborder {
padding: 1px;
border: 2px solid #FF0000;
}


... Then you would now have a bright red 2 pixel border around all of your blocks instead of the dark gray 1 pixel border that Crip designed into the theme.

This little bit of extra work on your part would have meant that 3 of the people who have responded to you in this topic could have gone on to do something else.

We are always ready and willing to help people that need help, but please keep this in mind in the future when you need our help again.

ZarPrime
Title: Re: How to edit the way the block look like.
Post by: Stroopy on March 10, 2009, 08:52:11 PM
Thank, I'll do that next time.

But what I meant with the block was changing it from this:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fdeltastrikeforce.com%2Fimages%2Fblock1.jpg&hash=149a0f844212a50c6b1835396ba5035617868e86)

To something like:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fdeltastrikeforce.com%2Fimages%2Fblock2.jpg&hash=024ac8cb66f86b1bc33177c567eb7d9e3555a0da)

So I was looking for the HTML code of the block to edit.
Title: Re: How to edit the way the block look like.
Post by: IchBin on March 10, 2009, 08:55:16 PM
TPBlocks.template.php and possibly TPBlockLayout.template.php are the files you're looking for.
Title: Re: How to edit the way the block look like.
Post by: Stroopy on March 10, 2009, 09:01:33 PM
Ok I'll try that.

Thanks for the great help guys, like always. :up: