vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to move [Similar Mod] to be after first post (https://vborg.vbsupport.ru/showthread.php?t=192262)

dbreh 09-29-2008 08:20 PM

How to move [Similar Mod] to be after first post
 
Hello,
1- I'm locking for a hack or modification on a templates, that could show [Similar Mod] right after first post, like in vbulletin.org

2- Also I'm looking for hack that tells inactivated member, that he still not yet activate his account, under (Welcome) in loge in area

best regards to all

SEOvB 09-29-2008 09:46 PM

Quote:

Originally Posted by dbreh (Post 1633373)
Hello,
1- I'm locking for a hack or modification on a templates, that could show [Similar Mod] right after first post, like in vbulletin.org

You can use the similar threads feature for this. Its built into vBulletin
Quote:

2- Also I'm looking for hack that tells inactivated member, that he still not yet activate his account, under (Welcome) in loge in area

best regards to all
You can use the notices manager for this, its built into vBulletin 3.6.10 and above i beleive.

dbreh 09-29-2008 09:53 PM

Quote:

Originally Posted by FRDS (Post 1633465)
You can use the similar threads feature for this. Its built into vBulletin.

I want to move [Similar Mod] templates to be just under first post

--------------- Added [DATE]1222747033[/DATE] at [TIME]1222747033[/TIME] ---------------

Normally similar threads [Similar Mod] appears in the bottom of the forum,
But in vbulletin.org similar threads appears below first post,
How to do this change?

dbreh 10-04-2008 07:42 PM

Normally similar threads [Similar Mod] appears in the bottom of the forum,
But in vbulletin.org similar threads appears below first post,
How to do this change?


Still waiting for answer?

lazydesis 10-15-2008 02:32 PM

such questions are never answered in this site ... i have asked similar questions .. like how to get some functionality similar to as in vbulletin.org

no one ever replied .. and i am sure no one will ever reply for this one either. i guess its just that people do not want to share their *secrets* i guess ..

aah well at least we get a lot of help on other issues ..:) and lots of mods and styles available here ..

Dismounted 10-16-2008 04:56 AM

Similar threads are actually loaded AFTER posts are fetched. So you will need to load them before the posts are fetched, and add the variable to the template. I believe I've actually said this somewhere before, so anyone that searched would have already found it ;).

MadK 12-20-2008 09:43 PM

Quote:

Originally Posted by Dismounted (Post 1646155)
Similar threads are actually loaded AFTER posts are fetched. So you will need to load them before the posts are fetched, and add the variable to the template. I believe I've actually said this somewhere before, so anyone that searched would have already found it ;).

Sorry for the bump, but how could we do that?

I've tried the following:

PHP Code:

<if condition="$post['postcount'] % $vboptions['maxposts'] == 1">

$similarthreads

</if> 

The similar threads box disappears. If I simply leave it to $similarthreads and move it before "post content", it appears above the post content table. All this was done in showthread template.

Dismounted 12-21-2008 02:49 AM

All the posts to be shown on a page are fetched and put into one variable. That variable is then used in the SHOWTHREAD template. You will not be able put something after the first post there - it is far too late at that stage.

This requires some PHP coding, it is not a simple template edit.


All times are GMT. The time now is 11:15 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.02110 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete