1

Topic: Split Blog window in 2 and insert a banner

Hi,

I am reaching out to the lovely communitu here to find out if I can get some help on my wish here:
Each time a new blo is created, I would like it to be split in 2 columns so I can insert a Google ad on the left side and the content of the blog article will be displayed ion the right side?

Any help is appreciated..

Thanks

2

Re: Split Blog window in 2 and insert a banner

The simplest and "dirty" way to achieve that to put your add and content into table.
Edit member_blog_entry.tpl file this way.
<table>
    <tr>
        <td>google adsence code</td>
        <td>{blog_entry_body} (or what ever it's called)</td>
    </tr>
</table>

Hope this helps.

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

3

Re: Split Blog window in 2 and insert a banner

I will give it a try.

Thanks

4

Re: Split Blog window in 2 and insert a banner

Any idea where exactly, I should add the entry ebove:
<!-- INCLUDE header.tpl -->

<div class="header_wrap">
    <div class="location_wrap">
        <div class="location">
            <ul>
                <li><!-- INCLUDE member_sections_location.tpl --></li>
                <li><span>&#187;</span></li>
                <li><a href="{virtual_path}{member_blog_link}">{lang:"member","frm_blog"}</a></li>
                <!-- IF hide_content != "1" -->
                    <li><span>&#187;</span></li>
                    <li><a href="{virtual_path}{entry_link}">{trim:entry_title,30}</a></li>
                <!-- ENDIF -->
                <li class="action"><a href="{virtual_path}{member_blog_rss_link}" target="_blank"><img src="{virtual_tpl_path}{session.template}/media/rss.png" border="0" /></a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    <div class="options_wrap">
        <div class="title">
            <h1>{lang:"member","app_blog"}</h1>
        </div>
        <div class="options">
            <!-- INCLUDE member_sections_links.tpl -->
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>

<!-- INCLUDE message.tpl -->

<!-- IF hide_content != "1" -->

    <div class="outter page_member_blogs_entry">
        <div class="typepage">

            <div class="dataitem single">
                <table class="plain">
                    <tr>
                        <td>
                            <div class="image">
                                <!-- IF entry_picture -->
                                    <a class="picture_zoom" href="{top.virtual_pic_path}{member_media_path}{entry_picture_large}" id="blog_picture_{entry_id}" target="_blank"><img src="{top.virtual_pic_path}{member_media_path}{entry_picture}" alt="" border="0" /><br/></a>
                                    <div id="blog_picture_{entry_id}_zoom" style="display:none"><img src="{top.virtual_pic_path}{member_media_path}{entry_picture_large}" alt="" border="0" /><br/></div>
                                <!-- ELSE -->
                                    <a href="{top.virtual_path}{entry_link}"><img src="{top.virtual_tpl_path}{session.template}/media/content_picture_none.gif" alt="" border="0" /><br /></a>
                                <!-- ENDIF -->
                            </div>
                        </td>
                        <td class="data">
                            <div class="itemheader">
                                <h2 class="inner"><a href="{top.virtual_path}{entry_link}">{entry_title}</a></h2>
                                <ul class="itemheader">
                                    <li>{lang:"member","post_date"} {entry_post_date}</li>
                                    <li class="comments"><a href="{top.virtual_path}{entry_link}">{entry_total_comments} {lang:"member","comments"}</a></li>
                                    <li>{lang:"member","views"}: {entry_total_views}</li>
                                    <!-- IF settings.enable_reports AND settings.enable_blog_reports AND session.can_submit_reports -->
                                        <li class="report">
                                            {reports:type="blog",member_id=member_id,item_id=entry_id}
                                        </li>
                                    <!-- ENDIF -->
                                </ul>
                                <div class="clear"></div>
                            </div>
                            <div class="entry">
                                {entry_body}
                            </div>
                        </td>
                    </tr>
                </table>
            </div>

            <!-- IF entry_allow_comments AND session.can_view_all_blogs_comments -->

                <div class="comments page_member_blogs_comments">

                    <div class="subtitle">
                        <h2>{lang:"member","comments_list"}</h2>
                        <div class="progress" id="get_comments_progress"></div>
                    </div>
                    <div id="comments_page">
                        {comments:type="blog",member_id=member_id,content_id=entry_id}
                    </div>

                    <div class="commentsform page_member_blogs_comments_submit">
                        <div class="dataitem single">
                            <div class="form">
                                <form name="edit" method="post" action="">
                                    <div class="fieldset">
                                        <dl class="fieldset">
                                            <dt><label for="field_comment_body">{lang:"member","add_comment"}</label></dt>
                                            <dd><textarea class="textarea textarea_full" id="field_comment_body" cols="40" rows="5" name="body">{comment_body}</textarea></dd>
                                            <!-- IF settings.blogs_comments_captcha -->
                                                <dt><label for="field_captcha">{lang:"member","verify_number"}</label></dt>
                                                <dd>
                                                    <input type="text" id="field_captcha" class="text captcha" name="captcha" maxlength="5" />
                                                    <img src="{virtual_path}includes/fns/fns.captcha.php" alt="" border="0" class="captcha" /><div class="clear"></div>
                                                </dd>
                                            <!-- ENDIF -->
                                            <dd class="submit"><input class="submit" type="submit" name="submit" value="{lang:"member","submit"}" /></dd>
                                        </dl>
                                    </div>
                                    <input type="hidden" name="iscomment" value="1" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>

            <!-- ENDIF -->

        </div>
        <div class="clear"></div>
    </div>

<!-- ENDIF -->

<!-- INCLUDE footer.tpl -->

5

Re: Split Blog window in 2 and insert a banner

Thanks for your help.
I will purchase the http://www.vldmagic.com/smilies-galore/ from you.

6

Re: Split Blog window in 2 and insert a banner

Do you guys think that I can do the same for this tpl file: account_messages_compose.tpl
If so, around what line?

Thanks

7

Re: Split Blog window in 2 and insert a banner

at the line where <textarea called.

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

8

Re: Split Blog window in 2 and insert a banner

You guys should try this hack on this message file.
It will instantly increase your ad clicks.
<table>
    <tr>
        <td>{banners:group="google-ad_name"}</td>
        <td>{message_body}</td>
    </tr>
</table>

Very cool.