PDA

View Full Version : Directory name different from anchor text


FranceFan
10-22-2005, 01:59 PM
The phpLD SW asks for the directory name, and then inserts it into the anchor text. This is a problem for me, as I have a "worldwide property" directory as part of my "French property" site. If I call the directory "worldwide property" then the anchor text doesn't make sense. If I call the directory "French property" I get the anchor text I want, but the directory name doesn't make sense?

Is there a possible work-around for this? Can I manually change the anchor text (for the LINK SUBMIT page and also for the link checker) to get around this?

If not, would you consider a modification to the text to allow for the directory name to be separate from the anchor text?

Best regards,
Doug Stewart

Ap0s7le
10-22-2005, 07:27 PM
Open up submit.tpl and change it there. As long as the domain is the same it shouldn't be a problem.

-Casey

FranceFan
10-22-2005, 08:39 PM
Casey

Thank you for the response. Unfortunately, I can't see the directory name in submit.tpl

Perhaps submit.tpl is referencing a variable where the value is stored. Could you confirm the file that I need to change?

Also, this would address the issue on the link submit portion. However, I would also need (I assume) to make a similar change in the link validation SW.

Regards,
Doug

FranceFan
10-29-2005, 01:17 AM
Despite Casey's kind response, I'm still unsure how to have link text which is different from the directory name (both are taken from the site name field). Can anyone offer further explanation how this might be done or tell me that I'm trying to do something impossible?

Doug

vkaryl
10-29-2005, 01:20 AM
Have you tried changing the "Directory Home" item in /lang/en.php? I don't KNOW that this will help your situation, but it's something various people tend to "forget" to tell you about to change....

[In my installs, this is on about line 283 in /lang/en.php....]

Tim_Myth
10-29-2005, 03:07 AM
The line in the submit.tpl file you need to change is:
Content visible to registered users only.
remove the {$smarty.const.SITE_NAME} tag and enter the site name you want. That should do it for you.

FranceFan
10-29-2005, 10:03 AM
Tim

Thank you for the file name. This should do it for the link submit page. However, I believe that I also need to make a similar change in a link validation file so that the link validation will use the same text as the link submit. Do you know the file name for the appropriate link validation file?

Vkaryl: Thanks for your response as well, although I suspect that I will be going with Tim's solution as soon as I get the other file name.

vkaryl
10-29-2005, 04:11 PM
Yes, looks like Tim's on the right track there! Good luck with it....

Tim_Myth
10-29-2005, 06:59 PM
Does phpld even check for the anchor test and description? I was under the impression that it only looked for the link. You can easily test this by adding a link to your site in this forum but use diffferent anchor text. For example, in your response to a message type something like (but take out all the extra spaces):

Content visible to registered users only.

Then use this thread's url as the Recip Link URL in your submit form and try submitting a link to phpld in your directory. You can always remove the link if it works. If it doesn't work, then, phpld might look for the description text or anchor text (or both).[/url]

FranceFan
11-02-2005, 01:28 AM
Tim

phpLD does check anchor text. If the text is not the same, the link validation fails.

Doug