Results 1 to 7 of 7

Thread: how to change my news on my website?

  1. #1
    Join Date
    Mar 2010
    Posts
    29

    Default how to change my news on my website?

    my site www.farsivideos.com how can i change news from the what's new box i hope someone can help me thanks :)

  2. #2
    Join Date
    Jan 2008
    Posts
    216

    Default

    Edit templates/index.tpl you will find where to change the text.

  3. #3
    Join Date
    Mar 2010
    Posts
    29

    Default

    Quote Originally Posted by ramius View Post
    Edit templates/index.tpl you will find where to change the text.

    i have tried but there are not the news box :(

  4. #4
    Join Date
    Jan 2008
    Posts
    216

    Default

    Yes, there is! Here is the code to change in your site:

    <!-- side-announcement -->
    <div class="side-announcement">
    <h1>What's New</h1>
    <p>We wishes you and your family a happy & prosperous new year.May this year brings you a lot of happiness in your life. Thanks for your support during the last year and look forward to your continued support in 2010. </p> <p>We are getting lot of feedback from our viewers that gives us immense strength to improve in 2010. </p>

    <a href="">Read more in our Blog</a>

    </div>
    <!-- side-announcement -->

  5. #5
    Join Date
    Mar 2010
    Posts
    29

    Default

    Quote Originally Posted by ramius View Post
    Yes, there is! Here is the code to change in your site:

    <!-- side-announcement -->
    <div class="side-announcement">
    <h1>What's New</h1>
    <p>We wishes you and your family a happy & prosperous new year.May this year brings you a lot of happiness in your life. Thanks for your support during the last year and look forward to your continued support in 2010. </p> <p>We are getting lot of feedback from our viewers that gives us immense strength to improve in 2010. </p>

    <a href="">Read more in our Blog</a>

    </div>
    <!-- side-announcement -->
    Thanks i will try :)

  6. #6
    Join Date
    Mar 2010
    Posts
    29

    Default

    i can't stell don't see that here is the html code to template/index.tpl

    HTML Code:
    <div id="content">
     
        <center>
            <div id="flash_recent_videos" align="center"></div>
        </center>
        <div id="watch-uplod-share" class="clearfix">
            <div class="watch">
                <a href="{$base_url}/recent/"><span>Watch</span></a>
                Better than TV watch what you want when you want it!
            </div>
            <div class="uplod">
                <a href="{$base_url}/upload/"><span>Upload</span></a>
                Quickly upload and tag videos in almost any video format.
            </div>
            <div class="share">
                <a href="{$base_url}/friends/invite/"><span>Share</span></a>
                Easily share your videos with everyone, put videos on your space or watch them here.
            </div>
     
         </div>
     
        <!-- new videos -->
     
        {if $view.new_video_total gt "0"}
     
            <div class="section bg2 clearfix">
     
                <div class="hd">
                    <div class="hd-l">New Videos</div>
                    <div class="hd-r"><a href="{$base_url}/recent/">More Recent Videos</a></div>
                </div>
                {section name=i loop=$view.new_videos}
                    <div class="home-video-box">
                        <a href="{$base_url}/view/{$view.new_videos[i].video_id}/{$view.new_videos[i].video_seo_name}/">
                        <img width="80" height="60" src="{$view.new_videos[i].video_thumb_url}/thumb/{$view.new_videos[i].video_folder}1_{$view.new_videos[i].video_id}.jpg" alt="{$view.new_videos[i].video_title}" />
                        <br />
                        {$view.new_videos[i].video_title|truncate:20:"...":true}</a>
                    </div>
                {/section}
            </div>
     
        {/if}
     
        <!-- recent video -->
     
        {if $view.recent_total gt 0}
     
            <div class="section bg2 clearfix">
     
                <div class="hd">
                    <div class="hd-l">Recently Viewed</div>
                    <div class="hd-r"><a href="{$base_url}/viewed/">More Recently Viewed</a></div>
                </div>
     
                {section name=i loop=$view.recent_videos}
                    <div class="home-video-box">
                        <a href="{$base_url}/view/{$view.recent_videos[i].video_id}/{$view.recent_videos[i].video_seo_name}/">
                            <img width="80" height="60" src="{$view.recent_videos[i].video_thumb_url}/thumb/{$view.recent_videos[i].video_folder}1_{$view.recent_videos[i].video_id}.jpg" alt="{$view.recent_videos[i].video_title}" /><br />
                            {$view.recent_videos[i].video_title|truncate:30:"...":true}
                        </a>
                        <br />
                        <p>{insert name=timediff value=var time=$view.recent_videos[i].video_view_time}</p>
                    </div>
                {/section}
     
            </div>
     
        {/if}
     
        <!-- featured videos -->
     
        {$view.featured_video_block}
     
     
    </div> <!--  content -->
    <div id="sidebar">
            <div align="center">
                {insert name=advertise adv_name='home_right_box'}
            </div>
     
            {if $home_num_tags gt 0}
     
                <div class="section">
     
                    <div class="hd">
                        <span class="margin-left-small">Recent Tags</span>
                    </div>
     
                    <div class="home-tags">
                        {$view.home_tags}<br />
                        <a href="{$base_url}/tags/"><b>See More Tags</b></a>
                    </div>
     
                </div>
     
            {/if}
     
        {if $num_last_users_online ne 0}
     
        <div id="users-online">
     
            <div class="section">
     
                <div class="hd">
                    <span class="margin-left-small">
                        Last {$num_last_users_online} Users Online
                    </span>
                </div>
     
                {insert name=recently_active_users assign=recently_active_users}
                {section name=i loop=$recently_active_users}
                    <p>
                        {insert name=id_to_name assign=uname un=$recently_active_users[i].user_login_user_id}
                        <a href="{$base_url}/{$uname}">{$uname}</a>
                        <br />
                        <br />
                        {insert name=video_count assign=vdocount uid=$recently_active_users[i].user_login_user_id}
     
                        <span class="video">
                            <a href="{$base_url}/{$uname}/public/">({$vdocount})</a>
                        </span>
                        {insert name=favour_count assign=favcount uid=$recently_active_users[i].user_login_user_id}
     
                        <span class="favorite">
                            <a href="{$base_url}/{$uname}/favorites/">
                                ({$favcount})
                            </a>
                        </span>
                        {insert name=friends_count assign=friends uid=$recently_active_users[i].user_login_user_id}
     
                        <span class="friends">
                            <a href="{$base_url}/{$uname}/friends/">({$friends})</a>
                        </span>
     
                    </p>
                {/section} 
     
            <p class="icon-key">
                <b>Icon Key:</b><br /><br />
                <span class="video">Videos</span><br /><br />
                <span class="favorite">Favorites</span><br /><br />
                <span class="friends">Friends</span><br />
            </p>
            </div> <!-- section -->
     
        </div> <!-- users-online end -->
        {/if}
        {if $show_stats ne "0"}
            {insert name="show_stats" assign="stats"}
     
            <div class="section bg2">
     
                <div class="hd">
                    <span class="margin-left-small">
                        Site Statistics
                    </span>
                </div>
     
                <div id="site-statistic">
                    <ul>
                        <li>Number of Videos: {$stats.total_video}</li>
                        <li class="bg2">Public Videos:{$stats.total_public_video}</li>
                        <li>Private Videos:{$stats.total_private_video}</li>
                        <li class="bg2">Number of Users:{$stats.total_users}</li>
                        <li>Number of Channels:{$stats.total_channel}</li>
                        <li class="bg2">Number of Groups:{$stats.total_groups}</li>
                    </ul>
                </div>
     
            </div>
        {/if}
     
        <!-- poll start -->
     
        {if $pollinganel ne 'Disable' AND $poll_question ne ""}
     
        <div class="section">
     
            <div class="hd">
                <span class="margin-left-small">Vote Here</span>
            </div>
     
            <div id="poll_body"> <!-- poll start -->
     
                <div id="poll">
                    <p>
                        {$poll_question}
                    </p>
     
                    <div id="poll_answers">
                        {section name=i loop=$list}
                            <input type="radio" name="xx" onclick="poll_vote_for('{$list[i]}','user_answer')" />
                            <font size="2" color="#3366FF"> {$list[i]}</font><br />
                        {/section}
                        <br />
                        <input type="hidden" id="user_answer" value="" />
                        <input type="submit" class="button" value='Cast This' onclick="poll_vote({$poll_id})" />
                    </div>
     
                    {if $list ne ""}
                        <div id="poll_view">
                            <a href="javascript:void(0)" onclick="poll_view({$poll_id})">
                                View current status
                            </a>
                        </div>
                    {/if}
     
                </div> <!-- poll -->
     
                <div id="poll_loading"></div>
                <div id="poll_result"></div>
            </div>  <!--  poll body -->
        </div>
     
        {/if}
    </div> <!-- sidebar -->

  7. #7
    Join Date
    Sep 2008
    Posts
    1,019

    Default

    I don't believe that you are looking at the right index.tpl file. You should be looking at the one that came with the template that you installed.
    Last edited by bplex; 04-04-2010 at 01:48 PM.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •