Jump to content

Image Links


Cloudpanda
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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" />

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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" />

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 months later...
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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...