X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Photo Gallery Mod (https://forum.x-cart.com/showthread.php?t=32856)

l0st 04-24-2008 11:15 AM

Re: Photo Gallery Mod
 
i actually just bought this. :D

joannet 05-02-2008 04:42 AM

Re: Photo Gallery Mod
 
Hi,

Can I purchase the customised Photo Gallery mod online now? Am really keen to implement as soon as possible.

Thanks,

joannet 05-12-2008 04:40 PM

Re: Photo Gallery Mod
 
I'm interested to know how you are finding the new;y customised Photo Gallery mod 10st?

Can you please let me know if you can purchase each photo now - i.e. click on the photo or link under it and you can go to the individual photo, see more description and purchase it.

Thanks

DataViking 05-12-2008 07:20 PM

Re: Photo Gallery Mod
 
Hi,
the new version "V3" allows you to have a link and the link will go to anywhere i.e. an external url or a product in the store

I hope this answer your question

joannet 05-12-2008 07:23 PM

Re: Photo Gallery Mod
 
Great.
I've just checked your website and v2 is still on there.

I want to purchase it straight away. Can you please advise how I can purchase v3?

Thanks

DataViking 05-12-2008 08:56 PM

Re: Photo Gallery Mod
 
I know I have to update the site, when you get the mod I will make sure you get v3.

joannet 05-12-2008 09:24 PM

Re: Photo Gallery Mod
 
Hi,

I've just purchased the mod. Looking forward to using it!

Thanks

l0st 05-13-2008 09:55 AM

Re: Photo Gallery Mod
 
hello, i have v2 of this.. can you send me v3 update files?

konadnailart 05-31-2008 02:14 AM

Re: Photo Gallery Mod
 
joannet have you got your mod and hows it doing, any problem? I am also interested in getting it could you give me a link to your site for a look. I would like to see the link to product thingy.
Thank you

Acquamarina 07-03-2008 09:56 AM

Re: Photo Gallery Mod
 
Hi,

Most of the products on our site are one of a kind. Some I make, some are vintage. For the sake of a reference to visitors, I have kept the products in 2 separate categories that only contain sold out items. Problem is they appear on searches and I would prefer they don't.

Is there anyway to make a category into a gallery only using this mod?

Is there a way to do that at all which wouldn't involve creating a static page for each item?

Thanks for any input.

beetlejuice 07-11-2008 07:40 PM

Re: Photo Gallery Mod
 
Just wanted a little feedback before I offer this to a client. Is everyone that is using this mod happy with the results?

Thanks

DataViking 07-12-2008 05:46 PM

Re: Photo Gallery Mod
 
Quote:

Originally Posted by Acquamarina
Hi,

Most of the products on our site are one of a kind. Some I make, some are vintage. For the sake of a reference to visitors, I have kept the products in 2 separate categories that only contain sold out items. Problem is they appear on searches and I would prefer they don't.

Is there anyway to make a category into a gallery only using this mod?

Is there a way to do that at all which wouldn't involve creating a static page for each item?

Thanks for any input.



you can create categories with the mod.

scraps 07-13-2008 08:53 PM

Re: Photo Gallery Mod
 
This is an exceptional mod. Works perfectly for basic needs of a gallery.

Support is good but slow, and receiving download link or attached zip file in email is also slow after purchase.

beetlejuice 07-13-2008 09:01 PM

Re: Photo Gallery Mod
 
Thanks for the feedback scraps, I'll let my client know
that the mod itself will suit their needs perfectly.

They don't need to know the other stuff :D

DataViking 07-13-2008 09:29 PM

Re: Photo Gallery Mod
 
I have automated the delivery process. now you will receive the download link after the order is process.

thank your for your feedback.

scraps 07-17-2008 11:38 AM

Re: Photo Gallery Mod
 
Because I'd only ever installed version 1 of this mod, I need some help with the install on version 3.

I wrote you via your sites contact us page today and still haven't heard anything. I realize I should wait longer to hear from you, but I'm kind of in a hurry to finish this site since I'll personally be in moving mode next week.

My questions via the install were.. Which var directory do I delete? Surely this isn't the one x-cart stores cache stuff in?

And the other is to the home.tpl part of the install on the

block of code at:

<title>{strip}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
{/strip}</title>

You say to change it, but you don't say what to change it to. Mine also doesn't quite look exactly like the code here, but reads well enough for me to think it's the right code your talking about.

This code apparently seems to affect the part of admin that allows for the gallery line to show up, because everything else is properly installed with the cart and the only thing I'm not seeing is the line in the admin for the menu that should say Gallery. (I have it in the menu part for the admin, but it isn't showing up there and when I go directly to images.php, I get the your not allowed to access this resource page)

