vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Change entire forum section to display custom content rather then threads (https://vborg.vbsupport.ru/showthread.php?t=79227)

renderstream 04-02-2005 02:45 PM

Change entire forum section to display custom content rather then threads
 
1 Attachment(s)
Hi, basically, i have a section in my forum that is called "News headlines"

When they click on it, it will normally bring them to see the forum with threads, posts, etc.

Instead, I want:

When they click on it, it will bring them to a forum that does NOT have threads, and they will not be able to post. Rather, it will show my custom content.

I have included an image for better explanation.

Deaths 04-02-2005 02:53 PM

In the FORUMDISPLAY template, find $threadbits, and put a conditional around it, like this:

HTML Code:

<if condition="!$foruminfo[forumid] == X">
$threadbits
<else />
YOUR_CODE
</if>

Replace X with the forumid of the news headlines forum.

renderstream 04-02-2005 03:10 PM

hm, i got the condition working by using:

PHP Code:

if($foruminfo[forumid] == 29){

//mycode here        

}else{

$threadbits '';



Bur i am not sure what to put as my code. I want to stop it from displaying threads, and basically have some text.

Deaths 04-02-2005 03:19 PM

Hmm, thats a php condition, that shouldn't work in templates :/

noppid 04-02-2005 03:23 PM

Maybe you should finish your idea before you try to code it? :/

renderstream 04-02-2005 03:30 PM

oh forum display TEMPLATE, lol i was editting the file forumdisplay.php

Ah, ok got it, that was easy. I was just editting the wrong file lol. Thanks!

Deaths 04-02-2005 03:36 PM

Hehe, no problem :)

renderstream 04-02-2005 09:48 PM

oh btw your code doesnt work, it shows my code on every forum!

Deaths 04-03-2005 07:59 AM

Try replacing foruminfo[forumid] with forum[forumid].


All times are GMT. The time now is 10:29 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.01180 seconds
  • Memory Usage 1,724KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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