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.
Not a member yet? Click here to register.
Forgot Password?

Latest Additions Panel

Asked Modified Viewed 25,449 times
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
asked
Veteran Member

[mp]308[/mp]
0 replies

38 posts

K
Kevin Maschke
K
<3 PHP-Fusion
  • Member, joined since
  • Contributed 160 posts on the community forums.
  • Started 25 threads in the forums
answered
Member

Wow! Looks Nice!

Is it possible to enable/disable features? For example, Disabling latest photo?
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

Just select "No" in the Admin panel
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Aaye Philip... :D Looks very Nice and Useful :)
0 replies
M
MattMadsen
M
Facebook site
https://www.facebook.com/Detherersjovt
The funniest facebook page in the world
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 15 threads in the forums
answered
Member

Danish local added.. :)
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

Thanx ;)
0 replies
— 28 days later —
C
cpcnw
C
cpcnw 10
  • Junior Member, joined since
  • Contributed 48 posts on the community forums.
  • Started 23 threads in the forums
answered
Junior Member

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!
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Post above moved here. Please use existing support thread for support.
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Woow,I never saw it..Thank you Philip..Added translation and added Turkish support site..
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

@ 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

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


and replace all instances with

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


or just plain old

echo "<div>\n";
0 replies
C
cpcnw
C
cpcnw 10
  • Junior Member, joined since
  • Contributed 48 posts on the community forums.
  • Started 23 threads in the forums
answered
Junior Member

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!
Edited by cpcnw on 19-07-2011 00:33,
0 replies
— 1 year later —
R
Ralph68
R
Regards,
Ralph
  • Member, joined since
  • Contributed 108 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

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. :)
Edited by Ralph68 on 19-06-2013 07:24,
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

What did you do to "square it away".
0 replies
R
Ralph68
R
Regards,
Ralph
  • Member, joined since
  • Contributed 108 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

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. :)



// 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.

//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";
Edited by Ralph68 on 19-06-2013 17:57,
0 replies
R
Ralph68
R
Regards,
Ralph
  • Member, joined since
  • Contributed 108 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

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.
Edited by Ralph68 on 05-07-2013 04:00,
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

Deleting the actual albums isn't enough. You also have to delete the album entries in the DB as well.
0 replies
R
Ralph68
R
Regards,
Ralph
  • Member, joined since
  • Contributed 108 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

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
Edited by Ralph68 on 06-07-2013 15:10,
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

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.
0 replies
R
Ralph68
R
Regards,
Ralph
  • Member, joined since
  • Contributed 108 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

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
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

Link to the site??
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 38 posts
  • Votes 0 votes
  • Topic users 15 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet