I was able to successfully run the sql patch but am still receiving the error when I run the update_links_manager.sql. :(
Any suggestions?
Thanks again - Tim
Printable View
Here's a list of files and locations associated with links manager:
admin/link_categories.php
admin/links.php
admin/links_contact.php
admin/includes/boxes/extra_boxes/links_extras_dhtml.php
admin/includes/extra_datafiles/links_manager.php
admin/includes/functions/extra_functions/links_manager.php
admin/includes/languages/english/links.php
admin/includes/languages/english/link_categories.php
admin/includes/languages/english/links_contact.php
admin/includes/languages/english/extra_definitions/links.php
-------
includes/extra_datafiles/links_manager.php
includes/functions/links.php
includes/languages/english/extra_definitions/links_manager_defines.php
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
includes/modules/pages/links
includes/modules/pages/links_submit
includes/modules/pages/popup_links_help
includes/modules/pages/redirect_links
includes/modules/link_listing.php
includes/modules/YOUR_TEMPLATE/link_listing.php
includes/modules/sideboxes/YOUR_TEMPLATE/links_box.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php
includes/templates/YOUR_TEMPLATE/templates/tpl_links_default.php
includes/templates/YOUR_TEMPLATE/templates/tpl_links_submit_default.php
includes/templates/YOUR_TEMPLATE/popup_links_help
includes/templates/YOUR_TEMPLATE/css/links.css
includes/templates/YOUR_TEMPLATE/css/links_submit.css
includes/templates/YOUR_TEMPLATE/buttons/english/button_links_help.gif
includes/templates/YOUR_TEMPLATE/buttons/english/button_link_help.gif
includes/templates/YOUR_TEMPLATE/buttons/english/button_submit_link.gif
Try running this:
Code:ALTER TABLE `links` CHANGE `links_status` `links_status` TINYINT( 1 ) NOT NULL DEFAULT '1';
ALTER TABLE `links_to_link_categories` CHANGE `links_id` `links_id` INT( 11 ) NOT NULL AUTO_INCREMENT;
SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Links Manager'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_LINKS_STATUS';
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;
INSERT INTO configuration_group VALUES (NULL, 'Links Manager', 'Links Display Settings', '1', '1');
SET @configuration_group_id=last_insert_id();
UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;
INSERT INTO `configuration` VALUES (NULL, 'Links Box - Display View All Links', 'BOX_DISPLAY_VIEW_ALL_LINKS', 'true', 'Display View All Links on Links Sidebox', @configuration_group_id, 1, NULL, now(), NULL, 'zen_cfg_select_option(array(NULL, ''true'', ''false''), '), (NULL, 'Links Box - Display Submit Link', 'BOX_DISPLAY_SUBMIT_LINK', 'true', 'Display Submit Link on Sidebox', @configuration_group_id, 2, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Display Description As Link', 'DISPLAY_LINK_DESCRIPTION_AS_LINK', 'false', 'Display the links description as a link', @configuration_group_id, 3, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Enable Click Count', 'ENABLE_LINKS_COUNT', 'true', 'Enable links click count.', @configuration_group_id, 4, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Submit Link - Require Reciprocal Page', 'SUBMIT_LINK_REQUIRE_RECIPROCAL', 'true', 'Require Reciprocal Page on Links Submit', @configuration_group_id, 5, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Display Link Title', 'LINK_LIST_IMAGE', '1', 'Do you want to display the Link Title?', @configuration_group_id, 6, NULL, now(), NULL, NULL), (NULL, 'Display Link Description', 'LINK_LIST_DESCRIPTION', '2', 'Do you want to display the Link Description?', @configuration_group_id, 7, NULL, now(), NULL, NULL), (NULL, 'Display Link Click Count', 'LINK_LIST_COUNT', '3', 'Do you want to display the Link Click Count?', @configuration_group_id, 8, NULL, now(), NULL, NULL), (NULL, 'Link Title Minimum Length', 'ENTRY_LINKS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', @configuration_group_id, 9, NULL, now(), NULL, NULL), (NULL, 'Link URL Minimum Length', 'ENTRY_LINKS_URL_MIN_LENGTH', '10', 'Minimum length of link URL.', @configuration_group_id, 10, NULL, now(), NULL, NULL), (NULL, 'Link Description Minimum Length', 'ENTRY_LINKS_DESCRIPTION_MIN_LENGTH', '10', 'Minimum length of link description.', @configuration_group_id, 11, NULL, now(), NULL, NULL), (NULL, 'Link Contact Name Minimum Length', 'ENTRY_LINKS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @configuration_group_id, 12, NULL, now(), NULL, NULL), (NULL, 'Links Check Phrase', 'LINKS_CHECK_PHRASE', 'yoursitename', 'Phrase to look for, when you perform a link check.', @configuration_group_id, 13, NULL, now(), NULL, NULL), (NULL, 'Links List - Scroll Box Size/Style', 'MAX_LINKS_LIST', '3', 'Number of link category names to be displayed in the scroll box window. Setting this to 1 or 0 will display a dropdown list', @configuration_group_id, 14, NULL, now(), NULL, NULL), (NULL, 'Length of Link Categories Name', 'MAX_DISPLAY_LINK_NAME_LEN', '20', 'Used in links box; maximum length of link category name to display. Longer names will be truncated.', @configuration_group_id, 15, NULL, now(), NULL, NULL), (NULL, 'Select Links Sort Order', 'DEFINE_SORT_ORDER', '1', 'Define the sort order of the links<br />1= Sort by Title<br />2= Sort by Date (Newest to Oldest)<br />3= Sort by number of clicks (highest to lowest)', @configuration_group_id, 16, NULL, now(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3''),'), (NULL, 'Number of Link Categories Per Row - Default is 3', 'MAX_LINK_CATEGORIES_ROW', '3', 'Used to display Link Categories per row.<br />Default is 3', @configuration_group_id, 17, NULL, now(), NULL, NULL), (NULL,'Only registered customers may submit a Link', 'REGISTERED_LINK', 'false', 'Only registered customers may submit a Link', @configuration_group_id, 18, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO `configuration` VALUES (NULL, 'Define Links Status', 'DEFINE_LINKS_STATUS', '1', 'Enable the Defined Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 999, NULL, now(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
Thanks Clyde - That did work. However, I liked the simplicity of the previous version as click counts etc. are not important to me. Really, besides the anticipation and excitement that accompanies upgrading :smartalec: my goal was to eliminate the re-directs. In the end of it I was able to do that and keep my preferred look by using the suggested work-around.
I went the long way around but did eventually get where I wanted to go!
Thanks again - Tim
OK, just to be as much of a pain as possible, ONE more question: The load time of my site is good. The load time of the links manager, specifically the category with the most links, is quite slow. It's not horribly important but is there anyway to positively affect that?
Thanks - Tim
First I would like to thank you for making this module! Now to my problem. I go into my admin/extras and I have 3 links
1) BOX_LINKS
2) BOX_LINK_CATAGORIES
3) BOX_LINK_CONTACT
When I click to see what they are im getting a 404 error "Page not found"
Im confused on where in the admin is all the items I can insert links or whatever and what exactly does link manager do...:blink:
Thanks!
Sorry It wouldnt let me edit so I had to post again. I also cant find how I insert catigories or even where the catogories list is?
Thanks!
Make sure you have ALL the following files located as indicated:
admin/links_contact.php
admin/links_categories.php
admin/links.php
admin/includes/boxes/extra_boxes/links_extra_dhtml.php
admin/includes/extra_datafiles/links_manager.php
admin/includes/functions/extra_functions/links_manager.php
admin/includes/languages/english/links_contact.php
admin/includes/languages/english/links_categories.php
admin/includes/languages/english/links.php
admin/includes/languages/english/extra_definitions/links.php
Wow, I feel stupid! I dont know how I missed a few of those! Anyways it works now :clap: Do you know of a banner manager module or can I incorperate something like that into your links manager? If I can then how would it be done?
Thanks!
Thanks!!!
Clyde, How would I go about adding a section in the area you fill out for submitting a link? I want an area that asks for the link to the persons banner just like and right under the Reciprocal Page Details section.
Thanks!
Clyde, I have no Idea where to even begin with the .php files you suggested altering. I have very minimal experience (Newbie) with .php,xtml,html ect... I tried finding the reciptical area in the php files and copy and pasted the code below it and renamed the recipical areas with name banner image. when I looked at it in the browser is just said there were an error in the file? What exactly do I have to alter to get this to work? Thanks!!
Clyde, I keep getting an Parse error: syntax error, unexpected $end in tpl_links_submit_default.php on line 130. I added this code:
what am I doing wrong? Thanks!Code:</fieldset>
<?php if (SUBMIT_LINK_REQUIRE_RECIPROCAL == 'true') { ?>
<fieldset>
<legend><?php echo CATEGORY_RECIPROCAL; ?></legend>
<label class="inputLabel" for="links_reciprocal_url"><?php echo ENTRY_LINKS_RECIPROCAL_URL; ?></label>
<?php echo zen_draw_input_field('links_reciprocal_url', 'http://') . ' ' . (zen_not_null(ENTRY_LINKS_RECIPROCAL_URL_TEXT) ? '<span class="alert">' . ENTRY_LINKS_RECIPROCAL_URL_TEXT . '</span>': ''); ?>
</fieldset>
<?php if (SUBMIT_LINK_REQUIRE_BANNER == 'true') { ?>
<fieldset>
<legend><?php echo CATEGORY_BANNER; ?></legend>
<label class="inputLabel" for="links_banner_url"><?php echo ENTRY_LINKS_BANNER_URL; ?></label>
<?php echo zen_draw_input_field('links_banner_url', 'http://') . ' ' . (zen_not_null(ENTRY_LINKS_RECIPROCAL_URL_TEXT) ? '<span class="alert">' . ENTRY_LINKS_BANNER_URL_TEXT . '</span>': ''); ?>
</fieldset>
<?php
}
?>
That worked great! Now I only have the new banner section in the submit portion of your module. What other files need modifyed to inclue the "Banner" addition? like when they submit it I dont see the banner entry in the admin section... What file do I have to alter to include the banner entry so I can get thier banner url?
Thanks!
Check list:
Do you have the new field included in the database table?
Catalog Side:
Do you have the sql statements necessary to read and write the information? (includes/modules/pages/links_submit/header_php.php)
Have you included the necessary error catching routines? includes/modules/pages/links_submit/jscript_main.php)
Have you included the necessary code on the submit link page?
Admin Side:
Have you included the necessary sql statements to read/write the information?
(admin/links.php)
Have you added the necessary code to display the new field? (admin/links.php)
Clyde, I just PM'd you.....
I installed link manager, but my ? is how do I adjust the size of the box that holds all the links. It is over running my side box. I have already tried to adjust it. It doesn't help. Here is my link
http://www.TheGoodShepherdStore.com
Clyde
I have updated the mod in my store to 3.2.3, but I have errors in the Stylesheet called 'links_submit.css'
The following css definitions in that stylesheet have images missing:
fieldset#personal
fieldset#contact
fieldset#secure
fieldset#news
fieldset#age
fieldset#write
legend
textarea
I don't see these images included with the mod, could you provide any guidance as to where the missing images might be found?
That section of the css file was actually used with another form I was developing and I just never commented them out.
You can use these images:
Just unzip the file and place them in your includes/templates/YOUR_TEMPLATE/images
Attachment 2550
Thanks oxicottin that did the trick. I have one ? How do I center the links that say
View All Links
Submit Link
They are to the left more than I want them to be.
Thank you Clyde for the answer, but where do you put the code at in my style sheet. I put it in there but it still is not lining up in the center. I have another ? to
Clyde. How does the other person get a Reciprocal link from my site to put on there site. I see it doesn't offer them one. How do I make one to offer the others sites so I can check to see if they have it on there.
Thank you
You can put that code at the bottom of your stylesheet.css
look in admin -> configuration -> links manager
There is an option for your site name
You can check for that name and the Reciprocal link in
admin -> extras -> links
click the check link button it it finds your site name where the Reciprocal link says it is you'll get a "link found" message.
When I put my site name in admin -> configuration -> links manager, do I have to go and submit a link like everybody else does before I can check it. If you don't theres no way of checking it right. And if it finds it what will that tell me. When somebody want to trade links will it give them the Reciprocal link to my web site after they submit theres so I can check for my site or what. I'm still learning all this. I don't mean to be a pain
Thank you again
Maybe I don't understand how and what it is suppose to be for.
They submit a link on your site with a Reciprocal link location
You can check if they have already add your site as a link (admin -> extras -> links -> check link)
if they haven't they you can go to their site and submit your link on their site.
Thank you Clyde for clearing that up for me. I understand now. One more thing and I will let you rest. You said I could add this code to the bottom of my style sheet #linksboxContent a {
text-align: center;
}
But it still does not put my link in the center. Any more suggestions on how to fix this problem. Thank you again
You can change it to
#linksboxContent span {
text-align: center;
}
Now you will have to edit includes/templates/luck_charm/tpl.links_select.php
Find the following lines of code: add the highlighted changes
if (BOX_DISPLAY_VIEW_ALL_LINKS == 'true') {
$content .= '<br /><span><a href="' . zen_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_VIEW_ALL_LINKS . '</a></span>';
}
if (BOX_DISPLAY_SUBMIT_LINK == 'true') {
$content .= '<br /><span><a href="' . zen_href_link(FILENAME_LINKS_SUBMIT, '', 'SSL') . '">' . BOX_INFORMATION_LINKS_SUBMIT . '</a></span></div>';
}
Save the file and upload to your server
Hi Clyde and thanks again for the help, but unfortunately it didn't work. I think I will let be. Don't look that bad anyway. There is another problem though. When you submit a link and it take you to the success page my sideboxes is everywhere on that page. If you will Clyde, submit a link and see what I'm talking about please.
Thank you again
my sideboxes are everywhere. I need to learn how to talk again...lol
Forgot to give you my link.
http://www.TheGoodShepherdStore.com
Thanks Clyde for all your help. I will check with the template Maker or maybe since you understand this more than I, maybe you can explain it to him better than me.
Thank you again
Ok Clyde I got it working! I deleted everything and started over. Now I get an extra image in the catagories section and was woundering if it had to do with the links manager since it wasnt there untill I installed all the files... It was using the little arrows next to all products insted of the dot. You had these in the images folder along with a few others images. I deleted the images and now thers that dot. Anyway let me know if you think it is and what it might be? Thanks!
????????????? What image are you talking about ???????Quote:
Now I get an extra image in the catagories section
?????????? What images are you talking about ?????????Quote:
You had these in the images folder along with a few others images
I'm guessing that has something to do with the CSS for the ul/li declarations.Quote:
that dot
Clyde, the images are in:
includes/templates/YOUR_TEMPLATE/images/bullet1.gif
includes/templates/YOUR_TEMPLATE/images/bullet2.gif
includes/templates/YOUR_TEMPLATE/images/catbg25.gif
includes/templates/YOUR_TEMPLATE/images/catbg25hover.gif
includes/templates/YOUR_TEMPLATE/images/catbghover.gif
includes/templates/YOUR_TEMPLATE/images/catimg3.gif
bulle1.gif was where the little dot is next to All Products in the attached image file above. I deleted the images so now its a dot. The wording "Link Heading" wasnt there as well. I checked my active website and I never added those for some reason. Thanks!
Oh my god! Im so sorry :blush: some how I must have mixed files with link manager. Its working now that I unziped a new copy!
Hello All,
I have been having a lot of difficulty trying to add the gd ttf captcha mod to links manager 3.2.3.
It displays the captcha stuff just fine. But it's adding the add image field back in, and when you submit the link it rolls you right back to the submission form instead of taking you to the link submitted screen.
I have tried several different attempts to make this work with no success. Any help would be greatly appreciated. :frusty:
where can i download your link manger 3.2.3?
I cannot find it in "downloads"
Lina
Ok, im having trouble installing the captcha with the Links Manager. I get a white screen with this error when I go to the submit links page.
The only file Captcha wanted me to replace that was a Links manager file was the includes/modules/pages/submit_link/header.php file. I included both files in an attachment. It works on my other site but wont on this one for some reason. Im running PHP4.. on the one that works and PHP5 on the one that dont if that matters... Thanks!Quote:
Fatal error: Cannot redeclare zen_get_link_path() (previously declared in W:\wamp\www\rbackyard\includes\functions\links.php:23) in W:\wamp\www\rbackyard\includes\functions\links.php on line 32
The links manager files in Captcha are probably older than those in the current version of Links Manager.
If you plan on using Captcha you should compare the files using an file compare utility and only add the Captcha changes to the current version of the files in Links Manager.
I used winmerge and there are several changes to the files. I will have to poke around and see where they would go. I figured out the two files that need altering
I have to add the changes to those....Just dont know where:blink:Quote:
\includes\templates\rbackyard\templates/tpl_links_submit_default.php
\includes\modules\pages\links_submit\header_php.php
I apologize if this has been covered... searched this thread.
Is there a way to delete a category image once placed and make the cat. images line up side my sided instead of down the page>
SITE:DAISIE
TIA
Hello all,
I wanted to show the Alexa Info and Page Rank on my links manager page. So I modified /includes/modules/YOUR_TEMPLATE/link_listing.php and added a script I found at: http://www.hm2k.com/projects/pagerank
The mod is fairly easy to install and maybe clydejones (thanks for a great mod clydejones ) could add it to future versions with switches to turn off or on:cool::
Pagerank.php file above will return just the usual google pr image. If you want the image to also show the PR# like my thumbnail shows. You will have to modify line number 131:
From:
To:PHP Code:
$out='<a href="'.$url.'" title="'.$pagerank.'">'.$html.'</a>';
*********************************PHP Code:
$out='<a href="'.$url.'" title="'.$pagerank.'">'.$html.'</a> PR'.$pr.'';
Now upload the pagerank.php file you get from http://www.hm2k.com/ to:
/includes/modules/YOUR_TEMPLATE/pagerank.php
Open /includes/modules/YOUR_TEMPLATE/link_listing.php with you favorite php editor.
Find:
Above that line add:PHP Code:
if ($listing_split->number_of_rows > 0) {
*********************************PHP Code:
include('pagerank.php');
Find:
Above that line add:PHP Code:
if (DISPLAY_LINK_DESCRIPTION_AS_LINK == 'true') {
*********************************PHP Code:
$pagePR = pagerank( zen_get_links_url($listing_query->fields['links_id']) );
Find:
Replace those lines with:PHP Code:
if (DISPLAY_LINK_DESCRIPTION_AS_LINK == 'true') {
$lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br /><a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_description'] . '</a>';
} else {
$lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br />' . $listing_query->fields['links_description']; }
break;
Now your links manager will show Alexa Info | PageRank for the domains you trade links with. See Thumbnail attachment for example:PHP Code:
if (DISPLAY_LINK_DESCRIPTION_AS_LINK == 'true') {
$lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a> | <a href=http://www.alexa.com/data/details/traffic_details?q=&url=' . zen_get_links_url($listing_query->fields['links_id']) . ' target="_blank">Alexa Info</a> | '.$pagePR.'<br /><a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_description'] . '</a>';
} else {
$lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a> | <a href=http://www.alexa.com/data/details/traffic_details?q=&url=' .zen_get_links_url($listing_query->fields['links_id']) . ' target="_blank">Alexa Info</a> | '.$pagePR.'<br />' . $listing_query->fields['links_description']; }
break;
NOTE: Use this mod at your own risk, I'm not responsible for any problems you might have.
Clyde, I noticed something about links manager and was woundering if im missing a setting. If someone submitts a baner ect. they recieve an email stating the thier links will be reviewed ect. But, I never recieve an email stating that somone want to put a link on my website. The only way to know is if I look in the admin/extra/links and it will show up there. Am I missing a setting or this isnt an option? Thanks!!
No I never recieved one? I did a test entry again and the person asking gets an email but the admin doesnt? Thanks!
make sure the following section of code is in:
includes/modules/pages/links_submit/header_php.php
PHP Code:
// build the message content
$name = $links_contact_name;
$email_text = sprintf(EMAIL_GREET_NONE, $name);
$html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
$email_text .= EMAIL_WELCOME;
$html_msg['EMAIL_WELCOME'] = str_replace('\n','',EMAIL_WELCOME);
$email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
$email_store_text = EMAIL_OWNER_TEXT . $links_title . "\n\n" . $links_url . "\n\n" . $links_description;
// Prepare HTML-portion of message
$html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\n','',EMAIL_TEXT);
$html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $links_contact_email . ')';
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
zen_mail($name, $links_contact_email, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $html_msg, 'Link Exchange');
zen_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $email_store_text, $name, $links_contact_email, $html_msg, 'Link Exchange');
Yep, This is what i have:
PHP Code:
// build the message content
$name = $links_contact_name;
$email_text = sprintf(EMAIL_GREET_NONE, $name);
$email_text .= EMAIL_WELCOME;
$email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
$email_store_text = EMAIL_OWNER_TEXT . $links_title . "\n\n" . $links_url . "\n\n" . $links_description;
// Prepare HTML-portion of message
$html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
$html_msg['EMAIL_WELCOME'] = str_replace('\n','',EMAIL_WELCOME);
$html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\n','',EMAIL_TEXT);
$html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $links_contact_email . ')';
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
zen_mail($name, $links_contact_email, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $html_msg, 'Link Exchange');
zen_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $email_store_text, $name, $links_contact_email, $html_msg, 'Link Exchange');
zen_redirect(zen_href_link(FILENAME_LINKS_SUBMIT, 'action=success'));
}
}
// links breadcrumb
Clyde, I feel like a ######## now :blush: When the web host set up my Zencart they must have miss typed my email...... I was woundering why I never recieve an email......:wacko: thanks agian your a life saver!
Thank you for finding this and letting me know.
I have fixed this and have been trying to add the box at the bottom to add the image url by the person submitting. I followed the advice you gave oxycottin
"Add the necessary define statements for that field to:
includes/languages/english/extra_definitions/links_manager_defines.php
Add the code necessary to draw the field in:
includes/templates/YOUR_TEMPLATE/templates/tpl_links_submit_default.php"
and I am still unable to get the box to show up..
DAISIE
any advice?
Thank you for your time and assistance!
Just unzip the attached and upload the includes folder to your server
Attachment 2612
Thank you for sending this. I did as you instructed and I am still unable to see the box. Have I done something wrong?
Thank you,
Try this:
Just unzip and upload the includes folder to your server
Attachment 2613
I've been reading through most of these posts and couldn't find the answer I need...I downloaded/uploaded all the files. I changed the "CUSTOM TEMPLATE" the name of the one I'm using (I was supposed to change every one of those to the name of my template, correct?)
So in my layout box controller, the links mgr is bolded and red and when I activate it, I get these errors on my website:
Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38
Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38
Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/sideboxes/tpl_links_select.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38
ALSO---I'm not too sure how I was supposed to "run" the sql file. Where was I supposed to put it in order to run it?!?!?
Here's my website, though you probably don't need it since I don't have it turned on because of the errors. www.theactofmarriage.com
These are the folders where you should change the name to delta-864
includes/languages/english/YOUR_TEMPLATE
includes/languages/english/extra_definitions/YOUR_TEMPLATE
includes/languages/english/html_includes/YOUR_TEMPLATE
includes/modules/YOUR_TEMPLATE
includes/modules/sideboxes/YOUR_TEMPLATE
includes/templates/YOUR_TEMPLATE
You copy the contents of the sql file and paste it into
admin -> tools -> install sql patches
click the send button
I just upgraded to the the 3.1.3 and just used the upgrade files and pasted the code for sql.
Now I get a error when I go in Admin - Extras- Links
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxx/public_html/andmin/links.php on line 164
What is wrong? Worked fine before upgrade.
I had all these file names changed correctly and I sent the SQL as copy and paste and also the browse/select option. This was done yesterday before I started looking around here for help. So since these things are done....I'm really lost as to what my problem is. Do i need to do something with those tpl files since that's where my error was coming from?
Linksmanager 3.1.3
Code:
} else if($action == 'insert') {
$sql_data_array['links_date_added'] = 'now()';
}
if ($action == 'update') {
zen_db_perform(TABLE_LINKS, $sql_data_array, 'update', "links_id = '" . (int)$links_id . "'");
} else if($action == 'insert') {
zen_db_perform(TABLE_LINKS, $sql_data_array);
$links_id = zen_db_insert_id();
}
$categories_query = "select link_categories_id from " . TABLE_LINK_CATEGORIES_DESCRIPTION . " where link_categories_name = '" . $links_category . "' and language_id = '" . $_SESSION['languages_id'] . "'";
$categories = $db->Execute($categories_query);
$link_categories_id = $categories->fields['link_categories_id'];
if ($action == 'update') {
$db->Execute("update " . TABLE_LINKS_TO_LINK_CATEGORIES . " set link_categories_id = '" . (int)$link_categories_id . "' where links_id = '" . (int)$links_id . "'");
} else if($action == 'insert') {
$db->Execute("insert into " . TABLE_LINKS_TO_LINK_CATEGORIES . " ( links_id, link_categories_id) values ('" . (int)$links_id . "', '" . (int)$link_categories_id . "')");
}
$sql_data_array = array('links_title' => $links_title,
'links_description' => $links_description);
if ($action == 'update') {
zen_db_perform(TABLE_LINKS_DESCRIPTION, $sql_data_array, 'update', "links_id = '" . (int)$links_id . "' and language_id = '" . $_SESSION['languages_id'] . "'");
} else if($action == 'insert') {
$insert_sql_data = array('links_id' => $links_id,
'language_id' => $_SESSION['languages_id']);
$sql_data_array = array_merge($sql_data_array, $insert_sql_data);
zen_db_perform(TABLE_LINKS_DESCRIPTION, $sql_data_array);
}
if (isset($_POST['links_notify']) && ($_POST['links_notify'] == 'on')) {
$email = sprintf(EMAIL_TEXT_STATUS_UPDATE, $links_contact_name, $links_status_array[$links_status]) . '<br />' . STORE_OWNER . '<br />' . STORE_NAME;
zen_mail($links_contact_name, $links_contact_email, EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS');
}
zen_redirect(zen_href_link(FILENAME_LINKS, zen_get_all_get_params(array('lID', 'action')) . 'lID=' . $links_id));
} else if ($error == true) {
$lInfo = new objectInfo($_POST);
latest version of links manager is 3.2.3 (Aug 15, 2007)
Try this:
just unzip and upload links.php to your admin directory.
Attachment 2617
OK, I did the update. I see you included the fix for the link redirect. I think I got it now. Thank you.
Clyde, how about he check link button? Even if the reciprocal link exists, it gives me a:
Link Check Result: Not Found
Does this need to be configured somewhere so the logic knows what to look for? Like my domain name?
Good Afternoon Zenners-
I installed the link exchange contribution and I notice several problems that I am having with this contribution which is causing serval problem with my cart.
1st. When I click on special all of my item's disappeared and now the only thing thats showing is the words links & newsletter. I had to add a catagory called clearance in order for the items to appear correctly.
Click link to see:
http://divaboutiques.com/Catalog/ind..._page=specials
2nd. When someone signup for a new account the email that they receive is the " Welcome to Diva Boutiques link exchange".
Any help would do, I want to clear thismatter up real quick.
make sure you have changed the YOUR_TEMPLATE directory to match the name of your custom template
ncludes/languages/english/YOUR_TEMPLATE
includes/languages/english/extra_definitions/YOUR_TEMPLATE
includes/languages/english/html_includes/YOUR_TEMPLATE
includes/modules/YOUR_TEMPLATE
includes/modules/sideboxes/YOUR_TEMPLATE
includes/templates/YOUR_TEMPLATE
make sure you have all the files listed below
includes/extra_datafiles/links_manager.php
includes/functions/links.php
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
includes/modules/pages/links
includes/modules/pages/links_submit
includes/modules/pages/popup_links_help
includes/modules/link_listing.php
includes/modules/YOUR_TEMPLATE/link_listing.php
includes/modules/sideboxes/YOUR_TEMPLATE/links_box.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php
includes/templates/YOUR_TEMPLATE/templates/tpl_links_default.php
includes/templates/YOUR_TEMPLATE/templates/tpl_links_submit_default.php
includes/templates/YOUR_TEMPLATE/popup_links_help
includes/templates/YOUR_TEMPLATE/css/links.css
includes/templates/YOUR_TEMPLATE/css/links_submit.css
Hi Clyde,
I got the check links working. Back to an old request. I still think the layout of the generated links listing is not very pretty. The OSC mod, see link in the quote, is soooo much more what I would like to see. Is there somebody out there that could give me pointers (or is willing to work on it) where the layout is defined? Is this a big deal to change?
A listing should be in the following format:
Title: Candles by Whoever
URL: http://www.xxxx.com
Description: Handmade candles and candle holders.Bla Bla Bla
One more thing: Listing my Link Information for the other party to copy and put on their site. This should probably go on the links submit page. I would like to as k the other party to put up my link information. I think my links info text should go to the "/includes/languages/english/YOUR_TEMPLATE/links_submit.php"
BUT how do I put my link info there without screwing things up? Is there an easier way to do this in admin?
If I do not make myself clear enough, look at one of my sites, and see how I would like to make the link request page look.
http://www.mydanilo.com/index.php?main_page=page_2
Wouldn't it make sense to ask the other party at the point of registration to put a link up for me? AND give instructions what we want them to post?
Clyde, I looked at includes/languages/english/html_includes/YOUR_TEMPLATE/define_links.php
it is empty, except for a "<br />" How do I start? I guess I am a bit lost as to how to put html in to the php file and have it appear in the right place?
What I want, is add more text (my sites link info to be put on their site) to the Links Submission page from your mode.
Right now it just shows:
Links Submission
store address
Please choose the most appropriate category for your link. "owner" reserves the right to change the category or edit your description, if needed.
--> here I want to post my link info for them to use.....
Wow awesome. Did not even think of it to look there. Great!
Maybe should be in the install or readme.txt. Don't tell me it is already there! Just looked for it to see if I missed some more great features.
Thank you for your fast help.
:smile:
Clyde, On my submit a link page there is the links help button. When the pop up comes up its using my body background image as the background color for the page. How would I fix this to a color and not use the image? Thanks!
Hello Clyde
I'm having a little problem with the 'back button' displayed on the link pages. Instead of taking the browser back to the previous page, it actually links to the home page of the site.
I managed to change this in tpl_links_default so the link works when the page showing link categories works, but when going to the next page to show links within a category the back button still links to the home page and I cannot find out how to change this.
Any ideas please?
Cheers
Patrick
Sorry, I had my stupid head on there, just found the second reference to the back button further down the same page!
Hi,
I just installed this contrib, and it is working brilliant, Thanks very much.
The only thing I cant find is where to chage the box title?
It says "Links" and I want to chage it to "Link Exchange"
Can anybody tell me where I can do that please?
Thanks in advance
Peter