John Paul Posted December 9, 2022 Report Share Posted December 9, 2022 (edited) Hi all. In template21 admin - template settings - feature thumbnail 4: I've add this instead of just the image: <a href="getperson.php?peronID=I8&tree=tree1"; <img src="http://localhost/tng/templates/template121/img/Helen1943_4x3.jpg" style="width: 400px; height:300px" title="Helen Mary Zikorus posing in 1943, age 20" alt="Helen Mary Zikorus"></a> What I'm trying to do is when you mouse over the image the image title and alt pop up AND then be able to click on the image and go to the persons page. Am I on the right track with the code above? Right now I can't get it to work. I've been testing this on my localhost, but will add it to the live site so you can see what the deal is. What's happening with this code is a Not Found error. I've tried different paths, but the image can't be found. If I use just the img/Helen1943_4x3.jpg image is viewable but no popup or clickable. Any suggestions, thoughts or advise will be greatly appreciated. I'm going to look at templateconfig.php and see if you can add that code in there.....after lunch! Edited December 9, 2022 by John Paul Quote Link to comment Share on other sites More sharing options...
bhemph Posted December 9, 2022 Report Share Posted December 9, 2022 John Paul, The first thing I see there is that you are missing closing the link tag and have an extraneous semicolon instead. <a href="getperson.php?peronID=I8&tree=tree1"><img src="img/Helen1943_4x3.jpg" style="width: 400px; height:300px" title="Helen Mary Zikorus posing in 1943, age 20" alt="Helen Mary Zikorus"></a> this will work. Brent Quote Link to comment Share on other sites More sharing options...
John Paul Posted December 10, 2022 Author Report Share Posted December 10, 2022 9 hours ago, bhemph said: John Paul, The first thing I see there is that you are missing closing the link tag and have an extraneous semicolon instead. <a href="getperson.php?peronID=I8&tree=tree1"><img src="img/Helen1943_4x3.jpg" style="width: 400px; height:300px" title="Helen Mary Zikorus posing in 1943, age 20" alt="Helen Mary Zikorus"></a> this will work. Brent Thanks Brent I appreciate your help noticing my inattention to detail. I also noticed I forgot the s in personID. I tried the code and clicked preview and got this error: Forbidden I saved it anyway and this is on the front page: Looking at the page inspector, the coding looks all messed up. I'll it where it is on the live site so you can see it for yourself, while I fiddle with on my localhost. Quote Link to comment Share on other sites More sharing options...
John Paul Posted December 10, 2022 Author Report Share Posted December 10, 2022 I guess I should let you know, the template I'm using, I created a new template from parts of t21, t19 and other sources. The template is named template121. I've attached the relavent part of my templateconfig.php for your info. Also if you need admin access to my live site, let me know and I'll pm you with your login credentials. templateconfigPART121.txt Quote Link to comment Share on other sites More sharing options...
John Paul Posted December 10, 2022 Author Report Share Posted December 10, 2022 ok, after a bunch of trying different ways to do this, I've come to the assumption that you just can't use the Feature Thumbnail 4 field to do what I want, SO I used the Feature Paragraph 4 text box for the coding I want and left the Feature Thumbnail 4 and Feature Link 4 fields empty. It's looking and acting like I want EXCEPT for that tiny box top left of the 400x300 photo of Helen.... I thought that tiny box was coming from templateconfig.php but those items are blank: $tmp['121_featurethumb-4'] = ""; $tmp['121_featurelink-4'] = ""; If anyone has a thought on that I'd love to hear it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.