vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Show Post Help (https://vborg.vbsupport.ru/showthread.php?t=39057)

Kratheous 05-26-2002 12:50 AM

Show Post Help
 
Okay, in order for a hack I'm working on (that I prolly won't release, as it's very specific to my forums) to work, I need the first post of every topic in 13 specific forums to use a different showpost template than every other post on the forums... how would I go about doing this?

Kratheous 05-26-2002 03:11 AM

Well, I tried something, but it hasn't worked...

$getpost=$DB_site->query_first("SELECT postid FROM post WHERE threadid=$thread[threadid] ORDER BY dateline LIMIT 1");
if ($getpost[postid]==$postid) {
$isfirst=1;
} else {
$isfirst=0;
}

if($isfirst AND $forumid==13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25) {
eval("dooutput(\"".gettemplate("showquest")."\");" );
} else {
eval("dooutput(\"".gettemplate("showthread")."\"); ");
}

And I have the "showquest" template pointing to $questbits, but it's showing the same thing as $postbits, instead of what $questbits is supposed to show...

Kratheous 05-26-2002 05:51 AM

Would there be anything else I have to change? I've been trying to fix this all night, and it's not going well...

Oh, and BTW- One of my friends registered, but he hasn't received the e-mail conformation... And I dunno why... any help on this would be appreciated.

Admin 05-26-2002 10:30 AM

Check out my profile, I have released a hack that does just this. :)


All times are GMT. The time now is 12:39 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.00904 seconds
  • Memory Usage 1,707KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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