Results 1 to 2 of 2

Thread: v2.7 Code for Easy Edit News Box

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default v2.7 Code for Easy Edit News Box

    EASY EDIT NEWS BOX

    Place the following code anywhere in a .tpl file where you would like the NEWS BOX to appear (usually after {insert name=advertise adv_name='home_right_box'} on index.tpl):

    Code:
    <div class="section bg2 clearfix">
                <div class="hd">
                <div class="hd-l">What's New!</div>
                <div class="hd-r"></div>
                </div><div style="padding:5px;">{php} include 'news.txt' {/php}</div>
    			</div>
    With NOTEPAD, create news.txt and enter your news items. To make it look nice, you should have a little html knowledge and use it in this document...then upload it to your vShare root (the same place where your index.php resides). Any time you want to change your news, just edit the news.txt document and upload.

    Enjoy :D
    If it's not fun, stop doing it!

  2. #2

    Default

    Simply and very useful. Thanks!

Similar Threads

  1. I Need an automated RSS news generator
    By grynmoors in forum General Discussions
    Replies: 4
    Last Post: 04-12-2009, 07:34 AM
  2. Video News Mod
    By l1some in forum Template Modifications
    Replies: 0
    Last Post: 11-06-2008, 11:06 PM
  3. how easy?
    By berry05 in forum Installation Support
    Replies: 1
    Last Post: 04-07-2008, 08:59 AM
  4. [ADD ON] VShare News Viewer
    By sam in forum Template Modifications
    Replies: 2
    Last Post: 04-03-2008, 01:24 PM
  5. adding news feed on the site
    By ROLBUS in forum Installation Support
    Replies: 1
    Last Post: 01-01-2008, 05:56 PM

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
  •