vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - [Ajax] Check for similar thread before posting a new one (https://vborg.vbsupport.ru/showthread.php?t=201651)

Simon Lloyd 10-13-2010 05:28 AM

Quote:

Originally Posted by durham (Post 2109381)
Love it - thanks!

Really would like option to "include" only certain forums as I just want it to work in a couple of forums not all the other 100+!

Otherwise brilliant.

Just wrap the contents of these templates in a conditional
mrnasesimilarthreadcheck_header
mrnasesimilarthreadcheck_main
HTML Code:

<!-- show the following in the listed forums -->
<if condition="in_array($forumid, array(1,2,3))">
CODE FOUND IN THE TEMPLATE
<else />
</if>


SpanishHarlem 10-13-2010 04:48 PM

Quote:

Originally Posted by Simon Lloyd (Post 2109664)
Just wrap the contents of these templates in a conditional
mrnasesimilarthreadcheck_header
mrnasesimilarthreadcheck_main
HTML Code:

<!-- show the following in the listed forums -->
<if condition="in_array($forumid, array(1,2,3))">
CODE FOUND IN THE TEMPLATE
<else />
</if>




Ok call me stupid.. lol.. Not quite sure what you mean here....

Simon Lloyd 10-13-2010 08:28 PM

Admincp>Styles & Templates>Styel manager>YOUR FORUM STYLE>mrnasesimilarthreadcheck_header wrap all those contents in the if condition (i.e change "CODE FOUND IN TEMPLATE" for the code actually found in the template (don't forget to chage 1,2,3 for the actual forumss you want to show it in)), hit save and do the same for the next template i mentioned, then go to the mod settings and allow all forums, the similar thread thing should now only show in the ones you specidied in the if condition.

SpanishHarlem 10-13-2010 08:35 PM

Quote:

Originally Posted by Simon Lloyd (Post 2109881)
Admincp>Styles & Templates>Styel manager>YOUR FORUM STYLE>mrnasesimilarthreadcheck_header wrap all those contents in the if condition (i.e change "CODE FOUND IN TEMPLATE" for the code actually found in the template (don't forget to chage 1,2,3 for the actual forumss you want to show it in)), hit save and do the same for the next template i mentioned, then go to the mod settings and allow all forums, the similar thread thing should now only show in the ones you specidied in the if condition.

Thanks :)

durham 10-16-2010 11:38 AM

Quote:

Originally Posted by Simon Lloyd (Post 2109664)
Just wrap the contents of these templates in a conditional
mrnasesimilarthreadcheck_header
mrnasesimilarthreadcheck_main
HTML Code:

<!-- show the following in the listed forums -->
<if condition="in_array($forumid, array(1,2,3))">
CODE FOUND IN THE TEMPLATE
<else />
</if>


Quote:

Originally Posted by SpanishHarlem (Post 2109807)
Ok call me stupid.. lol.. Not quite sure what you mean here....

Thanks a great idea - will give it a go! Many thanks

Worked perfectly!

D

dursat 11-04-2010 09:44 AM

3.6.8 olurmu acaba bu

Black Tiger 11-04-2010 12:38 PM

Please write in English.

Itchy Nips 11-05-2010 11:51 AM

I imported the xml file and I see it in my list of imported products but I dont see it in vb options.

ideas?

Black Tiger 11-05-2010 01:06 PM

It's in Admincp -> vBulletin Options, see the screenshot. You could use the "view all options" and then use the search option of your browser.

Itchy Nips 11-05-2010 01:27 PM

thanks. found it under 'message posting and editing options'


All times are GMT. The time now is 03:05 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01407 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_html_printable
  • (5)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