PDA

View Full Version : Pro 2.0 - multiple categories per listing?


disco4me
11-02-2006, 08:22 PM
Does Pro2.0 support multiple categories per listing?

Thanks

Michael Hill
11-03-2006, 04:18 AM
Hello!

What does you mean? Displaying multiple categories?

Simon Gooffin
11-03-2006, 04:40 AM
I think disco4me wonders if it's possible to submit a same link into several categories. If so the answer is YES. But this functionality is available for admin only.

Unfortunately we missed it. You should make one tweak in your file.

*** Open admin/manage-links.php ***

*** find the following line ***
<option value="move" onClick="javascript:popUp('move-tree.php?items=links&amp;action=move')"><?php echo $gDirLang['move']; ?></option>

*** add the following code after it ***
<option value="copy_link_to" onClick="javascript:popUp('move-tree.php?items=links&amp;action=copy')"><?php echo $gDirLang['copy']; ?></option>

*** save changes ***

Hope this can help

disco4me
11-03-2006, 02:36 PM
Actually I want to use Pro2.0 more of as a business directory where companies would submit their products (as a listing) and then have those products fall into multiple catagories. For instance, BigSoftwareCo sell a product, BigApp. BigApp is both used for Customer Service and Call Center. So I would need the product BigApp to show under the catagories Customer Service Software and Call Center Software.

stsesyndicat
11-10-2006, 03:38 PM
Hi. Simon, I tried your suggested code modification but couldn't see any result, so I re-installed the old code and will continue to wait for someone to give us the solution....

Alain

Sergey Ten
11-10-2006, 05:38 PM
Hello Alain,

I think, in the Simon's code is some fault (It is not fault of Simon ^_^ )

Please try use this code:

*** Open admin/manage-links.php ***

*** find the following line ***

<option value="move" onClick="javascript:popUp('move-tree.php?items=links&action=move')"><?php echo $gDirLang['move']; ?></option>


*** add the following code after it ***


<option value="copy_link_to" onClick="javascript:popUp('move-tree.php?items=links&action=copy')"><?php echo $gDirLang['copy']; ?></option>


*** save changes ***

I just replace with "&amp;" to "&".

I hope this help you.

stsesyndicat
11-13-2006, 08:49 AM
Sorry Sergei, but it doesn't work either.

Furthermore, I now realized that, following this code change, the move command applies now only to a category, not to a sub-category...

Bizzare?!

Alain

stsesyndicat
11-15-2006, 09:29 AM
guys,

Let me clarify the problem I described as "Furthermore, I now realized that, following this code change, the move command applies now only to a category, not to a sub-category..."

What I meant is that, when I copy sub-categories, the scroll bar in the pop-up window is now extending further than the right limit of that window, making invisible the scroll-down button!

If I click on that button (after widening the window manually), i get a list of the categories and sub-categoires but not formatted like a tree like before. They are listed like this:

-- category
---subcategory
----sub-subcategory

How come and how do I solve the problem?

John Turner
11-15-2006, 09:58 AM
Hi,

Please read this post

http://www.esyndicat.com/forum/showthread.php?t=7563

stsesyndicat
11-16-2006, 09:02 AM
thks John, but dave's coding didn't work.

This was actually expectable, because my problem is not a problem of not having the + button in front of the ROOT word.

It is more a problem of formatting I think, because I do get part ot the functionality... For example, I get in the scroll bar the content of the tree, but unformatted, like this:
-- category
---subcategory
----sub-subcategory
and it doesn't start with showing the ROOT like before.

I get exactly the same problem when I am in the create category or listing modes.

Pls help!
alain

annunaki
11-16-2006, 01:18 PM
The tweak works for me, thanks!! Only problem is that the popup doesn't work in Safari, so I'll just have to use FireFox :)

John Turner
11-17-2006, 04:44 AM
Hi there,

stsesyndicat:

