vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   My 1st attempt (https://vborg.vbsupport.ru/showthread.php?t=57591)

MindTrix 10-03-2003 09:45 PM

My 1st attempt
 
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)

joeydood 10-07-2003 01:38 PM

i think that's all you have to do!

like using $bbuserinfo[username] somewhere. problem is, you have to make sure that info is available wherever you want to print it.

if it isn't, they you'll have to store it in a variable to be accessed when the data is not available.

like let's say you want this on the usercp. $post[posttime] (i'm assuming here...) is retrieved from the database in the postbit section. so to retrieve that info elsewhere when it is not available you would have to store it in a session variable (sorry for the lack of terminology here, i'm an asp/vb guru).

but you'd only have to store it as a variable IF its not available where you want to use it. if i'm not mistaken, there should already be a globally available variable in the $bbuserinfo array == $bbuserinfo[posttime] or whatever the proper name of the field is.

sorry to ramble.

MindTrix 10-07-2003 01:41 PM

Well i tried moving the $post[posttime] to another template in another catagory example --- from post bits to like errrm forum home i dunno

And it wont show, comes up blank so i guesed i had to move the code that makes up the variable kinda thing. Im useless at php but im gettin it slowley :p i was jus wonderin if ne one new where the code wus or how to get it?

MindTrix 11-13-2003 04:48 PM

Bumping for help here people lol pleaseeeeeee?

assassingod 11-13-2003 05:13 PM

Search for that variable in functions.php (that is where the getpostbit function is so all postbit related stuff will be there) and use the code from there and add it to the new file you wish it to appear (global.php for example if you want the thing to appear on all pages)

MindTrix 11-13-2003 05:16 PM

This is the only instant i could find it---

$post[posttime]=vbdate($timeformat,$post[dateline]);

Would that be the right code im looking for?

assassingod 11-13-2003 05:18 PM

Next look for $post[dateline] because $post[posttime] is a variable for something else (The date the post was posted)

MindTrix 11-13-2003 05:20 PM

$post[postdate]=vbdate($dateformat,$post[dateline]);
$post[posttime]=vbdate($timeformat,$post[dateline]);

Would that be it?

assassingod 11-13-2003 05:24 PM

No, you need to look for more code containing $post[dateline] I cant remember where else it's defined though. sorry

MindTrix 11-13-2003 05:25 PM

Thats fine i appreciate you helping. Basically i just want to find the code in the php file that will show/tell me the time a reply was made.


All times are GMT. The time now is 03:17 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.01015 seconds
  • Memory Usage 1,723KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete