Author Topic: How can I insert iframe in detail.php which show all the image from this user  (Read 4690 times)

0 Members and 1 Guest are viewing this topic.

Offline eroychiu

  • Pre-Newbie
  • Posts: 3
    • View Profile
How can I insert iframe in detail.php which show all the images from the user.

similar the idea come from youtube


Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
... nice idea ...  :wink:
but in order to show this with details.php / details.html and to provide no further files, I would let produce this table in details.php as "$user_image_list" and show it in details.html with e.g.
Code: [Select]
<div style="height: 350px; width: 150px; border: 0px; overflow: auto;">
    {user_image_list}
</div>
... than no paging, no iframe and no new files are needed ...
... and  the user_image_list is showed in a container with scrollbars (maybe as a long list) ...

P.S. this list could also be shown on the user profile page ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
P.S. this list could also be shown on the user profile page ...
Yep, there is an existing mod to show all the pictures (as a link) coming from a user.... in user profile ... and i have it installed ...
ch€ri{Bi}²


Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
@ ch€ri{Bi}²

... you are absolutely right ...  :D

@ eroychiu

Users last images on details pages (maybe all users images)

... here you can find "$last_images" ... http://www.4homepages.de/forum/index.php?topic=8341.0
... use this code in your details.php ...
... to show the images  only vertically arranged you must change this part ...
Code: [Select]
if ($count == $config['image_cells']) {
        $last_images .= "</tr>\n";
        $count = 0;
      }
... and I would use a new "thumbnail_bit_last_images.html"  and this horizontal arranged ...
... now you can use this in your details.html ...
Code: [Select]
<div style="height: 350px; width: 150px; border: 0px; overflow: auto;">
    {last_images}
</div>

... thats all ...  :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline eroychiu

  • Pre-Newbie
  • Posts: 3
    • View Profile
Hi Mawenzi and all,

Could you explain a little bit more details on which exactly code i should copy from... http://www.4homepages.de/forum/index.php?topic=8341.0
and where to place it in details.php

Also, after created the "thumbnail_bit_last_images.html"...Should I change anything in somewhere?(header.php??)


I tried so many times, but not success. I am a newbies to php.

Thank you so much