Url moniker legth
|
Posted
#78912
(In Topic #16110)
|
|
|---|---|
|
Well-settled |
Due to the reason that there is not any option in forum configuration related to url moniker length, I found the logic in source/urls2.php. Function "_choose_moniker" contains the following code: Code
...
I'm thinking about changing it to something like this: Code
...
In this case maybe field "m_moniker" in table "ocp_url_id_monikers" should be changed to varchar > 255 (varchar's length was 255 before MySQL 5.0.3, and 0 to 65,535 in 5.0.3 and later versions). Am I allowed to perform the changes without impact to any other logic on the system? Also, will future upgrades override the field's length changing? The parameter MAX_MONIKER_LENGTH is also a candidate for a configuration parameter.
FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency BlicKlik - Internet Marketing and Advertising |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Well-settled |
Maybe other guys would like to have similar ocPortal behavior so I created tutorial How to change URL moniker length in ocPortal CMS with step-by-step instructions for both ocPortal code changes and table's field modification.
FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency BlicKlik - Internet Marketing and Advertising |
|
Posted
|
|
|
Community saint |
Chris, has your position on moniker length changed?
Visit Last Gamer because its made with ocPortal.
Stay for the content - Video game retrospectives, reviews, galleries and discussions. Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio . |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
As I mentioned above, I'd certainly like to see ocPortal officially raise the moniker length. I think something like 128 would suffice for most people and would allow more keywords in the URL. Bob |
|
Posted
|
|
|
Honoured member |
|
1 guests and 0 members have just viewed this: None
Control functions:







