Can someone help – is there a bug with the sites module, or are there some restrictions on the type of URL’s it will handle that I’m missing.
For example it will accept this URL:
http://www.fieldmarketing.com/articles/888/59/iD-Experiential-delivers-Zen-experience-for-Asus/
But when I try the following URL I just get an error that states “incorrect value”
http://www.fieldmarketing.com/articles/883/59/Grand-Visual-helps-augment-Green-Giant-s-pledge-campaign/
The “incorrect value” error has also occurred for quite a few other URL’s I’ve tried too. (I’d submit this as a support ticket but I’m just evaluating the demo at the moment (http://demo.boonex.com/index.php) to see if the software is going to be suitable for our needs. (We want to use the sites module as a way to share news stories from around the web without having to plagiarise / create our own stories using the News module).
|
There is a limit of 100 chars for the url in sites module, your second URL is a little bit longer. Rules → http://www.boonex.com/terms |
Ah thanks Alex, that explains it! |
Which leads to the question, "Can that be changed?" Is this due to a character limit on a database field? How to rectify the problem? I don't use the site module so have no idea. We know this is not due to any HTML limit; is there a reason for the 100 character limit? Answers to questions often lead to more questions Geeks, making the world a better place |
All good questions geek_girl. Is there anyone out there that can shed some more light? |
/modules/boonex/sites/classes/BxSitesFromAdd.php
line 63 (version7.1.0)
'params' => array(1,100),
ManOfTeal.COM a Proud UNA site, six years running strong! |
Geeks, making the world a better place |
your welcome
[edit] I just noticed I misspelled the class file, should be "BxSitesFormAdd.php"
ManOfTeal.COM a Proud UNA site, six years running strong! |
Database field length must be changed as well:
ALTER TABLE `bx_sites_main` CHANGE `url` `url` VARCHAR( 255 ) NOT NULL;
/modules/boonex/sites/classes/BxSitesFromAdd.php
line 63 (version7.1.0)
'params' => array(1,100),
Rules → http://www.boonex.com/terms |
Thanks Alex - that's really helpful. |
Thanks for clearing that up Alex... ManOfTeal.COM a Proud UNA site, six years running strong! |
I know I'm going back a bit... but would anyone be able to help me with some more detailed advice on how to implement Alex T's recommendation on how to extend the number of characters that the site's module will accept?
I imagine in /modules/boonex/sites/classes/BxSitesFormAdd.php (line 63) I change 'params' => array(1,100), to 'params' => array(1,250), for example?
But Alex alsmo mentioned that I need to change the database field length as well (ALTER TABLE `bx_sites_main` CHANGE `url` `url` VARCHAR( 255 ) NOT NULL;) however I've no idea how or what to change here. Can anyone help?
|
You run that sql in phpMyAdmin. You use phpMyAdmin and select your dolphin database. Click the SQL tab then in there you enter the query to run.
ALTER TABLE `bx_sites_main` CHANGE `url` `url` VARCHAR( 255 ) NOT NULL;
https://www.deanbassett.com |
Thanks deano, would I also be able to run the query using the SQL Query Tool in the (amazing) Deano's Tools module by just pasting it into the box and clicking send? |
https://www.deanbassett.com |
|