[TH] Library [Deleted]

What is the template conditional to check for node id? $forum.node_id doesn't seem to work.


EDIT: Figured it out. $article.node_id
 
I notice that the page count on the node view is incorrect. It shows correctly on article view. Also on node view you have a heading link to sort by creation date but you don't list the creation dates. It would look nicer if it had the dates.
 
I noticed tonight that if I use the custom thread field to create a thread, and make it mandatory, then I can't posts subsequent pages to the article as it continually throws an error about not filling in every required field. It only shows the thread option on the initial page but demands it on every page.
 
I noticed tonight that if I use the custom thread field to create a thread, and make it mandatory, then I can't posts subsequent pages to the article as it continually throws an error about not filling in every required field. It only shows the thread option on the initial page but demands it on every page.
Make sure you only have it set up as a custom thread field and not a custom post field.
 
Sorry if this is a case that is too weirdly unique for this thread, but I'll post here in the off chance someone has an idea on a fix:

I installed this great addon for xF... it's really very nice and simple for users to create articles.

I created 10 test articles in the system, exported the four (4) tables in PhpMyAdmin. I wanted to test to see if I could export from my current CMS and import into this one. As a test I manually inserted a few new rows into 2 of the tables and manually entered the data in a way that matched the existing rows.

I pulled up the library page on xF and it worked perfectly! I thought this would be a great way to import all my pages!

Well, when I went back to PhpMyAdmin to do some more work in the library tables and two of the four tables were missing!?!?!?

I did repairs on the tables, and the database. Went into the DB via shell / ssh, and still couldn't find them.

Here's the CRAZY part: The library program is still working and the data in the missing tables is still there! It's like they are behind some Romulan cloaking device!!!!

I even tried completely uninstalling Library and then reinstalling it. All the data was fresh in the program, but still, those two tables were missing.

Any ideas on what happened how to find these two missing tables?
 
Wow, thanks for the quick reply! Yes, I ran the restart MySQL command and unfortunately it didn't make a difference. It really is the most odd thing ever! The only reason I am confident it is "hidden" vs. gone is that the Library is still fully functioning and all the data is still there... even the data in those missing tables.

This maybe is too odd / unique of a problem to try to resolve in this thread, but I appreciate the help.
 
ErrorException: Undefined index: isThreadBanned - library/ThreadBan/Model/Forum.php:75
Сгенерирована пользователем: Иля, Сегодня, в 20:14
Трассировка стэка
#0 /home/s/sm42/forum.xxx.su/public_html/library/ThreadBan/Model/Forum.php(75): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/s/sm42/fo...', 75, Array)
#1 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/NodeHandler/Forum.php(85): ThreadBan_Model_Forum->getExtraForumDataForNodes(Array, Array)
#2 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Node.php(571): XenForo_NodeHandler_Forum->getExtraDataForNodes(Array)
#3 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Node.php(760): XenForo_Model_Node->mergeExtraNodeDataIntoNodeList(Array, Array)
#4 /home/s/sm42/forum.xxx.su/public_html/library/Nobita/IgnoreThread/Model/Node.php(7): XenForo_Model_Node->getNodeDataForListDisplay(false, 0, NULL)
#5 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/ControllerPublic/Forum.php(40): Nobita_IgnoreThread_Model_Node->getNodeDataForListDisplay(false, 0)
#6 /home/s/sm42/forum.xxx.su/public_html/library/Waindigo/SocialGroups/Extend/XenForo/ControllerPublic/Forum.php(17): XenForo_ControllerPublic_Forum->actionIndex()
#7 /home/s/sm42/forum.xxx.su/public_html/library/WidgetFramework/XenForo/ControllerPublic/Forum.php(13): Waindigo_SocialGroups_Extend_XenForo_ControllerPublic_Forum->actionIndex()
#8 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/FrontController.php(337): WidgetFramework_XenForo_ControllerPublic_Forum->actionIndex()
#9 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/s/sm42/forum.xxx.su/public_html/index.php(13): XenForo_FrontController->run()
#11 {main}
Содержимое запроса
array(3) {
["url"] => string(29) "http://www.forum.xxx.su/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
ErrorException: Undefined index: message - library/XenForo/ViewPublic/Helper/Message.php:27
Сгенерирована пользователем: Иля, Сегодня, в 20:14
Трассировка стэка
#0 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/ViewPublic/Helper/Message.php(27): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/s/sm42/fo...', 27, Array)
#1 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/ViewPublic/Helper/Message.php(112): XenForo_ViewPublic_Helper_Message::getBbCodeWrapper(Array, Object(XenForo_BbCode_Parser), Array)
#2 /home/s/sm42/forum.xxx.su/public_html/library/XMPromotedContent/Widgets/List.php(28): XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages(Array, Object(XenForo_BbCode_Parser))
#3 /home/s/sm42/forum.xxx.su/public_html/library/WidgetFramework/WidgetRenderer.php(669): XMPromotedContent_Widgets_List->_render(Array, 'forum_list', Array, Object(XenForo_Template_Public))
#4 /home/s/sm42/forum.xxx.su/public_html/library/WidgetFramework/Core.php(352): WidgetFramework_WidgetRenderer->render(Array, 'forum_list', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#5 /home/s/sm42/forum.xxx.su/public_html/library/WidgetFramework/Core.php(264): WidgetFramework_Core->_renderWidgetsFor('forum_list', Array, Object(XenForo_Template_Public), '???????????<!--...')
#6 /home/s/sm42/forum.xxx.su/public_html/library/WidgetFramework/Listener.php(85): WidgetFramework_Core->renderWidgetsFor('forum_list', Array, Object(XenForo_Template_Public), Array)
#7 [internal function]: WidgetFramework_Listener::template_post_render('forum_list', '??????<!-- Viet...', Array, Object(XenForo_Template_Public))
#8 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#9 /home/s/sm42/forum.xxxa.su/public_html/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'forum_list')
#10 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#11 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/ViewRenderer/HtmlPublic.php(119): XenForo_Template_Public->render()
#12 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/FrontController.php(604): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#13 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#14 /home/s/sm42/forum.xxx.su/public_html/index.php(13): XenForo_FrontController->run()
#15 {main}
Содержимое запроса
array(3) {
["url"] => string(29) "http://www.forum.xxxx.su/"
["_GET"] => array(0) {
}
 
I notice this breaks the drill down effect of using body classes for nodes. Any idea why?

I'm assuming the $bodyClasses var is not being set.
 
No that's an XF standard var. It automatically names a class after each forum and it's children so you can use it for things like background image and stuff that is unique to each forum. So for my gaming forum I have categories for some our our favorite games and we throw up a different background. It creates a class in the body tag for current forum and parent. Like this.

HTML:
<body class="node141 node145">

Anyway, I have the library node in one of those categories and the body classes don't appear.
 
No that's an XF standard var. It automatically names a class after each forum and it's children so you can use it for things like background image and stuff that is unique to each forum. So for my gaming forum I have categories for some our our favorite games and we throw up a different background. It creates a class in the body tag for current forum and parent. Like this.

HTML:
<body class="node141 node145">

Anyway, I have the library node in one of those categories and the body classes don't appear.
Oh, I see. It adds it in the templates.

Just add the following code to waindigo_article_container_library:
HTML:
<xen:container var="$bodyClasses">{xen:helper nodeClasses, $nodeBreadCrumbs, $library}</xen:container>
 
Last edited:
This is what's in the page_container template. Which is why I assumed it's not being set.

PHP:
<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
 
Back
Top Bottom