That makes sense. Thank you Clyde
That makes sense. Thank you Clyde
Hi Clyde,
I'm still using your mod with no problems, but I have something you or your readers may be interested in adding.
I wanted to do this ever seance I installed my link trade page on my classified site. That one use only web page thumbnails for the link image and some other interesting things. The easiest one to bring over was the web page thumbnail. Some easy edits and it works! I didn't take time to set up a better way of controlling the use of thumbnails, but I did set it up so that having a default image in Configuration ->Links Manager ->Default Link Image, will use the default and not the thumbnail shot. So to turn this on, leave the default image blank!
In includes\modules\YOUR_TEMPLATE\link_listing.php find line 82
and change it to this oneCode:$lc_text = TABLE_HEADING_LINKS_IMAGE;
next in includes\modules\pages\links_submit\header_php.php find line 91Code://$lc_text = TABLE_HEADING_LINKS_IMAGE; $lc_text = '<div valign="top" class="thumbnail"><img src="http://open.thumbshots.org/image.pxf?url=' .zen_get_links_url($listing_query->fields['links_id']).'" style="vertical-align: middle;" border="1" width="120" height="90" alt="Thumbnail"> </div>';
and change it to this oneCode:}else { // Use default image if form field is left blank
next in includes\languages\english\extra_definitions\YOUR_TEMPLATE\links_manager_defines .php add this line to the bottom.Code:}else { // Use default image if form field is left blank //$links_image_name = DEFAULT_LINK_IMAGE; if (DEFAULT_LINK_IMAGE !='') { $links_image_name = LINK_IMAGE_DIRECTORY . DEFAULT_LINK_IMAGE; $db->Execute("update " . TABLE_LINKS . " set links_image_url = '" . $links_image_name . "' where links_id = '" . (int)$links_id . "'"); $messageStack->add_session('header', WARNING_DEFAULT_FILE_UPLOADED, 'success'); }else { // no default image, use thumbnail of site $links_image_name = ''; $db->Execute("update " . TABLE_LINKS . " set links_image_url = '" . $links_image_name . "' where links_id = '" . (int)$links_id . "'"); $messageStack->add_session('header', DEFAULT_THUMBNAIL, 'success'); }
And lastly, you need to register with thumbshots.org it's free, and you need to place a link back to them on your site. I did mine in the includes\languages\english\html_includes\YOUR_TEMPLATE\define_links.php page.Code:define('DEFAULT_THUMBNAIL', 'Your web site Thumbnail will be used for this link.');
That's all there was to it, if they upload a image, no thumbnail, if you have a default image, no thumbnail, no image, thumbnail is used. In admin, if you edit the submitted link and add you default image there (links_image/links_default.jpg), then that will turn off thumbnails for that link. Same way, deleting the image link will turn on the thumbnail shot.![]()
Dave
Always forward thinking... Lost my mind!
I am excited to get this mod working. Thank you. The sql that came
with the download did not work for me, so I found another one that was posted for someone else and thought it was working but
when you look at the box, instead of the word Links it has the whole
('BOX_HEADING_LINK_CATEGORIES', 'Links');
Instead of the view all links it has
('BOX_INFORMATION_VIEW_ALL_LINKS', 'View All Links')
Instead of the submit link it has
'BOX_INFORMATION_LINKS_SUBMIT', 'Submit Link')
When I click on View all links it seems to go to the right page and looks correct.
When I click for the submit page it looks like this:
Use the form below to submit your link. TALKING WALLS reserves the right to change the category or edit your description, if needed.
This content is located in the file at: /languages/english/html_includes/YOUR_TEMPLATE/define_links_submit.php
You can quickly edit this content via Admin->Tools->Define Pages Editor, and select define_links_submit from the pulldown.
Submit A Link
BUTTON_LINK_HELP_ALT
RETURN_REQUIRED_IMAGE_ALTRETURN_REQUIRED_INFORMATIONRETURN_OPTIONAL_IMAGE_ALTRET URN_OPTIONAL_INFORMATION
Your Contact Information
1. ENTRY_LINKS_CONTACT_NAMERETURN_REQUIRED_IMAGE_ALT
2. Email Address:RETURN_REQUIRED_IMAGE_ALT
CATEGORY_WEBSITE
1. ENTRY_LINKS_TITLERETURN_REQUIRED_IMAGE_ALT
2. ENTRY_LINKS_URLRETURN_REQUIRED_IMAGE_ALT
3. ENTRY_LINKS_CATEGORY_INFO ENTRY_LINKS_CATEGORYRETURN_REQUIRED_IMAGE_ALT
4. ENTRY_LINKS_DESCRIPTION_INFO ENTRY_LINKS_DESCRIPTIONRETURN_REQUIRED_IMAGE_ALT
5. ENTRY_LINKS_BANNER_INFO ENTRY_LINKS_BANNERRETURN_OPTIONAL_IMAGE_ALT
CATEGORY_RECIPROCAL
1. ENTRY_LINKS_RECIPROCAL_URLRETURN_REQUIRED_IMAGE_ALT
Your help would be greatly appreciated![]()
Sounds like you didn't upload ALL of the required language files:
don't forget to rename the YOUR_TEMPLATE folder to match the name of the custom template you are using for your site.
includes/languages/english/extra_definitions/YOUR_TEMPLATE/links_manager_defines.php
includes/languages/english/YOUR_TEMPLATE/links.php
includes/languages/english/YOUR_TEMPLATE/links_submit.php
includes/languages/english/YOUR_TEMPLATE/popup_links_help.php
includes/languages/english/html_includes/define_links.php
includes/languages/english/html_includes/define_links_submit.php
includes/languages/english/html_includes/YOUR_TEMPLATE/define_links.php
includes/languages/english/html_includes/YOUR_TEMPLATE/define_links_submit.php
you are so right!Hopefully I'll figure the rest out...but probably not. You guys are always so fast and so helpful...thank you.
Well, I'm back.
I can't find any links manager in my admin...configuration.
I've searched trying to find the answer. Perhaps I'm not inputting
the right search, but I didn't find anything.
I've tripple checked everything as far as uploading the files into the
admin folders.
What am I missing?