Thanks davewest for your guidance! Will try that,
Robert
Thanks davewest for your guidance! Will try that,
Robert
Zencart 1.5.6
Feature request: Add the ability to upload .webp images
Bug: Turning off "Display Submit Link" does not remove the submit link button from the links page.
thanks!
Did you add the extension to maximum Values, Allowed Filename Extensions for uploading... manage the size in settings! Link Manager does not manage uploads, ZC does.
Turning off/on submit is working for me so I'll need more hints ... I'm up to version 4 so I missed uploading somewhere... well check..
Dave
Always forward thinking... Lost my mind!
Thanks for the pointer, Ive added webp to the list. Odd tho, Ive been able to upload webp images with zc, but with link manager was the 1st time it threw an error. Oh well.
Im using version 3.7.0 of links manager.
Here's a link to a live example: http://mangatakeout.com/index.php?lP...ain_page=links
The submit link is removed from the sidebox, but on the links page, its there as a button.
thanks!
Looking at the rendered html.. it's completely different then what it should be.. check to see if the page was fully uploaded and not changed.
The button code is
Code:<br class="clearBoth" /> <?php if (BOX_DISPLAY_SUBMIT_LINK == 'true') { ?> <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_LINKS_SUBMIT, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_SUBMIT_LINK, BUTTON_SUBMIT_LINK_ALT) . '</a>'; ?></div> <?php }else{ ?> <h2 class="buttonRow forward">Sorry, We are not taking Links at this time.</h2> <?php } ?> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) .'</a>'; ?></div> <br class="clearBoth" />
Dave
Always forward thinking... Lost my mind!
Okay, the problem is in tpl_links_default.php line 118. It has the following code:
swapping the above code for the code you supplied fixed my problem. For those clicking on my live link listed previously, you will not see the problem since its now been fixed.Code:<br class="clearBoth" /> <div class="forward"><?php echo '<a href="' . zen_href_link(FILENAME_LINKS_SUBMIT, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_SUBMIT_LINK, BUTTON_SUBMIT_LINK_ALT) . '</a>'; ?></div> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) .'</a>'; ?></div> <br class="clearBoth" />
Is this plugin hosted on github? Do you want me to submit the edited tpl_links_default.php for merging?
Last edited by MrSpiffy; 17 Apr 2020 at 10:18 PM.
I did find some issues between my code and what was uploaded... So I redesigned it all... just sent in version 4 based on PHP 7.3 to 7.3.7 and ZC 1.5.6 to 1.5.7
As before, if you don't have a approved link, the sidebox well not get displayed so I added one back to my site in the installer for that reason, but you don't need to keep it.
Dave
Always forward thinking... Lost my mind!
Anyone using this with 1.5.7c?
Bookmarks