[CDB] RH Topic Tags

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
leschek
Registered User
Posts: 791
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [BETA] RH Topic Tags

Post by leschek »

Thank you for the new version.
The following lines in language file topictags_acp.php looks unusual (quotation marks):

Code: Select all

'TOPICTAGS_TAG_DELETE_CONFIRM'				=> "Are you sure that you want to delete the tag <em>%s</em>? This will delete the tag from <b>all topics</b> where it is assigned. This can not be reverted.",

Code: Select all

'TOPICTAGS_TAG_MERGED'						=> "The tag has been merged with tag '%s'.",
Cable Player
Registered User
Posts: 516
Joined: Thu Feb 03, 2011 4:45 pm
Location: Hampshire, England

Re: [BETA] RH Topic Tags

Post by Cable Player »

Hi, is it possible to allow a full stop "." in a tag?

For example, I'd like to tag "phpBB3.1" but can't as it has a "dot" in it.

Thanks
leschek
Registered User
Posts: 791
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [BETA] RH Topic Tags

Post by leschek »

I think I had the same question a few pages ago. Look here (starting post about the problem).
swt4ajp
Registered User
Posts: 137
Joined: Mon Jan 16, 2012 4:44 pm

Re: [BETA] RH Topic Tags

Post by swt4ajp »

Hey everyone!

