Jump to content

Recommended Posts

Posted

Hello All

 

i will begin the work for announcement plugin next week , so i need a idea to go with it , from my notes i have the fallowing

 

- no categories for announcement .

- the announcement will have as table

  1. id - the announcement ID (unique)
  2. title - title for announcement
  3. body - the full announcement body
  4. date_added - date added
  5. visiblity  - clients  /  publics and clients
  6. active - option to hide or show it in clients widget .

 - we will make a widget for client that will show new announcement (the title and some body truncated ) , then we way make a option to hide the announcemet after xx days ( 1 mounth or 15 days )

 

 - a archive  page for all the announcement (ajaxed of course)

 

 

what is your idea about this ? there is any thing that i have missed or should i add before we begin coding ?

 

 

best regards for all .

 

 

Posted

Looking good :)

Can you add an extra option to be able to publish by installed language also?

Thos way we can anounce in every language and each client can read on there own language ;)

i put your note to my TODO next release .

i will finish this as the initial release , then i will make it for the upcome release .

the reason why i will not add it to this release , because i added a new option , to set announcement by client groups and packages , by that we can set announcement for just the client group X (and/or) by client packages (exemple hosting package 1 , or vps backage 2 ect .... )

also the multi-languages i support it need a new structure of database table .

a question for you PauloV ,have you see or tried anytime to change teh url to a freindly SEO url in blesta ?

exemple

from /client/plugin/knowledgebase/client_main/article/22/

to /client/knowledgebase/how-top-install-cpanel-in-vps/

any other one has tested or tried this ?

Posted

Looking good, is there ones we can use pure html like the portal or is it just WYSIWYG?

the pure html is WYSIWYG , i tink your attention is use a simple textarea . so you can se it with WYSIWYG editor also , the editor has the first box to disable html editor.

can you try it

Posted

i put your note to my TODO next release .

i will finish this as the initial release , then i will make it for the upcome release .

the reason why i will not add it to this release , because i added a new option , to set announcement by client groups and packages , by that we can set announcement for just the client group X (and/or) by client packages (exemple hosting package 1 , or vps backage 2 ect .... )

also the multi-languages i support it need a new structure of database table .

a question for you PauloV ,have you see or tried anytime to change teh url to a freindly SEO url in blesta ?

exemple

from /client/plugin/knowledgebase/client_main/article/22/

to /client/knowledgebase/how-top-install-cpanel-in-vps/

any other one has tested or tried this ?

 

 

1- OK :) I also can help you on this wen you release it ;)

 

2-  Its easy to do friendly URLS :)

 
- Add an extra text field called "furl"
- Add a rule to remove every special character and convert spaces to minus "-" and also convert all characters to lowercase (more easy lowercase)
- Wen submiting the form to save the new announcement, check if the "furl" is unic, it cannot have the same name twice :P
- Now on accessing the url for the announcment, just add a function to search by "furl" field insted the "id" field
 
this way will be like for exemple:
 
/client/plugin/knowledgebase/client_main/article/how-top-install-cpanel-in-vps/
 
insted of
 
/client/plugin/knowledgebase/client_main/article/22/
 
Hope that helps :)
 
If you want I can also help you on this after you release it ;)
 
Regards,
PV
  • 2 weeks later...
Posted

this way will be like for exemple:

 

/client/plugin/knowledgebase/client_main/article/how-top-install-cpanel-in-vps/

 

insted of

 

/client/plugin/knowledgebase/client_main/article/22/

mine idea was to rewrite complete url not just the end .

/client/plugin/knowledgebase/client_main/article/how-top-install-cpanel-in-vps/

the final result :

/knowledgebase/how-top-install-cpanel-in-vps/

 

i think this ned a change in route.php

 

@cody ,@tyson, @Paul , why not a possibilities to extend the route.php from inside plugin directory , that yaw we can add extra route without changing the core file .

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...