vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide "Last Post" info for selected forums (https://vborg.vbsupport.ru/showthread.php?t=102573)

Valter 12-09-2005 02:34 AM

Hide "Last Post" info for selected forums
 
Is it possible to make this option in Forum Manager?

Show "Last Post" info? - Yes/No

"Private" or something like that will be shown instead of thread title, last poster info, time... for selected forums only.

aciurczak 12-10-2005 05:03 AM

I'm not sure if it's doable from forum manager, but it's certainly doable. The templates you need to modify are the:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

Find in the templates where it is posting the last post info. Should look something like this:

Code:

<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
replace it with:

Code:

<td class="alt2" nowrap="nowrap"><if condition="$forum[forumid] == 17">-<else />$forum[lastpostinfo]</if></td>
This does it for forum #17, change it to whichever forum or forums you'd like to blank.

Valter 12-10-2005 02:44 PM

Thanks but part of one plugin needs to add option to Forum Manager so I can set in forum options to show last post in that forum or not.

Chris M 12-10-2005 03:28 PM

Its easily doable - Contact me via PM tomorrow and I'll hook you up with the code to do so :)

Chris

Valter 12-10-2005 06:19 PM

Tyvm ;)

gsk8 12-16-2005 09:01 AM

Hi Cyber,

Can you tell me how to do the same, but with only the TITLE? I would still like to show the rest of the userinfo :nervous:

Gromits 01-09-2006 07:22 AM

I would also like the code to do the same as the initial poster. Actually for two selected forums.

Can you post here?



Quote:

Originally Posted by aciurczak

...replace it with:

Code:

<td class="alt2" nowrap="nowrap"><if condition="$forum[forumid] == 17">-<else />$forum[lastpostinfo]</if></td>
This does it for forum #17, change it to whichever forum or forums you'd like to blank.

Is there a way to add an OR statement into this for two or more fourms?
Such as == 17 or 18 ?

Cheers!

aciurczak 01-10-2006 03:41 PM

Sure.

Code:

<td class="alt2" nowrap="nowrap"><if condition="($forum[forumid] == 17 OR $forum[forumid] == 18)">-<else />$forum[lastpostinfo]</if></td>
should work. If you want to do any more forums than that, you probably want to start using the in_array functions, but I always seem to screw them the first 6 times I code them.

Gromits 01-10-2006 07:55 PM

Haha ok

Thanks Ill give it a crack.

Heck... Im using Aria + style from vBstyles (love it!) and this is what Ive got in its place: forumhome_forumbit_level2_post:

PHP Code:

<td class="alt2" nowrap="nowrap" width="225"><if condition="$forum[link] != ''"><a style="float:$stylevar[right]; padding-top: 9px;" href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img  src="$stylevar[imgdir_statusicon]/link_home.gif" alt="$vbphrase[aria_forum_link]border="0" /></a><else />$forum[lastpostinfo]</if></td>
<
td class="alt1" width="80"><if condition="$forum[link] != ''">&nbsp;<else />$forum[threadcount]</if></td


EricR 10-25-2006 10:38 PM

Any idea why this would work for Level2 but not work for Level1? For some reason it isn't recognizing the forumid on Level1 but it does for Level2, and the code is identical. :(

I did some more testing, level1 does work it just doesn't work on the actual Forum Home page. If I open a category then Level1 does work. So what template is being used on the actual Forum Home page (the page that shows all categories and forums)?? How do I hide the "Last Post" content for a specific forum on the main forums page??


All times are GMT. The time now is 09:13 AM.

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.03497 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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