Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

CMS Topic manager display is broken?! Rate Topic   - - - - -

 
  • Damir
  • Junior Member
  • Members
  • Join Date: 31-Jan 06
  • 18 posts

Posted 15 February 2006 - 08:16 AM #1

Ive recently added topics to my site and in ADMIN backend the list of topics goes out the tables and messes up the page,

screenshot:
http://img213.images.../snap2512yd.jpg



someone to verify? (latest CS-Cart version, clean install)

 
  • zeke
  • Megamind
  • Administrators
  • Join Date: 01-Nov 05
  • 472 posts

Posted 15 February 2006 - 01:17 PM #2

Yes, it's bug in the current version. To fix it, open template file './skins/ADMIN_SKIN_NAME/admin/topics_pages/topics_tree.tpl' and replace its content with this one:
{* $Id: topics_tree.tpl 1383 2006-02-09 09:05:25Z lantan $ *}
{if $parent_id ne "0"}<div id="{$parent_id}" style="display:none">{/if}
{foreach from=$topics_tree item=cur_topic} 

<table cellpadding="1" cellspacing="1" border="0" width="100%" >
{if $header}
{assign var="header" value=""}
<tr class="manage-header">
	<td>
		<input type="checkbox" name="check_all" value="Y" onclick="fn_check_all_checkboxes('topic_tree_form', this.checked);" title="{$lang.check_uncheck_all}"></td>
	<td align="center" class="manage-header">{$lang.position_short}</td>
	<td align="center">
	 	<table cellpadding="0" cellspacing="1" width="100%"	border="0">
		<tr>
 			<td>
	 			[img]{$images_dir}/plus_minus.gif[/img][img]{$images_dir}/minus_plus.gif[/img]</td>
			<td align="center" width="100%" class="manage-header">{$lang.topics}</td>
		</tr>
		</table>
	</td>
	<td align="center" class="manage-header">{$lang.pages}</td>
	<td align="center" class="manage-header" width="68">{$lang.avail}</td>
</tr>
{/if}
<tr {if $level ne "0"}{cycle values='class="manage-row", '}{else}class="manage-root-row"{/if}>
	{math equation="x*14" x=$level assign="shift"}
	<td>
		<input type="checkbox" name="topics_ids[{$cur_topic.topic_id}]" id="delete_checkbox" value="Y"></td>
	<td>
		<input type="text" name="topics_data[{$cur_topic.topic_id}][position]" size="3" maxlength="10" value="{$cur_topic.position}" class="input-position"></td>
	<td width="100%">
		<table cellpadding="0" cellspacing="0" width="100%"	border="0">
		<tr>
			<td>
				[img]{$images_dir}/spacer.gif[/img]</td>
			<td nowrap>
				{if $cur_topic.subtopics}
				[img]{$images_dir}/plus.gif[/img][img]{$images_dir}/minus.gif[/img]
				{else}
				[img]{$images_dir}/spacer.gif[/img]{/if}</td>
			<td width="100%" >
				[url="{$index_script}?{$target_name}=topics&{$mode_name}=update&topic_id={$cur_topic.topic_id}"]{$cur_topic.topic}[/url]{if $cur_topic.avail == "N"}<span class="small-note">-[{$lang.disabled}]</span>{/if}</td>
			<td align="right" nowrap>
				[url="{$index_script}?{$target_name}=topics&{$mode_name}=add&parent_id={$cur_topic.topic_id}"][img]{$images_dir}/catalog_add.gif[/img]{$lang.add_subtopic}[/url]</td>
			<td align="right" nowrap>
				[url="{$index_script}?{$target_name}=topics&{$mode_name}=delete&topic_id={$cur_topic.topic_id}"][img]{$images_dir}/catalog_del.gif[/img]{$lang.delete}[/url]</td>
	 	</tr>
 		</table>
	</td>
	<td>
		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center" width="36" nowrap>
				[url="{$index_script}?{$target_name}=pages&{$mode_name}=manage&topic_id={$cur_topic.topic_id}"]<u>{$cur_topic.page_count}</u>[/url]</td>
			<td align="right" nowrap>
				[url="{$index_script}?{$target_name}=pages&{$mode_name}=add&topic_id={$cur_topic.topic_id}"][img]{$images_dir}/catalog_add.gif[/img]{$lang.add}[/url]</td>
		</tr>
		</table>
	</td>
	<td align="center" width="44" nowrap>
	 	<input type="hidden" name="topics_data[{$cur_topic.topic_id}][avail]" value="N">
 		<input type="checkbox" name="topics_data[{$cur_topic.topic_id}][avail]" value="Y" {if $cur_topic.avail == 'Y'}checked{/if}></td>
</tr>
</table>

{if $cur_topic.subtopics}
	{math equation="x+1" x=$level assign="level"}
	{include file="topics_pages/topics_tree.tpl" topics_tree=$cur_topic.subtopics parent_id=$cur_topic.topic_id}
	{math equation="x-1" x=$level assign="level"}
{/if}
{/foreach}
{if $parent_id ne "0"}</div>{/if}


 
  • Damir
  • Junior Member
  • Members
  • Join Date: 31-Jan 06
  • 18 posts

Posted 15 February 2006 - 08:00 PM #3

Umm.. nope, still the same, I've compared this new code a bit, and i believe its the same as from the repository, the one i already had. :?

 
  • zeke
  • Megamind
  • Administrators
  • Join Date: 01-Nov 05
  • 472 posts

Posted 16 February 2006 - 06:30 AM #4

