Re: Link Manager 3.0 release
Hi,
Thanks for your suggestion. Are you saying that I should work out the sort order of links by displaying the newest pending links first on the admin page? I went to the page you told me to look at. Is this what I am supposed to do? Please advise.
open admin/links.php
find this line of code (around line 556)
Code:
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_status from " . TABLE_LINKS . " l left join " . TABLE_LINKS_DESCRIPTION . " ld on l.links_id = ld.links_id where ld.language_id = '" . $_SESSION['languages_id'] . "'" . $search . " order by ld.links_title, l.links_url";
and replace with this line
Code:
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_status from " . TABLE_LINKS . " l left join " . TABLE_LINKS_DESCRIPTION . " ld on l.links_id = ld.links_id where ld.language_id = '" . $_SESSION['languages_id'] . "'" . $search . " order by l.links_date_added DESC, ld.links_title, l.links_url";
##############################___
Re: Link Manager 3.0 release
Quote:
Originally Posted by
dealbyethan.com
Hi,
Thanks for your suggestion. Are you saying that I should work out the sort order of links by displaying the newest pending links first on the admin page? I went to the page you told me to look at. Is this what I am supposed to do? Please advise.
open admin/links.php
find this line of code (around line 556)
Code:
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_status from " . TABLE_LINKS . " l left join " . TABLE_LINKS_DESCRIPTION . " ld on l.links_id = ld.links_id where ld.language_id = '" . $_SESSION['languages_id'] . "'" . $search . " order by ld.links_title, l.links_url";
and replace with this line
Code:
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_status from " . TABLE_LINKS . " l left join " . TABLE_LINKS_DESCRIPTION . " ld on l.links_id = ld.links_id where ld.language_id = '" . $_SESSION['languages_id'] . "'" . $search . " order by l.links_date_added DESC, ld.links_title, l.links_url";
##############################___
yes, thats what I did and it works great
Re: Link Manager 3.0 release
Hi, I added the links manager to my site, thank you for this add on! I want to take the box off my page though, and just have "View All Links" without "submit link." I would also like to change the "view all links" text to "resources." I cannot figure out how to do this! Can you help?
Thanks!
www.theshoppingboutique.com
Re: Link Manager 3.0 release
Quote:
Originally Posted by
abcoombe
Hi, I added the links manager to my site, thank you for this add on! I want to take the box off my page though, and just have "View All Links" without "submit link." I would also like to change the "view all links" text to "resources." I cannot figure out how to do this! Can you help?
Thanks!
www.theshoppingboutique.com
For part 1 try this fix:
Attachment 4358
Unzip the file:
run this sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches)
copy-and-paste the code into the query field and press 'Send'.
rename the YOUR_TEMPLATE folder to match the name of your custom template
upload the entire includes folder to your server.
In admin -> configuration -> links manager
Links Box - Display Links in Sidebox (set to false)
Links Box - Display Submit Link (set to false)
------
For part 2:
open includes/languages/english/extra_definitions/YOUR_TEMPLATE/links_manager_defines.php
find the following:
define('BOX_INFORMATION_VIEW_ALL_LINKS', 'View All Links');
Change the highlighted portion to whatever you need.
Save the file and upload to your server.
Re: Link Manager 3.0 release
Clyde,
Thank you so much for your help. It worked perfectly, except the "Resources" link is now way below my other items in my information column. Can I change that?
www.theshoppingboutique.com
Re: Link Manager 3.0 release
Quote:
Originally Posted by
abcoombe
Clyde,
Thank you so much for your help. It worked perfectly, except the "Resources" link is now way below my other items in my information column. Can I change that?
www.theshoppingboutique.com
It sits in its own sidebox and you've modified that sidebox so that the heading has been eliminated. (That's why it appears as it does.)
Re: Link Manager 3.0 release
Okay, apparently I'm confused about the difference between a sidebox and a link that appears in my information list. Is there a way to alter what I have to make it part of that list, or do I need to be using something different? Sorry I'm being difficult, I'm in a little over my head...
Thanks!
Re: Link Manager 3.0 release
Quote:
Originally Posted by
abcoombe
Okay, apparently I'm confused about the difference between a sidebox and a link that appears in my information list. Is there a way to alter what I have to make it part of that list, or do I need to be using something different? Sorry I'm being difficult, I'm in a little over my head...
Thanks!
If you want just a link in your information box then you need to do the following:
open includes/modules/sideboxes/YOUR_TEMPLATE/information.php
add the following where you wish the link to appear
$information[] = '<a href="' . zen_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_VIEW_ALL_LINKS . '</a>';
Save the file and upload to your server.
Re: Link Manager 3.0 release
Thank you so much Clyde, I appreciate your help. It's amazing to me that you just know where to find everything!
If you are in the Springs, we are only about 20 minutes north of you! I'm in Castle Rock today. I'm originally from the Springs, so it's nice to see it on here!
Re: Link Manager 3.0 release
Quote:
Originally Posted by
abcoombe
Thank you so much Clyde, I appreciate your help. It's amazing to me that you just know where to find everything!
If you are in the Springs, we are only about 20 minutes north of you! I'm in Castle Rock today. I'm originally from the Springs, so it's nice to see it on here!
Glad you got it sorted.
Working with Zen Cart and answering questions on the forum will do that.
There a few coloradians on the forum.