The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
Quote:
Try this: PHP Code:
|
#3
|
|||
|
|||
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! |
#4
|
||||
|
||||
I don'y get it, we're already well past January 2011
|
#5
|
||||
|
||||
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
|
#6
|
|||
|
|||
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! |
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
Please post the datecode you had written that wasn't working.
|
#9
|
|||
|
|||
Dear Lynee
I'm newbie in php, I dont know how to make that, can you help me, please! |
#10
|
||||
|
||||
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:
|
Благодарность от: | ||
Lynne |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|