• [MOD] Left Gallery QuickList 4 0 5 1
Currently:  

Author Topic: [MOD] Left Gallery QuickList  (Read 107612 times)

0 Members and 1 Guest are viewing this topic.

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] Left Gallery QuickList
« Reply #30 on: November 20, 2009, 02:11:25 AM »
Hi

i tried the same

but its not working for me

I've added one more step into my post.
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 twiter

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #31 on: November 20, 2009, 11:50:37 AM »
I have tried again and it doesnt work again, it seems like this,




And the second problem with mod is, categorie width, I have tried to fix this with css but cannot.

All categories cannot readable because of width problem how can i fix this?
Here is the 2nd screen.



Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Left Gallery QuickList
« Reply #32 on: November 21, 2009, 01:14:25 AM »

And the second problem with mod is, categorie width, I have tried to fix this with css but cannot.

All categories cannot readable because of width problem how can i fix this?



Look at line#5 on the insert for the includes/functions
Code: [Select]
$left_quick_length=24; //length of category name, 0-3 =off (if on, will shorten name to fit with ... after it)

Problem if you make it too large would be that your left column will take up more of your page...
Buddy Duke
www.budduke.com

Offline twiter

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #33 on: November 21, 2009, 09:59:47 AM »
its done now, i am still waiting for new solutions from V@no :)

Offline jotabonfim

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #34 on: January 30, 2010, 08:05:21 PM »
Budduke Hi, very good this module!

excellent module, I was long looking for something for my site.

Please, how do I display the amount of images that category and if you have new images show (news)?

for exemple(

Cat 1 (165 video)
....Cat 1.1 (65 video) (news)
....Cat 1.2 (100 video) (news)
Cat 2 (458 photo)
....Cat 2(458 photo)



Thank you for your help
« Last Edit: January 31, 2010, 05:58:24 PM by jotabonfim »

Offline Joss

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • All about digital photography
Re: [MOD] Left Gallery QuickList
« Reply #35 on: February 14, 2010, 04:12:14 PM »
Thanks for the MOD,
but there is a problem - it is including in the page_header.php, so for EVERY page the category tree will be created (calculated sizes, queries etc.)
I've noticed some increase of page generating time with this mode.

Is there a way to cache the mod or include it only in home template (I don't display category menu in all pages exclude home page)?

Updated:

As I've categories only in index, I move

Code: [Select]
//-----------------------------------------------------
//--- MOD Left Quicklist -------------------------------
//-----------------------------------------------------
$left_quicklist = get_left_quicklist($cat_id);
$site_template->register_vars(array(
"left_quicklist"   => $left_quicklist,
"lang_left_quicklist" => $lang['left_quicklist']
));
unset($left_quicklist);
// END MOD Left quicklist

from page_header.php to index.php before

Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
« Last Edit: February 14, 2010, 06:00:04 PM by Joss »
Digital Photo Gallery: http://gallery.imagemaster.ru

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #36 on: March 06, 2010, 10:22:53 AM »
What if I have [MOD]Language select (Version B) installed ?
I tried installing it, and when I choose another language, all works (it translates quicklist). But when i click in category in quicklist, it goes back to default language. Maybe i did something wrong in installation ?

EDIT :
got it work partially.

I changed in functions.php
Code: [Select]
 global $site_db, $drop_down_cat_cache, $cat_cache;to this :
Code: [Select]
global $site_db, $drop_down_cat_cache, $cat_cache, $site_sess;
also changed :

Code: [Select]
$category_list .= "<li><span class='folder'><a href=categories.php?cat_id=".$category_id.">".$quick_cat_name."</a></span>";
}
else {
      $category_list .= "<li><a href=categories.php?cat_id=".$category_id.">".$quick_cat_name."</a>";
to this :
Code: [Select]
$category_list .= "<li><span class='folder'><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id."")."\">".multilang($quick_cat_name)."</a></span>";
}
else {
      $category_list .= "<li><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id."")."\">".multilang($quick_cat_name)."</a>";

Sorry, seems that V@no already made fix for this :S. But i have more problems.

Now it doesnt change language to default (it stays to language, which user choosed), but in quicklist it doesnt show category I'm currently viewing (It shows correctly only when default language selected).
categories.php?cat_id=10&l=english  - doesnt work
categories.php?cat_id=10  -  works
 Any help with this ?
« Last Edit: March 07, 2010, 09:20:27 PM by urmasmuld »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Left Gallery QuickList
« Reply #37 on: March 06, 2010, 04:56:24 PM »
@urmasmuld,

It should strip anything after the '&' symbol in the url string when deciding to highlight current location in the query.
What happens if you are using 'english' and have more then one page of items?

Can you give me a link to see what it is doing?

Buddy Duke
www.budduke.com

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #38 on: March 06, 2010, 11:34:21 PM »
Sure, link is here
It doesnt matter how many pages of pics I have, result always the same. If using default language list is working, but when changing to english, it wont strip the list. Sorry for my bad english  :roll:

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: [MOD] Left Gallery QuickList
« Reply #39 on: March 07, 2010, 06:25:30 AM »
in here i see a cool sliding effect ;)

http://jquery.bassistance.de/treeview/demo/prerendered.html

how to add this feature to the qucklist ? i mean the cool sliding effect  :wink:

tnx !
I'm Back :)

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #40 on: March 07, 2010, 03:13:57 PM »
in here i see a cool sliding effect ;)

