WebmasterSite.net

Spaces in tags, no longer works

Version: 5.0.46
URL:

PrintPrint


Spaces in tags, no longer works
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #1
Posted 05/15/09 - 7: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
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 05/15/09 - 12: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 = ' ';

http://scripts.webmastersite.net/wsnlinks/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:
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #3
Posted 05/18/09 - 3:28 PM:

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

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

Total Topics: 392
Total Posts: 1287
quote post #4
Posted 10/20/09 - 9:08 PM:

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
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #5
Posted 10/21/09 - 12: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


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