![]() |
|
#1
|
||||
|
||||
|
I ported the 'Feature Pic/ Babe of The day/ Intergration all in 1' hack to vB CMPS with the permission of the author.
All the credits go to Amavisca (aka: Eclipse at Speedyks.com) This module takes a random picture from a folder in your server where you store your pictures, resizes and displays it in a smallbox in your CMPS home page. Instructions: 1) Copy the attached refresh.php file inside the folder where your pictures are. 2) Create a template with name 'adv_portal_images' (without the quotes) with the contents: PHP Code:
**You can play with the width setting. I tried to do it with "100%" but Internet Exploder causes problems with that (works fine with mozilla though?) 3) Create a module with: Module Title: Images Template to include: images set the display order and column according to taste and SAVE That's All!
Last edited by ogetbilo; 05-27-2004 at 11:52 AM. |
|
#2
|
|||
|
|||
|
Can we also make this so people won't steal images, or bandwidth.
|
|
#3
|
|||
|
|||
|
Nice and thanx alot, but a suggestion that u'd do a module to randomly pick up an attachment image and display it?
peace. |
|
#4
|
||||
|
||||
|
Quote:
Quote:
Last edited by ogetbilo; 05-29-2004 at 01:25 PM. |
|
#5
|
|||
|
|||
|
hi,
i like this one very much, but my problem is, that I want to click the pic and than it should appear in the original size. |
|
#6
|
|||
|
|||
|
Quote:
Code:
<a href="$vboptions[homeurl]/path/to/your/images/folder/refresh.php" target="_blank"><img src="$vboptions[homeurl]/path/to/your/images/folder/refresh.php" width="150" border="0"></a>
Last edited by TYorke; 06-06-2004 at 10:28 PM. |
|
#7
|
|||
|
|||
|
nop that doesn't work .
when you call the refreshscript it will randomly choose a picture... so if you display the module.. it is p.e picture1.jpg... when you click the link, the refresh script is called again and it will choose randomly any other pic... |
|
#8
|
||||
|
||||
|
|
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
|||
|
|||
|
yep with this refresh.php there is no way to do it
![]() perhaps this will work the refresh.php shouldn't render the pic, but should return randomly a picname and creates the href and the img tag witht the inserted picurl. but I think that wasn't your purpose in doing this refresh thing. so I'll try to modify it ok?
|
|
#11
|
|||
|
|||
|
Thanks , very nice and easy to add ...aprreciate the effort.
|
|
#12
|
|||
|
|||
|
This one didn't work for me. I get the follow errors from random.php.
PHP Code:
|
|
#13
|
|||
|
|||
|
Not working here either, must be I.E.
Thanks anyways nice mod. Fiber |
|
#14
|
|||
|
|||
|
Will this pull from sub-directories inside the main picture directory you select or do they all just need to be dumped into the main folder?
|
|
#15
|
|||
|
|||
|
I found out the hard way, by testing the refresh.php script by itself that it was reporting warning errors. I figured these errors were corrupting the header or something and found out my php.ini file had this setting:
error_reporting - E_ALL; I changed it to: error_reporting - E_FATAL; And now the script works fine and I can see my images! Don't know if anyone else has this problem, but check it out just in case. It made me alot happier! I found the answer on: http://forums.devarticles.com/archive/t-9337 Also, if you don't set $tnsize then it's really just sending the entire image and using the width statement to shrink it. (Fine if all your pics are thumbnails, or small anyway) If you do set $tnsize, I found out that it wasn't getting the $ext correctly, it was when it read from folder, but not when it chose the random file name. You should get it then. Mine happen to read the .php last, so $ext was ".php" even though it found pics in the folder. So it fell through some logic. I also changed the ImageCreate to ImageCreateTrueColor (I use only jpeg images) which produces a much better thumbnail, and ImageJPEG to spit out the image. I'm new to PHP/GD so this just happens to be the way I fixed it. I then took the style page from the "paypal" project and copied it to make the window collapsable. All and all, it works! Last edited by socals; 08-26-2004 at 03:16 AM. |
|
#16
|
|||
|
|||
|
Is there a way to make it so the picture module refreshes, say every 5 seconds so that people can watch a picture show?
|
|
#17
|
|||
|
|||
|
Quote:
Check out the babe on the left...click on her ... http://www.s3squad.com You may have to scroll down a little...look under the heading "Babes" Should I release this as a module?? Last edited by jugo; 04-07-2005 at 11:46 AM. |
|
#18
|
|||
|
|||
|
Quote:
|
|
#19
|
|||
|
|||
|
Quote:
By the way, nice job on the website. |
|
#20
|
|||
|
|||
|
Got it working, Looks great. Thanks!
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Weather Module | cLord | Add-On Modules & Modifications | 157 | 09-08-2006 07:50 PM |
| Basic Module | cLord | Add-On Modules & Modifications | 55 | 04-24-2006 08:45 AM |
| PayPal Module | cLord | Add-On Modules & Modifications | 36 | 09-21-2005 01:08 AM |
| Google Module | cLord | Add-On Modules & Modifications | 22 | 05-03-2005 04:49 PM |
| not display a module (or part of a module) in IE | ogetbilo | Troubleshooting / "How do I..." Questions | 3 | 05-25-2004 10:02 PM |