How to add alphabetic bullets in phpmyfaq?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

Hi I see you only can add numbered bullets and the common round bullets, but is there a way to add alphabetic bullets or roman numberings?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to add alphabetic bullets in phpmyfaq?

Post by Thorsten »

Hi,

where do you want the alphabetical ordering?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

Re: How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

Hi

I would like to add in the "Add new FAQ" text editor. I am using as administrator.

Thanks for your reply :)
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to add alphabetic bullets in phpmyfaq?

Post by Thorsten »

Hi,

looks like there's plugin for that: http://www.tinymce.com/forum/viewtopic.php?id=1597

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

Re: How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

Hi,

I am using phpmyfaq 2.8.10.
I have placed the liststyle folder in the admin/editor/plugins folder, and I did this :
"add the following CSS rule to the "themes/advanced/skins/default/ui.css" file:

.defaultSkin span.mce_liststyle {
background-image: url(../../../../plugins/liststyle/img/liststyle.gif);
background-position: 0
}"

But how do I initialize the plugin? The button has not appeared on the "add a new faq" edit tools.

Thanks
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to add alphabetic bullets in phpmyfaq?

Post by Thorsten »

Hi,

it's in admin/footer.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

Re: How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

Hi,

thanks!
But the button is still not appearing..
Did I miss something?

Here is what I add: (in blue)

tinyMCE.init({
// General options
mode : "exact",
language : "<?php print (PMF_Language::isASupportedTinyMCELanguage($LANGCODE) ? $LANGCODE : 'en'); ?>",
elements : "<?php print ('addnews' == $action || 'editnews' == $action) ? 'news' : 'answer' ?>",
width : "500",
height : "480",
theme : "advanced",
plugins : "spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,
contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,
xhtmlxtras,template,syntaxhl,phpmyfaq,liststyle",
theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp",

// Theme options
theme_advanced_buttons1 : "<?php print $tinyMceSave ?>bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontsizeselect,|,liststyle",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,phpmyfaq,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,syntaxhl,|,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
relative_urls : false,
convert_urls : false,
remove_linebreaks : false,
use_native_selects : true,
entity_encoding : "raw",
extended_valid_elements : "code",
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to add alphabetic bullets in phpmyfaq?

Post by Thorsten »

Hi,

do you see any JS errors? Should work that way.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

Re: How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

Hi,

I don't see any JS error.
I think is the ui.css file that I am not sure...

"
/* Plugins */
.defaultSkin span.mce_advhr {background-position:-0px -20px}
.defaultSkin span.mce_ltr {background-position:-20px -20px}
.defaultSkin span.mce_rtl {background-position:-40px -20px}
.defaultSkin span.mce_emotions {background-position:-60px -20px}
.defaultSkin span.mce_fullpage {background-position:-80px -20px}
.defaultSkin span.mce_fullscreen {background-position:-100px -20px}
.defaultSkin span.mce_iespell {background-position:-120px -20px}
.defaultSkin span.mce_insertdate {background-position:-140px -20px}
.defaultSkin span.mce_inserttime {background-position:-160px -20px}
.defaultSkin span.mce_absolute {background-position:-180px -20px}
.defaultSkin span.mce_backward {background-position:-200px -20px}
.defaultSkin span.mce_forward {background-position:-220px -20px}
.defaultSkin span.mce_insert_layer {background-position:-240px -20px}
.defaultSkin span.mce_insertlayer {background-position:-260px -20px}
.defaultSkin span.mce_movebackward {background-position:-280px -20px}
.defaultSkin span.mce_moveforward {background-position:-300px -20px}
.defaultSkin span.mce_media {background-position:-320px -20px}
.defaultSkin span.mce_nonbreaking {background-position:-340px -20px}
.defaultSkin span.mce_pastetext {background-position:-360px -20px}
.defaultSkin span.mce_pasteword {background-position:-380px -20px}
.defaultSkin span.mce_selectall {background-position:-400px -20px}
.defaultSkin span.mce_preview {background-position:-420px -20px}
.defaultSkin span.mce_print {background-position:-440px -20px}
.defaultSkin span.mce_cancel {background-position:-460px -20px}
.defaultSkin span.mce_save {background-position:-480px -20px}
.defaultSkin span.mce_replace {background-position:-500px -20px}
.defaultSkin span.mce_search {background-position:-520px -20px}
.defaultSkin span.mce_styleprops {background-position:-560px -20px}
.defaultSkin span.mce_table {background-position:-580px -20px}
.defaultSkin span.mce_cell_props {background-position:-600px -20px}
.defaultSkin span.mce_delete_table {background-position:-620px -20px}
.defaultSkin span.mce_delete_col {background-position:-640px -20px}
.defaultSkin span.mce_delete_row {background-position:-660px -20px}
.defaultSkin span.mce_col_after {background-position:-680px -20px}
.defaultSkin span.mce_col_before {background-position:-700px -20px}
.defaultSkin span.mce_row_after {background-position:-720px -20px}
.defaultSkin span.mce_row_before {background-position:-740px -20px}
.defaultSkin span.mce_merge_cells {background-position:-760px -20px}
.defaultSkin span.mce_table_props {background-position:-980px -20px}
.defaultSkin span.mce_row_props {background-position:-780px -20px}
.defaultSkin span.mce_split_cells {background-position:-800px -20px}
.defaultSkin span.mce_template {background-position:-820px -20px}
.defaultSkin span.mce_visualchars {background-position:-840px -20px}
.defaultSkin span.mce_abbr {background-position:-860px -20px}
.defaultSkin span.mce_acronym {background-position:-880px -20px}
.defaultSkin span.mce_attribs {background-position:-900px -20px}
.defaultSkin span.mce_cite {background-position:-920px -20px}
.defaultSkin span.mce_del {background-position:-940px -20px}
.defaultSkin span.mce_ins {background-position:-960px -20px}
.defaultSkin span.mce_pagebreak {background-position:0 -40px}
.defaultSkin span.mce_restoredraft {background-position:-20px -40px}
.defaultSkin span.mce_spellchecker {background-position:-540px -20px}
.defaultSkin span.mce_visualblocks {background-position: -40px -40px}
.defaultSkin span.mce_liststyle {background:url(../../img/liststyle.gif); background-position:-980px -20px}"

did I put it correctly?

thanks
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

Re: How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

Hi

I don't think there is an error at footer.php, probably is the adding of plugin?

I extracted the liststyle files (images,jscripts,langs,editor_plugin.js,liststyle.htm,plugin_liststyle.html,readme.txt) to: admin/editor/plugins/liststyle
What should I do next?

Thanks
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to add alphabetic bullets in phpmyfaq?

Post by Thorsten »

Hi,

that's the correct way. But the plugin doesn't show up?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

Re: How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

Yea didn't show up... Don't know what to do now :(
WhiteCookie
Posts: 17
Joined: Thu Jun 26, 2014 6:31 am

Re: How to add alphabetic bullets in phpmyfaq?

Post by WhiteCookie »

oh yay I solved my problem!
I realised I did not download the latest version of liststyle-3.1. And it finally works now!!! :lol: :D

Thanks for your help!
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to add alphabetic bullets in phpmyfaq?

Post by Thorsten »

Hi,

cool!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply