4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: praveen on August 18, 2017, 07:34:39 AM

Title: Remove ./data and replace it with full url
Post by: praveen on August 18, 2017, 07:34:39 AM
Hi,

How i can replace <img src="./data... with <img src="http://www.site.com/data

Thanks.
Title: Re: Remove ./data and replace it with full url
Post by: nobby on August 18, 2017, 10:37:39 AM
Hello,

For example.

HomePages Link
Code: [Select]
<a href="http://www.site.com/data">HomePage</a>
Picture Link
Code: [Select]
<img src="http://www.site.com/data" alt="Picture" />

nobby
Title: Re: Remove ./data and replace it with full url
Post by: praveen on August 19, 2017, 08:59:19 AM
Hi,

Thank you. I did not mean that.

In my gallery if u look at the source all the images have <img src="./data/media/122/image.jpg" ....

I want this to be changed to

<img src="http://www.mysite.com/data/media/122/image.jpg" ....

or

<img src="/data/media/122/image.jpg" ....


I do not want that "." at the front
Title: Re: Remove ./data and replace it with full url
Post by: nobby on August 19, 2017, 11:17:44 AM
Hello,

this is part of the directory structure. It can also look like this ././ or similar.

Then you have to adjust it manually in your template.

I have never heard of anyone at one . Upset.

nobby
Title: Re: Remove ./data and replace it with full url
Post by: Jan-Lukas on August 20, 2017, 11:30:57 PM
Das kannst du nicht so ohne weiteres ändern, das sind die relative Pfade zum Verzeichnis


    ./ = bleibe im gleichen Verzeichnis - bei einer Verlinkung im gleichen Verzeichnis bewirkt kein Punkt oder auch kein Punkt und kein Slash das Gleiche
    ../ = gehe ein Verzeichnis höher
    ../../ = gehe zwei Verzeichnisse höher
    ../../../ = gehe drei Verzeichnisse höher, usw.

Wenn es das gleiche Verzeichnis ist, kann man das ./ aus den Skripten rausnehmen, ob es da eine Globale Stelle in den Skripten gibt, ist mir jetzt nicht bekannt.


Title: Re: Remove ./data and replace it with full url
Post by: nobby on August 21, 2017, 08:26:46 AM
Das kannst du nicht so ohne weiteres ändern, das sind die relative Pfade zum Verzeichnis

    ./ = bleibe im gleichen Verzeichnis - bei einer Verlinkung im gleichen Verzeichnis bewirkt kein Punkt oder auch kein Punkt und kein Slash das Gleiche
    ../ = gehe ein Verzeichnis höher
    ../../ = gehe zwei Verzeichnisse höher
    ../../../ = gehe drei Verzeichnisse höher, usw.

Wenn es das gleiche Verzeichnis ist, kann man das ./ aus den Skripten rausnehmen, ob es da eine Globale Stelle in den Skripten gibt, ist mir jetzt nicht bekannt.

Hallo Harald,

doch ändern kann man es, man muss nur dann den genauen Pfad (kompletter Link) zu den einzelnen Bildern angeben.

Ist sehr Mühsam. Und das wegen einem Punkt.

nobby
Title: Re: Remove ./data and replace it with full url
Post by: Jan-Lukas on August 23, 2017, 05:53:59 PM
mein reden, eine Globale Stelle wo man so etwas ändern könnte, wäre schon vom vorteil
z.B. in der Config

LG Harald
Title: Re: Remove ./data and replace it with full url
Post by: praveen on August 26, 2017, 05:39:49 PM
At the template level there isn't any option to change the path of thumbnails.

It always ends up as ./data

I am hoping there is a change to either config.php or functions.php or category.php where we can replace this ./ with ROOT_URL/data
Title: Re: Remove ./data and replace it with full url
Post by: nobby on August 26, 2017, 06:05:17 PM
Try it like this: {template_url} / data
But only for the template.

PHP No.