HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Strange moniker behavior

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#78411 (In Topic #16052)
Avatar

Well-settled

Let's say that we create a forum "Forum One". Its moniker will be "forum-one".

If we delete the forum there is still a record "forum-one" in table ocp_url_id_monikers (note that m_deprecated field is still '0')

So, if we again create forum with name "Forum One" its moniker is actually "forum-one_1"

Is there any particular reason why moniker is not deleted together with a forum?

Thank you.

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78468
Avatar

Hi,

It's not really a bug, it's just we don't delete the monikers.

I've made a tracker issue for it:
0000374: Make URL monikers re-usable - ocPortal feature tracker

I'm not sure about this. If something is deleted, then something else is made, it is arguably something else and any links going to the old thing should not go to the new thing.

The idealised solution would be to make it an option when deleting, but that's rather bloaty.

I appreciate the problem that you lose the nice moniker if you delete then re-create.

Maybe another solution is to amend this:
http://ocportal.com/tracker/view.php?id=206
to also allow editable monikers, so you can force it back to another one if that other one is now returning a 404.

So this is worth a discussion…


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78523
Avatar

Well-settled

Thank you for your attention and ideas Chris.

I investigated a little bit deeper and found that there are some other cases when URL moniker logic should be handled properly, too:

1) Renaming forum/topic

- Create forum "Forum One". Its moniker is "forum-one"
- Rename the forum into "Forum Two". The moniker is still "forum-one", not updated

2) Merging forums and migrating forums and topics into other forum

- Create "Forum Two" as sub-forum of "Forum-One". Its moniker is "forum-one/forum-two"
- Edit "Forum Two" and save it as a standalone forum or as a sub-forum of any other forum. The moniker is still "forum-one/forum-two" although "Forum Two" is not sub-forum of "Forum One" anymore.

Some suggestions:

- My opinion is that all information that are not necessary should be deleted. Otherwise system becomes over-bloated, i.e. it keeps information about data that are not in the system anymore. Also, the table constantly grows up; at the same time preventing creation of "valid" URL.
- Editing moniker is great idea but I think that it's an option feature and that the system itself need to handle core things such as deleting and updating monikers.
- If auto-handling URL monikers sometime fails there could be an option in e.g. Admin Panel > Tools > Website cleanup tools > Update URL moniker that will update the table with "valid" paths

For now here are some, well… I couldn't call them solutions, but temporary fixes until the logic is changed:

- Do not use moniker at all (bad idea because of SEO)
- Do not change forum structure once it's created
- It seems that a forum page checks whether URL moniker exists and if doesn't exist, the page creates it. So the fix I used was deleting all data from table ocp_url_id_monikers. The next time when forum page was opened all monikers were recreated, but that time with valid URLs. So far there is not any issue caused with this method.


Last edit: by MitraX

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78527
Avatar

So far there is not any issue caused with this method.

I do think there is an issue. Let me pull out a silly exaggerated example…

You create a forum "MitraX's house of fun", and some parent gives their kid a link to it. Then it becomes unpopular, so it's deleted. But you then create "MitraX's house of the dead" where people post pictures of dead people. Said kid now has a link to something entirely unintended ;). Right now this possible problem is avoided.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78530
Avatar

Will look into 1 and 2.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78531
Avatar

Well-settled

Well, I've actually talked about portal I'm working on. Luckily, it's still locked so there are not any shared links yet :) Thank you anyway.

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78532
Avatar

Here's a fix for the issue you've found…

Attachment
sources/urls2.php
» Download: urls2.php (20 Kb, 91 downloads so far)


The bug happens if you rename/move something more than once. The bug: It only deprecated the first moniker (which was already deprecated).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78675
Avatar

Well-settled

Thank you, Chris!

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: