Jump to content
TNG Community

template21 settings


John Paul

Recommended Posts

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 by John Paul
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:Screenshot 2022-12-10 at 03-31-06 403 Forbidden.pngScreenshot 2022-12-10 at 03-46-08 Jones and Hyman Genealogy.png

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...