strtolower
function on tags? Also, some of your SQL queries - you should probably (int)
your variables where you expect them (for example, $topic_id
).strtolower
function on tags? Also, some of your SQL queries - you should probably (int)
your variables where you expect them (for example, $topic_id
).Well, there is no other reason for it than during prototyping a tag for me was lower case^^ - it's just easier and a little more performant if we do not store "tutorial", "Tutorial" and "tuTorial" - BUT: A regex defining which tags are valid and which are not will be added anyway - and I plan to make it configurable in ACP (https://github.com/RobertHeim/phpbb-ext ... /issues/11 ). However, during search it is not planned to implement case-sensitive features and I will search case-insensitive. (So you will find "tutorial" when searching for "tuTorial". If you need more case-sensitive features, feel free to implement them and offer a pull request on github. I might merge them.kmtruscott wrote:Out of curiosity, why are you running thestrtolower
function on tags?
can you comment these lines on github? would be great! =)Also, some of your SQL queries - you should probably(int)
your variables where you expect them (for example,$topic_id
).
To prevent duplicate tags, you could pull the tags and strtolower those when searching. This will allow you to keep the case when tags are added. If I get time, I'll see if I can create a pull request, but I've got a busy 2 weeks coming up.combuster wrote:Well, there is no other reason for it than during prototyping a tag for me was lower case^^ - it's just easier and a little more performant if we do not store "tutorial", "Tutorial" and "tuTorial" - BUT: A regex defining which tags are valid and which are not will be added anyway - and I plan to make it configurable in ACP (https://github.com/RobertHeim/phpbb-ext ... /issues/11 ). However, during search it is not planned to implement case-sensitive features and I will search case-insensitive. (So you will find "tutorial" when searching for "tuTorial". If you need more case-sensitive features, feel free to implement them and offer a pull request on github. I might merge them.
I did a quick run-through and it looks like only 2 lines, but you might want to double-check. I created an issue for it here.combuster wrote:can you comment these lines on github? would be great! =)
Hi, thx! I implemented it and added an ACP option to disable it. It will be in next release =)SB_1 wrote:I have a suggestion for this extension. I think it would be great if the tags could be displayed next to or just below a topic title in viewforum.php. This way users could easily search for similar topics on certain subjects whilst browsing forums.
Great. I've looked at the screenshots. Maybe it would be better to display the tags like they are in the tag cloud, like little labels, to make them stand out more from other plain text content on the viewforum page?combuster wrote:Hi, thx! I implemented it and added an ACP option to disable it. It will be in next release =)SB_1 wrote:I have a suggestion for this extension. I think it would be great if the tags could be displayed next to or just below a topic title in viewforum.php. This way users could easily search for similar topics on certain subjects whilst browsing forums.
Code: Select all
Fatal error: Cannot redeclare class robertheim\topictags\migrations\release_0_0_7 in /xxx/yyy/zzz/forum1_phpBB31/ext/robertheim/topictags/migrations/releases_0_0_7.php on line 0
+leschek wrote:2. Tag cloud in section where the "Who is online", "Birthdays" and "Statistics" are
+leschek wrote:There also could be option to show there 20 (or so) most used tags (instead to show all tags).
+leschek wrote:3. I would like to have some option, which allow admin to control what tags are used.
+leschek wrote:4. Permission who can add tags to topics.