Cloudpanda Posted June 6, 2020 Report Posted June 6, 2020 When you create ranks, there is an option for "image link". Does anyone know the correct format to put here. I have looked through other files and tried to follow the url format for that image. I created a "ranks" folder inside phpvms/public/assets which I have several .png files. I have tried different combos of linking the image like (../ranks/ /phpvms/public/assets/ranks/ ) and many others with no luck. Will this new system accept png? Are the images for this suppose to show up in the profile page of pilot or somewhere else? Thank you for any help! Quote
nickkecooper Posted June 6, 2020 Report Posted June 6, 2020 It's a standard URL, I do not know all the accepted file types. However I've used both JPG and PNG with no issues. Try putting them into /public_html/assets/**YOUR CHOICE AFTER THAT**. Try going to the image once you upload it there. If you can reach it, place that URL into the Image URL input within the ranks page. Quote
web541 Posted June 6, 2020 Report Posted June 6, 2020 It should accept png files. I would store the images inside your public/ directory (or your public_html like what @nickkecooper said if you've installed it like that) and then link them that way: -- public ------ assets ------------ img --------------- ranks ------------------- rank1.png then link them like this: http://YOURSITE/assets/img/ranks/rank1.png or if you do want to get them via code, something like this should work: <img src="{{ asset('/assets/img/ranks/rank1.png') }}" alt="Rank 1" /> Quote
Cloudpanda Posted June 6, 2020 Author Report Posted June 6, 2020 Thank you @nickkecooper and @web541 I will give these a try. I appreciate the replies. Quote
Cloudpanda Posted June 6, 2020 Author Report Posted June 6, 2020 After following what you all advised, I can get to the image by going directly to the link in my browser and the image shows up. I placed this url in the image link field. Does anyone know where it is suppose to show up? I would think profile page, or the page that lists all the pilots and you can click their profiles, but nothing. Any ideas about that? Quote
web541 Posted June 7, 2020 Report Posted June 7, 2020 No I don't think it's been put anywhere yet, but you can put that code anywhere you want (you could try /layouts/SKIN/profile/index.blade.php and search for "Rank" and put it nearby). <img src="{{ asset('/assets/img/ranks/rank1.png') }}" alt="Rank 1" /> or <img src="{{ public_asset('/assets/img/ranks/rank1.png') }}" alt="Rank 1" /> Quote
Cloudpanda Posted June 7, 2020 Author Report Posted June 7, 2020 1 hour ago, web541 said: No I don't think it's been put anywhere yet, but you can put that code anywhere you want (you could try /layouts/SKIN/profile/index.blade.php and search for "Rank" and put it nearby). <img src="{{ asset('/assets/img/ranks/rank1.png') }}" alt="Rank 1" /> or <img src="{{ public_asset('/assets/img/ranks/rank1.png') }}" alt="Rank 1" /> Alright, I will try that and let you know. Thank you for help. Quote
Administrators Nabeel Posted June 8, 2020 Administrators Report Posted June 8, 2020 It's just a placeholder for now. If you're looping through the rank somewhere, you would use something like <img src="{{ public_asset($rank->image_link) }}" alt="{{ $rank->name }}" /> Quote
Cloudpanda Posted June 8, 2020 Author Report Posted June 8, 2020 5 hours ago, Nabeel said: It's just a placeholder for now. If you're looping through the rank somewhere, you would use something like <img src="{{ public_asset($rank->image_link) }}" alt="{{ $rank->name }}" /> Thank you for that. Looking forward to trying. Quote
in2tech Posted September 22, 2020 Report Posted September 22, 2020 On 6/8/2020 at 6:39 AM, Nabeel said: It's just a placeholder for now. If you're looping through the rank somewhere, you would use something like <img src="{{ public_asset($rank->image_link) }}" alt="{{ $rank->name }}" /> Anyone tried this yet, to see if it works? It's been awhile since I have this stuff, might have to relearn Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.