I am experiancing an issue with this :(

I have managed to setup and configure it to the sites needs but one thing is I have enabled it for the board index (tag cloud)
it shows the tags but when clicking the tag it shows a white box and nothing in there :S

http://forumstage.gamesunited.eu/
Username: stage
Password: T35t1ng

I am using IIS 7 as the server host as I host this myself.
when I go to a post with a tag on it takes me to a page: forumstage.gamesunited.eu/tag/Top-10?sid=0cf35679ff9215c7033f108fe6ced31c which shows that it should have urlrewrite but I have it enabled but doesnt work :(

any help would be greatly appreciated!
Last edited by swt4ajp on Sun Nov 09, 2014 8:12 am, edited 1 time in total.
web admin at several websites including
http://blackburnnet.co.uk
http://gamesunited.eu
FomenkoAndrey
Registered User
Posts: 367
Joined: Thu Aug 19, 2010 10:44 am

Re: [BETA] RH Topic Tags

Post by FomenkoAndrey »

PR for RU created, check
combuster
Registered User
Posts: 352
Joined: Sun Oct 26, 2008 11:58 pm

Re: [BETA] RH Topic Tags

Post by combuster »

@leschek: what is wrong with the quotation marks?
Cable Player wrote:Hi, is it possible to allow a full stop "." in a tag?
\.
swt4ajp wrote:http://forumstage.gamesunited.eu/
Username: staging
Password: T35t1ng
login does not work.

@FomenkoAndrey: THANKS! :)
Cable Player
Registered User
Posts: 516
Joined: Thu Feb 03, 2011 4:45 pm
Location: Hampshire, England

Re: [BETA] RH Topic Tags

Post by Cable Player »

combuster wrote:@leschek: what is wrong with the quotation marks?
Cable Player wrote:Hi, is it possible to allow a full stop "." in a tag?
\.
Sorry, how would I go about implementing this?
Thanks

Update:
Think I have it:
Change
/^[\- a-z0-9]{3,30}$/i
to
/^[\- \. a-z0-9]{3,30}$/i

Also, is it possible to add the word "Tags:" to the left hand side of the tags which display under a topic title in viewforum?
Thanks
leschek
Registered User
Posts: 791
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [BETA] RH Topic Tags

Post by leschek »

combuster wrote:@leschek: what is wrong with the quotation marks?
Maybe nothing (I'm not sure what are rules for language files). It just looks a bit unusual:
in a few lines you have (marked red):
[color=#FF0000]"[/color]The tag has been merged with tag '%s'.[color=#FF0000]"[/color],
but usually in language files is:
[color=#FF0000]'[/color]The tag has been changed.[color=#FF0000]'[/color],
User avatar
moviehive
Registered User
Posts: 190
Joined: Mon Oct 20, 2014 2:08 am
Name: Aaron T

Re: [BETA] RH Topic Tags

Post by moviehive »

I would like a permissions system where you can choose who can use the tags, and if any in the blacklist if any group can use those. For example admins could black list a read me tag that way they can use it; but no one else can.
combuster
Registered User
Posts: 352
Joined: Sun Oct 26, 2008 11:58 pm

Re: [BETA] RH Topic Tags

Post by combuster »

leschek wrote:
combuster wrote:@leschek: what is wrong with the quotation marks?
Maybe nothing (I'm not sure what are rules for language files). It just looks a bit unusual:
in a few lines you have (marked red):
[color=#FF0000]"[/color]The tag has been merged with tag '%s'.[color=#FF0000]"[/color],
but usually in language files is:
[color=#FF0000]'[/color]The tag has been changed.[color=#FF0000]'[/color],
This is, because normally you would use ' but when using ' within the string (so you want to print this character) it is needed to escape it like this: 'blabla \'%s\' blabla'. But as this is hard to read, you can use the double-quotes and do not need to escape single-quotes. See Coding guidelines "Quoting Strings" https://area51.phpbb.com/docs/30x/codin ... lines.html


@Cable Player: Please use google to learn about regex. The word "Tags:" has been there before, but was removed because it does not look good and hence it will stay removed, sorry.

@moviehive: basic permission is supported: ACP->permissions->user->select user -> misc -> "Can use RH topic tags".
User avatar
moviehive
Registered User
Posts: 190
Joined: Mon Oct 20, 2014 2:08 am
Name: Aaron T

Re: [BETA] RH Topic Tags

Post by moviehive »

At the moment I placed the IF ACP code within the code in the posting event style page.

I'll see if I can work out how to set up a proper permission system but permissions aren't one of my strong points with 3.1

Will get back to you.
leschek
Registered User
Posts: 791
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [BETA] RH Topic Tags

Post by leschek »

combuster wrote:See Coding guidelines "Quoting Strings" https://area51.phpbb.com/docs/30x/codin ... lines.html
OK. BTW it's interesting reading...
swt4ajp
Registered User
Posts: 137
Joined: Mon Jan 16, 2012 4:44 pm

Re: [BETA] RH Topic Tags

Post by swt4ajp »

combuster wrote:
swt4ajp wrote:http://forumstage.gamesunited.eu/
Username: stage
Password: T35t1ng
login does not work.

@FomenkoAndrey: THANKS! :)
Sorry about that lol I have altered it and its now as is above
Username stage
web admin at several websites including
http://blackburnnet.co.uk
http://gamesunited.eu
combuster
Registered User
Posts: 352
Joined: Sun Oct 26, 2008 11:58 pm

Re: [BETA] RH Topic Tags

Post by combuster »

@swt4ajp: Maybe you have mod_rewrite/url rewriting enabled in phpbb, but the server does not support it? As you can see, this works: http://forumstage.gamesunited.eu/app.php/tag/l4d and as I use $this->helper->route(...) to generate this route, it is devided by phpbb whether to include the app.php in the URL or not.

edit: ACP -> server settings -> Enable URL Rewriting: -> should be "NO" if the server does not support it.
swt4ajp
Registered User
Posts: 137
Joined: Mon Jan 16, 2012 4:44 pm

Re: [BETA] RH Topic Tags

Post by swt4ajp »

combuster wrote:@swt4ajp: Maybe you have mod_rewrite/url rewriting enabled in phpbb, but the server does not support it? As you can see, this works: http://forumstage.gamesunited.eu/app.php/tag/l4d and as I use $this->helper->route(...) to generate this route, it is devided by phpbb whether to include the app.php in the URL or not.

edit: ACP -> server settings -> Enable URL Rewriting: -> should be "NO" if the server does not support it.
Hey Combuster,

I have it enabled on the iis7 server but unfortunantly not 100% sure on how to configure it :(
web admin at several websites including
http://blackburnnet.co.uk
http://gamesunited.eu
Locked

Return to “Extensions in Development”