[TH] Custom Fields [Deleted]

To make it appear in the same box as "Last Updated", edit the Custom Resource Field, go to the last tab and check the box to display in the information box. If your Custom Resource Field is not in a Custom Resource Field Group, it will display in the main information box (otherwise it will display in its own box underneath).

If you want to put it somewhere else, you will need to use the variable {$customFieldsGrouped}. This is an array of all custom resource fields by group. Use {xen:helper dump, {$customFieldsGrouped}} to see what this array looks like. You will need something like {$customFieldsGrouped.0.fields.listing_shipping.fieldValueHtml}.

Hey dude,

Thanks for the reply.

I have tried it, but it does not work. I am adding it to resource_list_item. It will not display anything. I have added {$customFieldsGrouped.0.fields.listing_location.fieldValueHtml}

and I also tried

{$customFieldsGrouped.1.fields.listing_location.fieldValueHtml}

Any idea what it may be?

Thanks.
 
I created field Yahoo Chat and Value Display HTML insert
Code:
<a href="ymsgr:sendim?{$valueUrl}"> <img src="http://opi.yahoo.com/online?u={$valueUrl}&amp;m=g&amp;t=5" border="0"> </a>

but it does not give the desired result
 
I created field Yahoo Chat and Value Display HTML insert
Code:
<a href="ymsgr:sendim?{$valueUrl}"> <img src="http://opi.yahoo.com/online?u={$valueUrl}&amp;m=g&amp;t=5" border="0"> </a>

but it does not give the desired result
What is the desired result?
 
Sorry @Waindigo , I've done it.
now, I created Post Field enter email , how to display only email with creators thread
 
Last edited:
Hi there dude,

This addon is causing errors.


Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Not unique table/alias: 'forum' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: wesleng, 4 minutes ago
Stack Trace
#0 /home/thereefu/public_html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('?????SELECT thr...')
#1 /home/thereefu/public_html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '?????SELECT thr...')
#2 /home/thereefu/public_html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('?????SELECT thr...')
#3 /home/thereefu/public_html/library/XenForo/Model.php(219): Zend_Db_Adapter_Abstract->query('?????SELECT thr...', Array, 2)
#4 /home/thereefu/public_html/library/XenForo/Model/Thread.php(371): XenForo_Model->fetchAllKeyed('?????SELECT thr...', 'thread_id')
#5 /home/thereefu/public_html/library/UserEss/Model/Thread.php(89): XenForo_Model_Thread->getThreads(Array, Array)
#6 /home/thereefu/public_html/library/XenForo/ControllerPublic/Forum.php(271): UserEss_Model_Thread->getThreads(Array, Array)
#7 /home/thereefu/public_html/library/XenForo/ControllerPublic/Forum.php(34): XenForo_ControllerPublic_Forum->getGlobalForumRss()
#8 /home/thereefu/public_html/library/Waindigo/SocialGroups/Extend/XenForo/ControllerPublic/Forum.php(17): XenForo_ControllerPublic_Forum->actionIndex()
#9 /home/thereefu/public_html/library/XenKingDir/ControllerPublic/Forum.php(19): Waindigo_SocialGroups_Extend_XenForo_ControllerPublic_Forum->actionIndex()
#10 /home/thereefu/public_html/library/ForumWatch/Extend/ControllerPublic/Forum.php(4): XenKingDir_ControllerPublic_Forum->actionIndex()
#11 /home/thereefu/public_html/library/PrefixForumListing/Extend/ControllerPublic/Forum.php(7): ForumWatch_Extend_ControllerPublic_Forum->actionIndex()
#12 /home/thereefu/public_html/library/XenForo/FrontController.php(310): PrefixForumListing_Extend_ControllerPublic_Forum->actionIndex()
#13 /home/thereefu/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#14 /home/thereefu/public_html/index.php(13): XenForo_FrontController->run()
#15 {main}
Request State
array(3) {
["url"] => string(47) "http://www.xxxxxxxxxxxxxx.com.au/forums/-/index.rss"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
@Dynamic Looks like it could be any number of add-ons causing this error. Have you confirmed that disabling this add-on fixes the error?
 
Hey there dude!

Yup, if I disable the addon the error goes away. I need the addon though so I just get hundreds of errors a day. But yes, turning this addon off fixes the problem.
 
Hey there dude!

Yup, if I disable the addon the error goes away. I need the addon though so I just get hundreds of errors a day. But yes, turning this addon off fixes the problem.
I believe that this is a conflict between the Custom Fields add-on and another add-on. As far as I can tell, there is nothing incorrect about what is coded in Custom Fields (although I could be wrong). Any chance you could try disabling other add-ons and seeing if that fixes it?

If you can work out which add-on it is, then I may be able to come up with a workaround.

A quick search comes up with a few other results:
http://xenforo.com/community/threads/mysqli-issue-with-rss.49300/
http://xenforo.com/community/threads/error.51029/
http://xenforo.com/community/threads/8wayrun-com-xenporta-portal.26838/page-94#post-513845

Seems to suggest a conflict between Custom Fields and XenPorta. Can you confirm?
 
I wanted to add maps to thread
I have created 1 Field to enter an address, use the code below map display.

Code:
<div style=" text-align: center; margin: 20px 0;"><iframe width="645" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q={$customFields.dia_chi}&amp;output=embed"></iframe></div>

But I have a problem is when a member does not enter the address map is displayed (as shown below). Is there any way for me to hide the map if a member does not enter address?

map.webp
 
@time You should just be able to use a normal XenForo conditional statement, so something like:
HTML:
<xen:if is="{$customFields.dia_chi}">
<div style=" text-align: center; margin: 20px 0;"><iframe width="645" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q={$customFields.dia_chi}&amp;output=embed"></iframe></div>
</xen:if>
 
Hi mate,

I do not have XenPorta installed. It was uninstalled a while ago.
It is definitely related to another add-on. Although it is technically code in our add-on that is causing the error to appear, I am 99% sure it is because of a conflict with code in another add-on. If you can provide me with a list of your add-ons (by PM if you like), I will narrow it down to the likely candidates and test a few myself.
 
Waindigo updated Custom Fields by Waindigo with a new update entry:

Version 1.2.0

New features:
  • Added support for various changes in XenForo 1.2.
  • Added support for Custom Social Forum Fields.
  • Added support for attachments to be uploaded with PHP callback custom fields.
  • Added an option to include values of custom fields at the top of a thread/article, without having to use the header/footer templates.
  • Added an option for including custom fields in the thread list.
Bug fixes:
  • Fixed some bugs with library article/article pages custom fields -- upcoming update to Library by Waindigo...

Read the rest of this update entry...
 
Can't seem to get it to upgrade .

Please enter a valid callback method if i use your upgrade addin.

Manual ftp copy gives me

upload_2013-7-7_1-59-28.webp

Some great new features added. :)
 
It is definitely related to another add-on. Although it is technically code in our add-on that is causing the error to appear, I am 99% sure it is because of a conflict with code in another add-on. If you can provide me with a list of your add-ons (by PM if you like), I will narrow it down to the likely candidates and test a few myself.

Hi dude,

Sure, I will PM you :)
 
Top Bottom