Jump to content
Latest News: (loading..)

Darklings

Members
  • Content count

    356
  • Joined

  • Last visited

2 Followers

About Darklings

  • Birthday 10/15/1981

Profile Information

  • Real Name
    Tom Maene
  • Gender
    Male
  • Location
    Belgium
  • Interests
    I'm a graphical designer - so my interests reach from Photoshop/Illustrator/Indesign over Dreamweaver/Flash/php to Lightwave/3D animation and 2D animation.
  • Website
  1. Darklings

    "Dynamenu" for osCommerce

    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://forums.oscommerce.com/index.php?s=&...t&p=1047960 ) Thanks a lot.
  2. Darklings

    "Dynamenu" for osCommerce

    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. Darklings

    (Contribution) Control Login 2.0

    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. Darklings

    Event Calender

    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. Darklings

    Event Calender

    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. Darklings

    AJAX Attribute Manager support

    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. Darklings

    AJAX Attribute Manager support

    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"> <!-- osc@kangaroopartners.com - AJAX Attribute Manager --> <tr> <td colspan="2"><div id="attributeManager"> </div></td> </tr> <!-- osc@kangaroopartners.com - 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. Darklings

    Event Calendar Contribution

    // 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. Darklings

    Event Calendar Contribution

    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. Darklings

    AJAX Attribute Manager support

    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. Darklings

    Event Calendar Contribution

    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. Darklings

    Event Calendar Contribution

    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. Darklings

    Event Calendar Contribution

    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. Darklings

    Event Calender

    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....
×