Advertisement:

Author Topic: the photos appear twice on the item veiw  (Read 2965 times)

elias.soliman

  • Jr. Member
  • **
  • Posts: 62
the photos appear twice on the item veiw
« on: March 18, 2011, 01:01:50 pm »
on my website http://forsyrian.com the photos appear twice
anybody can help pls????

code monkey

  • Full Member
  • ***
  • Posts: 204
Re: the photos appear twice on the item veiw
« Reply #1 on: March 18, 2011, 01:29:45 pm »
Post your file (use the code tags):

/oc-content/themes/modern/item.php

elias.soliman

  • Jr. Member
  • **
  • Posts: 62
Re: the photos appear twice on the item veiw
« Reply #2 on: March 18, 2011, 01:45:54 pm »
the line 114 - 118 content:


                    <div id="photos">
                        <?php while ( osc_has_item_resources() ) { ?>
                            <img src="<?php echo osc_resource_url() ; ?>" width="320" />
                        <?php } ?>
                    </div>

code monkey

  • Full Member
  • ***
  • Posts: 204
Re: the photos appear twice on the item veiw
« Reply #3 on: March 18, 2011, 02:18:34 pm »
Copy and paste the whole file @ http://mysticpaste.com/new

That piece looks OK. But there is a part which regulates the loop. Maybe that was changed. Show me.

elias.soliman

  • Jr. Member
  • **
  • Posts: 62
Re: the photos appear twice on the item veiw
« Reply #4 on: March 18, 2011, 02:49:44 pm »
it's the orginal file of item, I didn't change there anything in php code, I make change in my theme (and just the layout of the text) cause I use the arabic language on my site (from right to left)

sorry I didn't understood how use this link :(

but I past it here

http://mysticpaste.com/view/8428

code monkey

  • Full Member
  • ***
  • Posts: 204
Re: the photos appear twice on the item veiw
« Reply #5 on: March 19, 2011, 07:33:01 am »
I test your website and it's also problem when you edit your item - shows pictures twice. But when you delete picture, it deletes both copies that were previously visible.

Maybe it's a bug related to having two languages.

Can you try removing one of the languages for now, and see if that changes?

elias.soliman

  • Jr. Member
  • **
  • Posts: 62
Re: the photos appear twice on the item veiw
« Reply #6 on: March 22, 2011, 03:42:35 pm »
that's for reply

yes that right
 that of the other language
when I delete it from the locale table it's worked fine, and when I add 2 other languages, the photos appear 3 times
so for each language, the photos will appear
does that mean they are connected by language key???

do you have suggestion to solve it??

thx

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: the photos appear twice on the item veiw
« Reply #7 on: March 22, 2011, 06:01:36 pm »
right... this is why when I tried to reproduce this error I didn't get the same result... that was because I was working with one language...

I've opened a JIRA http://issues.osclass.org/browse/OSCLASS-408

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: the photos appear twice on the item veiw
« Reply #8 on: March 22, 2011, 06:35:07 pm »
fixed! It's on develop branch in github, However I've attached the patch.

elias.soliman

  • Jr. Member
  • **
  • Posts: 62
Re: the photos appear twice on the item veiw
« Reply #9 on: March 22, 2011, 06:45:20 pm »
thanks a lot
I will test it