Please advise.

konadnailart 07-26-2008 06:05 AM

Re: Photo Gallery Mod
 
Just bought this mod but cannot find where to set the link photos in gallery to product in store part. Anyone using this mod? Advise?
Thank you

scraps 07-26-2008 01:39 PM

Re: Photo Gallery Mod
 
Kona,

You don't mention the line your trying to add, so I'm going to assume you are talking about the link on the customer side.

You can add it in various .tpl files for the customer page.. all are under skin1/

such as:

skin1/customer/special.tpl
skin1/help.tpl
skin1/customer/categories.tpl

Once added, save, then look at your customer side, you should see the word "Gallery" as the menu item (you can change the word in the linkage for the link line itself, but for this purpose, I'll just say Gallery) and depending on where you like it, you can then either leave it or try the other various tpl files till you find a solution you are happy with. This is a great way to learn how the other tpl files are of benefit to you. I for instance don't let my static pages show on help.tpl, I instead place links in my special.tpl in order to have static pages show up there instead.

konadnailart 07-26-2008 08:51 PM

Re: Photo Gallery Mod
 
thanks scraps for the reply. sorry that i'm not clear with my question. actually what i mean is the link from the photos or pictures in the gallery to actual products in the store not link to the gallery itself. for link to the gallery i have use the speed bar.
thyank you

scraps 07-26-2008 10:01 PM

Re: Photo Gallery Mod
 
I have recently installed this mod on one of my sites as well Kona, and I to am having the same problem.

The link is suppose to go in with the description of the image when your adding it to admin. This is how it works in version 1 of the mod anyway. I had that added when I first added this mod to another of my sites last October, and the link simply went in with the description box, and links from inside when the window pops up when clicking on the thumbnail.

However, my link is showing up on the actual gallery page at the moment and not in the popup window. The link is the one opening the popup window, and the thumbnail image doesn't open anything.

Not how it's suppose to work :)

I have written the author tho to have this fixed and I recommend you try the same thing.

DataViking 07-29-2008 12:04 AM

Re: Photo Gallery Mod
 
will post the solution shortly

scraps 07-30-2008 07:24 PM

Re: Photo Gallery Mod
 
Any fixes yet? It's been 4 days now since I wrote asking for help not only at this forum, but in email to you and I really need this problem fixed.

DataViking 08-04-2008 06:08 PM

Re: Photo Gallery Mod
 
the fix was finish yesterday, please email me with the order number and domain and I will send you the new file.

SGS 08-05-2008 10:28 AM

Re: Photo Gallery Mod
 
I have v1. What's the cost to upgrade? Will I need to delete v1 to install v2?

Thanks,

konadnailart 08-09-2008 09:36 AM

Re: Photo Gallery Mod
 
the link part is fix but the alt text is not correct when you hover over the pics in the gallery, anyone notice this?

konadnailart 08-12-2008 08:12 PM

Re: Photo Gallery Mod
 
hover your cursor over the pictures in the gallery and the alt text display is not correct. this has not yet been fix and the developer is not responsive, no reply till now.

konadnailart 08-15-2008 06:53 AM

Re: Photo Gallery Mod
 
$50 DOWN THE DRAIN. Any suggestions for an alternative?

DataViking 08-15-2008 08:42 AM

Re: Photo Gallery Mod
 
the alt text in the picture code is getting re done to accommodate html code and non htm code for the alt pic. please be patient. I will email all the new code as soon as is done.


thank you

konadnailart 08-15-2008 08:26 PM

Re: Photo Gallery Mod
 
nobody inform me to be patient thats why i thought my $50 is down the drain. thanks for your reply and i find this board effective in getting non responsive mod creator to reply to queries. thank you.

beetlejuice 02-15-2009 12:49 PM

Re: Photo Gallery Mod
 
I've just purchased this mod for a client's site, but it's conflicting with the shadowbox that's been setup for the products detailed images. When you click on a gallery photo it opens up in shadowbox which it shouldn't and lightbox which is supplied with the gallery mod.

The shadowbox code should only call images from the "D" image directory but I'm not sure why it's pulling images from the gallery created "G" directory.

Anyone had a similar problem with a solution?

thanks

beetlejuice

beetlejuice 02-19-2009 12:52 PM

Re: Photo Gallery Mod
 
Bump!!.


I've PM'd DataViking a couple of times, sent two emails via his contact page at dataviking.com and no response from any of them.

Does anyone know if this guy is still around ? A week and no response is pretty ordinary support.

Thanks

beetlejuice 02-20-2009 12:34 PM

Re: Photo Gallery Mod
 
Looks like DataViking and phpsolutions may be one and the same 8O

Not a single reply to any contact I've made in the last week or so. Not via the forum thread, PM's nor contact from either of his sites envisionlayouts.com and DataViking.com.

I've got to get this finished for a client otherwise it's more money down the drain and here in AUS with our dollar for some reason poor against the US it hurts a bit more than others.

As per the thread 2 posts back I've listed the gallery.php below to see if anyone might be able to see why shadowbox which is used for detailed images is also being called for photos in this gallery mod. I battle around with PHP but it's not my strong suit.

Code:

<?php
/*****************************************************************************\
                            GALLERY FOR XCART!
\*****************************************************************************/

#
# $Id: form.php,v 1.6.2.1 2007/03/22 13:54:23 svowl Exp $
#
require "./auth.php";
require $xcart_dir."/include/categories.php";
x_load('files','image');
x_session_register("file_upload_data");

if (empty($active_modules["Image_Gallery"])){
    func_header_location("error_message.php?access_denied&id=7");
}

if ($_GET['gallery_cat']){
    $cat=$_GET['gallery_cat'];
}elseif($_POST['gallery_cat']){
    $cat=$_POST['gallery_cat'];
   
}else{
    if ($first_cat = func_query("SELECT * FROM {$sql_tbl['gallery_categories']} WHERE avail='Y' AND parent_id=0 ORDER BY order_by ASC LIMIT 0,1")){
        $cat=$first_cat[0]["id"];       
    }else {
        $cat=0;
    }       
   
}

$smarty->assign("list_type",$config['Image_Gallery']['image_category_select_type']);
$smarty->assign("lightbox",$config['Image_Gallery']['image_lightbox']);
if (@$user_account["usertype"]=="C"){
    $smarty->assign("client_upload",$config['Image_Gallery']['image_client_upload']);
}


//Location
if (!function_exists('sortMdArray')){   
    function sortMdArray(&$aArray, $sBy, $sOrder, $sType){
   
        $sSortby = "sort$sBy";
        $sFirstval = current($aArray);
        $aValues = array_keys($sFirstval);
       
        foreach ($aValues as $sInit){
          $keyname = "sort$sInit";
          $$keyname = array();
        }
        foreach ($aArray as $sKey => $sRow) {
            foreach ($aValues as $sNames){
              $sKeyname = "sort$sNames";
              $aTest = array();
              $aTest[$sKey] = $sRow[$sNames];
              $$sKeyname = array_merge($$sKeyname,$aTest);
            }
        }
        if ($sOrder == "DESC"){   
            if ($sType == "num"){
            array_multisort($$sSortby,SORT_DESC, SORT_NUMERIC,$aArray);
            } else {
            array_multisort($$sSortby,SORT_DESC, SORT_STRING,$aArray);
            }
        } else {
            if ($sType == "num"){
            array_multisort($$sSortby,SORT_ASC, SORT_NUMERIC,$aArray);
            } else {
            array_multisort($$sSortby,SORT_ASC, SORT_STRING,$aArray);
            }
        }
    return  $aArray;
    }
}

function get_parent_path ($parentid){
    global $sql_tbl;
    $parent_path=array();
    $iCount=0;
    while ($parentid!=0){
    $parent= func_query("SELECT * FROM {$sql_tbl['gallery_categories']} WHERE id={$parentid}");
    $parent_path[]=array($parent[0]['id'],$parent[0]['name']);
    $iCount++;
    $parentid=$parent[0]['parent_id'];
    if ($iCount>5){ die('Hiba'.$parentid); }
    }
    return array_reverse($parent_path);
}
if (isset($_GET['mode']) and $mode=='show'){
    $image=func_query("SELECT * FROM $sql_tbl[gallery_images] WHERE id={$_GET[id]}");
    $location_add=get_parent_path($image[0]['category_id']);
    $location_add[]=array("",$image[0]['name']);
}else {
    $location_add=get_parent_path($cat);
}


foreach ($location_add as $loc){
   
    if ($loc[0]){
        $location[]=array($loc[1],"?gallery_cat=".$loc[0]);
    }else {
        $location[]=array($loc[1],"");
    }   
}
$location[count($location)-1][1]="";

//Back cat id
$smarty->assign("back_cat_id", $location[count($location)-2][1]);
$smarty->assign("back_cat_name", $location[count($location)-2][0]);
$smarty->assign("current_cat_name", $location[count($location)-1][0]);



$smarty->assign("location", $location);


$smarty->assign("cat", $cat);


global $sql_tbl;
function get_all_categories(){
    global $sql_tbl;
    if ($all_cats = func_query("SELECT * FROM {$sql_tbl['gallery_categories']} ORDER BY order_by ASC")){
   
    //Replace category names by path
    foreach (array_keys($all_cats) as $sKey) {
        if ($all_cats[$sKey]['parent_path']!=""){
            $aPath=explode('/',rtrim($all_cats[$sKey]['parent_path'],'/'));
            $sFullName="";
            foreach ($aPath as $sParentId){
                if ($parent = func_query("SELECT * FROM {$sql_tbl['gallery_categories']} WHERE id={$sParentId}")){
                    $sParentName=$parent[0]['name'];
                    $sFullName.=$sParentName.'/';
                }
            }
            $sFullName.=$all_cats[$sKey]['name'];
            $all_cats[$sKey]['name']=$sFullName;
        }
       
       
    }
   
       
        $all_cats=sortMdArray($all_cats,'name','ASC','text');
        return $all_cats;
    }
}

function get_categories_client($parent_id=0){
    global $sql_tbl,$config;
   
        if ($cats = func_query("SELECT * FROM {$sql_tbl['gallery_categories']},$sql_tbl[images_H] WHERE $sql_tbl[gallery_categories].avail='Y' AND $sql_tbl[images_H].id=$sql_tbl[gallery_categories].id  AND parent_id={$parent_id} ORDER BY order_by ASC ")){
           
            return $cats;
       
        }elseif($cats = func_query("SELECT * FROM {$sql_tbl['gallery_categories']} WHERE $sql_tbl[gallery_categories].avail='Y' AND parent_id={$parent_id} ORDER BY order_by ASC ")){
            return $cats;
        }else {
            return false;
        }
   
   

   
}

if ($_POST['mode']!="create_image"){

    $images = func_query("SELECT * FROM $sql_tbl[images_G],$sql_tbl[gallery_images] WHERE $sql_tbl[images_G].id=$sql_tbl[gallery_images].id AND category_id=$cat AND $sql_tbl[gallery_images].avail='Y' ORDER BY $sql_tbl[gallery_images].id ASC");
       
        //adding th postfix to the image file name
        $imagesthumb=array();
        if(!empty($images)){
            foreach ($images as $image){
                $aFile=explode('.',$image['filename']);
                $image['filename']=$aFile[0].'_tn.'.$aFile[1];
                $image['filename_big']=$aFile[0].'.'.$aFile[1];
                $imagesthumb[]=$image;
            }
            $smarty->assign("images", $imagesthumb);
        }
        $cats=get_categories_client($cat);   
       
       
        $smarty->assign("cats", $cats);
        if($config['Image_Gallery']["image_category_select_type"]=="D"){
            $smarty->assign("all_cats", get_all_categories());   
        }
}elseif($_POST['mode']=="create_image"){
       
        //Create images from the client side   
        if (!isset($user_account) or @$user_account["usertype"]!="C"){
            func_header_location("error_message.php?need_login");
        }
       
        if ($config['Image_Gallery']['image_client_upload']!="Y"){
            func_header_location("error_message.php?access_denied&id=7");
        }   
       
       

        $cats=get_categories();
        $smarty->assign("cats", $cats);
        if (isset($_POST['image']['id'])){
            //Form validation
            foreach (array("name") as $key) {
                $err = $err || ($error[$key] = empty($_POST['image'][$key]));
            }
            if (!$err){
                //Create action
                db_query("INSERT INTO $sql_tbl[gallery_images] (name,descr,avail,category_id,user_login) VALUES ('{$_POST[image][name]}','{$_POST[image][descr]}','{$_POST[image][avail]}',$_POST[gallery_cat],'{$user_account[login]}')");
                $top_message["content"]="Image created!";
                $imageid=db_insert_id();
                update_image(db_insert_id(),$mode,'G',true);
                func_header_location("gallery.php?gallery_cat=".$_POST['gallery_cat']);
            }else {
                    $top_message["content"] = func_get_langvar_by_name("err_filling_form");
                    $top_message["type"] = "E";
                    x_session_register("nwslt_object");
                    $nwslt_object["error"] = $error;
                    $nwslt_object["list"] = $list;
   
                    func_header_location("gallery.php?mode=new&gallery_cat=".$cat);
            }
        }
           

}elseif($_GET['mode']=="show") {
   
    //Show one image
    if ($image=func_query("SELECT * FROM $sql_tbl[gallery_images] WHERE id=$_GET[id]")){
        if ($image[0]['avail']!='Y'){
            func_header_location("error_message.php?access_denied&id=7");
        }
               
        $smarty->assign("image",$image[0]);
    }else {
        $top_message["content"] = "Invalid image ID!";
        func_header_location("gallery.php?gallery_cat=".$cat);
    }
}


switch($mode){
    case "show": $smarty->assign("main", "gallery_show"); break;
    case "new": {
        if (!isset($user_account) or @$user_account["usertype"]!="C"){
            func_header_location("error_message.php?need_login");
        }else {
            if ($config['Image_Gallery']['image_client_upload']=="Y"){
                $smarty->assign("main", "gallery_new"); break;
            }else {
                func_header_location("error_message.php?access_denied&id=7");               
            }
        }   
    }
    default:    $smarty->assign("main", "gallery");
}

func_display("customer/home.tpl",$smarty);

?>


Hope someone can see it, i've been staring at this for hours.

Thanks

beetlejuice

PS if I need to supply any other codes just yell, I'm standing by.

DataViking 03-01-2009 11:12 PM

Re: Photo Gallery Mod
 
Sorry for my delay response, but I'm not workign on x-cart much this days. We sold EnvisionLayouts.com and the gallery mod last year. all support should be done via the new owner.

For the few that contact me directly, thank you for your patience.

For all future work, will be a $25 hourly charge and due to our busy schedule I have to schedule all future work.

DataViking 03-01-2009 11:13 PM

Re: Photo Gallery Mod
 
DataViking and phpsolutions are not the same


All times are GMT -8. The time now is 09:57 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.