The label list is not easy to use after upgrading 1.2

Solve the installation and upgrade problems you encounter in different platform environments
reply
Islan
Posts: fourteen
Registration time: 16:04, September 26, 2018

The label list is not easy to use after upgrading 1.2

Posts from Islan »

For the convenience of writing articles
Add a tag list to the write post
The effect of 1.1 is as follows
 picture
Now upgrade to 1.2
The effect is like this
 picture
The source code is as follows
 picture

code: Select All

 <section class="typecho-post-option"> <label for="token-input-tags" class="typecho-label"><? Php _e ('label ');?></ label> <p> <input id="tags" name="tags" type="text" value="<?php $post->tags(',', false); ?>" class="w-100 text" /> <style>.tagshelper a{cursor: pointer; padding: 0px 6px; margin: 2px 0;display: inline-block;border-radius: 2px;text-decoration: none;}.tagshelper a:hover{background: #ccc;color: #fff;} </style> <script> $(document).ready(function(){ $('# tags'). after ('<div style="margin top: 35px;" class="taghelper">Tag selection:<ul style="list style: none; border: 1px solid # D9D9D6; padding: 6px 12px; max height: 240px; overflow: auto; background color: # FFF; border radius: 2px;"><? Php $stack = Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->stack; $i = 0;  while (isset($stack[$i])) { echo "<a id=\"$i\" onclick=\"$(\'#tags\').tokenInput(\'add\', {id: \'".$stack[$i]['name']."\', tags: \'".$stack[$i]['name']."\'});\ ">",$stack[$i]['name'], "</a>"; $i++; if (isset($stack[$i])) echo "  ";} ?></ ul></div>'); }); </script> </p> </section>
Ask Big Brother for help to modify or give advice
be deeply grateful
Islan
Posts: fourteen
Registration time: 16:04, September 26, 2018

Re: After upgrading 1.2, the tag list is not easy to use

Posts from Islan »

Thank you, boss
This problem is finally solved
weich
Posts: one hundred and seventy-two
Registration time: 07:48, April 6, 2018
Contact:

Re: After upgrading 1.2, the tag list is not easy to use

Posts from weich »

1.21 If the plug-in is not displayed, I will use the code
reply