Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Latest Additions Panel


Print Track
www.php-fusion.co.uk/infusions/marketplace/uploads/image/930.jpgWhat it does:

Displays the latest Photo, Members, Forum Posts, Articles, Downloads, Comments and News Items in a collapsible side panel with an admin panel allowing you to set which sections display as well as the number of files to show in each category.
See configuration for file display alterations
This mod also includes a "bonus" Most Viewed Panel" which if enabled will display under this one.



-- View this Addon --

38 replies

Wow! Looks Nice!

Is it possible to enable/disable features? For example, Disabling latest photo?
Just select "No" in the Admin panel
Aaye Philip... :D Looks very Nice and Useful :)
Danish local added.. :)
Thanx ;)
Hi,

Just had a look though here and cant find anything relating to this [subject] - I like this panel but would like to run it without the need to 'expand' each section [i.e. to run it without the need to click the little icon] - in fact I'd like to remove the category headers and links icon and just have the expanded display.

Ive been looking at the code and I am lost - cant even seem to find the click / expand activation?

If anyone has done anything like the above could you clue me up?

Many thanks!
Post above moved here. Please use existing support thread for support.
Woow,I never saw it..Thank you Philip..Added translation and added Turkish support site..
@ cpcnw

The whole point of this panel is to save space in the side panel. However, it's easy to remove the collapsible feature.

Delete or comment out lines 54, 114, 150, 177, 200 and 224

Find

CodeDownload  
echo "<div class='mvp_body small' style='margin-bottom:3px'>\n";



and replace all instances with

CodeDownload  
echo "<div style='margin-bottom:3px'>\n";



or just plain old

CodeDownload  
echo "<div>\n";

Ah, cheers for that Phil ~ have hacked the file and enabled - all working !!!

Next I want to remove the numbers in brackets at the end of each line but if you leave me long enought I might sus it lol!
Very nice HobbyMan, great work! :G

I'd like it even better if I could turn off the photo images from being displayed and only show photo links. Then I could add a lot more photos and they won't open so far down the page. Can you or someone help me out with this?


EDIT:

I got it squared away. :)
What did you do to "square it away".

Quote

afoster wrote:

What did you do to "square it away".


I edited the //Photos section. I changed the code to post #10 from HobbyMan, aligned it to the left and put a couple forward slashes infront of the image source line. Click my web icon and have a look what it looks like now. :)



