• [MOD] Photo Preview Hack 5 0 5 1
Currently:  

Author Topic: [MOD] Photo Preview Hack  (Read 232634 times)

0 Members and 2 Guests are viewing this topic.

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #90 on: February 28, 2010, 12:33:07 PM »
super sache, dieser MOD!!!

ist es auch möglich, dass man die preview bilder auf Basis der GPS-Infos (basierend auf dem [MOD] Google Map) ausgegeben bekommt?
sprich es werden als preview bilder die bilder angezeigt, die am nähesten vom angezeigten Bild liegen?

gruss, bergblume

Offline surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #91 on: February 28, 2010, 07:32:59 PM »
Quote
super sache, this MOD!

It is also possible that you get the preview images on the basis of the GPS information (based on the output [MOD] Google Map)?
speak it as a preview images are displayed images that are closest to the displayed image?

gruss, mountain flower

I suppose but I don't have the Google Map MOD enabled

- Brian

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #92 on: May 16, 2010, 11:53:03 AM »
Hi,

[MOD] Photo Preview Hack ....

Thanks ! :)




fullquote removed @Rembrandt
« Last Edit: May 16, 2010, 11:59:49 AM by Rembrandt »

Offline ilaslan

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #93 on: August 18, 2010, 09:51:19 PM »
hello . iam new 4images.
 i love this mod hacks. i am using 1.7.8 .
But when i use this mod hack  next_image_url is always null = and next , previeus link is not working ( and click main image go to next images ).  Some friends has said this problem but i dont see any solve. only surferboy said that
Quote


[edit] - issue resolved.  see note here: an update for 1.7.7?

able to resolve issue; on a hunch, decided to try V@NO's advice in this post:
http://www.4homepages.de/forum/index.php?topic=7294.msg133435#msg133435

on http://www.4homepages.de/forum/index.php?topic=7294.msg145881#msg145881

but i didnt understand solve

vano says :

Quote
In your particular case you'll need insert that code below
   
Code: [Select]
unset($next_prev_cache);
edit : this hack codes must insert below unset($next_prev_cache);  No problem

Regards
« Last Edit: August 18, 2010, 10:04:16 PM by ilaslan »

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #94 on: August 26, 2010, 09:46:35 PM »
what does this MOD do, links on demos are dead

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #95 on: August 27, 2010, 05:43:08 AM »
what does this MOD do, links on demos are dead

Demo

the image row above the line  "Wetter Information vom Aufnahmeort"

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #96 on: August 27, 2010, 04:15:21 PM »
@Remembrant

On step 3 it says find ?> in the styl.css, but there is no ?> inside of css because its not php.

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #97 on: August 27, 2010, 05:58:52 PM »
@Remembrant

On step 3 it says find ?> in the styl.css, but there is no ?> inside of css because its not php.
paste it wherever you want in the style.css

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #98 on: September 08, 2010, 06:03:23 PM »
@remambrant

this mod only shows the first 5 images and thats it? when i click next next next next next then inside the page the image changes but the previous hack does not. It is still on the first 5 images. Is there a way that after the 5 image a new set of 5 images appear?? please  :mrgreen: thank you

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #99 on: September 08, 2010, 06:37:47 PM »
@remambrant
^
this is not a member from 4images forum, but perhaps I can help you...  :roll:

Quote
this mod only shows the first 5 images and thats it? ..
you mean, your mod  :mrgreen:

post your code from details.php and the code from the details.html

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #100 on: September 08, 2010, 09:53:56 PM »
Remembrant

Please forgive me. Of course i know you arent a 4images member  :lol: :lol: :lol:... Number 1 the reason is because only administrators like yourself make the coolest MODS which i have integrated from the likes of yours and mewazni and of course vano. Also and this is the easiest. Another reason how i know your arent a 4images member, is because if you had created this modification yourself, im 100% sure i would not have had any problems regarding its implemention.  :mrgreen:

 
********
Update, http://www.4homepages.de/forum/index.php?topic=7294.msg145881#msg145881 this is exactly the problem i am facing and it actually worked. Im so so so sory for wasting your time remembrant, but i  will next time read first ask later hehehe  :mrgreen:

Update number 2 lol ***

I actually do had 1 small request. Is there any way to make the dimensions of the thumbnails to be all the sme even the thumbnails of movies and thumbnails of media sites aand mp3. all have 1 demension and also i want to remove the name of the image i just want the image to appear thats all. I hope u can help me on this one  :mrgreen:
« Last Edit: September 08, 2010, 10:06:21 PM by zakaria666 »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Photo Preview Hack
« Reply #101 on: September 09, 2010, 01:08:26 AM »
:offtopic:
one word: dyslexia

