![]() |
Help me, to edit this code!
I want hide image from guest (unregister member) and i want register member can view the images in post/thread.
I make this simple plugin, and this plugin hide images from all member. PHP Code:
how to hide images only for guest and register user can view the image? please help me! --------------- Added [DATE]1313311792[/DATE] at [TIME]1313311792[/TIME] --------------- help me, please! |
Quote:
Try this: PHP Code:
|
Wow, great working :)
Yes, i make in 'postbit_display_complete'. Is that a way to hide image from 31 december 2008 to 1 January 2011 for guest only? if 2 january or 3 january guest can view the image. Help me, please! |
Quote:
|
Oh you mean by date of the post? That's not as easy- $post['dateline'] holds the timestamp of the post. You'll need to use the php date functions to turn your dates into timestamps and do the comparisons that way. http://php.net/manual/en/ref.datetime.php
|
Quote:
Yap, i mean by date of the post. --------------- Added [DATE]1313418565[/DATE] at [TIME]1313418565[/TIME] --------------- Dear BirdOPrey5, i already try hundreds time, but still cant work :( ================================================== = My new question is: I want show image or image can view by all member (guest, register member, moderator, admin) if the post date above 1 March 2011. If post date below the 1st of March 2011, all member can't view image. Please help me! |
Please help me!
I want show image to all my member group (guest, register member, moderator, admin) if the post date above 1 March 2011. If post date below the 1st of March 2011, all member group can't view any image. |
Please post the datecode you had written that wasn't working.
|
Dear Lynee
I'm newbie in php, I dont know how to make that, can you help me, please! Quote:
|
Quote:
I googled Unix Timestamp and the very first link was a calculator: http://www.unixtimestamp.com/index.php The timestamp for 0:0:00 hours on March 1, 2011 is: 1298959200 Therefore for your conditionals you will simply compare $post['dateline'] to the timestamp... PHP Code:
|
All times are GMT. The time now is 03:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|