CodeDownload  
// Photos

   if ($ladp_data['ladp_photo'] != 0) {
   if ($ladp_data['ladp_photo'] == 2 && $limit>1) { $phlimit = '1'; } else { $phlimit = $limit; }
                         
      $result = dbquery(
      "SELECT ph.photo_id, ph.album_id, ph.photo_title, ph.photo_thumb1, ph.photo_datestamp, ph.photo_views,
            al.album_id, al.album_access
         FROM ".DB_PHOTOS." ph
         INNER JOIN ".DB_PHOTO_ALBUMS." al ON ph.album_id=al.album_id
         ".(iSUPERADMIN ? "" : " WHERE ".groupaccess('album_access'))."
         ORDER BY photo_datestamp DESC LIMIT 0,$phlimit");                     

   echo "<div class='side-label mvp_master_head small' style='cursor: pointer;' title='".$locale['lap102']."'><b>".$locale['lap004'].$title."</b><span style='float:right;'>".$excol."</span></div>\n";
   echo "<div class='mvp_master_body small' style='margin-bottom:3px'>\n";
   if (dbrows($result) !=0) {
      while ($data = dbarray($result)) {
      
      if ($data['photo_datestamp'] + $newtime > time() + ($settings['timeoffset'] * 3600)) { $new = "<img src='".INFUSIONS."latest_additions_panel/img/new.gif' border='0' alt='' />"; $trim  = ($linknum-2);
                } else { $new = "<img src='".THEME."images/bullet.gif' border='0' alt='' />"; $trim  = $linknum;}
     $itemdescription = trimlink($data['photo_title'], $trim);

          echo "<left><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."' class='side'>";
          //echo "<img src='".BASEDIR."images/photoalbum/"."album_".$data['album_id']."/".$data['photo_thumb1']."' border='0' alt='' /></a></left>\n";
          echo "<span style='float:left;'>".$new."</span>";
          echo "&nbsp;<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."' class='side'>".$itemdescription."</a>";
          echo "<span style='float:right;'>[".$data['photo_views']."]</span><br />\n";
      }
        } else { echo "<left>".$locale['lap100']."</left>\n"; }

      
    if ($ladp_data['ladp_photo_link'] != 0) {
       $phlimit = ($limit-1);
          $result = dbquery(
                            "SELECT ph.photo_id, ph.album_id, ph.photo_title, ph.photo_thumb1, ph.photo_datestamp, ph.photo_views, al.album_id, al.album_access
                            FROM ".DB_PHOTOS." ph
                            INNER JOIN ".DB_PHOTO_ALBUMS." al ON ph.album_id=al.album_id
                            ".(iSUPERADMIN ? "" : " WHERE ".groupaccess('album_access'))."
                            ORDER BY photo_views DESC LIMIT 0,$limit
                            ");
         
          if (dbrows($result) !=0) {
      while ($data = dbarray($result)) {
      
      if ($data['photo_datestamp'] + $newtime > time() + ($settings['timeoffset'] * 3600)) { $new = "<img src='".INFUSIONS."latest_additions_panel/img/new.gif' border='0' alt='' />"; $trim  = ($linknum-2);
                } else { $new = "<img src='".THEME."images/bullet.gif' border='0' alt='' />"; $trim  = $linknum;}
     $itemdescription = trimlink($data['photo_title'], $trim);

          echo "<span style='float:left;'>".$new."</span>";
          echo "&nbsp;<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."' class='side'>".$itemdescription."</a>";
          echo "<span style='float:right;'>[".$data['photo_views']."]</span><br />\n";
      }
       } else { echo "<left>".$locale['lap100']."</left>\n"; }
         } echo "</div>\n";
           }




I'm going to try and remove the lines in the attached image just need to figure out how.

10secrides.com/images/photos.png

Was easier than I thought, a couple forward slashes on the following line did the trick.

CodeDownload  
//echo "<div class='side-label mvp_master_head small' style='cursor: pointer;' title='".$locale['lap102']."'><b>".$locale['lap004'].$title."</b><span style='float:right;'>".$excol."</span></div>\n";

When I select, Show 29 Extra Photo links, I am seeing a bunch of empty spaces.

Why am I seeing them?

Show 29 Extra Photo link

EDIT

Just noticed I have quite a few empty photo albums, maybe this has something to do with it?

Is it ok to delete the empty folders?

empty folders

album_10, album_11, album_12, album_13, album_14, album_15, album_16, album_17, album_18, album_19, album_20, album_21, album_47, album_49 and album_50.

EDIT

I deleted the empty folders but it did not help remove the blank spots.
Deleting the actual albums isn't enough. You also have to delete the album entries in the DB as well.
Hi HobbyMan,

That's the second thing I tried but the album_id's don't exist in mysql db.

I even went through every page of photo's under fusion_photos but they don't exist there either.

MYSQL - fusion_photos

main.10secrides.com/img_temp/mysql_album_id.jpg
I don't know what to tell you. The panel gets the info from the DB only. It doesn't look for physical files on the server.
I'm guessing it's something to do with your file modifications.
I restored all your original files to see if that would fix it but it still shows the empty spaces with a view count (as shown in the screen shot in post #15). I've looked through every DB entry I can thing of but I can't figure it out. :o
Link to the site??
author HobbyMan
forumOfficial releases [Panels]
replies39 posts
viewed22,599 times
activeLast updated on 6 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Moderator: Support Team