Multi Prefix

Multi Prefix [Paid] 1.8.16

No permission to buy ($20.00)
@Daniel Hood,

Here is an example for a suggestion I wish to submit.

Lets say I have a node where I want to make the max prefixes require 2.

I want users to be able to 1 one from a group of prefixes and one from a second group.

For example, on our site we have the follow Prefixes: Levels: Simple, Casual, Detailed

Subgenre: Horror, Adventure, etc

I wouldn't want someone to do like Simple, Casual, but instead have to do like Simple Adventure.
 
Hello Daniel,
I'm getting this error creating new forums:
PHP:
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'xm_max_prefixes' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Rafass, 1 minute ago
Stack Trace
#0 /home/foro/public_html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('INSERT INTO `xf...')
#1 /home/foro/public_html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'INSERT INTO `xf...')
#2 /home/foro/public_html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('INSERT INTO `xf...')
#3 /home/foro/public_html/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#4 /home/foro/public_html/library/XenForo/DataWriter.php(1624): Zend_Db_Adapter_Abstract->insert('xf_forum', Array)
#5 /home/foro/public_html/library/XenForo/DataWriter.php(1613): XenForo_DataWriter->_insert()
#6 /home/foro/public_html/library/XenForo/DataWriter.php(1405): XenForo_DataWriter->_save()
#7 /home/foro/public_html/library/XenForo/ControllerAdmin/Forum.php(127): XenForo_DataWriter->save()
#8 /home/foro/public_html/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Forum->actionSave()
#9 /home/foro/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/foro/public_html/admin.php(13): XenForo_FrontController->run()
#11 {main}
Request State
array(3) {
  ["url"] => string(37) "https://mywebsite/admin.php?forums/save"
  ["_GET"] => array(1) {
    ["forums/save"] => string(0) ""
  }
  ["_POST"] => array(20) {
    ["title"] => string(6) "测试"
    ["node_name"] => string(0) ""
    ["description"] => string(0) ""
    ["parent_node_id"] => string(3) "160"
    ["display_order"] => string(1) "1"
    ["display_in_list"] => string(1) "1"
    ["allow_posting"] => string(1) "1"
    ["allow_poll"] => string(1) "1"
    ["count_messages"] => string(1) "1"
    ["find_new"] => string(1) "1"
    ["allowed_watch_notifications"] => string(3) "all"
    ["default_sort_order"] => string(14) "last_post_date"
    ["default_sort_direction"] => string(4) "desc"
    ["list_date_limit_days"] => string(1) "0"
    ["default_prefix_id"] => string(1) "0"
    ["node_type_id"] => string(5) "Forum"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(23) "/admin.php?nodes/insert"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
It show me the typical overlay with the error and don't let me create new forums.
Disabling multi-prefix addon the error is fixed. could you please give me a hand?
Many thanks!

Execute this query, not sure why it didn't run during the installation process. Did you use an Install and Upgrade function? It's possible it called the install function before all the files were uploaded.
Code:
ALTER TABLE  `xf_forum` ADD  `xm_max_prefixes` INT( 2 ) NOT NULL DEFAULT  '0';

@Daniel Hood,

Here is an example for a suggestion I wish to submit.

Lets say I have a node where I want to make the max prefixes require 2.

I want users to be able to 1 one from a group of prefixes and one from a second group.

For example, on our site we have the follow Prefixes: Levels: Simple, Casual, Detailed

Subgenre: Horror, Adventure, etc

I wouldn't want someone to do like Simple, Casual, but instead have to do like Simple Adventure.
This is not possible and I'm unlikely to attempt implementing this until XenForo v2. This is something that would take a lot of hacking into the core code that I'm not comfortable doing at this point. Maybe Version 2. No promises.
 
Couple of questions? When a visitor is in the forum list at the moment they can search via prefixes, with this mod are they able to search via multiple prefixes as I would like somthing like (Location) then either (For Sale) or (Wanted), so when the visitor is browsing they would choose their location and items for sale or items wanted?

Thanks for ya help :)
 
Hello Nicholas, your idea is great, I've been thinking exactly the same.
Filtering results with more than 1 prefix would be really useful in many scenarios.
For example classifieds.
 
Yup classifieds is exactly what i'm trying to achieve, now looking at #tags but this is very untidy, multi prefixs seams like it is a much better option, if only you could search via multiple it would work perfect and look nice
 
I never reported this, since i won't use this addon anymore. But like to try it again. However. when i tried to uninstall this addon if got a server error and it was impossible to uninstall it. Is this fixed. Can't reproduce though since won't have latest version.

Liam w. experienced the same i believe: http://xenmods.com/threads/uninstall-error.650/
 
Last edited:
Hi,
Little problem. I'm trying to use the prefixes for another add-on, but the multi prefix add-on has a very global code that makes a great trouble to edit this area (it should be specific to the Multi-Prefix add-on):

select.textCtrl.TitlePrefix
{
display: none;
}


Thanks.
 
This just came up in another area, switch it to:

select[name="prefix_id[]"].textCtrl.TitlePrefix
{
display: none;
}

I'll be releasing a new version soon.
 
This just came up in another area, switch it to:

select[name="prefix_id[]"].textCtrl.TitlePrefix
{
display: none;
}

I'll be releasing a new version soon.
Thanks. Would appreciate also an option to change the term "prefix(s)" in phrases instead of editing it in the files.
 
Back
Top Bottom