http://jquery.bassistance.de/treeview/demo/prerendered.html

how to add this feature to the qucklist ? i mean the cool sliding effect  :wink:

tnx !

Open header.html in templates folder and find
Code: [Select]
$("#left_quicklist_nav").treeview({
collapsed: true,
unique: true,
persist: "location"
replace with :
Code: [Select]
$("#left_quicklist_nav").treeview({
collapsed: true,
unique: true,
animated: "medium",
persist: "location"

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Left Gallery QuickList
« Reply #41 on: March 07, 2010, 03:32:07 PM »
Sure, link is here
It doesnt matter how many pages of pics I have, result always the same. If using default language list is working, but when changing to english, it wont strip the list. Sorry for my bad english  :roll:

Apprently the hack I did in the js file that searches for the '&' symbol, I thought it would look for the first one and strip everything after it but in your case it looks like it is counting how many it finds, '2' in this case, and strips everything after the second one  :(

I am not very good with the commands in javascsript but will look around and see what I can find...

Modified
Maybe possible fix if you could test it for me
Backup your jquery.treeview.js file and Replace line #204 that looks like this...
Code: [Select]
var locend = location.href.search(/&/);//character you are searching for

with this
Code: [Select]
var locend = location.href.indexOf(/&/);//character you are searching for

from my quick search on google this looks like the correct way of doing this but I do not have a site that I can test it on right now so if you could try it and let me know I will make the change on the original file on this post...
« Last Edit: March 07, 2010, 03:56:15 PM by budduke »
Buddy Duke
www.budduke.com

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #42 on: March 07, 2010, 07:10:25 PM »
@ budduke

Won't work  :cry:

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Left Gallery QuickList
« Reply #43 on: March 07, 2010, 08:52:41 PM »
@ budduke

Won't work  :cry:

Darn, Wil have to setup a test site with V@no's multi lang mod along with mine to see what is happening.
I think I know what it is doing but not sure how to fix it just yet.

« Last Edit: March 07, 2010, 09:29:17 PM by budduke »
Buddy Duke
www.budduke.com

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Left Gallery QuickList
« Reply #44 on: March 07, 2010, 09:19:04 PM »
@ budduke

Won't work  :cry:

Darn, Wil have to setup a test site with V@no's multi lang mod along with mine to see what is happening.
I think I know what it is doing but not sure how to fix it just yet.

Modified

Backup your jquery.treeview.js file and Replace it with the modified one attached to this reply and let me know if it fixes it. It should.
My brain works better when food is in me  :)

Well, uploaded this file, now all subcategories have been lost (with both languages) from list :S (you can see it here)
Trying to find solution myself too. If found, let you know. But thanx for helping :D