[Skip to main content](#vessel-content)

#   how to change status more than one serial at once?

##

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago [\#66101](#66101) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  *[how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66101 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")* was created by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")*

I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned.
How do i change status of all those keys at one go?

regards
Dan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 2 months ago -  14 years 2 months ago [\#66140](#66140) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66140 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

Hi Dan,

For the moment, the SQL request is the fastest way to update several serial at the same time.
I will include in the next release of HikaSerial a button which would allow you to modify several serials at the same time.
Is the status the only element that you wanted to update ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 14 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago [\#66142](#66142) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66142 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

Hi Jerome,

thanks for the response.
Now when you are mentioning updates, i have few other requests.
In my case i use URLs in serials, those urls are link to pictures on dropbox. It would be great if those urls would be clickable in frontend customer view, so customer could click on it, instead of doing copy/paste to another browser window, or even better it would be best if just window popus up in a form of lightbox.

Do you have skype?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago [\#66143](#66143) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66143 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

forgot to mention, i am not sure how SQL request looks like, nor how to use it in this case.
Please provide me instructions how to do that, because i have a lot of serials to import.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 2 months ago -  14 years 2 months ago [\#66144](#66144) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66144 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

Hi,

HikaSerial allow to override his views so you can override the way that your serial would be displayed in the front end.
You can modify the view for the "orderserial &#124; show_order_front_show" or you can override the function "onDisplaySerials" (which is not quite documented yet).
The feature is already implemented. Using view override you can create the html you want, using the lightbox system that you need.

About the SQL request, you something like: Code:

UPDATE #__hikaserial_serial SET serial_status = "unassigned" WHERE serial_status = "free" AND serial_id &gt;= 50 AND serial_id &lt;= 100;

You can use PhpMyAdmin or the special SQL task in the backend of HikaSerial ( index.php?option=com_hikaserial&amp;ctrl=config&amp;task=sql &#124; SuperAdmin account required )

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 14 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago -  14 years 2 months ago [\#66146](#66146) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66146 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

this is what i have in show_order_front_show : Code:

&lt;?php /** * @package HikaSerial for Joomla! * @version 1.4.0 * @author Obsidev S.A.R.L. * @copyright (C) 2011-2012 OBSIDEV. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;fieldset&gt; &lt;legend&gt;&lt;?php echo JText::_('HIKA_SERIALS')?&gt;&lt;/legend&gt; &lt;?php if(!empty($this-&gt;data)) { ?&gt; &lt;table style="width:100%;cell-spacing:1px;"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;&lt;?php echo JText::_('PACK_NAME');?&gt;&lt;/th&gt; &lt;th&gt;&lt;?php echo JText::_('SERIAL_DATA');?&gt;&lt;/th&gt; &lt;th&gt;&lt;?php echo JText::_('ASSIGN_DATE');?&gt;&lt;/th&gt; &lt;th&gt;&lt;?php echo JText::_('ATTACHED_TO_PRODUCT');?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php foreach($this-&gt;data as $data) { ?&gt; &lt;tr&gt; &lt;td&gt;&lt;?php echo $data-&gt;pack_name;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $data-&gt;serial_data; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo hikaserial::getDate($data-&gt;serial_assign_date);?&gt; &lt;td&gt;&lt;?php echo $data-&gt;order_product_name; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;?php } ?&gt; &lt;/fieldset&gt;

So where should i insert Code:

&lt;a &lt;/a&gt;

?

Last edit: 14 years 2 months ago by [dado023](/forum/user/2265-dado023 "View dado023's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago -  14 years 2 months ago [\#66149](#66149) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66149 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

ok, i think i have figured it out:
Code:

&lt;td&gt;&lt;a href="&lt;?php echo $data-&gt;serial_data; ?&gt;/"rel="width:480,height:240" class="ANYclassTHATgivesLightBOX"&gt;&lt;img border="0" src="&lt;?php echo $data-&gt;serial_data; ?&gt;" alt="&lt;?php echo $data-&gt;serial_data; ?&gt;" width="256" height="128" /&gt;&lt;/a&gt;&lt;/td&gt;

....it pops out in nice lightbox
Is it possible to make dimensions adjust to image size in light box, or it need to be fixed like in example above

Now my main question is, WILL THIS BE OVERWRITEN when next update of hikaserial is done?

Last edit: 14 years 2 months ago by [dado023](/forum/user/2265-dado023 "View dado023's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago [\#66150](#66150) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66150 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

now i have a problem.
When it happens that i in Serial Data use plain ordinary text like 32fkm8s7z4, then it tries to display it in the front end as a picture/image.
Is it possible to somehow overcome this?

Thank you in advance
Dan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 2 months ago [\#66165](#66165) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66165 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

Hi,

You can base your display of your serial on the pack name, the pack id or the pack generator. Code:

&lt;td&gt;&lt;?php // The id of your pack with image links. if($data-&gt;pack_id == 6) { ?&gt; &lt;a href="&lt;?php echo $data-&gt;serial_data; ?&gt;/"rel="width:480,height:240" class="ANYclassTHATgivesLightBOX"&gt;&lt;img border="0" src="&lt;?php echo $data-&gt;serial_data; ?&gt;" alt="&lt;?php echo $data-&gt;serial_data; ?&gt;" width="256" height="128" /&gt;&lt;/a&gt; &lt;?php } else { echo $data-&gt;serial_data; } ?&gt;&lt;/td&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago [\#66269](#66269) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66269 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

but can it be done "universal" not just for certain pack, beacuse often in packs will be mixed serials, sometimes urls(img) and sometimes plain text/numbers ?

regards
Dan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 2 months ago [\#66272](#66272) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66272 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

Hi,

You can check the content of the serial. Code:

&lt;td&gt;&lt;?php if(strpos($data-&gt;serial_data, 'http://') !== false) { ?&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago -  14 years 2 months ago [\#66278](#66278) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66278 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

i have no clue or knowledge what so ever about coding, but this seems to be better solution for me.
Would you be so kind and give me complete code, that checks for .bmp .png .jpg. .jpeg and .gif content of serial, so if it doesnt find any of these, it should just display it as is text/numbers.

I hope i am not troubling you to much :blush:

thank you in advance

Last edit: 14 years 2 months ago by [dado023](/forum/user/2265-dado023 "View dado023's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 2 months ago [\#66371](#66371) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66371 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

please let me know if this is doable, since i use mixed types of serials.

Thank you in advance
Dan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 2 months ago [\#66377](#66377) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#66377 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

Hi,

This code will test if there is an extension (last characters of the serial data) Code:

&lt;td&gt;&lt;?php $ext = ''; if(strpos($data-&gt;serial_data, '.') !== false) { $ext = substr($data-&gt;serial_data, strrpos($data-&gt;serial_data)); $ext = strtolower($ext); } if(!empty($ext) &amp;&amp; in_array($ext, array('.bmp', '.jpg', '.jpeg', '.png', '.gif')) { ?&gt; &lt;a href="&lt;?php echo $data-&gt;serial_data; ?&gt;/"rel="width:480,height:240" class="ANYclassTHATgivesLightBOX"&gt;&lt;img border="0" src="&lt;?php echo $data-&gt;serial_data; ?&gt;" alt="&lt;?php echo $data-&gt;serial_data; ?&gt;" width="256" height="128" /&gt;&lt;/a&gt; &lt;?php } else { echo $data-&gt;serial_data; } ?&gt;&lt;/td&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dado023](/forum/user/2265-dado023 "View dado023's Profile")**
- [![dado023's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2265-dado023 "View dado023's Profile") Topic Author
- [ Offline](/forum/user/2265-dado023)

Less More

- Posts: 116
- Thank you received: 1
-
-

14 years 1 month ago [\#67048](#67048) by [dado023](/forum/user/2265-dado023 "View dado023's Profile")  Replied by *[dado023](/forum/user/2265-dado023 "View dado023's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#67048 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

i have tried that last code, but then order page doesnt display correctly......
would you be so kind and receck if you have missed somwhere with faulty code...pleaseee

tnx
Dan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 1 month ago [\#67076](#67076) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: how to change status more than one serial at once?](/forum/17-serial-how-to/66101-how-to-change-status-more-than-one-serial-at-once#67076 "I have imported few dozen serials, and they all have status Free to use, but i need them all to have status Unassigned. How do i change status of all those keys at one go?  regards Dan")*

Hi,

Maybe the missing space in the "&lt;a&gt;" tag, between the href and the rel. Code:

&lt;a href="&lt;?php echo $data-&gt;serial_data; ?&gt;" rel="width:480,height:240"

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vNjYxMDEtaG93LXRvLWNoYW5nZS1zdGF0dXMtbW9yZS10aGFuLW9uZS1zZXJpYWwtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.096 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
