The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
For some reason I can't use a prefix that contains an underscore.
$only['prefix'] works $only['prefix_product'] does not work any ideas? |
#12
|
||||
|
||||
What happens in that case? Any reason why you need the underscore anyway?
|
#13
|
|||
|
|||
Quote:
I have multiple custom products and wanted to use an underscore for organization. For example, vba uses vba_links and vba_portal. |
#14
|
||||
|
||||
I have a feeling you are doing this wrong. If you have:
$only['yourname'] = 'Added by YourName'; Then, the templates you would add to go into that group would be named "yourname_template1" and "yourname_template2" or "yourname_this_that" |
#15
|
|||
|
|||
Quote:
I am unable to do the following: $only['yourname_product'] = 'Product'; yourname_product_itembit yourname_product_whatever I am unable to create a template prefix group that contains an underscore |
#16
|
||||
|
||||
Maybe it's a bug? If so, enter it into the bug tracker.
|
#17
|
||||
|
||||
Do you have a prefix that is just "yourname", as well as "yourname_product"? That would probably create a conflict. However, if this is not the case, it does look like a bug.
|
#18
|
|||
|
|||
Best is not to use underscores within the prefix as the underscore is used as delimiter.
You can use underscores but you will need to keep in mind the following: - If the first part (xxx_yyy_templatename) xxx is used in multiple prefixes (not recommended!!) templates will be placed in the first group that matches the prefix. - Changing the order in which the prefixes are added to $only does make a difference. $only[test] = "Main testgroup"; $only[test_sub] = "Sub testgroup"; will give different result as: $only[test_sub] = "Sub testgroup"; $only[test] = "Main testgroup"; |
#19
|
|||
|
|||
Thanks for the info
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|