vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - All Topic - Master Forums - Shows threads from multiple forums in one forum (https://vborg.vbsupport.ru/showthread.php?t=245839)

vbandroid 06-04-2011 09:39 PM

also this doesn't import stick threads from the slave forums, is their a way around this?

BirdOPrey5 06-04-2011 10:27 PM

Quote:

Originally Posted by vbandroid (Post 2203563)
This is a great mod! Thanks. I was wondering if its possible to have some sort of work around for this? perhaps add a condition code to the master board, like if forum id=X, then pull stats from a,b,c. That we can manually add. I'm not very good at this but would this be possible?

No, not going to happen with this mod unfortunately.

Quote:

Originally Posted by vbandroid (Post 2203596)
also this doesn't import stick threads from the slave forums, is their a way around this?

This on the other hand is possible... In fact the first time I did this mod I had it show slave stickies too but then people didn't like all the stickies being shown so I took them out.

I will work on adding an option so you can choose to work with stickies or not.

Alan_SP 06-05-2011 12:05 AM

About sticky threads, if you can make them normal (not sticky) in master forum? Is it possible?

BirdOPrey5 06-05-2011 12:38 AM

Quote:

Originally Posted by Alan_SP (Post 2203626)
About sticky threads, if you can make them normal (not sticky) in master forum? Is it possible?

Interesting proposal... I will have to research this.

vbandroid 06-05-2011 04:02 PM

Thanks for getting back to us bird of prey, again fantastic mod.

BirdOPrey5 06-06-2011 12:43 AM

Updated to 2.2. You can now choose whether to show stickies from slave forums or not. If yes they will also be sticky threads in your master forum. I wasn't able to implement the suggestion to show them as normal threads- will keep trying for that though.

Nik S 06-07-2011 03:15 AM

I really like this mod. Thanks!

Would it be possible for threads in the master forum to link to their sub forums?

BirdOPrey5 06-07-2011 09:16 AM

Quote:

Originally Posted by Nik S (Post 2204485)
I really like this mod. Thanks!

Would it be possible for threads in the master forum to link to their sub forums?

Are you talking about where it gives the name of the forum the thread is really in? Yes that can be done... I will make it an option in the next version but in the mean time if you want to do this do the following:

Got to Admin CP -> Plugin Manager
Edit the All Topic in Threadbit Plugin
Erase all the PHP code and replace it with the following:

Code:

if ($vbulletin->options['alltopic_enable'] AND $vbulletin->options['alltopic_tempen'])
{
  require_once(DIR . '/includes/adminfunctions_template.php');

  $find = trim(preg_replace('#^\$final_rendered = \'(.*)\';$#s', '\\1', compile_template('{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, \'postuserid\', \'postusername\'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}')));

if ($vbulletin->options['alltopic_ss'])
 {

  $replace = trim(preg_replace('#^\$final_rendered = \'(.*)\';$#s', '\\1', compile_template('{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, \'postuserid\', \'postusername\'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}<vb:if condition="($thread[\'forumid\'] != $forbopid)">&nbsp;-&nbsp;<a href="forumdisplay.php?f={vb:raw thread.forumid}">{vb:raw thread.forumtitle}</a></vb:if>')));
 }
else
 {
  $replace = trim(preg_replace('#^\$final_rendered = \'(.*)\';$#s', '\\1', compile_template('{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, \'postuserid\', \'postusername\'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}<vb:if condition="!$thread[\'sticky\'] AND ($thread[\'forumid\'] != $forbopid)">&nbsp;-&nbsp;<a href="forumdisplay.php?f={vb:raw thread.forumid}">{vb:raw thread.forumtitle}</a></vb:if>')));
 }
  $vbulletin->templatecache['threadbit'] = str_replace($find, $replace, $vbulletin->templatecache['threadbit']);
}

Save the Plugin.

Forum names will now be linked. :)

Gripi 06-07-2011 10:38 AM

installed.. thanks alot for this great mod

Alan_SP 06-07-2011 02:31 PM

1 Attachment(s)
Excellent, this linking to forum names. :up:

I added this change to combined including and excluding master forums (attached).

BirdOPray5, if you manage to make sticky threads into normal threads, please also do excluding variant of this mod.


All times are GMT. The time now is 05:46 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.01127 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_code_printable
  • (4)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