vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   This should be easy enough, for you :P (https://vborg.vbsupport.ru/showthread.php?t=68498)

Mijae 08-18-2004 08:58 PM

This should be easy enough, for you :P
 
I have an announcement forum, and to make it more important/active, I want to show latest thread title from that forum on forumhome, before the forum list, below the navbar.

Something like IPB boards have. Like, Latest news: blahblah (1050 views, 10 replies).

Anyone up for it? :D

vau7 08-19-2004 02:11 PM

Oh, i request this with you. It would be fine. This was the only feature i was missing after the conversion.

Mijae 09-09-2004 10:44 PM

bump?

Mijae 11-08-2004 07:34 PM

Quote:

Originally Posted by Mijae
bump?

bump again?

Link14716 11-08-2004 08:19 PM

In index.php, find:
PHP Code:

$newuserid $userstats['newuserid']; 

Add under:
PHP Code:

$announcementforum 1337;
$ap $DB_site->query_first("SELECT * FROM thread WHERE forumid='$announcementforum' ORDER BY dateline DESC"); 

Change 1337 to your news forum.

Now, put this somewhere in your FORUMHOME template (I put it after $navbar, but it doesn't look really superb there):
HTML Code:

<if condition="!empty($ap)">Latest news: <a href="showthread.php?t=$ap[threadid]">$ap[title]</a> ($ap[views] views, $ap[replycount] replies)</if>

Mijae 11-08-2004 08:51 PM

Quote:

Originally Posted by Link14716
In index.php, find:
PHP Code:

$newuserid $userstats['newuserid']; 

Add under:
PHP Code:

$announcementforum 1337;
$ap $DB_site->query_first("SELECT * FROM thread WHERE forumid='$announcementforum' ORDER BY dateline DESC"); 

Change 1337 to your news forum.

Now, put this somewhere in your FORUMHOME template (I put it after $navbar, but it doesn't look really superb there):
HTML Code:

<if condition="!empty($ap)">Latest news: <a href="showthread.php?t=$ap[threadid]">$ap[title]</a> ($ap[views] views, $ap[replycount] replies)</if>

Thanks! Only took 3 months :D :D :D

Link14716 11-08-2004 08:52 PM

Well, as long as you have it I guess. ;)

Mijae 11-08-2004 10:17 PM

Thanks again :P

I hope more people will read my announcements now :D


All times are GMT. The time now is 05:02 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.01585 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (2)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