Forums
New posts
Home
What's new
New posts
New media
New media comments
Latest activity
Log in
Register
What's new
New posts
Menu
Log in
Register
Install the app
Install
Home
Forums
Main
General Discussion
Forum meme/banner general
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Stiff" data-source="post: 11755" data-attributes="member: 297"><p>You shouldn't need FTP/server access to do this, you could use images right from this forum (preferably same domain, not embedded) by including them as an array in [ICODE]page_container[/ICODE] and then selecting them however you want (randomly here).</p><p></p><p>[CODE=php]</p><p>#declare somewhere</p><p>$logos= array('https://i.ibb.co/r7Qwpdj/lain2-tl.png', 'https://mindseyemag.com/forum/index.php?attachments/61034-png.1981/'); # array of strings (image URLs)</p><p>$randumb = array_rand($logos); # randomly select an index from the array</p><p></p><p># and then, at the appropriate src attribute</p><p>$logos[$randumb] # get the logo array element at the random index (an image URL)</p><p>[/CODE]</p><p></p><p>There are more elegant ways but if you just want it to work fast now then this should be fine</p></blockquote><p></p>
[QUOTE="Stiff, post: 11755, member: 297"] You shouldn't need FTP/server access to do this, you could use images right from this forum (preferably same domain, not embedded) by including them as an array in [ICODE]page_container[/ICODE] and then selecting them however you want (randomly here). [CODE=php] #declare somewhere $logos= array('https://i.ibb.co/r7Qwpdj/lain2-tl.png', 'https://mindseyemag.com/forum/index.php?attachments/61034-png.1981/'); # array of strings (image URLs) $randumb = array_rand($logos); # randomly select an index from the array # and then, at the appropriate src attribute $logos[$randumb] # get the logo array element at the random index (an image URL) [/CODE] There are more elegant ways but if you just want it to work fast now then this should be fine [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Main
General Discussion
Forum meme/banner general
Top