Author Topic: Show dynamic link of image in details.html  (Read 14888 times)

0 Members and 1 Guest are viewing this topic.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Show dynamic link of image in details.html
« on: January 16, 2006, 04:49:20 PM »
Hello everybody :!:

I want to show the complete link of the file in details.html

exactly like this - without session ID
Code: [Select]
http://www.snuup.de/lite/details.php?image_id=1030
Please anybody can help :|

Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Show dynamic link of image in details.html
« Reply #1 on: January 16, 2006, 07:17:57 PM »
zum image oder zur detail ansicht?

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Show dynamic link of image in details.html
« Reply #2 on: January 16, 2006, 07:19:37 PM »
Oh sorry, zur Detail-Ansicht  :)

Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Show dynamic link of image in details.html
« Reply #3 on: January 16, 2006, 07:23:22 PM »
steht doch oben in der browser adresszeile, reicht das nicht? *g*

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Show dynamic link of image in details.html
« Reply #4 on: January 16, 2006, 07:25:56 PM »
Da steht das ja auch ab und zu mit der Session ID, wenn nun ein User den Link kopiert.... dann ist die SID auch dabei :(

Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Show dynamic link of image in details.html
« Reply #5 on: January 16, 2006, 07:27:56 PM »
dafür gibt es aber so weit ich weiss ein mod welcher das unterbindet...

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Show dynamic link of image in details.html
« Reply #6 on: January 16, 2006, 07:33:09 PM »
Ja, da hab ich auch schon gewühlt :roll:

Wollte diesen Link gleich neben den Dateinamen (bei der Beschreibung) in der Detail-Ansicht haben, so könnten User gleich den "bereinigten" Link kopieren. Das wäre auch cool wenn man nur einen Button klicken muss, der den Link in die Zwischenablage kopiert *übertreib*

Mein Problem ist nur, das dieser ja dynamisch generiert werden muss.

Nochmal zur session ID, nicht jeder User weiß, bis wohin er die Adresse kopieren müsste.

Aber es wäre durchaus eine Idee diesen MOD aufzusuchen

THX  :mrgreen:


Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Show dynamic link of image in details.html
« Reply #7 on: January 16, 2006, 07:41:26 PM »

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Show dynamic link of image in details.html
« Reply #8 on: January 16, 2006, 07:43:24 PM »
Ich schaue gleich nach, ob ich diesen MOD schon eingebaut habe. Ich weiss es nicht :|

Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Show dynamic link of image in details.html
« Reply #9 on: January 16, 2006, 07:44:18 PM »
man kann die session id auch komplett unterbinden, nur dann haben user mit deaktivierten cookies ein problem... (o:

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Show dynamic link of image in details.html
« Reply #10 on: January 16, 2006, 07:47:00 PM »
Na ja, ich werde mal sehen was ich mache.

Da war ja auch mal was mit .htaccess und Search-Engine-Friendly URLs...

Muss jetzt erst für eine Klausur lernen die Morgen ansteht, habe nicht mit so einer prompten Antwort gerechnet!

Vielen Dank noch mal, ich hoffe das ich Morgen mehr Zeit habe :wink:

Project offline

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Show dynamic link of image in details.html
« Reply #11 on: January 16, 2006, 07:48:37 PM »
Da war ja auch mal was mit .htaccess und Search-Engine-Friendly URLs...

Wäre für mich persönlich die beste Lösung...

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Show dynamic link of image in details.html
« Reply #12 on: January 16, 2006, 08:17:08 PM »
I want to show the complete link of the file in details.html
exactly like this - without session ID
Code: [Select]
http://www.snuup.de/lite/details.php?image_id=1030

Die komplette Adresse der Detailseite ohne sessionID und nicht als Link in details.html:

1. finde in includes/functions.php folgende Zeile :
Code: [Select]
"image_id" => $image_row['image_id'],
und füge dahinter folgende Codezeile ein :
Code: [Select]
"image_details_url" => "http://www.snuup.de/lite/details.php?image_id=".$image_row['image_id']."",

2. nun kannst du in deiner details.html folgenden Tag einsetzen :
Code: [Select]
{image_details_url}
der dir dann jeweils die o.g. gewünschte Zeile ohne sessionID auf der Detailseite erzeugt ...

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Show dynamic link of image in details.html
« Reply #13 on: January 17, 2006, 01:18:04 AM »
Or even simplier: in details.html template add:
Code: [Select]
http://www.snuup.de/lite/details.php?image_id={image_id}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Show dynamic link of image in details.html
« Reply #14 on: January 17, 2006, 01:26:30 AM »
Or even simplier: in details.html template add ...

... you are absolutly right ... but the simple solutions are often not easy to find ...  :mrgreen:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...