vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   vB4 Template Conditionals List (https://vborg.vbsupport.ru/showthread.php?t=231525)

Easy5s.net 01-20-2013 10:39 AM

in temp forumhome_lastpostby

Quote:

<vb:if condition="in_array($forum['forumid'], array(12))">[{vb:raw lastpostinfo.dateline}]</vb:if>
But not work, pls hep me :(

induslady 02-13-2013 02:38 PM

Hi All,
I would want to plugin an optimizer code only in this forum page
- http://www.indusladies.com/forums/married-life/

the code will go only in this forumdisplay page and not even in the showthread pages of htis forum - threads in this forum.

Can anyone let me know the template conditional to do the same?
Thanks.

K4GAP 02-13-2013 02:49 PM

This is a must have for folks like me that are trying to learn so that they can be self sufficient in taking care of their site.

Thanks !

Digital Jedi 02-13-2013 03:21 PM

Quote:

Originally Posted by induslady (Post 2403999)
Hi All,
I would want to plugin an optimizer code only in this forum page
- http://www.indusladies.com/forums/married-life/

the code will go only in this forumdisplay page and not even in the showthread pages of htis forum - threads in this forum.

Can anyone let me know the template conditional to do the same?
Thanks.

You use the Show in one forum example, using that forum's ID number in place of X.

Big-K 02-19-2013 04:27 PM

Hello, I'm looking for a conditional that will highlight a reported post (in report thread), but not yet replied in the report thread.

The following code works to show a reported post
Code:

<vb:if condition="$post['reportthreadid'] > 0"></vb:if>
The problem is how to add the conditional that this is the ONLY post on that thread I tried replacing ">1" with "=1", but that does not work.

Lynne 02-19-2013 05:30 PM

Quote:

Originally Posted by Big-K (Post 2405232)
Hello, I'm looking for a conditional that will highlight a reported post (in report thread), but not yet replied in the report thread.

The following code works to show a reported post
Code:

<vb:if condition="$post['reportthreadid'] > 0"></vb:if>
The problem is how to add the conditional that this is the ONLY post on that thread I tried replacing ">1" with "=1", but that does not work.

I'm afraid I don't understand what you are trying to do and what template you are trying to do it in.

Big-K 02-19-2013 07:50 PM

Quote:

Originally Posted by Lynne (Post 2405246)
I'm afraid I don't understand what you are trying to do and what template you are trying to do it in.

Lynne,

I'm in postbit legacy.

What I'm trying to do is to highlight posts to let users know that the post has been reported and waiting moderators review. This will prevent users from quoting or replying to such post until someone has taken a look.

We have a dedicated forum for reported posts. So What I want to do is create a conditional in postbit that will
1) highlight the reported post (the code I posted earlier does that)
<vb:if condition="$post['reportthreadid'] > 0">THIS POST IS REPORTED</vb:if>
2) remove the highlight once there is a reply to the report in reported post forum (I was hoping the ">1" will do that, but that's not the case)

Does this explanation help please?

Lynne 02-19-2013 11:44 PM

Quote:

Originally Posted by Big-K (Post 2405279)
2) remove the highlight once there is a reply to the report in reported post forum (I was hoping the ">1" will do that, but that's not the case)

Does this explanation help please?

That is going to require a plugin to find the reported post thread and see how many replies there are to it. You cannot use just a simple template condition to check it.

Big-K 02-20-2013 04:22 AM

Quote:

Originally Posted by Lynne (Post 2405320)
That is going to require a plugin to find the reported post thread and see how many replies there are to it. You cannot use just a simple template condition to check it.

Thank you Lynne. Grateful if you can help with the plugin, but I understand if you cant.

Digital Jedi 02-20-2013 04:22 PM

Quote:

Originally Posted by Big-K (Post 2405365)
Thank you Lynne. Grateful if you can help with the plugin, but I understand if you cant.

If you haven't already, you can try and start a new thread in the modification request section, just so we don't go off track in this thread. It probably depends on how difficult this is before you'll get a reply. I'm not certain myself.


All times are GMT. The time now is 01:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01646 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete