Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Publisher module Article Images List in Alphabetical order in admin
by rgauci on 2010/3/29 14:14:06

Quote:

zyspec wrote:
Rather than continuing to experiment on you I'll see if I can look at this in the next few days while I'm working on a few other things...


I understand and really appreciate ALL your help and of this community that spend hours for free in helping people like us that want to use and make XOOPS number 1

Anyway I tried to put 'a' before sort to become

asort($image_array, SORT_STRING);


as originally you advise me and its working perfectly.

I will test some more and will let you know if there were or if my problem has been solved

Again zyspec thanks from my heart
Re: Publisher module Article Images List in Alphabetical order in admin
by zyspec on 2010/3/29 13:25:50

okay... so I've been running a little too fast, the 'sort' commands (both of them) should have been 'asort'... Using asort will maintain the keys.

Sorry for sending you on these 'rabbit' trails.

Rather than continuing to experiment on you I'll see if I can look at this in the next few days while I'm working on a few other things...
Re: Publisher module Article Images List in Alphabetical order in admin
by rgauci on 2010/3/29 10:00:56

Quote:

zyspec wrote:

If this doesn't work I may have to go put publisher on my test site and 'play around with it'

Good luck - let me know how it goes...


No it didn't work. Lost the alphabetical Order for the box images although the fuction to select the image is working.
Re: Publisher module Article Images List in Alphabetical order in admin
by zyspec on 2010/3/28 20:44:57

Okay - here's an attempt - obviously this is like before - use at your own risk...

in this section of code:
le="color: #000000"><?php $image_select2 = new XoopsFormSelect('', 'image_item', '', 5, true); $image_select2->addOptionArray($objimage_array); $image_select2->setExtra( "onchange='publisher_updateSelectOption("image_item", "image_featured"), showImgSelected("image_display", "image_item", "uploads/", "", "" . XOOPS_URL . "")'");


add:
le="color: #000000"><?php sort($objimage_array, SORT_STRING);


right before:
le="color: #000000"><?php $image_select2->addOptionArray($objimage_array);


If this doesn't work I may have to go put publisher on my test site and 'play around with it'

Good luck - let me know how it goes...
Re: Publisher module Article Images List in Alphabetical order in admin
by rgauci on 2010/3/27 11:29:49

Quote:

zyspec wrote:
It didn't work because I'm an idiot...



I definitely do not see you as an idiot as It worked 100%

thanks a million for helping me out on this as when you have lots of images and they are all scattered its a headache to pick the right one.

but now I have a problem.
I cannot use the Image box to pick or replace any image. It comes blank, no image display where it should show the image selected

Should there be more code????????

Almost there but not yet!!!!!!!!!

Who's Online

270 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 270


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits