Brandon C Posted November 18, 2005 Posted November 18, 2005 to see what happens? Don't use symbols in variables. Most of the special characters such as #, *, and / already have meaning in prgramming languages. Of course, every variable in PHP begins with the $ character, but otherwise you should avoid using punctuation. One exception to this rule is the underscore (_) character, which is allowed in most languages, including PHP. :thumbsup:
mirc Posted November 18, 2005 Posted November 18, 2005 Don't use symbols in variables. Most of the special characters such as #, *, and / already have meaning in prgramming languages. Of course, every variable in PHP begins with the $ character, but otherwise you should avoid using punctuation. One exception to this rule is the underscore (_) character, which is allowed in most languages, including PHP. :thumbsup: the code is from ipb and im asking becouseof Passing by Reference You can pass variable to function by reference, so that function could modify its arguments. The syntax is as follows: Note that there's no reference sign on function call - only on function definition. Function definition alone is enough to correctly pass the argument by reference. In recent versions of PHP you will get a warning saying that "Call-time pass-by-reference" is deprecated when you use a & in foo(&$a);.http://pl.php.net/manual/en/language.references.pass.php
xQuarkDS9x Posted November 18, 2005 Posted November 18, 2005 But when we say we have a problem, guys like Quark are so bloody annoying when the most constructive thing to be said is 'works fine for me'.... like we are morons. Grrrrrrrrrrrrrrrrrrrrr.... All I'm going to say at this point is it look's like it's a crime to "dare" express your own view here when a lot of people make a simple forum upgrade a lot more complicated then it is and have problems. I suppose I got a little sick of what seem's like literally the sheer amount of complaint's that are in this topic since 2.1.3 was released. I guess it's a lesson learned - if you don't have problems with an upgrade, do not, I repeat, DO NOT post about it here because the others who do have problems will call you names here. :rolleyes: So, when the inevitable 2.1.4 comes out I'm not even going to bother because of some of the rude people here. I will admit myself and that other fellow got carried away, and I do apoligize if I offended anyone else with my actions and or opinions here, but it doesn't help with one other person who couldn't resist sticking his nose into this topic, has had his post reported, and is now on my ignore list as I don't have time for people, no matter how young or old, who are going to be rude towards me. In short, let it drop, and let this topic go back to normal.
bfarber Posted November 18, 2005 Posted November 18, 2005 Yes, this topic isn't intended to discuss member's and their attitudes/posts/etc. Each is open to post his opinion (about the appropriate subject, the upgrade), good or bad (though of course it's nice to hear the good reports now and then too ;) ). Because of that Quark, I don't think you should "shy away" from reporting having no problems. It's nice to hear the positive things too. Those who are having problems, you are free to post as well so we can identify the problems and sort them for you. Fixes are available for just about every issue that arose in 2.1.3 as a result. //Back on subject It is deprecated (though still supported) to pass by call time reference. There are very few places in the script where this is still done, and (thanks to a bug report submitted about this), I have gone through about 15 files and removed the pass by references. You should use & in the function declaration arguments list to identify an argument as a reference. It is not "proper" to set the & character to identify a reference when calling the function. There is a php.ini setting that will make it so that warning is not produced (allow_call_time_pass_reference). In the mean time, just don't enable notices and it won't hurt anything. The script will operate the same either way. If you choose to go in and enable notices, you are doing so at your own risk, and with no benefit. :)
michael n Posted November 18, 2005 Posted November 18, 2005 Yes, this topic isn't intended to discuss member's and their attitudes/posts/etc. Each is open to post his opinion (about the appropriate subject, the upgrade), good or bad (though of course it's nice to hear the good reports now and then too ;) ). Because of that Quark, I don't think you should "shy away" from reporting having no problems. It's nice to hear the positive things too. I actually wrote a long post how pleased I am with IPS once, but ended up not posting :D. Personally I'm 100% satisfied with IPS. My tickets are answered promptly, though I'm very new to all of this the IPB install was really simply, so was the Gallery install. Upgrades take 5 minutes. If I'd have trouble upgrading I'd ask an IPS technician to do it... we pay for the service, why not use it. Thank you IPS, good work! :thumbsup:
mirc Posted November 18, 2005 Posted November 18, 2005 I have gone through about 15 files and removed the pass by references. If you choose to go in and enable notices, you are doing so at your own risk, and with no benefit. could you list the files i wantet only to see the effect and not set it permanently, but will you do something with it - its only a question i changed my host and therefore i got some issues with the settings but now its oll fine and and an idea: maybe you could do in fast replay add selected text as quote that its adding the member we are quoting regards
bfarber Posted November 18, 2005 Posted November 18, 2005 I don't have the list of files now. I did a search within files for the pass by reference and the ones I found I corrected. The module loaders were a big one, but there were a few others. Here is the original bug report if it is of any interest: click me @michael n...thx :) @Energizer...there is no word on the release date for it yet.
mirc Posted November 18, 2005 Posted November 18, 2005 Here is the original bug report if it is of any interesthavent been there for sometime@Energizer...there is no word on the release date for it yet.its a meter of days or weeks bfarber you do your job great
UBERHOST.NET Posted November 18, 2005 Posted November 18, 2005 I agree, Brandon is doing a stellar job! :thumbsup:
ccie9277 Posted November 19, 2005 Posted November 19, 2005 So how do you re-order root forums now? I see how you select their position with the drop down but there's no ok button? What the heck?So how do you re-order root forums now? I see how you select their position with the drop down but there's no ok button? What the heck? Disregard this post as I am an obvious moron... :ermm:
ckoebke Posted November 19, 2005 Posted November 19, 2005 Forgot to say that my upgrade went smooth and without any errors. IPB still the best and rock solid board that i know. Thanks to all programmers
local Posted November 19, 2005 Posted November 19, 2005 Since i upgrade my IPB from 2.0.4 to 2.1.3 the forum is getting very slow and also oppening to many connection to the database. So many connections, that the whole server is going to hell. I have to restart the server every 30 minutes. I have to let you know, i have try the new version (2.1.3) in 4 different server with the same resolts.Anyone knows about this problem? Or iz it me? o:) Thank you
WxChat.com Posted November 20, 2005 Posted November 20, 2005 me and my members have been receiving PMs with no subject in the order of 2 at a time? any ideas what this is all about?
X-Sports NZ Posted November 20, 2005 Posted November 20, 2005 Me too, I kept my old 2.0.0 database in tact, deleted all files exept conf_global.php and uploaded all the new files then ran the upgrade script and it couldn't have gone smoother.
ckoebke Posted November 20, 2005 Posted November 20, 2005 OK since it is a big upgrade, i will tell you how i have done it:!!! TAKE YOUR BOARD OFFLINE DURING UPGRADE SESSION IN THE ACP !!!1. Make a backup of the board database & files:mysqldump \ -uroot \ -p$PASSWORD \ -hlocalhost \ --database <BOARD DATABASE NAME> \ --all \ --opt \ --allow-keywords \ --flush-logs \ --hex-blob \ --master-data \ --max_allowed_packet=16M \ --quote-names \ --result-file=BACKUP_IPBBOARD_2.0.X.SQL Replace <BOARD DATABASE NAME> with the name of your database. copy the complete boardfolder to CD or another location on your harddisc: # mkdir /boardbackup # cp -rp <BOARDFOLDER> /boardbackup 2. Delete all folders / files except: upload folder conf_global.php and if you wish to keep old skins / avatars / emoticons do not delete these folders: style_avatars style_emoticons style_images 3. Upload the new files for IPB 2.1.x with ssh / ftp or what ever 4. chown all files in the board folder to the user & group that the webserver is runing # chown -R apache:apache * (-R is for recursive into all subfolders) 5. chmod the cache folder to 777 (or if you wish it a bit saver to 666) if you use linuxserver #chmod -R 777 * (-R is for recursive into all subfolders) 6. In your webbrowser run the update http://www.yourwebserver.com/upgrade/ *you shpuld reverse all skin customations* during the update when asked 7. Delete the "install" and "upgrade" folder (or what i alwys do is chmod them to 000) Have fun with your IPB 2.1.3 ### When everthing runs wrong / nothing works ### 1. Delete your complete boardfolder and copy back the backup we made back to its location # rm -r <ipb 2.1.3 folder> # cp -rp /boarbackup/<BOARDFOLDER> /path_to_your_board/ 2. Delete the ipb 2.1.3 database: # mysql -u root -p and in the mysqlshell: mysql# drop database <ipb databasename>; mysql# quit; 3. Insert the database backup we made for ipb 2.0.x into mysql: cat BACKUP_IPBBOARD_2.0.X.SQL \ | mysql \ -uroot \ -p$PASSWORD \ -hlocalhost \ --max_allowed_packet=16M Now everything is back to ipb 2.0.x again I take no guarantee that this will work with your board / server. it worked on my board / server (gentoo linux) very well.
ckoebke Posted November 20, 2005 Posted November 20, 2005 Sould be mutch easier if you said => delete updated database, re-upload and ecxecute old database, reupload your old board. Job iz done! Keep it eazy! (to many information for nothing) Im feeling soooooooo down i paid something is worth it nothing. CORRECT Me IF YOU CAN! Thank you Not everyone is growed up with a linux/mysql shell :)
mirc Posted November 20, 2005 Posted November 20, 2005 Not everyone is growed up with a linux/mysql shell :)and not everybody has access to it
ckoebke Posted November 20, 2005 Posted November 20, 2005 and not everybody has access to it Make a howto for ftp + phpmyadmin :)
Jonte Posted November 20, 2005 Posted November 20, 2005 Make a howto for ftp + phpmyadmin :) that would be great
ckoebke Posted November 20, 2005 Posted November 20, 2005 @bfarber found a simple way to fix transparent png for IE. maybe you put into next update.http://homepage.ntlworld.com/bobosola/pnghowto.htm
.John. Posted November 20, 2005 Posted November 20, 2005 is there a trial? There is a demo, but not a trial:http://www.invisionpower.com/ip.dynamic/pr...emoaccount.html
.John. Posted November 20, 2005 Posted November 20, 2005 Quick question: When using the portal index.php - how can you disguise the URL to be http://www.domain.com For example - Currently, when using the index.php - it automatically forwards you to http://www.domain.com/forums/index.php?act=home How can you make it so it still says http://www.domain.com, until you click a link on the page?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.