Webmastersite.net
Register Log In

Spaces in tags, no longer works

Comments on Spaces in tags, no longer works

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted May 15, 2009 - 10:14 AM:

Hi Paul,

A while ago you created a new onelink.php that allowsyou to have spaces in tags. I just added the new onelink.php you created and it no longer works and caises multiple errors in details pages.

Can you please make an option for spaces in tags as part of the standard script? maybe an option in admin.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 15, 2009 - 3:15 PM:

Where did I give that advice? I never tell anyone to maintain a custom version of a shipped file.

To allow spaces in tags, please don't change onelink.php -- use the shipped one untouched. Use a tweaks.php file with $keepchars = ' ';

scripts.webmastersite.net/w...nks/manual/link.php?id=359

Confirmed it does exactly what it should do. Attached screenshots.

part of the standard script? maybe an option in admin.

Ironic request considering you were just telling me to remove options in the other thread.

Attached Files:
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted May 18, 2009 - 6:28 PM:

Yep, I read the old "spaces in tags" thread wrong, sorry. Excuse my posts yesterday, not a good day.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 21, 2009 - 12:08 AM:

I'm just starting to use tags for the first time and want a space between two words.

I see in the new version there is a tweaks editor and keepchars is listed.

Putting just a space in does nothing.

Putting ' ' does nothing except throw following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/blousesf/public_html/includes/prestart.php(66) : eval()'d code on line 15

When I went back to the tweaks editor the keepchars was empty so I couldn't correct it. I then manually edited the tweaks.php file.

It showed: $keepchars = '' '';
So I Changed it to : $keepchars = ' ';


Secondly, can I have more than one character? So I now have a space, but I also want to keep /

I tried separating them by a comma but it just threw error again

TIA
J
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 21, 2009 - 3:02 AM:

Don't separate the characters, just write them all: $keepchars = " /";

Keeping / is going to be a problem if you do URL rewriting, I expect the tag URLs will break.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.