Results 1 to 2 of 2
-
13th Jan 2008, 01:35 AM #1OPMember
[TUT]Add Background Images In All Posts
Post Background Images
For this I will be using a cat and a dog image. Go ahead and upload them to your "style_images/1/" directory on your server.
We will use the default blue IPB skin for this
Fist we set up our CSS so that we can display the images only in the post background and not the post details.
In your AdminCP, go to "Look & Feel"
Then from the gray dropdown menu box, select "Edit Stylesheet (CSS Advanced Mode)"
Now in your CSS, lets make a new class for your post details section, this will set it apart from the post background.
Find:
Code:.post2, .bg3{ background: #EEF2F7; }
Code:.renderrow{ background: #F5F9FD; }
Find:
Code:.post1, .bg1{ background: #F5F9FD; } .post2, .bg3{ background: #EEF2F7; }
Code:.post1, .bg1{ background: #F5F9FD url(style_images/<#IMG_DIR#>/cat.png) no-repeat bottom right; } .post2, .bg3{ background: #F5F9FD url(style_images/<#IMG_DIR#>/dog.png) no-repeat bottom right; }
Now we have them in the post, we need to remove them from the post details.
Go To: ACP > Look & Feel > SelectSkin > Edit Template HTML > TopicView > RenderRow
Find:
Code:<td valign="top" class="{$post['post_css']}"> <span class="postdetails"> <if="$author['id'] AND $author['avatar']"> <a href="{$this->ipsclass->base_url}showuser={$author['id']}" title="{$this->ipsclass->lang['dd_view_profile']}">{$author['avatar']}</a><br /><br /> <else /> {$author['avatar']}<br /><br /> </if>
Code:<td valign="top" class="{$post['post_css']}">
Code:<td valign="top" class="renderrow">
End Result:
Lease Reviewed by Lease on . [TUT]Add Background Images In All Posts Post Background Images For this I will be using a cat and a dog image. Go ahead and upload them to your "style_images/1/" directory on your server. http://www.besthostingforums.com/images/cdn/besthostingforums.com/2008/01/5.pnghttp://www.besthostingforums.com/images/cdn/besthostingforums.com/2008/01/6.png We will use the default blue IPB skin for this http://www.besthostingforums.com/images/cdn/besthostingforums.com/2008/01/6.gif Fist we set up our CSS so that we can display the images Rating: 5Extremely helpful article about hiding your identity here
-
27th Feb 2008, 06:16 AM #2Banned
nice tutorial.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
how to make a br with images link to posts after header
By mazzo in forum WordpressReplies: 23Last Post: 31st Jul 2012, 11:36 PM -
Broken Images overlapping New Images
By Leeds in forum vBulletinReplies: 8Last Post: 17th Apr 2012, 08:57 PM -
Images in posts
By Drinkordie in forum Feedback and SuggestionsReplies: 6Last Post: 16th Feb 2012, 09:12 PM -
How to import wordpress posts including featured images
By tcnnvnn in forum Webmaster DiscussionReplies: 2Last Post: 27th Oct 2011, 08:26 AM -
Free images host uploader - images will not expire!
By jippo in forum Useful SitesReplies: 11Last Post: 11th Feb 2011, 11:58 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...