Jump to content

dianikol85

Member
  • Posts

    123
  • Joined

  • Last visited

Posts posted by dianikol85

  1. Hi to al!

     

    Let's say we have an object $object and its properties are unknown. But i do have an array $oeject_properties which values are the object's properties. I know i can't access a property like this: $object->$oeject_properties['property_name'].

     

    How i should do it???

  2. Hi guys. I need a Drupal guy here :rolleyes:

     

    I am building a website for a client using Drupal 7. One feature of this site is a link at the top of the browser which when i click it a dialog box pops up with a form in it.

     

    The form comes in the dialog using AJAX. Also the form submits using AJAX.

     

    The page where the form is called is here. Try to submit the form to see the AJAX thing. It works ok. But when i load the form in the dialog form it loses the ajax submit functionality. I know this is happening because new content comes in the page and it needs to rebind the AJAX action. However drupal uses a form api to builds forms and there is a backend mechanism for AJAX in the forms so i only i need to write the php side of the ajax process. The problem is that i can't find out how to rebind the ajax submit when i load a form using ajax. In the above link you can see what i mean.

     

    If i wasn't clear enough please ask me to explain more.

  3. I recently started to use Drupal. It has some learning curve but it is very flexible for programmers providing a huge API and a lot of great modules. I was too in this dilemma about building my own cms from scratch. Not any more.. There is no way that your CMS can compete drupal or wordpress even if you are great developer.

     

    Anyway i think drupal is a great choice if you want to build custom things for your clients. It provides great API as i said before with build in validation engine and stuff like that. Plus you will have a huge community behind you which means great support.

     

    Each CMS out there has its logic to build a web site or a plugin and you have to learn that logic. That is a good thing in my opinion because you will learn the "right way" to make things for the cms you will choose and that means your project is going to work because that logic is already tested by the guys who made it

     

    If you want anyway to build a cms from scratch consider to build it using a php framework like codeigniter or zend or cahephp because they also provide API so you don't have to worry about basic stuff like validation and your code is going to be much cleaner and robust otherwise there is a big chance that you'll end up with a messy code if you use raw php...

  4. A very interesting diagram that i think it tells the truth about the learning curve of drupal is the following pic

     

    post-28696-071001300 1312385435_thumb.png

     

    For me at least Drupal is the most hardcore thing so far as a web programmer. At first i really wanted to quit. :P. But when you complete a site with it , then you own great power

  5. Drupal provides you with some APIs. They have a term that is called : hooks.

     

    Hooks are functions that lets your custom module interact with the core of the drupal. In other words, in order to drupal recognize your module you must use these hooks functions.

     

    Also i want to mention that every functionality drupal provides you such as login, basic page, article and so on are all modules which are made with these APIs.

     

    In the core code base they use OOP in some places But they STRONGLY recommend never hack the core.NEVER! Instead, if you want to override things that by default drupal does use these APIs.

     

     

    Everyone who use Drupal really should learn these stuff. It will give you a lot of power

  6. As far as i can see Drupal has its own special view of how a cms should be. It looks more like a framework. It has some very difficult (at least for me) topics to learn which frustrates me such as build a module and there aren't many clean tutorials out there.. It can be very chaotic...

     

    Drupal 7 improves its UI a lot. Now is much more user friendly than the 6th version.

     

    Just for the history Drupal uses procedural architecture at least for making modules.

     

    The theming process was pretty straightforward although i had to read a lot for some specific areas like the slideshow in the front page. I'll tell you how i did this if you need it

     

     

    Thanks

  7. Hi to all!!

     

    I recently (almost) completed my first website based on Drupal 7. I spent 3 days to find out how the theming procedure works. It's from html to Drupal 7 theme! It's not actually for a client. Just for learning purposes but i think i could use it for a client.

     

    I want your opinion about it and feel free to ask me about the modules i used. I tried to use a decent amount of modules to see how Drupal handles it and stuff like that.

     

    Drupal 7 website

     

    I'm definitely going to use drupal from now on. It's really flexible and provide several APIs to extend drupal's functionality as you wish although it takes a lot of time to learn this advanced topic about creating custom modules.

     

    Thank you.

  8. I'm not going to use drupal for a project yet since i am still learning it. I need 3-4 months i guess to learn things like how to create modules and stuff. I don't want to use any cms without knowing how to extend it and being comfortable with it.

     

    These are some modules that I think is necessary for every drupal site

     

    - TOKEN

    - PATHAUTO

    - MOLLOM

    - GOOGLE NALYTICS

    - WYSIWYG

    - VIEWS - CTOOLS

    - XML SITEMAP

    - BACKUP/MIGRATE

    - GLOBAL REDIRECT

    - PAGE TITLE

    - SEO CHECKLIST

    - PATH REDIRECT

    - GLOBAL REDIRECT

    - DATE

    - CUSTOM SEARCH

    - WEBFORM

    - DEVEL MODULE

     

    CCK and DATE and IMAGE modules are now in core in drupal 7

     

    Any add from you BeeDev?

  9. That's what i thought. JSON is to manipulate the returning data. I guess that's its use. It isn't for faster response or something.

     

    For example if you return different types of data in a call then use json to manipulate what are you going to do with each type.

  10. Hello to all!

     

    Just a quick question. Let's say i make an ajax request and it returns a table with some data from a database.

     

    My questions is which format is better practice to return this table back? As a json or html?

     

     

    For example take the KS forum. In Recent Topics block after the title of the post you can view with a pop up a preview of the post using ajax. If you open the firebug and view the ajax call it returns the html with tha data.

     

    Also the forum every 3-4 minutes also make a ajax call to load new posts Recent Topics block. Again open firebug and see what it returns. This call returns a json object that contains the html.

     

     

    What is the difference between these two ajax responses?

     

     

    Thanks

  11. wordpress is better then joomla....

     

     

    Don't say something like that without arguments. Please explain why are you fun with one or another..... It just look stupid that way....

     

     

    I play a little bit with joomla. It seems more complete CMS out of the box. Wordpress is not. You can't do all kind of sites with WP

  12. As far i can see Drupal 7 got a lot of improvements about its UI. It has some learning curve but it worth it. You learn its API which is very good documented. Drupal is mor suitable for developers. For that reason it has more sophisticated programming architecture and it is more secure.

    For example if you use the Form API to create your own custom forms for some module or something ,drupal automatically supplies you with

     

    1. php and javascript validation

    2. CSRF

    3. clean code

     

    and more.

     

    I've found some video tutorials at lynda.com and at lullabot.com but they are not for free.

  13. Cool BeeDev. Can u show us the site you build with drupal 6? Actually i am now in search to find some tutorial about how to build custom themes.

     

    Do you suggest any quality video tutorials about that or how to build modules?

     

     

    Drupal has some learning curve at first but after that you can make cool stuff with it

  14. Hello to the forum.

     

    I recently started to play with drupal 7. As far as i can see it has it's own perspective in many things about how to manipulate content. It seems very solid software and by far better core code structure than its competitor Joomla although it follows procedural architecture.

     

    Has anyone here works with drupal 7 or drupal 6? What's your opinion about this software??

  15. I think it's a must for wordpress. I wish they will add this functionality soon because we don't need only plain text. We need more choices like setting up our checkboxes or drop down lists and maybe we need them to be dynamically created according to the database or something. How do you handle these stuff of requirements in wordpress?

     

    I am pretty sure that we need something more textfields.

  16. Hi to all!

     

    II spent some days reading about Drupal CMS. It's really powerful out of the box. One of its super useful feature is that it came with a CCK module into the core.

     

    CCK is an acronym and it means Content Constructor Kit. What it does is that it allows you to create your own content types depending on your needs. For example lets say you need to add a text field in your post that contains a price for a product or you need a checkbox to confirm that this products is in stock etc.

     

    Really great feature and i think it's a must.

     

    Is there something like that in Wordpress? Do you suggest another way to do the same thing?

     

    Thanks

  17. Hi to all. Just i though about security issues.

     

    I believe that we should have ssl protection in the backend of our site whatever cms we use (custom or open source like wp).

    to built e-commerce sites or a site that has login area for members. I think this solves many problems since that makes difficult for a hacker to steal sensitive information

     

    What's your opinion??

×
×
  • Create New...