4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2018, 07:28:39 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Links standardmäßig mit title="Linktext" in a href
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Links standardmäßig mit title="Linktext" in a href  (Read 5918 times)
bergblume
Sr. Member
****
Offline Offline

Posts: 463

Thank You
-Given: 37
-Receive: 11

on to the top!


View Profile
« on: April 20, 2013, 11:04:26 AM »

hallo zusammen,
wie schaffe ich es, dass alle links in 4images standardmäßig auch innerhalb des a href ein title="Linktext" mit sich führen?
d.h. wenn ich mit dem mauszeiger z.B. über den Link "Kategorie 1" fahre, wird auch "Kategorie 1" angezeigt.
danke euch!
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 896

Vienna


View Profile WWW
« Reply #1 on: April 20, 2013, 07:52:43 PM »

Hi!

suche in der includes/functions.php:
1
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a>";
ersetze es mit:
1
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\"  title=\"".format_text($cat_cache[$subcat_id]['cat_name'], 2)." \"> ".format_text($cat_cache[$subcat_id]['cat_name'], 2)." </a>";
suche in der category_bit.html:
1
<a href="{cat_url}" class="maincat">{cat_name} </a>&nbsp;({num_images})
ersetze es mit:
1
<a href="{cat_url}" class="maincat" title="{cat_name}">{cat_name} </a>&nbsp;({num_images})

mfg Andi

Follow members gave a thank to your post:
bergblume, Jan-Lukas

For this post, 2 members gave a thank you!
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
bergblume
Sr. Member
****
Offline Offline

Posts: 463

Thank You
-Given: 37
-Receive: 11

on to the top!


View Profile
« Reply #2 on: April 21, 2013, 10:14:27 AM »

guten morgen andi!
super, vielen vielen dank!
wie muss ich denn noch die functions.php abändern, damit auch die "details-links" entsprechend auch den title-linktext erhalten?
Danke dir,
bergblume
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 896

Vienna


View Profile WWW
« Reply #3 on: April 21, 2013, 04:39:58 PM »

weiß jetzt nicht ob du das meinst:
suche in der details.html:
1
<a href="{prev_image_url}">
ersetze es mit:
1
<a href="{prev_image_url}" title="{prev_image_name}">
suche:
1
<a href="{next_image_url}">
ersetze es mit:
1
<a href="{next_image_url}" title="{next_image_name}">

mfg Andi

Follow members gave a thank to your post:
bergblume, Jan-Lukas

For this post, 2 members gave a thank you!
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
Jan-Lukas
Addicted member
******
Offline Offline

Posts: 1278

Thank You
-Given: 153
-Receive: 48


View Profile WWW
« Reply #4 on: April 21, 2013, 07:13:43 PM »

Kann man praktisch überall anwenden

z.B. (evtl. anpassen) in der thumbnail_bit.html
1
<li>Serie : <a href="{cat_url}"title="{image_serie}">{image_serie}</a></li>

details.html
1
<td valign="top" class="row2"><a href="{cat_url}"title="{image_serie}">{image_serie}</a></td>

Danke Andy
Logged

Danke Harald



Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 896

Vienna


View Profile WWW
« Reply #5 on: April 21, 2013, 09:09:46 PM »

Kann man praktisch überall anwenden
..
Stimmt, z.b. könnte man auch in der categories.php den upload button, und in der functions.php auch den postcard on/off, download on/off und den lightbox on/off button einen "title" verpassen.
Das wäre dann wieder ein kleiner Schritt richtung Valides HTML b.z.w Barrierefreiheit.

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
bergblume
Sr. Member
****
Offline Offline

Posts: 463

Thank You
-Given: 37
-Receive: 11

on to the top!


View Profile
« Reply #6 on: April 22, 2013, 03:27:26 PM »

danke dir, Andi.
mir ging es auch um die Anpassung der Details-Link bei den letzten Kommentaren auf der Startseite (MOD Last Comments)
hierfür musste ich in der index.php diese Zeilen anpassen:

Quote  [Expand]
    "comment_image" => ($view_image) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?image_id=".$row['image_id'])."\" title=\"".$row['image_name']."\">".$thumb."</a>" : $thumb,
    "comment_guest" => ($row['comment_user_id'] == GUEST && !empty($row['guest_user_name'])) ? $lang['userlevel_guest'] : "",
    "comment_image_name" => ($view_image) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$row['image_id'])."\" title=\"".$row['image_name']."\">".stripslashes($row['image_name'])."</a>" : stripslashes($row['image_name']),

(Für diejenigen die es auch machen wollen und die es interessiert)
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.053 seconds with 23 queries.