If you still have a trouble with moving links to subdirectories please inform me with your FTP credentials via PM I'll try to help you.

annunaki:
I am glad you have got it.

stsesyndicat
11-17-2006, 01:47 PM
John the magician,

Thks. It indeed all works!

Thks again
alain

John Turner
11-24-2006, 06:43 AM
You are welcome Alain.
Always at your services.

John Turner
11-28-2006, 09:20 AM
Hi there
If you have troubles with move or copy link and you use IE.

Please open your '../admin/manage-links.php'

find following code

<select name="take_action" id="take_action" onchange="
if(this.value=='markas') { $('#markas').show() } else { $('#markas').hide()}
">
<option value=""><?php echo $gDirLang['_action_']; ?></option>
<option value="move" onClick="javascript:popUp('move-tree.php?items=links&amp;action=move')"><?php echo $gDirLang['move']; ?></option>
<option value="copy_link_to" onClick="javascript:popUp('move-tree.php?items=links&action=copy')"><?php echo $gDirLang['copy']; ?></option>
<option value="delete"><?php echo $gDirLang['delete']; ?></option>
<option value="markas" onclick=""><?php echo $gDirLang['mark_as']; ?>...</option>
</select>


And replace it with following one


<select name="take_action" id="take_action" onchange="
if(this.value=='markas') { $('#markas').show() } else
{
$('#markas').hide();
if(this.value=='move')
{
popUp('move-tree.php?items=links&amp;action=move')
}
if(this.value=='copy_link_to')
{
popUp('move-tree.php?items=links&action=copy')
}
}
">
<option value=""><?php echo $gDirLang['_action_']; ?></option>
<option value="move"><?php echo $gDirLang['move']; ?></option>
<option value="copy_link_to"><?php echo $gDirLang['copy']; ?></option>
<option value="delete"><?php echo $gDirLang['delete']; ?></option>
<option value="markas"><?php echo $gDirLang['mark_as']; ?>...</option>
</select>


Hope it helps.

PassionSeed
01-15-2007, 10:18 PM
Hi there
If you have troubles with move or copy link and you use IE.

Please open your '../admin/manage-links.php'

find following code

<select name="take_action" id="take_action" onchange="
if(this.value=='markas') { $('#markas').show() } else { $('#markas').hide()}
">
<option value=""><?php echo $gDirLang['_action_']; ?></option>
<option value="move" onClick="javascript:popUp('move-tree.php?items=links&amp;action=move')"><?php echo $gDirLang['move']; ?></option>
<option value="copy_link_to" onClick="javascript:popUp('move-tree.php?items=links&action=copy')"><?php echo $gDirLang['copy']; ?></option>
<option value="delete"><?php echo $gDirLang['delete']; ?></option>
<option value="markas" onclick=""><?php echo $gDirLang['mark_as']; ?>...</option>
</select>


And replace it with following one


<select name="take_action" id="take_action" onchange="
if(this.value=='markas') { $('#markas').show() } else
{
$('#markas').hide();
if(this.value=='move')
{
popUp('move-tree.php?items=links&amp;action=move')
}
if(this.value=='copy_link_to')
{
popUp('move-tree.php?items=links&action=copy')
}
}
">
<option value=""><?php echo $gDirLang['_action_']; ?></option>
<option value="move"><?php echo $gDirLang['move']; ?></option>
<option value="copy_link_to"><?php echo $gDirLang['copy']; ?></option>
<option value="delete"><?php echo $gDirLang['delete']; ?></option>
<option value="markas"><?php echo $gDirLang['mark_as']; ?>...</option>
</select>


Hope it helps.


This works beautifully! Is there a way to undo a copied listing from the admin panel? I see both categories next to the listing, but I'm afraid to delete anything as it may delete the entire listing. I just want to remove the "duplicate" listing from the links_categories table from the admin panel. I know you can delete it directly from the table, but that's just too easy.