Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 


       myfreeforum.org Forum Index -> Portal components
GraphiXtreme

"Sell back to shop" issue

http://swapitshopboards.com/food....component=shopf&buybackmode=1

The "sell back to shop" feature of the shop portal is broken, or at least has some dodgy code in there.

The template file for that specific page is cms_shopf.tpl (the "f" comes from the fact that my shop has different 'categories'), the content of which has not been changed other than me adding a
Code:
<br />
and the words "Cost:" and "Credits".

It works fine until I try to sell an item back to the shop, at which point I get some bizarre HTML popping up which I think is causing the problem and messing with my template:
Spoiler:

Code:
 <tr>
</tr>
   <tr>
</tr>
   <tr>

</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>

</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>

</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
   <tr>
</tr>
  </td>

</tr>
</table>



Can you shed any light on this problem, and help me fix it?
myff admin

You must give the (myfree/myfast/myfine)forum.org link to your forum. A link should be given to the problem if at all possible. Do this whether you think it is important or not.

How many times to we need to ask for the correct link when posting a problem?

I have tested buy back on the default shop and template and it works.
GraphiXtreme

My apologies, I assumed that the link provided would be suitable.

http://swapitshopboards.myfreefor...component=shopf&buybackmode=1
myff admin

The shop template contains a html error (maybe more than one) which I have fixed now in the base template.

Code:

<!-- IF SHOP_BUYBACKMODE == 1 -->
<tr><td>
You are selling back to the shop.
</td></tr>
<!-- ENDIF -->


should be:

Code:

<!-- IF SHOP_BUYBACKMODE == 1 -->
You are selling back to the shop
<br />
<!-- ENDIF -->


the code also skips items that allow no buy back or that the person does not own. This will lead to blank rows which may not be a good idea.
I wonder if anyone else has ever really used the buy back system, as these are quite basic issues that may need addressing.
GraphiXtreme

Thanks admin  

       myfreeforum.org Forum Index -> Portal components
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum