Jump to content

VJ

Members
  • Content count

    170
  • Joined

  • Last visited

Everything posted by VJ

  1. Hello Lee, Nice feature request! Click stats would be a great addition for the next version. Ah, and the link-back HTML code too would make things easier. I'm not sure about the frames though. I believe frames can get pretty messy to use. I don't think it'd be too difficult to implement, though. Thank you :-), VJ
  2. Gee, thanks :-). Ahhh, good to hear external searches help traffic... didn't realize that before. VJ
  3. Good! Those strings can sometimes get tricky to handle. I think it was the quotes. This is the code I use to display link categories at my site. $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> » <a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS, 'lPath=' . $link_category_data['link_category_id']) . '" class="subCatLinks">' . $link_category_data['link_category_name'] . '</a> (' . $link_count . ')' . '<br>' . $link_category_data['link_category_description'] . '</td>' . "n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($link_category_query))) { echo ' </tr>' . "n"; echo ' <tr>' . "n"; } You'll be able to change the no. of columns by changing MAX_DISPLAY_CATEGORIES_PER_ROW (at the OSC Admin). Its the same definition that controls the product categories description. You can even use a new definition. Like for example, Add to /catalog/application_top.php, define('MAX_DISPLAY_LINK_CATEGORIES_PER_ROW', '4'); And, substitute MAX_DISPLAY_CATEGORIES_PER_ROW in /catalog/exchange_links.php with the new definition variable. Ah, and you can change the display style using stylesheet definitions. HTH, VJ
  4. Ah, good! I was thinking about setting up this links program at my new site that runs on MS2. Your tips would come in handy, surely... Thanks! Yes, there's still lots more that can be done. I'd been thinking about changing the DB schema to make it multi-lingual, first. Just got to find some time to work on that. Oh, (constructive) comments/suggestions are always welcome. Just keep them coming :-). VJ
  5. Hi Picman, I just remembered the cause of that problem you're experiencing. It's a problem with faling to include the "http://" before the url. Actually, this issue has been discussed before here at the forums, http://forums.oscommerce.com/viewtopic.php...p=178683#178683. Sorry, I somehow couldn't remember that last night :shock:. I'm pretty sure the css code will work, once you've managed to fix this url issue. HTH :-), VJ
  6. Hi Picman, Can you post the code that you use to display links? I *think* you use the osc URL wrapper function tep_href_link to display links. Ah, and I made the font/color changes at the stylesheet file. This is the code I use to display links (/catalog/exchange_links.php), echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> » <a href="' . $link_links_data['link_url'] . '" class="exLinkTitle" target="_blank">' . $link_links_data['link_title'] . '</a><br><div align="justify">' . $link_links_data['link_description'] . '</div><a href="' . $link_links_data['link_url'] . '" class="exLinkURL" target="_blank">' . $link_links_data['link_url'] . '</a></td>' . "n"; and here's the stylesheet code I used, A.exLinkTitle { font-size: 12 px; color: #0000CC; font-weight: bold; } A.exLinkURL { font-size: 10 px; color: #000099; font-weight: bold; } HTH, VJ
  7. Hi Graeme, Nice addition :-). I gave it a try at my local osc installation... seems to work fine. Thank you, VJ http://www.nebao.com
  8. VJ

    Links Manager Question

    Yep, I made this contribution with code fixes and help from quite a few others... including you :). Thanks, VJ
  9. VJ

    Links Manager Question

    Hi Jonathan, Oops, sorry I joined in a bit late. Thanks a whole lot for taking time to look into the code. Actually, the problem lies in the user adding the links... they're supposed to include the 'http://' prefixed to the url they submit. I think the following code change would make sure they add the 'http://' before the url. At least, it would act as a reminder, till I can come up with some url validation code. In file /catalog/includes/modules/link_submit_details.php, at around line 50, replace if ($is_read_only == true) { echo $submit_link['link_address']; } elseif ($error == true) { if ($entry_url_error == true) { echo tep_draw_input_field('url') . ' ' . ENTRY_LINKS_ADDRESS_ERROR; } else { echo $url . tep_draw_hidden_field('url'); } } else { echo tep_draw_input_field('url', $submit_link['link_address']) . ' ' . ENTRY_LINKS_ADDRESS_TEXT; } with, if ($is_read_only == true) { echo $submit_link['link_address']; } elseif ($error == true) { if ($entry_url_error == true) { echo tep_draw_input_field('url') . ' ' . ENTRY_LINKS_ADDRESS_ERROR; } else { echo $url . tep_draw_hidden_field('url'); } } else { echo tep_draw_input_field('url', 'http://' . $submit_link['link_address']) . ' ' . ENTRY_LINKS_ADDRESS_TEXT; } and at around line 155, replace if ($is_read_only == true) { echo $submit_link['link_reciprocal']; } elseif ($error == true) { if ($entry_reciprocal_error == true) { echo tep_draw_input_field('reciprocal') . ' ' . ENTRY_LINKS_RECIPROCAL_PAGE_ERROR; } else { echo $reciprocal . tep_draw_hidden_field('reciprocal'); } } else { echo tep_draw_input_field('reciprocal', $submit_link['link_reciprocal']) . ' ' . ENTRY_LINKS_RECIPROCAL_PAGE_TEXT; } with, if ($is_read_only == true) { echo $submit_link['link_reciprocal']; } elseif ($error == true) { if ($entry_reciprocal_error == true) { echo tep_draw_input_field('reciprocal') . ' ' . ENTRY_LINKS_RECIPROCAL_PAGE_ERROR; } else { echo $reciprocal . tep_draw_hidden_field('reciprocal'); } } else { echo tep_draw_input_field('reciprocal', 'http://' . $submit_link['link_reciprocal']) . ' ' . ENTRY_LINKS_RECIPROCAL_PAGE_TEXT; } You can see the code in action at, http://www.salehut.com/exchange_links_submit.php Thanks again :-), VJ
  10. Oh yes, you're most welcome to do it :). And, I'd be glad to be of any help too. VJ
  11. Well, did you notice this error occurs in a different file, from the one you got earlier. I guess this means you'd have to repeat what you'd done to the english.php file to this file too. VJ
  12. ... and oh, as for the issue you're experiencing with product attributes, I have no clue as to why it happens. The Links program uses seperate tables (independent of the other core osc tables), so database issues can be safely ruled out. I'll give it a closer look anyway. Did you install any other mods recently? Hope this helps, VJ
  13. Hi Antony, Had a look at your site. Looks like you have some stray characters in your includes/languages/english.php file. Please check if there are any newlines/spaces at the end of your english.php file and delete them. Hope this helps, VJ
  14. Kevin, I've added a few redundant features just to make the program future-proof and to allow for some improvization. Well, the idea with contact name/email fields during category creation is that users might be able to suggest categories (and leave their contact information behind) in future releases of the add-on. For now, you can safely fill those fields with any value you wish. And, thanks for your comments :-). VJ
  15. A bug in the admin interface that prevented the editing of link categories has been fixed. You can find the patch download at http://www.oscommerce.com/community/contributions,1256. Many thanks to crshNbrn for reporting this bug :-). VJ
  16. Hi Allan, Trust me, no one's going to laugh at you for trying something. Ah, and here's something you can try, $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> » <a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS, 'lPath=' . $link_category_data['link_category_id']) . '" class="subCatLinks">' . $link_category_data['link_category_name'] . '</a> (' . $link_count . ')' . '<br>' . $link_category_data['link_category_description'] . '</td>' . "n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($link_category_query))) { echo ' </tr>' . "n"; echo ' <tr>' . "n"; } } HTH :), VJ
  17. Hi Allan, Can you please post the code segment you've changed and the segment where you get errors. Its kind of hard to speculate without much to look at. VJ
  18. Thanks for your compliments, Allan. :) As regards display of category description, you can find the code that displays category information in /catalog/exchange_links.php, at around line 95, echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> » <a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS, 'lPath=' . $link_category_data['link_category_id']) . '" class="subCatLinks">' . $link_category_data['link_category_name'] . '</a> (' . $link_count . ')</td>' . "n"; Just add the category description variable $link_category_data['link_category_description'] somewhere in the above code segment. HTH, VJ -- http://www.salehut.com
  19. Thanks for your comments :-) Well, its a shame I didn't give too much thought about making the mod multi-lingual. I might go for it in the next version, though. Meanwhile, why don't you go ahead and give it a shot. That DB plan looks great :-). VJ -- http://www.salehut.com
  20. ... and gee, thanks a lot for all your comments :D VJ -- http://www.salehut.com
  21. Well, its just a single-level deep as of now. I thought multi-level categorization for links would be an overkill. VJ -- http://www.salehut.com
  22. Yes, it is indeed the very same program. VJ -- http://www.salehut.com
×