Author Topic: Remove ./data and replace it with full url  (Read 7846 times)

0 Members and 1 Guest are viewing this topic.

Offline praveen

  • Newbie
  • *
  • Posts: 36
    • View Profile
Remove ./data and replace it with full url
« 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.

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Remove ./data and replace it with full url
« Reply #1 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
« Last Edit: August 18, 2017, 02:12:33 PM by nobby »

Offline praveen

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Remove ./data and replace it with full url
« Reply #2 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

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Remove ./data and replace it with full url
« Reply #3 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

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Remove ./data and replace it with full url
« Reply #4 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.


Danke Harald




Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Remove ./data and replace it with full url
« Reply #5 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
« Last Edit: August 21, 2017, 09:14:11 PM by nobby »

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Remove ./data and replace it with full url
« Reply #6 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
Danke Harald




Offline praveen

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Remove ./data and replace it with full url
« Reply #7 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

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Remove ./data and replace it with full url
« Reply #8 on: August 26, 2017, 06:05:17 PM »
Try it like this: {template_url} / data
But only for the template.

PHP No.
« Last Edit: August 26, 2017, 06:18:46 PM by nobby »