Umm.. nope, still the same, I've compared this new code a bit, and i believe its the same as from the repository, the one i already had. :?


Oops ;). I've updated the code in my previous message to the proper one.

 
  • Damir
  • Junior Member
  • Members
  • Join Date: 31-Jan 06
  • 18 posts

Posted 16 February 2006 - 12:40 PM #5

Ok, cool, works. thanks.

you might wanna fix this thing up ^^ sometime. also goes off the viewport. ;)


edit: hmm.. works now.. must be buggy Opera. :roll:

 
  • TVC
  • Member
  • Members
  • Join Date: 16-Jan 06
  • 54 posts

Posted 16 February 2006 - 03:50 PM #6

yea Opera is pretty buggy lately. I had to back away from the 9.x previews.. and go back to 8.51, 9.x is just horribly unstable, not only with cs-cart.. but other sites.

 

Posted 24 May 2006 - 04:16 PM #7

Yes, it's bug in the current version. To fix it, open template file './skins/ADMIN_SKIN_NAME/admin/topics_pages/topics_tree.tpl' and replace its content with this one:

{* $Id: topics_tree.tpl 1383 2006-02-09 09:05:25Z lantan $ *}
{if $parent_id ne "0"}<div id="{$parent_id}" style="display:none">{/if}
{foreach from=$topics_tree item=cur_topic} 

<table cellpadding="1" cellspacing="1" border="0" width="100%" >
{if $header}
{assign var="header" value=""}
<tr class="manage-header">
	<td>
		<input type="checkbox" name="check_all" value="Y" onclick="fn_check_all_checkboxes('topic_tree_form', this.checked);" title="{$lang.check_uncheck_all}"></td>
	<td align="center" class="manage-header">{$lang.position_short}</td>
	<td align="center">
	 	<table cellpadding="0" cellspacing="1" width="100%"	border="0">
		<tr>
 			<td>
	 			[img]{$images_dir}/plus_minus.gif[/img][img]{$images_dir}/minus_plus.gif[/img]</td>
			<td align="center" width="100%" class="manage-header">{$lang.topics}</td>
		</tr>
		</table>
	</td>
	<td align="center" class="manage-header">{$lang.pages}</td>
	<td align="center" class="manage-header" width="68">{$lang.avail}</td>
</tr>
{/if}
<tr {if $level ne "0"}{cycle values='class="manage-row", '}{else}class="manage-root-row"{/if}>
	{math equation="x*14" x=$level assign="shift"}
	<td>
		<input type="checkbox" name="topics_ids[{$cur_topic.topic_id}]" id="delete_checkbox" value="Y"></td>
	<td>
		<input type="text" name="topics_data[{$cur_topic.topic_id}][position]" size="3" maxlength="10" value="{$cur_topic.position}" class="input-position"></td>
	<td width="100%">
		<table cellpadding="0" cellspacing="0" width="100%"	border="0">
		<tr>
			<td>
				[img]{$images_dir}/spacer.gif[/img]</td>
			<td nowrap>
				{if $cur_topic.subtopics}
				[img]{$images_dir}/plus.gif[/img][img]{$images_dir}/minus.gif[/img]
				{else}
				[img]{$images_dir}/spacer.gif[/img]{/if}</td>
			<td width="100%" >
				[url="{$index_script}?{$target_name}=topics&{$mode_name}=update&topic_id={$cur_topic.topic_id}"]{$cur_topic.topic}[/url]{if $cur_topic.avail == "N"}<span class="small-note">-[{$lang.disabled}]</span>{/if}</td>
			<td align="right" nowrap>
				[url="{$index_script}?{$target_name}=topics&{$mode_name}=add&parent_id={$cur_topic.topic_id}"][img]{$images_dir}/catalog_add.gif[/img]{$lang.add_subtopic}[/url]</td>
			<td align="right" nowrap>
				[url="{$index_script}?{$target_name}=topics&{$mode_name}=delete&topic_id={$cur_topic.topic_id}"][img]{$images_dir}/catalog_del.gif[/img]{$lang.delete}[/url]</td>
	 	</tr>
 		</table>
	</td>
	<td>
		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center" width="36" nowrap>
				[url="{$index_script}?{$target_name}=pages&{$mode_name}=manage&topic_id={$cur_topic.topic_id}"]<u>{$cur_topic.page_count}</u>[/url]</td>
			<td align="right" nowrap>
				[url="{$index_script}?{$target_name}=pages&{$mode_name}=add&topic_id={$cur_topic.topic_id}"][img]{$images_dir}/catalog_add.gif[/img]{$lang.add}[/url]</td>
		</tr>
		</table>
	</td>
	<td align="center" width="44" nowrap>
	 	<input type="hidden" name="topics_data[{$cur_topic.topic_id}][avail]" value="N">
 		<input type="checkbox" name="topics_data[{$cur_topic.topic_id}][avail]" value="Y" {if $cur_topic.avail == 'Y'}checked{/if}></td>
</tr>
</table>

{if $cur_topic.subtopics}
	{math equation="x+1" x=$level assign="level"}
	{include file="topics_pages/topics_tree.tpl" topics_tree=$cur_topic.subtopics parent_id=$cur_topic.topic_id}
	{math equation="x-1" x=$level assign="level"}
{/if}
{/foreach}
{if $parent_id ne "0"}</div>{/if}


This may be a stupid question, but can I just cut and paste this code in? I tried and it doesn't work, it actualy made things a lot worse. Any ideas please. v1.3.2

j