Having some symptoms myself I tend to copy/paste people's names rather then typing them and get into situation like this one...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #102 on: September 09, 2010, 02:59:12 AM »
 :( :( :( :(

@ Rembrandt not remembrant

Please forgive me. I sincerely apologize. Upon you telling me that remembrant was not a member here i thought that you meant I was being disrespectful to you by talking to you as a member and not as a respected administrator/moderator. It was only after i realized what you had meant by this comment. I sincerely apologize and please forgive me. It will not happen again. I hope you are not angry or upset with me  :(.

@Vano

I very much also sincerely apologize. I did not mean to be disrespectful what so ever.  :( I actually do have a mild form of dyslexia which i havent told anyone about. For some reason when im nervous or under pressure like standing up infront of the class and talking. The words just dont make sense and in very small occasions like when i said remembrant :cry:

I am really sorry guys. Please if I have annoyed you or any of your fellow workers i will discontinue use of this forum, you just have to say the word. I dont want to make anyone here angry. You guys have been there with support whenever ive needed it and if i have upset anyone please do say .

Im very soory again rembrandt and voano lol i mean vano  (whis) :)

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #103 on: September 09, 2010, 09:18:24 AM »
so.. i have recoded the photo preview hack

1.) install this mod: http://www.4homepages.de/forum/index.php?topic=25017.msg137021#msg137021
and the addon:   http://www.4homepages.de/forum/index.php?topic=25017.msg138624#msg138624

2.) search in root/details.php:
 //-----------------------------------------------------
//--- Save Comment ------------------------------------
//-----------------------------------------------------

insert above:

//##################################### Start MOD: Photo Preview Hack ###################################

$total "7"// always an odd number e.g. 5,7,9,11... e.t.c
$center 1// for table-width 100% set 0;

  
$result $site_db->query($sql);
    while(
$row $site_db->fetch_array($result)){
      
$image_preview[] = $row['image_id'];
      
$preview_row[$row['image_id']] = $row;
    }

    
$lastPage count($image_preview);

      if (
$center == 1){
        
$t_template "<table align=\"center\" width=\"10%;\">\n";
      }
      else{
        
$t_template "<table width=\"100%;\">\n";
      }  
        
$t_template .= "<tr>";

      if(
$lastPage < ($total 1)){ 
        
$start 0;
        
$end $lastPage -1;
      }
      elseif (
$act_key <= (($total-1)/-1)){
        
$start 0;
        
$end   = ($total 1);
      }
      elseif (
$act_key >= $lastPage - (($total-1)/2)){
        
$start $lastPage $total;
        
$end $lastPage 1;
      } 
      else {
        
$start $act_key - ($total-1)/2;
        
$end   $act_key + ($total-1)/2;
      }

      for(
$i=$start$i<=$end$i++){
        if (
$preview_row[$image_preview[$i]]['image_id'] == $image_row['image_id']) {
          
$t_template .= "<td class=\"minirow1\">\n";
        }
        else {
          
$t_template .= "<td class=\"minirow2\">\n";
        } 
    
        
$t_template .= get_thumbnail_small_code($preview_row[$image_preview[$i]]['image_media_file'], $preview_row[$image_preview[$i]]['image_thumb_file'], $preview_row[$image_preview[$i]]['image_id'], $preview_row[$image_preview[$i]]['cat_id'], format_text(trim($preview_row[$image_preview[$i]]['image_name']), 2), $mode1);
        
$t_template .= "</td>";
      }

      
$t_template .= "</tr>";
      
$t_template .= "</table><br>\n";
      
$site_template->register_vars("preview_box"$t_template);
unset(
$image_preview);
//######################################## End MOD: Photo Preview Hack  #######################################


3.) search in your Templates/details.html:
Code: [Select]
{endif msg}insert below:
Code: [Select]
{if preview_box}
  {preview_box}
{endif preview_box}

4.) insert in your Templates/style.css
Code: [Select]
.minirow1 {
padding:4px;
background-color : #FFFFFF;
text-align : center;
vertical-align : middle;
border : 1px solid #004C75;
}

.minirow2 {
padding:4px;
background-color : #FFFFFF;
text-align : center;
vertical-align : middle;
border : 1px solid #CCCCCC;
}

in the top of the code, can you set how many images you preview , and the table width.

i think it is all say over the mod.

mfg Andi
« Last Edit: December 07, 2010, 05:56:20 AM by Rembrandt »

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #104 on: September 09, 2010, 07:53:45 PM »
@Rembrandt

Very amazing 1. Thanks man. It is exactly the way i wanted it. Looks very cool and now it looks very neat. thank you 100x  :thumbup:


thanks man