insideorkut.com

How do I get on the iContact mailing list for the University of California Berkeley?

Try iContact email marketing for free for 30 days. Click here to use coupon...

Get a free trial of iContact here. Click here for this special deal...
First question I got is How do I get on the iContact mailing list for the University of California Berkeley? Thanks in advance for any answer or 2. Another question I got... My hosting provider updated php from 4.4.9 to 5.2.14 which left my osC ver2 MS2 unusable, although provider stated that there are no issues with PHP5 and RC2A (which they recommend I upgrade too). Luckily they allow the PHP server version to be selected via .htaccess so a simple change allowed my MS2.2 release to continue to run..

I have now nearly finished testing RC2A and added back my contributions / ammendments installed on the MS2.2 basic release. I have found (so far) 2 ammendments that will not work on php5 without turning on register global variables (r-g-v is not needed for RC2A as I understand it and presents a security risk - also future releases of php may disallow the turning on of r-g-v)..

The 2 I'll highlight here are:.

1. Add Quantity Box - from installation documentation.pdf page 93..

2. Easy Meta Tags for SEO 1.0.1 -.

Http://addons.oscommerce.com/info/6360.

Can someone let me know whether these 2 simple to install and wonderfully useful (with r-g-v on) enhancements can be easily changed in order for them to work with r-g-v turned off. If so, once I understand the logic of the change I'll be able to (hopefully) change any other contribs installed that only work with r-g-v turned on as I continue my testing. (I'm a novice)..

Am I worrying too much about r-g-v being turned on - should I just continue testing RC2a / PHP5 with r-g-v turned on - as I'm able to do so at the moment..

Thanks in anticipation..

Lee..

Comments (4)

I'm stumped. I'm not so sure what is the answer to that question. I'll do some research in Google and get back to you if I find an useful answer. You should email the people at iContact as they probably could give you an answer..

Comment #1

Thanks Phil, can you help further (I'm having a blonde moment)..

Source file has call to metatags,php.

Metatags.php has following code:.

Define("PREFIX_TITLE", "Some Nice Words: ");.

Function MetaTagTitle($id, $lid) {.

$languages_id=(int)$lid;.

$Title = TITLE; // Defaults to global TITLE definition.

$product_name_query = tep_db_query("select products_name from "TABLE_PRODUCTS_DESCRIPTION" where products_id = '"$id"' and language_id = '"(int)$languages_id"'");.

$product_name = tep_db_fetch_array($product_name_query);.

If (tep_not_null($product_name['products_name'])) {.

$Title = PREFIX_TITLE$product_name['products_name'];.

}.

$Title = str_replace('<br>', ' ', $Title);.

Return ($Title);.

}.

Back to source file which has this code (presumably using $Title info.

<TITLE><?php echo MetaTagTitle($products_id, $languages_id); ?></TITLE>.

How do I use the $_REQUEST in this example for it to work..

Thanks in anticipation..

This post has been edited by.

Lee the bean.

: 15 October 2010, 15:46..

Comment #2

There's nothing in the code you showed (MegaTagTitle() function) that uses r-g-v's. In the <TITLE> line, can you account for the variables $products_id and $languages_id? That is, where do they come from? If they just "magically" appear out of thin air, and came in from a form or from another page via the URL (products_id=123&languages_id=2), you would add lines.

$products_id = $_REQUEST['products_id'];.

$languages_id = $_REQUEST['languages_id'];.

Somewhere before the <TITLE> line...

Comment #3

Phil, you're a *star*..

Logic understood and both ammendments are now working as wonderfully as they always have (under MS2.2). I think I should be able to tackle any others that I find as I continue testing (which I'm sure I nearly have now). Cant wait to go live. Thanks for your help..

Lee..

Comment #4

Sounds good. If you've migrated to the final release, 2.2 RC2a (there is a 2.3 promised, but I wouldn't hold my breath), you've done about all you can until the time (if and when) 2.3 or 3.0 actually are released (they should be PHP 5.3 compatible). How are you set for your database? Sooner or later your host will move you up to MySQL 5, which will break a number of things in 2.2 (don't know about 2.3 or 3.0). Fortunately, the fixes are easy, and backwards compatible to MySQL 4:.

Http://forums.oscomm...l-5-1054-errors..

Comment #5


This question was taken from a support group/message board and re-posted here so others can learn from it.