![]() |
How to add up join date info into album_pictureview template
hello i would like to add up a user join date info somewhere in album_pictureview template
i try to add up $userinfo[joindate] but insted date i can see some figures (1233566287) i try in this way: date('d-m-Y', $userinfo[joindate]) in the same template style but without any results :/ |
You need to use a plugin or file edit to add some php to take that date and put it into a useable format:
PHP Code:
|
i try to paste it into album.php file and i get error
so meybe you could show me how to step by step add to plugin this code and the code which show me the userfield[field1] |
I had a misspelling in my code. You need to place it after you have the joindate and before you spit out the template.
What does userfield[field1] have to do with this spitting out this code? You would just use $userdateline in the template. |
sorry mate but i have still troubling so i have explane you what i just done ...
i copied your code and try to find something in /album.php like Quote:
and i cant find out so i paste it after 1924 line: $albumbits = ''; while ($album = $db->fetch_array($albums)) { like on the screen: http://www.up.clubbers.pl/img/991.png and in my template near the place where i want to get my information placed the: $userdateline like on the screen shout: http://up.clubbers.pl/img/522.png but it still have no result in my template: like on the screen shout: http://up.clubbers.pl/img/933.png maybe i shoud use the hook but i cant figure out what location is the best to use my settings on the screen: http://up.clubbers.pl/img/514.png I know that i close to solve this issue but i neet to more advices, please be PATIENT THANKS ! |
What php page are you trying to get this to show up on?
|
sorry i can't give it to public couse of seo optymalization mode until i finish the project i cant allow google to index my pages ... but i can send you on PM the adress of that page
|
I don't want your website url, just the page name - ie showthread.php or member.php?do=whatever (be specific) so that I can look for a hook location.
|
album.php this is the location
/album.php?albumid=1 acually this is the url that i want to pase the field1 and date registry album.php?albumid=1&pictureid=4 |
Just look in the album.php under the corresponding do heading and find a hook. You had said just album.php to me in a PM and if there is no do, it will normally default to do=overview and so I would use the hook location album_latest_complete. If there is an albumid or pictureid, then do defaults to album and picture, respectively, so that would be a different hook location. For those 'dos', you may want to try album_album_complete or album_picture_complete. Just look at the album.php page to find other hook locations to try for your plugin.
|
All times are GMT. The time now is 03:29 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:
|