Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 5images

Pages: [1]
1
Mods & Plugins (Requests & Discussions) / wordwrap and substr
« on: May 01, 2006, 01:57:13 AM »
I'd like to integrate two things into the display of the image_name and image_description on the detail view:

1) cutting the string and adding dots like this:
Code: [Select]
$max = 55;
if (strlen($abc) > $max)
{
$abc = substr($abc,0,52) . "...";
}

2) break long words to avoid horizontal expansion of the table (just for the case a user enters a long url):
Code: [Select]
$abc = wordwrap($abc, 45, " ", 1);


The question: Where do I have to edit the code? I can't figure out the right name for the variales (abc in the example)

Thank you in advance
Juergen


2
Perfect!
Thanks!!

3
Of course it's clickable like this: http://www.test.de
(in my last post i just added the spaces to avoid a link)

I' want to avoid that a url is displayed as link (no link-funktion, no underline)
this will show the url but it is not clickable,
But where can i edit php-code to avoid it.

Thanks

4
Thanks, all this settings are deactivated.

But a spammer can still use ' h t t p : / / w w w . t e s t . d e '

This will work out for him in the headline/subject area and in the comment area.

How can I avoid it?

All the best
Juergen

5
1.7.1 (sorry for delay)

6
I want to avoid HTML and bb code at image description and comment input (espacially the placing of links to other websites)

Any solution?
(Have not found the topic at this new forum)

Thank you in advance
Juergen

7
Is it possible to integrate the latest pic on a different homepage (same server) without PHP?

I'm searching for Javascript or SSI solution (a the moment we do it with an iframe and PHP, but that's not the best solution)

Thank you in advance
Juergen

8
not working HOW?

Hi Vano,
I think he means, that the error page is shown without code out of the header- and footer-template, if you try to log in with an invalid username- and password-kombination. header- and footer-template is not included, so the error page appears incomplete. this ist a result of this mod (first post in this thread), if you activate the old code at page_header.php again, the page is displayed correct again.

Any solutions?
All the best
Juergen

9
Da der Provider des bisherigen Servers im gebuchten Tarif keine externen Zugriffe auf die Datenbank zulässt, hat sich diese Lösung erledigt.

Das Problem war folgendes: Unsere Website läuft beim Provider S+P, einen zweiten Server hatten wir bei 1&1 gebucht. Da 4Images (1.7) vom zweiten Server in einen Frame der eigentlichen Website geladen wird, hatten wir ein Cookie-Problem. Haupsächlich User mit Internet Explorer konnten sich nicht einloggen oder wurden unfreiwillig wieder ausgeloggt (kein Upload möglich), da die Cookies von der zweiten Domain als unsichere Drittanbeiter-Cookies angesehen wurden. User hätten die Domain des zweiten Servers manuell als sichere Site 'immer zulassen' müssen (= unzumutbar).

Wir haben das Problem jetzt gelöst, indem wir die gesamte Installation (wie oben von Jan beschrieben) per FTP auf den Hauptserver kopiert haben, und anschließend die Datenbanktabellen per phpMyAdmin exportiert und dann in einer Datenbank des Haupservers per SQL-Import eingefügt haben.

Ergebnis: Alles läuft ohne Probleme (auch wenn wir so den Traffic wieder auf dem Haupserver haben, den wir mit dem zweiten Server eigentlich entlassten wollten)

Grüße
Jürgen

10
Welche Änderungen müssen ausgeführt werden, wenn die Datenbank(tabellen) auf dem bisherigen Server bleiben und nur die installierten Dateien (php, etc) auf einen anderen Server übertragen werden sollen?

(Die bisher verwendete MySQL-Datenbank wird also unter der alten Domain weiter genutzt, die Programmfiles liegen auf einem neuen Server mit neuer Domain)

Danke + Grüße
Jürgen

Pages: [1]