Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2001, 02:43 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I got some small ideas I would like to implement into my site, and I need a little help. Now before you click outta the thread, they are not big things im asking for, I don't want anyone to write a CGI ImageFolio intergration hack! LOL (but if you insist) no, no, small things.

A) Is there anyway to extract from the users birthday, his age, and show that in his profile? Like if he entered he was born on, March 5th 1985, it would say in his pofile, User is: 16 years old.

B) Firefly, I use your PM flashy thing! BUT my users probolly donno it exists cuz they use "POP UP ON NEW PM" is there anyway of disabling the popup on the main forum index page ONLY, so the bar can flash, but it will still popup on ANY other page, if the user has selected it.

C) How could I call the users last thread title, and link, onto the MAIN index page? So like what you guys have here, but with somthing like "Your last post was: BLAH BLAH BLAH"

Thanks everyone!
snyx
Reply With Quote
  #2  
Old 11-25-2001, 03:07 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have C done for you. Didn't take too long, but I can't guarantee that it's perfect.

In index.php find:
PHP Code:
} else {
  
$pminfo='';

Insert after:

PHP Code:

// get last post
  
$totalposts=$bbuserinfo[posts];
  if (
$bbuserinfo[posts]!=and $bbuserinfo[lastpost]!=0) {
    
$lastpostdate=vbdate($dateformat,$userinfo[lastpost]);
    
$lastposttime=vbdate($timeformat,$userinfo[lastpost]);

    
$getlastposts=$DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$bbuserinfo[userid]' ORDER BY post.dateline DESC LIMIT 20");

    while (
$getlastpost=$DB_site->fetch_array($getlastposts)) {

     
        
$lastposttitle=$getlastpost[title];
        
$lastposturl="showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]";
    
$lastpostdate=vbdate($dateformat,$getlastpost[dateline]);
    
$lastposttime=vbdate($timeformat,$getlastpost[dateline]);
        break;
    }
     
    
  } else {
    
$lastpostdate="Never";
  } 
Then, in your forumhome weclometext template, add

Code:
Your last Post was: <a href="$lastposturl">$lastposttitle</a><br>
Reply With Quote
  #3  
Old 11-25-2001, 03:48 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A) Will only partially work as birthday is not a mandatory field and if you want you can enter just the day and the month leaving the year blank.

B) Open /index.php go to just above
PHP Code:
eval("dooutput(\"".gettemplate('forumhome')."\");"); 
and add

PHP Code:
$headnewpm=""
Reply With Quote
  #4  
Old 11-25-2001, 04:31 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks guys they both worked great!
but yeah if they don't fill it fully in
then it just said "none entered"
too much work?
Reply With Quote
Reply


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 10:04 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.03801 seconds
  • Memory Usage 2,200KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete