Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
My 1st attempt Details »»
My 1st attempt
Version: , by MindTrix MindTrix is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-03-2003 Last Update: Never Installs: 0
 
No support by the author.

ok errrm im not gonna say wut hack im makin lol dunno why guess i dont want other people doin it b4 cus it wil prob take me years to do lmfao neee wayzzz

In the post bit template there this

$post[posttime]

Soo if i wanna put this into another template or something isnt there some code from a php file i have to move aswell??

Yes laugh at me all u want but heck ima newbie (i dun even understand most php code)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-13-2003, 05:30 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could this be anything maybe?

PHP Code:
// get last reply time
  
if ($postid) {
    
$dateline=$DB_site->query_first("SELECT dateline
                                     FROM post
                                     WHERE postid='
$postid'");
    
$lastposttime=$DB_site->query_first("SELECT dateline
                                         FROM post
                                         WHERE threadid = '
$threadid'
                                               AND dateline < 
$dateline[dateline]
                                               AND visible = 1
                                         ORDER BY dateline DESC
                                         LIMIT 1"
);
  } else {
    
$lastposttime=$DB_site->query_first("SELECT dateline
                                         FROM post
                                         WHERE threadid='
$threadid'
                                         ORDER BY dateline DESC
                                         LIMIT 1"
);
  } 
Reply With Quote
  #13  
Old 11-14-2003, 02:03 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have you tried $post[dateline] or $postdateline

also try $_POST[postdateline] or $_POST[$post[dateline]] or $_POST[$postdateline]

one of the latter should definately work
Reply With Quote
  #14  
Old 11-14-2003, 03:22 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey sabret00the cheers for the help/advice, and you too assassingod i really REALLY appreciate it.

Yet, sabret00the none of the codes in your post worked at all Did i need to move any php code anywhere?
Reply With Quote
  #15  
Old 11-14-2003, 04:11 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope you should've just been able to do

$custompostime = $_POST[$dateline]

or something of the sort and then call it in your template as $customposttime

sorry i couldn't help more, if steve checks this again, he might be able to use what i tried to get it to work.
Reply With Quote
  #16  
Old 11-14-2003, 05:00 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So surely i have to place

$custompostime = $_POST[$dateline]

Somewhere in a php file? I was just adding the codes you listed above in the other post to a template, which obviously were comming up blank. Basically i just want to be able to show the time a new reply was made, in another template.
Reply With Quote
  #17  
Old 11-14-2003, 08:00 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in your functions.php

what exactly are you trying to do it could go a along way towards me trying to help you
Reply With Quote
  #18  
Old 11-14-2003, 08:16 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah your write lol, im jus beein over protective cause its something simple i wanted to do and i cant Plus i wanted to release it as a tiny hack if i got it to work i jus didnt want someone doin it b4 me (if they aint already) Blah ill pm u what im doing
Reply With Quote
  #19  
Old 11-14-2003, 09:00 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fromw hat you explained, you can't do it the way it the way i was trying to do it but rather using a query, if i think you mean what i think you mean, anyway, check the query that's used in the forumdisplay.php
Reply With Quote
  #20  
Old 11-15-2003, 12:00 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i found this code in the forumdisplay.php and i think/hope its the one i need

PHP Code:
   // dates
        
if ($forum['lastpost']>0) {
          
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
          
$forum['lastposttime']=vbdate($timeformat,$forum['lastpost']);
          eval(
"\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";");
        } else {
          
$forum['lastpostinfo']='Never';
        } 
If it is could you let me know where i need to put it in the functions.php because im guessing i cant just chuck it in there.
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 12:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04774 seconds
  • Memory Usage 2,307KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete