Is this a bug in the Sites module?

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).

Quote · 14 May 2013

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
Quote · 15 May 2013

Ah thanks Alex, that explains it!

Quote · 15 May 2013

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 Smile

Geeks, making the world a better place
Quote · 15 May 2013

All good questions geek_girl. Is there anyone out there that can shed some more light?

Quote · 15 May 2013

/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!
Quote · 15 May 2013

Thanks Newton.

Geeks, making the world a better place
Quote · 15 May 2013

 

Thanks Newton.

 your welcome Wink

[edit] I just noticed I misspelled the class file, should be "BxSitesFormAdd.php"

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 15 May 2013

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
Quote · 16 May 2013

Thanks Alex - that's really helpful.

Quote · 16 May 2013

Thanks for clearing that up Alex...

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 16 May 2013

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?

Quote · 27 Nov 2013

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
Quote · 27 Nov 2013

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?

Quote · 27 Nov 2013

yes.

https://www.deanbassett.com
Quote · 27 Nov 2013

Awesome, thanks deano

Quote · 27 Nov 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.