It is currently 24 Feb 2018, 01:46

GIMP/GL Interestsphpbb How i rotate logo images. (Showcase | Slideshow)

GIMP or GIMP LEARN Forum Interests
Post Reply
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 1/1
Posts: 2191
Joined: 26 Sep 2016, 00:16
Cash on hand: 8,236.90 GLP
Bank: 53,924.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1218
x 264
Contact:
Canada

phpbb How i rotate logo images.

Post#1 by tim » 21 Oct 2016, 20:42


I used this guide
Adding Random Header Image
but instead of
using mt_rand(1, NUMBER-OF-IMAGES),
where you have to replace NUMBER-OF-IMAGES every time you add a new image.
I just have it count number of files in my directory like this

Code: Select all

'SITE_LOGO_RANDOM'      => mt_rand(1,
		iterator_count(new FilesystemIterator("/home/bakon306/public_html/gimplearn/styles/prosilver/theme/images/custom_logos/", FilesystemIterator::SKIP_DOTS))
		), // change mt_rand(1, NUMBER-OF-IMAGES)
Then i just store all my custom_logos in that directory counting upward from site-logo-1.png to site-logo-n.png
So that when i add images i don't have up change the functions.php file.
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
Post Reply

Last 20 Members Who Visited This Topic

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: tim
2: animicule
3: oldmangrumpy
4: animicule
5: Pat625
6: animicule
7: Issabella

Who is online

Users browsing this forum: No registered users and 1 guest