Results 1 to 7 of 7

Thread: [Extension]Show New Image on index page

  1. #1
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default [Extension]Show New Image on index page

    Extension for show new image tab
    This extension will show new images as a tab on the index page, like popular and top images.

    How to install:
    Upload aihs_newimagetab.php to skin/default/extensions.

    Extension API:
    a). {PLUGIN_newimagetab:"menu"}
    This will print the tab title of new images.
    b). {PLUGIN_newimagetab:"content"}
    This will print the new image listing.

    How to use:
    Edit skin/default/index.body.html:
    1. add the following line
    HTML Code:
     {PLUGIN_newimagetab:"menu"}
    after
    HTML Code:
     <li><a href="{baseWeb}/top.php" id="tab_topimgs" rel="topimgs">{L_SiteTopImage}</a></li>
    <!-- END TopRatedImage -->
    2. add the following line
    HTML Code:
     {PLUGIN_newimagetab:"menu"}
    after
    HTML Code:
     <div id="topimgs" class="modernbricksmenuline" style="display:none;width:80&#37;">{inc_top_image_list}</div>
    <!-- END TopRatedImage -->
    Advanced tips:
    1. You can insert
    Code:
    {PLUGIN_newimagetab:"content"}
    to any HTML files to show newest image listings.
    2. By default, {PLUGIN_newimagetab:"content"} will show 5 images horizontally.

    The full paramer of {PLUGIN_newimagetab:"content"} is
    {PLUGIN_newimagetab:"content","the_number_of_total _images","how_many_columns_of_images"}

    But you can control the numbers of images and the listings configuration:
    Code:
    {PLUGIN_newimagetab:"content", "10","5"}
    this will list 10 images in two rows which each contains 5 images.

    Code:
    {PLUGIN_newimagetab:"content", "10","2"}
    this will list 10 images in five rows which each contains 2 images.
    Attached Files Attached Files
    Last edited by yabsoft; 05-24-2008 at 04:25 PM. Reason: Make it more readable!

  2. #2

    Default

    thanks so so much yab

    it's work fine with me

    BUT , in aihs_newimagetab.php just change (top.php) to (new.php) because this for new images not top images .

    thanks again


  3. #3

    Default

    Fatal error: Call to undefined function: aihs_newimagetab() in /home/httpd/html/www.myurlhere.com/includes/class.smarttemplate.php(539) : eval()'d code on line 57

  4. #4
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default

    Please downlaod "aihs_newimagetab.php" to upload in skin/default/extensions.

  5. #5

    Default

    Nice hack, wishing to use it after I got fixed my site.

  6. #6
    Join Date
    Jun 2008
    Location
    Saudi Arabia
    Posts
    32

    Default

    Tanks
    yabsoft
    Test it ....

  7. #7

    Default

    The second one should be {PLUGIN_newimagetab:"content"}

    but not {PLUGIN_newimagetab:"menu"}

Similar Threads

  1. File Wont Upload
    By pythod in forum Free Trial Support
    Replies: 8
    Last Post: 11-23-2007, 09:48 AM
  2. Number of thumbs on index page
    By krysteo in forum Modifications and Skin
    Replies: 3
    Last Post: 02-28-2007, 02:12 AM
  3. Login form on the index page
    By NetPox in forum General
    Replies: 1
    Last Post: 08-30-2006, 03:57 AM
  4. Add a login form on index page?
    By super in forum Troubleshooting And Problems
    Replies: 10
    Last Post: 05-25-2006, 02:18 AM
  5. index upload page
    By Walim in forum Troubleshooting And Problems
    Replies: 1
    Last Post: 08-18-2005, 03:06 AM

Posting Permissions

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