![]() |
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) |
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. |
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? |
Bumping for help here people lol pleaseeeeeee?
|
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)
|
This is the only instant i could find it---
$post[posttime]=vbdate($timeformat,$post[dateline]); Would that be the right code im looking for? |
Next look for $post[dateline] because $post[posttime] is a variable for something else (The date the post was posted)
|
$post[postdate]=vbdate($dateformat,$post[dateline]);
$post[posttime]=vbdate($timeformat,$post[dateline]); Would that be it? |
No, you need to look for more code containing $post[dateline] I cant remember where else it's defined though. sorry
|
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 12:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|