Results 1 to 9 of 9

Thread: Some kind of URLs exporter & proposition

  1. #1

    Default Some kind of URLs exporter & proposition

    Hello Yab again

    This time this is a very useful and important request.

    The problem is next: I want to modify the gallery as it has very poor realisation (now is 2010 and realisation is like in 1999 )

    What i have as idea.

    We need some kind of script, let's call gallery_export.php for example, to export all gallery images urls in some kind of template.

    It will be called by gallery_export.php?gal={id} and return links for urls like

    img_url_prev1
    img_url_full1
    ...
    till last image of a gallery


    Really, i even don't know how to make it all, just want to create new gallery...
    Example i want to integrate it with something like this http://getpagemap.com/pages/pagemap-imagewall/demo/


    p.s. my opinion you dont need to make a new release of aihs in future, just make an addon (even for $) to modify all gallery.. view.php integrate with show.php and etc...
    Last edited by xavior; 08-10-2010 at 08:27 PM.

  2. #2

    Default

    Can something be made to export urls?

    something even like on new.php page - we just make template and then it displays all new images.

    ....

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

    Default

    I will look into it.

  4. #4

    Default

    how urls are transfered when they are sent to flash gallery and etc.. - maybe this will be easier to make to generate urls.

  5. #5

    Default

    One of the solutions is the page like gallery_list.php?gal=2

  6. #6

    Default

    on gallery_list.php page we have {galimg.thumburl} - for thumbs

    I need the link for fullurl image ?

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

    Default

    Quote Originally Posted by xavior View Post
    on gallery_list.php page we have {galimg.thumburl} - for thumbs

    I need the link for fullurl image ?
    I suppose you do the mods according to gallery_list.php. Here is teh way to add full image url in the template. Use it by {galimg.imageurl}.

    Try to edit gallery_list.php, find the code:
    PHP Code:
    $template->assign_block_vars($block, array(
                    
    'showurl' =>$adsurl,                
                    
    'thumburl' =>$thumburl,
                    
    'views' =>$row[views],
                    
    'avg_ratings' =>sprintf('%01.2f',@($row[ratings]/$row[votes])),
                    
    'votes'=>$row[votes],
                    
    'upload_date'=>date('m/d/y H:i:s',$row[time]),
                    )
                    ); 
    change to
    PHP Code:
    $template->assign_block_vars($block, array(
                    
    'showurl' =>$adsurl,
                    
    'imageurl' =>$imageurl,
                    
    'thumburl' =>$thumburl,
                    
    'views' =>$row[views],
                    
    'avg_ratings' =>sprintf('%01.2f',@($row[ratings]/$row[votes])),
                    
    'votes'=>$row[votes],
                    
    'upload_date'=>date('m/d/y H:i:s',$row[time]),
                    )
                    ); 

  8. #8

    Default

    Thank you.
    Now gallery is great!

    Demo



    p.s when i tryed to implement myself code - i have putted imageurl in the bottom $template array - and it was not working

    Thank you

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

    Default

    Glad to know it is working

Similar Threads

  1. CGI PHP / Static URLs
    By dohnjoe in forum Pre-Sales Questions
    Replies: 3
    Last Post: 02-06-2008, 04:43 PM

Posting Permissions

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