41
redheadedrod
Re: Inserting multiple rows in database table

After briefly looking at your code....
For starters You need to put the foreach loop inside of the for loop instead of outside of it.

As is $datas is only going to contain the last copy of the array and you will only load the database with this last entry.

You need to place it inside the for loop in order for you to properly step through all of the entries.

Your foreach loop looks ok otherwise to me but I might be missing something.

You really need to first get your code in the right place and if it still isn't working you need to step through the code.

As zyspec mentioned you also need to make sure the database isn't setup with a unique field because if you keep running your code and you are only seeing one entry this is because you are only updating the entry you have instead of making a new one due to the unique field.

Your first $datas = array(); line is unnecessary because you are doing it a couple of lines later. Although this shouldn't cause any issues as is otherwise.

I also agree with Zyspecs comments about creating the object and deleting it afterwards. Otherwise your object could contain items you don't expect.
Rodney



42
redheadedrod
Re: Smarty theme variables for Xoops

Thanks for this thread Cesag. Not only is it important to ask for documentation reasons but things are likely to change in 2.6 so it would be good to see what is out there.

Rodney



43
redheadedrod
Re: extgallery options to add?

I am finishing up my semester in school then I will be working extensively with Richard and help him get 2.6 moving along. Hopefully by end of summer with my help 2.6 will be drastically farther along.

So yes I had to re prioritize.

I am finishing up my semester in which I had a class in building web pages for Drupal. I am going to try working on some pet projects along the way too but I am going to try to keep mum until I have something to show. I have had a tendency to promise too much in the past and haven't really shown much yet. I will say that I have some really cool stuff in mind down the road so we shall see.

Rodney



44
redheadedrod
Re: XOOPS 2.6 : trouble installation and pre-required ?

You have to turn it on in the apache file and it will work for you there after. I had to do the same thing.

I would uninstall the composer program... Find the OpenSSL line in the apache file, uncomment it. Restart your Apache server and then reinstall Composer.

Should install without issue after this. You COULD forget about this and once you get the OpenSSL working it SHOULD work but I did this because I wanted to insure I didn't get any errors when I was installing composer.

I am using WAMP on an Win 8.1 Pro 64bit machine. I do have to restart WAMP every time I reboot. Didn't see an option to start it automatically yet.


Rodney
Attending College working towards Bachelors in Software Engineering and Network Security.



45
redheadedrod
Re: mailusers

I would agree with Mamba. 2.0.18 is really old and not supported. You will want to update to 2.5.6 and get everything running. 2.0.18 will not work with newer php versions and you will have to update eventually anyhow. Plus 2.0.18 has security issues that have been long fixed and definitely fixed in 2.5.6.

The complexity of the upgrade soley depends on the modules you have installed and what you need to continue to do.

Rodney



46
redheadedrod
Re: XOOPS 2.6.0 Alpha 2 released for Testing

Here you go:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=74058

Not sure how worthwhile it is anymore since many aspects are being updated or replaced.

2 more weeks of school then I will be back coding as well so hopefully I can help Richard move 2.6 forward quicker.

I wonder however if we shouldn't make a pre-alpha 3 thread and start there since this version of xoops is so much different than the alpha 2.

For the same reasons I think having alpha 2 being advertised on login as confusing and we should instead have a "2.6 pre - alpha 3" link pointing to the news page that announced the github and current development.

Rodney
Attending College working towards Bachelors in Software Engineering and Network Security.



47
redheadedrod
Re: XOOPS 2.6.0 Alpha 2 released for Testing

In short this difference will go away hopefully by the time 2.6 becomes beta. They will likely be called core modules instead of extensions but work is ongoing.

Alpha 2 is old news at this point and you want to download the in progress work on github. Not sure when alpha 3 will be officially released but it is in current development and major upgrades being made almost daily.

When finished not only will it be updated to meet the newer CMS's but should surpass them.

Rodney
Attending College working towards Bachelors in Software Engineering and Network Security.



48
redheadedrod
Re: XOOPS 2.6.0 Alpha 2 released for Testing

John, I PMed you. If you get a chance please email me.

While you don't HAVE to OOP your modules xoops is moving to a model you really will benefit from doing so.


Rodney
Attending College working towards Bachelors in Software Engineering and Network Security.



49
redheadedrod
Re: XOOPS 2.6.0 Alpha 2 released for Testing

John, once you have the latest 2.6 up and running you will notice there are a few upgrades since alpha 2.

The database structure is completely different because we have included Doctrine to allow other databases to be used. If you use the XoopsObject stuff however to store and retrieve stuff it should still work without issue. Starting with 2.6 prepared statements and transactions are supported. Schema definitions are preferred instead of the older .sql statements for installation but building the schema is easy to do with a working module with the utility Richard has included. (Look in the admin menu)

I am not sure how many upgrades are going to be completed before 2.6 is locked and released as beta but at this point I believe almost every system in xoops will be modified and updated before we are done with it with legacy support being kept as well where possible.

Look at the XMF stuff as well because XMF has been included in both 2.5.7 and 2.6 as a helper for modules and as a bridge between 2.5 and 2.6. Not at my computer right now but I believe you will find XMF in the frameworks directory.

Oh and the more you get to know the new 2.6 xoops the more you will like what you see.

Rodney

Attending College working towards Bachelors in Software Engineering and Network Security.



50
redheadedrod
Re: XOOPS 2.6.0 Alpha 2 released for Testing

I have said this in the past and will say it again. I think that requiring a somewhat non-standard library such as composer to be installed to use xoops is a mistake.

Unless it can be incorporated fully into an installation program it is not going to work for all members. If I am using a hosting service that doesn't have it installed and they don't give me command line access I would not be able to easily install 2.6 with the current configuration.

I still think we should be providing the code in the vender directory to make it easier for the members. Unless xoops is being charged for the bandwidth of github to download it I will never understand the reasoning to make things more difficult for members for no good reason. I do realize it allows for easy updating and they do a lot of work for you. I can agree that it is a good idea to include it in the final product once we get to beta but we should be providing 2 versions. One if the member has composer installed and one with the full current code base not requiring composer to be installed. Not providing this will push potential users away from xoops and onto other packages that just simply install and update without special effort.

Attending College working towards Bachelors in Software Engineering and Network Security.




TopTop
« 1 2 3 4 (5) 6 7 8 ... 116 »



Login

Who's Online

296 user(s) are online (191 user(s) are browsing Support Forums)


Members: 0


Guests: 296


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits