Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2005, 02:34 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-10-2005, 05:03 AM
aciurczak aciurczak is offline
 
Join Date: Jun 2005
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-10-2005, 02:44 PM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 12-10-2005, 03:28 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Chris
Reply With Quote
  #5  
Old 12-10-2005, 06:19 PM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tyvm
Reply With Quote
  #6  
Old 12-16-2005, 09:01 AM
gsk8's Avatar
gsk8 gsk8 is offline
 
Join Date: Jun 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #7  
Old 01-09-2006, 07:22 AM
Gromits Gromits is offline
 
Join Date: Nov 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 01-10-2006, 03:41 PM
aciurczak aciurczak is offline
 
Join Date: Jun 2005
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 01-10-2006, 07:55 PM
Gromits Gromits is offline
 
Join Date: Nov 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 10-25-2006, 10:38 PM
EricR EricR is offline
 
Join Date: Feb 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:36 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.07042 seconds
  • Memory Usage 2,260KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete