vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   can you help me? (https://vborg.vbsupport.ru/showthread.php?t=75196)

Murphinator 01-27-2005 12:35 AM

can you help me?
 
im trying to make a featured diary, on my forums members can request a member forum with the member hosting hack that i got somewhere i dont remember :P well anyway that forum they have is a place they can vent and just post anything, what i want to do is have on my portal a featured diary where the cron job actually picks one of the forums specified randomly and shows the title and description and a link to the diary itself. ive tried basing it off the memeber of the day hack but i have absolutly no clue waht im doing so that sucks, so can someone help me write this please!

sabret00the 01-27-2005 08:59 AM

ok what you need to do is

make a new table in your database called homepage_featured_diary with three columns, "featuredid" (tinyint(4), auto increment), "featured_name" (varchar(250), "featured_description (mediumtext)"

ok now make a simple cron, it's going to randomly select a record (from the threads table) and then temporarily store that data in order to insert it into the new table)

so you're not gonna insert the id as that's on autoincrement, you're just inserting the name and description

ok now you've got that and it's tested you're gonna upload it and set it to run every however long you want to keep one member on the homepage for.


All times are GMT. The time now is 05:47 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.04136 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)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