Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Darklings

Archived
  • Posts

    356
  • Joined

  • Last visited

Everything posted by Darklings

  1. Hi, i was wondering... Was my question not formulated right? I have to excuse my bad english tho... Can someone pls take a look at my previeus question? ( http://www.oscommerce.com/forums/index.php?s=&...t&p=1047960 ) Thanks a lot.
  2. Hi All!! This is indeed a much better way for a menu then i had before (css and stuff, but not dynamic!!). I read trought all posts, and i must say, it was only 2 min work for me to get it installed and running. However, it was not 100% what i was looking for... I came accross the same questions (unanswerd, or particular answerd) that i had... and after a couple of hours staring and reading the codes (and the excelent commenting) i found a way to change some things to my needs.. i post them here for if other peoples want to do the same. Like some others i wanted my categories to show in a category (parent) menu not every category on my frontpage! Also i wanted to add more menu and more dropdowns too... I'm not a big fan of posting my url on the forums, since searchengine pick them up... and unsure if this will work... click here! I still have 3 problems with my modification, i hope someone can help me out.... a) The first categorie doesnt get loaded in my menu, it starts directly with the second and so on. (So missing the first one) B) the child categories arent loaded eather.. check "producten" and see my first child categories, three of them have a arrow to show their child categories, but non are shown. c) "Home" and "Producten", when selected, show my topmenulinks in bold.. the others not... (prob style related, but can't figure it out, i have set it all to bold now, so it stops jumping on clicking... but i rather have them not at bold.) This is what i did.... => includes/boxes/dm_categories.php line 25 -- $menu_type = 0; line 29 -- $show_dmcats_as_box = false; line 168 -- // Generate menus if(tep_session_is_registered('customer_id')) { $mid->setMenuStructureString(".|" . DROPDOWN_MENU_HOME . "|" . FILENAME_DEFAULT . "|" . DROPDOWN_MENU_HOME . "|||\n" . ".|" . DROPDOWN_MENU_NEWS . "|" . FILENAME_NEWS . "|" . DROPDOWN_MENU_HOME . "|||\n" . ".|" . DROPDOWN_MENU_PRODUCTEN . "|" . FILENAME_PRODUCTS . "|" . DROPDOWN_MENU_PRODUCTEN . "|||\n" . ".." . $categories_string . ".|" . DROPDOWN_MENU_INFORMATION . "|" . FILENAME_SHIPPING . "|" . DROPDOWN_MENU_INFORMATION . "|||\n" . "..|" . BOX_INFORMATION_PRIVACY . "|" . FILENAME_PRIVACY . "|" . BOX_INFORMATION_PRIVACY . "|||\n" . "..|" . BOX_INFORMATION_CONDITIONS . "|" . FILENAME_CONDITIONS . "|" . BOX_INFORMATION_CONDITIONS . "|||\n" . "..|" . BOX_INFORMATION_CONTACT . "|" . FILENAME_CONTACT_US . "|" . BOX_INFORMATION_CONTACT . "|||\n" . "..|" . BOX_INFORMATION_ROUTE . "|" . FILENAME_ROUTE . "|" . BOX_INFORMATION_ROUTE . "|||\n" . "..|Kalender|" . FILENAME_HOURS . "|kalender|||\n". ".|" . HEADER_TITLE_LOGOFF . "|" . FILENAME_LOGOFF . "|" . HEADER_TITLE_LOGOFF . "|||\n" . ".|" . HEADER_TITLE_ACCOUNT . "|" . FILENAME_ACCOUNT . "|" . HEADER_TITLE_ACCOUNT . "|||\n"); } else { $mid->setMenuStructureString(".|" . DROPDOWN_MENU_HOME . "|" . FILENAME_DEFAULT . "|" . DROPDOWN_MENU_HOME . "|||\n" . ".|" . DROPDOWN_MENU_NEWS . "|" . FILENAME_NEWS . "|" . DROPDOWN_MENU_HOME . "|||\n" . ".|" . DROPDOWN_MENU_PRODUCTEN . "|" . FILENAME_PRODUCTS . "|" . DROPDOWN_MENU_PRODUCTEN . "|||\n" . ".." . $categories_string . ".|" . DROPDOWN_MENU_INFORMATION . "|" . FILENAME_SHIPPING . "|" . DROPDOWN_MENU_INFORMATION . "|||\n" . "..|" . BOX_INFORMATION_PRIVACY . "|" . FILENAME_PRIVACY . "|" . BOX_INFORMATION_PRIVACY . "|||\n" . "..|" . BOX_INFORMATION_CONDITIONS . "|" . FILENAME_CONDITIONS . "|" . BOX_INFORMATION_CONDITIONS . "|||\n" . "..|" . BOX_INFORMATION_CONTACT . "|" . FILENAME_CONTACT_US . "|" . BOX_INFORMATION_CONTACT . "|||\n" . "..|" . BOX_INFORMATION_ROUTE . "|" . FILENAME_ROUTE . "|" . BOX_INFORMATION_ROUTE . "|||\n" . "..|Kalender|" . FILENAME_HOURS . "|kalender|||\n" . ".|" . HEADER_TITLE_LOGIN . "|" . FILENAME_LOGIN . "|" . HEADER_TITLE_LOGIN . "|||\n"); } line 268 -- $lvl_adjust = 2; // default = 1 It might look a lot of change, but you'll see its actualy very simple and not so much (its all the same :P)
  3. I Couldn't find the original topic either.. so instead of making again a new one.. i 'll use this one! I got it working perfect.. BUT.. i need it to do one more thing... I set it up so that when you set the flag (if you activate the account in the admin) it sends a mail to the customer telling that his account has been activated. That mail contains the customers name, and his email, i 'm now working on his password. After long searching i saw this is kinda impossible. Since you actually make the password (its a random generated one) when you add a new customer. And it can take years (for example :P) before you activate that persons account. The problem in osC (not really a problem, i guess its good the way it works!) that you can't reverse the coded password. So I was thinking. Since the account isn't active anyway, its not bad that there would not be a password at that time. So I want to make the password (random generated) at the moment when you activate a customer. So I guess that code goes into my case 'setflag' ? Will this work? Is this stupid?? or..... are their other solutions I didn't think of? Any feedback is appreciated!
  4. Hoi JanZ,

    Hoe gaat het er nog mee?

    Groetjes, Tom

  5. nevermind.. its so stupid i'm afraid of telling... I had hardcoded (apparantly) a while ago the url... it says /events_calendar.php?_month=1&_year=2006&year_view=1 Its in my includes/filenames.php How do i make _year dynamic?? something like = define('FILENAME_EVENTS', 'events_calendar.php?_month=1&_year=' . $year . '&year_view=1'); should that work?? Of course "$year" should be something else.. is there a easy one for finding out the current year?? that should be right??? thnx for the help
  6. Not sure if this contrib is still suported, but here goes my question: I installed the Event Calender a while ago, and modified some things for my needs. But now, that a new year entered, i still get directed to 2006. Is there a way (or where do i seek for that code) to alter so that when you click Calendar you get to the current date? (or year atleast). Also, when you hit the right arrow to go to 2007, you go there, but there is no left arrow to return.. only when you click again... (and have 2008) then there are two arrows, how can i change that? Cause people are alowed, when the page is at 2007 to view 2006. I would post a link to the site (cause its running) but i hate how google take these posts (and errors) into it search engine when people search on the name of the website. (i can pm it tho) hope someone can help, thnx
  7. The issue was solved.. apparantly i coppied a hidden invalid .htaccess in that folder to my server making it not work... Another Question tho?.. Is there a way to 'sort' the options??
  8. Hi nimmit, I had installed the 1.5beta a month ago.. and it worked perfect for me, realy easy to install. But since you made some updates, i wanted to try them out. First i installed it local on my testserver.. Most of it works (not everything tho) but what i need works. BUT when i uploaded all the changes to my webserver, it somehow went wrong. I dont know how its posible but with the EXACT same files, i am not able to view the AJAX Attribute Manager online yet i can on my local server... (using all the same.. same server(apache) same php(4) same browser (ff) etc....) Do you have any idea what or how this comes? I have tried to just put the old (the v 1,5beta) back up.. but the same happens here.. works on localserver, but nothing on webserver... Not even an ERROR.. he doesnt show anything at all.... When i look at the source online i have: <table border="0"> <!-- [email protected] - AJAX Attribute Manager --> <tr> <td colspan="2"><div id="attributeManager"> </div></td> </tr> <!-- [email protected] - AJAX Attribute Manager end --> </table> Not on my local server.. there its fine... EVERY FILE IS THE SAME :s I'm so confused and frustrated here... where do i need to search? what could be wrong??? Could it be something at the server? or does it have to be a file?? Kind Regards, Tom
  9. // Make sure we know when today is, so that we can use a different CSS style ##### BOF change class for event $class_id = tep_db_query("select events_category_id from " . TABLE_EVENTS_CALENDAR ); // get the events category id ##### EOF change class for event $today = getdate(time()); $start_day = $this->getStartDay(); $click = BOX_CLICK_LINK; while ($d <= $daysInMonth) { $s .= "<tr>\n"; for ($i = 0; $i < 7; $i++) { ##### BOF change class for event if ($class_id == 1) { // check whats in $class_id, if that equals one : $class = 'calendarEvent'; // then $class has calendarEvent } else { // else: ###### EOF change class for event $class = (($i < (6-$start_day) &! $i <= $start_day) ? (($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "calendarToday" : "calendar" ) : (($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "calendarToday" : "calendarWeekend")); } ###### end of Else from 310 if ($d > 0 && $d <= $daysInMonth) { $link = $this->getDbLink($d, $month, $year); $s .= (($link == "") ? "<td class=\"$class\" align=\"left\" valign=\"bottom\">" : "<td class=\"$class\" onclick=top.window.location=\"$link\" align=\"left\" valign=\"bottom\" style=\"cursor: hand;\">" ); if($show == 1){ $s .= (($link == "") ? $d : "<a href=javascript:// onClick=top.window.location=\"$link\" title=\"$click\">$d</a>"); }else{ $s .= (($link == "") ? $d : "<a href=\"$link\" title=\"$click\">$d</a>"); } } else { $s .= "<td class=\"empty\"> "; } $s .= "</td>\n"; $d++; } $s .= "</tr>\n"; } $s .= "</table>\n"; $s .= "</td></tr></table>\n"; return $s; } This is what i tried... seems logical to me - but it isnt working.... not a tiny bit even..... :( :( :( :( :( :(
  10. IS this contrib realy dead? i need someone who made, modified or understand this contribution cause i'm realy stuck here :( And i need this future!! I think even for someone not familier with the contrib, but knows php can easely do the things i ask .. i guess.. or guide me - or tell me where to look.... I'm here to learn...
  11. I have to agree with winterradio here! This is awesome. I have installed numerous if not billions of contributions already but this was so easy it took me less then 5 min to first check it out localy on a fresh install and then upload it all to integrate with a heavy modified online webshop - i have Seperate prices per customer/quantity breaks/groups my whole products (categorie) page in admin is changed so drasticaly non of you would recognise it (:P well maybe a bit :P) But still, implimenting this was as easy as riding a bicicle :D Great contribution, and like mentioned before, fast, and does what it needs to do. I can now finaly get rid of the link to the attribute manager! yeah! keep up the great work
  12. includes/classes/calendar.php // Make sure we know when today is, so that we can use a different CSS style $today = getdate(time()); $start_day = $this->getStartDay(); $click = BOX_CLICK_LINK; while ($d <= $daysInMonth) { $s .= "<tr>\n"; for ($i = 0; $i < 7; $i++) { $class = (($i < (6-$start_day) &! $i <= $start_day) ? (($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "calendarToday" : "calendar" ) : (($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "calendarToday" : "calendarWeekend")); if ($d > 0 && $d <= $daysInMonth) { $link = $this->getDbLink($d, $month, $year); $s .= (($link == "") ? "<td class=\"$class\" align=\"left\" valign=\"bottom\">" : "<td class=\"$class\" onclick=top.window.location=\"$link\" align=\"left\" valign=\"bottom\" style=\"cursor: hand;\">" ); if($show == 1){ $s .= (($link == "") ? $d : "<a href=javascript:// onClick=top.window.location=\"$link\" title=\"$click\">$d</a>"); }else{ $s .= (($link == "") ? $d : "<a href=\"$link\" title=\"$click\">$d</a>"); } } else { $s .= "<td class=\"empty\"> "; } $s .= "</td>\n"; $d++; } $s .= "</tr>\n"; } $s .= "</table>\n"; $s .= "</td></tr></table>\n"; return $s; } This is the only reference i could fine in the Calendar contribution that changed or said what class the day has, so I am assuming this is the code that i need to alter to have my events show up with another class (css) too! Am i right? Like i said, i already made a category and a category_id table inside my events_calendar table in DB... The info is put in correct too. So now i just call whats in my category_id table? and then asign different styles to each different ID??? or how i do that???
  13. Well, i gave up on adding a mousover infobox effect. All solutions i found where browser independant en use javascript. I have spent hours on this yesterday, and am gonna leave it now for what it is. However, I still think it could be done quet easy with using some sort of css and javascript kind of dropdownmenu principle. But right now, i need my category's/groups/topics to work! Is there anybody who can help me with basic things like the above example of putting the stuff in the DB??? Thnx
  14. Has anything came up yet? I am currently modifieing this Even Calendar contribution myself. But i'm sure not a programmer :P I dont use the IFrame box, only an event calendar page. I'm currently working on event groups or category's. As I dont use Manufactures in my shop i just changed that pulldown menu to a event_calendar_category menu. It already works, and displays the category at the frontpage of my admin (event_manager) with the content from the Database, only problem is, i had put the category name into my db, so the pulldown is visible at the edit/create page, but doesnt work yet :s My futures (that i need): * A link to show all events * A link to show current months events * Categories or groups for my events (like david says: topic), could be something like: Events, Holiday, Closed... [status: Working on it] * CSS style of a event changes according to group, for ex. Event posted in Holiday will have a red background [status: Working on it... classes...] * On mousover/rollover an event shows a box with info so you dont have to click it. Current problem: <?php $heading = array(); $heading[] = array('align' => 'center', 'text' => TEXT_CHOOSE_CATEGORY); //$events_category_query = tep_db_query("select events_category_id, events_category from " . TABLE_EVENTS_CALENDAR . " order by events_category"); $select_box = '<select name="events_category_id" onChange="();">'; $select_box .= '<option value="0">--- Selecteer een optie ---</option>'; $select_box .= '<option value="1"><font color=red>Feestdagen</font></option>'; $select_box .= '<option value="2">Gesloten</option>'; $select_box .= '<option value="3">Beurs</option>'; $select_box .= '<option value="4">Nieuw Product</option>'; $select_box .= "</select>"; $info_box_contents = array(); $info_box_contents[] = array('form' => '', 'align' => 'left', 'text' => $select_box ); $box = new box; echo $box->menuBox($heading, $info_box_contents); ?> I know, some of it is hardcoded for now, thats because i'm still developing, i can change it later to be more osC-like.... So my problem is prob with the onChange... thats where i should give in the function to put the selected option into the db... i yet have to find out how this work, any help is much appreciated....
  15. nvm, i used a wrong version - you have to give this contribution a good look - since its not the latest version that is necesarely the good one for you....
  16. Hi, i'm getting this error on the catalog side (my admin seems to work fine) Warning: Division by zero in /Applications/MAMP/htdocs/.../oscommerce-2.2ms2/includes/classes/split_page_results.php on line 58 FEBRUARY, 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, MAX_DISPLAY_NUMBER_EVENTS' at line 1 select *, DAYOFMONTH(start_date) AS event from events_calendar where MONTH(start_date) = '02' and YEAR(start_date) = '' and language_id = '4' order by start_date limit -0, MAX_DISPLAY_NUMBER_EVENTS Can someone tell me what this means pls?? Kind Regards, Tom
  17. I seem to have a new problem with my Newsdesk. On the admin side - when i type in my box for the content (its prob the same for sumary too, but i only put one line in that) it automaticaly adds extra <br/>'s .. and i dont need them!!! Everytime i edit it adds new <br/>'s... I dont have this with my other boxes... I do use a editor so instead of tep_draw_input or whatever it is i changed it too tep_draw_fckeditor (or something)...This works fine on all my other pages (yeah i made some kind of small cms where you can edit each text displayed in the shop in your admin using that editor) and i dont have any problems with those pages.... Any idea what could be causing these 'extra' <br/>'s???? Thnx, Kind Regards, Tom
  18. I seem to have a problem with the date.. it puts up the right date when I post a new 'news'-item - but when i select another date from the javascript thingy - it doesnt change in my inputfield..nor does it keep track of it.. is this a known issue? Where there problems before with using that java-script calander?
  19. Hi - i still havent got this to work - i tried something like (application_top.php): //BoF CB Enforce attribute selection if (is_array($HTTP_POST_VARS['id']) ) { if (is_array($messageStack)) { $messageStack->reset(); } while (list($option, $value) = each($HTTP_POST_VARS['id'])) { //if (($value == 9) or ($value == 10) or ($value == 999) ) { // 14 is the value for "--Select--" if ($value == 14) { echo "<script LANGUAGE=\"javascript\"><!--\n"; echo " alert (\"message\");\n"; echo "// --></SCRIPT>\n"; break; } } } elseif (tep_has_product_attributes($HTTP_POST_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT, 'cPath=' . $HTTP_POST_VARS['categories_id'])); break; } //EoF CB But the javascript is not working it seems - can you see what i'm doing wrong here -or is this just not how it works? kind regards, tom
  20. Hi, Is there maybe a way to change this line (its located in application_top.php) tep_redirect(tep_href_link(FILENAME_DEFAULT, 'cPath=' . $HTTP_GET_VARS['categories_id'] . '&mustselect=product_info')); To a link that calls for a javascript? so instead of the standart oscError i get a popup telling the people they have to sellect something? Kind Regards, Tom
  21. Nope - nothing evolved yet - havent post anything on nl forum - and am a bit stuck at the problem - i hope you can give me some input on this... Kind Regards, Tom PS. If(weekend=true) { $make_music=true $party=true $sleep_long=true $php_code=false } ;)
  22. Hi Carine - or anyone else reading this... I changed the code a bit that i posted here in my previeus post ... //BoF CB Enforce attribute selection if (is_array($HTTP_POST_VARS['id']) ) { if (is_array($messageStack)) { $messageStack->reset(); } while (list($option, $value) = each($HTTP_POST_VARS['id'])) { //if (($value == 9) or ($value == 10) or ($value == 999) ) { // 9 is the value for "-select-" if ($value == 14) { tep_redirect(tep_href_link(FILENAME_DEFAULT, 'cPath=' . $HTTP_GET_VARS['categories_id'] . '&mustselect=product_info')); break; } } } elseif (tep_has_product_attributes($HTTP_POST_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT, 'cPath=' . $HTTP_POST_VARS['categories_id'])); break; } //EoF CB As you can see - i changed the FILENAME as well as product_id to categories_id (i wanted somehow to create the link to the product_listing by having : http://www.mydomain.com/index.php?cPath=2&mustselect=product_listing ) Dont know if that is actualy the right way to do so... Also - i'm not sure if the ERROR i should get at the top of my (used to be product_info.php page) on my index.. for now i put the error inside my $lc_text - but i dont know if it will work there... I thought your contribution was made for both product_info.php AND product_listing.php as i can see from the 'cases' in the application_top.php.... Kind Regards, Tom
  23. I'm sorry - the previeus info isnt completely correct... the error is: Fatal error: Call to undefined function: tep_db_query() in /export/web2/Customers/beuseli/product_info.php on line 13 line 13 is the start of that page.. a blank line right after the commented gplicense thingy... when i sellect something else - it goes on and takes the option into my shoppingcart - no problem here... But when i have the --select-- option selected and go on - i get that error (i havent changed anything about the code above - my --select-- is id 14) Kind Regards, Tom
  24. Hi Carine, As you prob already know - i'm busy with getting rid of my product_info.php page and put all the info in my product_listing.php. I'm now onto one of my last problems (i hope) witch are the Attributes... they are a real pain.. I have installed your contribution earlier - when i didnt make such a change - and it worked back then. But now - i have to put it in my product_listing.php .. I left everything as it was in my application_top.php and just moved the error msg from my product_info.php to my product_listing.php but i get the following error when I have the -- Select -- selected: Fatal error: Call to a member function on a non-object in /export/web2/Customers/beuseli/includes/application_top.php on line 408 My code on that line - is slightly different from your latetest upgrade on the contribution - (but i already tried with your vs and I get the same error) - this is my code around that line: //BoF CB Enforce attribute selection if (is_array($HTTP_POST_VARS['id']) ) { if (is_array($messageStack)) { $messageStack->reset(); } while (list($option, $value) = each($HTTP_POST_VARS['id'])) { //if (($value == 9) or ($value == 10) or ($value == 999) ) { // 9 is the value for "-select-" if ($value == 14) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'] . '&mustselect=product_info')); break; } } } elseif (tep_has_product_attributes($HTTP_POST_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_POST_VARS['products_id'])); break; } //EoF CB its something with the $messageStack... any ideas?? Also - did you got it working now with a sort?? cause my --Select-- is still at the bottom of my dropdown menu :s :( Kind Regards, Tom
  25. As others before, i to tried first another one - that didnt work for me - yours looks a lot simpler then that one - and is perfect for what i need. I installed all - and think there is no problem with it.. however - my 'Save Sort' doesnt work. Any ideas? (when i go over it with the mouse its not showing a url - i can click it but nothing happens - like there's no <a href set?) I have been deleting and copy pasting for hours/Days now - to get rid of the previeus instalation and add yours - maybe i forgot something small here... any ideas? Thnx kind regards tom
×
×
  • Create New...