I'm running the script on 2 sites, www.photographydirectory.org and www.photographyphotographers.com
The first one - photographydirectory.org - is still updated at 5.0.59 and it doesn't work. The second one - photographyphotographers.com - is at 5.0.52 and it works perfectly.
At this point I've updated the second one to 5.0.59 and it doesn't work. So I've restored the 5.0.52, and again it works!
As you can see, at the photographydirectory, the description is truncated after "New York", but at photographyphotographers the description comes out correctly "New York’s top boutique ..."
I've noticed the release 5.0.53 includes a "better utf-8 support". Maybe it's something related with that.
Are you talking about {LINKDESCRIPTION} or some other template variable? That page appears to be using it in some sort of non-standard way and you haven't posted your template code.
Yes I'm talking about the {LINKDESCRIPTION}. I mean, once I add or edit a link and in the description field there is the character " ' " , then the description comes out truncated. For example, if I write "New York's top boutique" and then I submit the link, the descriptions comes out "New York" without the rest of the sentence.
And yes I've changed the templates, BUT everything was working percefctly before upgrading.
And once again, I've experienced the same problem on my other site www.photographyphotographers.com Before asking for your help I did a test by upgrading photographyphotographers.com from the 5.0.53 (the last working release) to the 5.0.59 (not working) and I've experienced the same problem as per photographydirectory.org
Anyway, this is the code of the suggest link template:
<script type="text/javascript"> function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) field.value = field.value.substring(0, maxlimit); else countfield.value = maxlimit - field.value.length; } function showorhide(id) { if (document.getElementById(id).style.display == "none") document.getElementById(id).style.display = "block"; else document.getElementById(id).style.display = "none"; } </script>
<IF {SWITCH_LEVELSELECTOR}> <div id="catlevels"> <div id="levelbox{LEVELID}" class="floatleft"> <select name="catlevelid[{LEVELID}]" size="5" onclick="getnextlevel(this.value)">{LEVELOPS}</ select> </div> <!-- LEVELS ROWS --> <div class="clear"></div> </div> <OTHER WISE> <IF {SWITCH_CATSELECTOR}><select name="catid">{CATSELECTOR}</select><ELS E><input type="hidden" name="catid" value="{CATID}" />{CATNAME}</IF> </IF> <IF {THISMEMBERGROUPCANSUBMITCATEGORIES}> <br /><input type="checkbox" name="setnewcat" onclick="showorhide('div1');" value="1" {SUGNEWCATCHECK} /> Suggest new category? <div id="div1" style="position: relative;<IF not {SUGNEWCATCHECK}> display: none;</IF>"> <input type="text" name="suggestcatname" size="{STANDARDSIZE}" value="{SUGGESTCATNAME}" /> as a subcategory of <IF {SWITCH_CATSELECTOR}><select name="suggestcatparent"><option value="0">Top Level</option>{FUNC_CATSELECTOR[{SUGGESTCA TPARENT}]}</select><ELSE><input type="text" name="suggestcatparent" value="{SUGGESTCATPARENT}" size="4" /></IF> </div> </IF> </td> </tr> <IF {THISMEMBERGROUPCANALIAS} and {MEMBERISADMIN}> <tr> <td class="labelscolumn"><span class="labels">Secondary Categories:</span><br />Select the secondary categories in which you want this link to appear.</td> <td class="optionscolumn"> <IF {SWITCH_CATSELECTOR}> <select multiple="multiple" name="aliasids[]" size="5">{ALIASOPTIONS}</select><input type="hidden" name="aliassubmited" value="1" /> <ELSE> Type the id numbers separated by commas. <br /> <input type="text" name="aliasids" value="{LINKALIASIDVALUES}" size="{STANDARDSIZE}" /> </IF> </td> </tr> </I F> <IF {SWITCH_PAD}> <tr> <td class="labelscolumn"><span class="labels">PAD File:</span><br />PAD stands for <a href="http://www.asp-shareware.org/pad/" {EXTERNALLINKS}>Portable Application Description</a>, and is a commonly used XML format for providing data about software.</td> <td class="optionscolumn"><input type="text" name="padfile" size="{STANDARDSIZE}" value="{LINKPADFILE}" /> <input type="submit" name="padsubmit" value="Get PAD Data" class="button" /></td> </tr> </IF> <tr 62; <td class="labelscolumn"><span class="labels">Link Title:</span></td> <td class="optionscolumn"><input type="text" name="title" size="{STANDARDSIZE}" value="{LINKTITLE}" maxlength="{TITLELENGTH}" /></td> </tr> <tr> <td class="labelscolumn"><span class="labels">URL:</span></td> <td class="optionscolumn"><input type="text" name="url" size="{STANDARDSIZE}" value="{LINKURL}" /> <IF {SWITCH_GETMETA}><input type="submit" name="getmeta" value="Get META Tags" class="button" /></IF></td> </tr> <IF {SWITCH_SUMMARIES}> <tr> <td class="labelscolumn"><span class="labels">Summary:</span></td> <td class="optionscolumn"><input type="text" name="summary" size="50" maxlength="{MAXSUMMARY}" value="{LINKSUMMARY}" /></td> </tr> </IF> <tr 62; <td class="labelscolumn"><span class="labels">Description: </span>A brief and well written description is your best business card.<br> Important rules:<br> 1) English only<br> 2) Do not make a list of keywords.<br> 3) Do not write things like: the best site ... the fairest...<br> 4) Remember that the description is indexed for searching, you may want to write here the fields of specialization of your business.<br> Example of well written description: Professional photographer based in New York, specialized in advertising and corporate photography. <IF {SWITCH_WYSIDESCRIP}> <br /><IF {THISMEMBERPOSTEDITOR} is WYSIWYG><IF {SWITCH_SMILIES}>Drag a <a href="index.php?custom=yes&TID=smilies&usewrapper=no " target="win" onclick="window.open('','win','width=400,height=350,scrollba rs=yes');">smilie</a> to insert it into your message.</IF> You may use <a href="index.php?custom=yes&TID=codes&headerfooter=no &trimhtmlto=10" target="win" onclick="window.open('','win','width=610,height=400,scrollba rs=yes');">WSN Codes</a> in your message.<ELSE><IF {SWITCH_SMILIES}>Click a <a href="index.php?custom=yes&TID=smilies&usewrapper=no " target="win" onclick="window.open('','win','width=400,height=350,scrollba rs=yes');">smilie</a> to insert it into your message.</IF> You may use <a href="index.php?custom=yes&TID=codes&headerfooter=no " target="win" onclick="window.open('','win','width=610,height=400,scrollba rs=yes');">WSN Codes</a> in your message.</IF> <p align="center"> <IF {THISMEMBERWYSIWYGDESCRIP}> <input type="submit" name="switcheditor" value="Switch to plain editor" class="button" /> <OTHERWISE> <input type="submit" name="switcheditor" value="Switch to WYSIWYG editor" class="button" /> </IF> </p> </IF> </td> <td class="optionscolumn"> <IF {THISMEMBERWYSIWYGDESCRIP}> <?php include("[I FADMIN../]fckeditor/fckeditor.php") ; $oFCKeditor = new FCKeditor('description') ; $oFCKeditor->Value = '{LINKDESCRIPTIONWYSIWYG}' ; $oFCKeditor->ToolbarSet = 'Basic'; // uncomment to use basic tools $oFCKeditor->Create() ; ?> <OTHERWISE> <textarea name="description" rows="5" cols="45" onkeydown="textCounter(submitform.description,submitform.rem Len,{DESCRIPLENGTH});" onKeyUp="textCounter(submitform.description,submitform.remLe n,{DESCRIPLENGTH});">{LINKDESCRIPTION}</te xtarea> <br /><input readonly type="text" name="remLen" size="4" maxlength="4" value="{DESCRIPLENGTH}" /> characters remaining </IF> </td> </tr> <IF {THISMEMBERGROUPCANUPLOAD}> <tr> <td class="labelscolumn" width="20%"><span class="labels">Attach Files:</span> <br />Allowed file types: {ALLOWEDEXTENSIONS}</td> <td class="optionscolumn" width="80%"> <IF {LINKNUMATTACHMENTS} is less than {THISMEMBERGROUPATTACHPERLINK}><input type="file" name="filefield" /> <input type="submit" name="uploadattachment" value="Attach" class="button" /></IF>
<IF {LINKNUMATTACHMENTS}> <br />Current Attachments:<br /> <!-- BEGIN LINK ATTACHMENTS --> <input type="checkbox" name="attachdelete[]" value="{ATTACHID}" /> {ATTACHFILETITLE} ({ATTACHKB} KB)<br /> <!-- END LINK ATTACHMENTS --> <input type="submit" name="attachdeletion" value="Delete Selected" class="button" /> </IF> </td> </tr> </I F> <IF {SWITCH_ADDRESS}> <tr> <td class="labelscolumn"><span class="labels">Address:</span></td> <td class="optionscolumn"><input type="text" name="address" size="{STANDARDSIZE}" value="{LINKADDRESS}" /></td> </tr> <tr> <td class="labelscolumn"><span class="labels">City:</span></td> <td class="optionscolumn"><input type="text" name="city" size="{STANDARDSIZE}" value="{LINKCITY}" /></td> </tr> <tr> <td class="labelscolumn"><span class="labels">State:</span></td> <td class="optionscolumn"> <div id="americanstate"><select name="state">{LINKSTATEOPS}</select></d iv> <div id="foreignstate" style="display: none;"><input type="text" name="foreignstate" size="{STANDARDSIZE}" value="{LINKSTATE}" /></div> </td> </tr> <tr> <td class="labelscolumn"><span class="labels">ZIP/Postal Code:</span></td> <td class="optionscolumn"><input type="text" name="zip" size="8" value="{LINKZIP}" /></td> </tr> <tr> <td class="labelscolumn"><span class="labels">Country:</span></td> <td class="optionscolumn"><select name="country" onchange="updatestate(this)">{LINKCOUNTRYOPS}</ select></td> </tr> <tr> <td class="labelscolumn"><span class="labels">Phone Number:</span></td> <td class="optionscolumn"><input type="text" name="phone" size="{STANDARDSIZE}" value="{LINKPHONE}" /></td> </tr> </IF> <IF {SWITCH_TAGS} and {THISMEMBERGROUPCANSUBMITTAGS}> <tr> <td class="labelscolumn"><span class="labels">Add Tags:</span></td> <td class="optionscolumn"><input type="text" name="addtags" size="{STANDARDSIZE}" value="{LINKADDTAGS}" /></td> </tr> </IF> <IF {SWITCH_TOPICTYPES} and {MEMBERISADMIN}> <tr> <td class="labelscolumn"><span class="labels">Type of Link:</span><br>Select Reciprocal if you link back to The Photography Directory.<br>Please note: Reciprocal sites are displayed ahead of sites that don't link back to The Photography Directory<br>Reciprocal links are automatically checked.</td> <td class="optionscolumn"><select name="type">{LINKTYPESELECTOR}</select>< ;/td> </tr> </IF> <IF not {ISALBUM}> <IF {SWITCH_RECIPLINKS} and {MEMBERISADMIN}> <tr> <td class="labelscolumn"><span class="labels">Reciprocal Link URL:</span><br />Place <<b></b>a href="<IF {MYURL}>{MYURL}<ELSE>{DIRURL}< ;/IF>">{SITETITLE}<<b></b>/ a> on the page you specify here.</td> <td class="optionscolumn"><input type="text" name="recipurl" size="{STANDARDSIZE}" value="{LINKRECIPURL}" /></td> </tr> <IF {SWITCH_RECIPWITH} and {MEMBERISADMIN}> <tr> <td class="labelscolumn"><span class="labels">Reciprocated With:</span><br />If you're using an indirect URL to link, such as an out.php?id=x script, type the custom URL being used to reciprocate (which will be found on the page) here.</td> <td class="optionscolumn"><input type="text" name="recipwith" size="{STANDARDSIZE}" value="{LINKRECIPWITH}" /></td> </tr> </IF> </IF& #62; <IF not {THISMEMBEREMAILBOOL}> <tr> <td class="labelscolumn"><span class="labels">E-Mail:</span></td> <td class="optionscolumn"><input type="text" name="email" size="{STANDARDSIZE}" value="{LINKEMAIL}" /> <IF {SWITCH_COMMENTS} and {THISMEMBERISREGISTERED}><br /><input type="checkbox" name="notify" {LINKNOTIFY} /> Notify me when a visitor comments on my link?</IF></td> </tr> </IF> ; </IF> <IF {SWITCH_FEEDS}> <tr> <td class="labelscolumn"><span class="labels">RSS Feed URL:</span><br />If there's a feed associated with the site you can list it here.</td> <td class="optionscolumn"><input type="text" name="feedurl" size="{STANDARDSIZE}" value="{LINKFEEDURL}" /></td> </tr> </IF> <IF {SWITCH_REASSIGN} and {THISMEMBERISREGISTERED}> <tr> <td class="labelscolumn"><span class="labels">Reassign Link:</span><br />You can reassign to an existing member, or create a new new member who will henceforth be the owner. For reassigning to an existing member, only the name or email field needs to be filled.</td> <td class="optionscolumn"> Name: <input type="text" name="reassignname" size="{STANDARDSIZE}" value="" /><br /> E-Mail: <input type="text" name="reassignemail" size="{STANDARDSIZE}" value="" /><br /> Password: <input type="text" name="reassignpassword" size="{STANDARDSIZE}" value="" /> </td> </tr> </IF> <IF {SWITCH_EXPIRATIONS}> <tr> <td class="labelscolumn"><span class="labels">Expiration:</span><br /><IF not {SWITCH_EXPINCOPS}>Leave blank to never expire, or write the days left until the link expires or the date on which the link should expire.</IF></td> <td class="optionscolumn"> <IF {SWITCH_EXPINCOPS}> <select name="daystoadd">{LINKRENEWALOPTIONS}</select 62; <OTHERWISE> <input type="text" size="{STANDARDSIZE}" name="expire" value="{LINKEXPIRE}" /> </IF> </td> </tr> </IF> <IF {SWITCH_EFFECTIVE}> <tr> <td class="labelscolumn"><span class="labels">Effective Date:</span><br />Leave blank normally, or type the future date on which the link should first show up.</td> <td class="optionscolumn"><input type="text" size="{STANDARDSIZE}" name="effectivetime" value="{LINKEFFECTIVEDATE}" /></td> </tr> </IF>
[INSERT FILE=customlink]
<IF {THISMEMBERGROUPCANDOFULLEDIT}> <IF {SWITCH_RATINGS}> <tr> <td class="labelscolumn"><span class="labels">Rating:</span></td> <td class="optionscolumn"><input type="text" name="rating" size="5" value="{LINKRATING}" /></td> </tr> <tr> <td class="labelscolumn"><span class="labels">Votes:</span></td> <td class="optionscolumn"><input type="text" name="votes" size="5" value="{LINKVOTES}" /></td> </tr> </IF> <IF {SWITCH_HITS}> <tr> <td class="labelscolumn"><span class="labels">Hits out:</span></td> <td class="optionscolumn"><input type="text" name="hits" value="{LINKHITS}" size="5" /></td> </tr> </IF> <IF {SWITCH_HITSIN}> <tr> <td class="labelscolumn"><span class="labels">Hits in:</span></td> <td class="optionscolumn"><input type="text" name="hitsin" size="5" value="{LINKHITSIN}" /></td> </tr> </IF> <tr 62; <td class="labelscolumn"><span class="labels">Owner name or id#:</span><br /> <IF {LINKOWNERID}>({MEMBERNAME})</IF>< /td> <td class="optionscolumn"><input type="text" name="ownerid" size="{STANDARDSIZE}" value="{LINKOWNERID}" /></td> </tr> <IF {SPONSORUSELINK} is yes> <tr> <td class="labelscolumn"><span class="labels">Link Funds:</span><br />For use if you have activated a sponsorship option.</td> <td class="optionscolumn">{LANG_GENERAL_CURRENCY}<i nput type="text" name="funds" size="5" value="{LINKFUNDS}" /></td> </tr> </IF> <tr 62; <td class="labelscolumn"><span class="labels">Related Links:</span><br />Type link id numbers separated by commas.</td> <td class="optionscolumn"><input type="text" size="{STANDARDSIZE}" value="{LINKRELATED}" name="related" /></td> </tr> <IF {SWITCH_COMMENTS}> <tr> <td class="labelscolumn"><span class="labels">Allow further comments?</span></td> <td class="optionscolumn"><select name="threadclosed"><option value="0">yes</option><option value="1">no</option></select></td 62; </tr> <tr> <td class="labelscolumn"><span class="labels">Order of comments thread:</span></td> <td class="optionscolumn"><select name="ordercomments">{LINKORDERCOMMENTSOPS}</se lect></td> </tr> </IF> </ IF> <IF {THISMEMBERGROUPCANHIDEOWNLINKS}> <tr> <td class="labelscolumn"><span class="labels">Hide Link?</span></td> <td class="optionscolumn"><select name="hide">{LINKHIDESELECTOR}</select>< ;/td> </tr> </IF> <IF {SPONSORUSELINK} is yes> <tr> <td class="labelscolumn" colspan="2"><input type="checkbox" name="sponsorthis" value="1" {LINKCHECKED[sponsorthis]} /> I would like to sponsor this link</td> </tr> </IF> <IF {MEMBERUSERGROUP} is 1 and {SWITCH_MEMBERS} and not {SWITCH_AUTOREGISTER}> <tr> <td class="labelscolumn"><span class="labels">Register a User Account:</span> <br />If you wish to be able to edit your link, you need to register.</td> <td class="optionscolumn">Username: <input type="text" name="name" size="{STANDARDSIZE}" /> <br /> Password: <input type="text" name="password" size="{STANDARDSIZE}" /> </td> </tr> </IF> <IF {SECURITYIMAGE} and {THISMEMBERISGUEST}> <tr> <td class="labelscolumn"><span class="labels">Anti-Spam Image:</span> <br />Type the letters and numbers shown on the left into the box on the right (this is to prevent automated submissions).</td> <td class="optionscolumn"><img src="securityimage.php" alt="{LANG_ALT_SECIMAGE}" class="bullet" /> <input type="text" name="securityimage" size="4" maxlength="4" /> </td> </tr> </IF> </table> ; <input type="hidden" name="isalbum" value="{ISALBUM}" /> <input type="hidden" name="customwrapper" value="{CUSTOMWRAPPER}" /> <input type="hidden" name="redirectto" value="{REDIRECTTO}" />
<p><b>PLEASE NOTE: </b>If you don't get a confirmation email please check your Spam Folder to make sure it wasn't trapped by accident. <br> Emails sent to you may contain your login info, as well as info about the status of your listing.</p>
Sorry for my ignorance but I don't know what's the display code! Anyway I've filled in the form for site inspection regarding my other post "Open links in frameset" and I've asked to check this problem too, so by accessing the site you can have a better understanding
Just upgraded to 5.0.63 and now – (dashes) and ' (single quotes) are breaking the text input in my description field.
You must be logged in to see the description ... not only that, when you try to edit the description, the text is gone after the offending character.
help!
FYI I am using ASCII code to render these characters temporarily on the url I included with this topic....because I didn't want the customer to keep trying to edit it.
There's a convert to utf8 option in the admin panel front page now.
You could also change the language character set to match the mysql character set (probably latin1) and that should work... but utf8 is recommended now.
I saw that link in the admin section, and every time I click on it, I get a 500 - Internal Server Error message. Let me look on the server and see if the file is there.
- just checked, the file is not found because it's not there. Hmmmm WAIT, it's there. I bet its a chmod setting.
YES, that was it. Thanks!
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.
Comments on Problem with description
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
Hello!
there is a problem using characters such as the apostrophe. If I insert an apostrophe, then the description get truncated.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Doesn't happen in any scenario I can find, WYSIWYG or plain.
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
Hello Paul
I'm running the script on 2 sites, www.photographydirectory.org and www.photographyphotographers.com
The first one - photographydirectory.org - is still updated at 5.0.59 and it doesn't work.
The second one - photographyphotographers.com - is at 5.0.52 and it works perfectly.
At this point I've updated the second one to 5.0.59 and it doesn't work. So I've restored the 5.0.52, and again it works!
Here it's how it looks the same listing:
www.photographyphotographer...model-management-2624.html
www.photographydirectory.or...model-management-1036.html
As you can see, at the photographydirectory, the description is truncated after "New York", but at photographyphotographers the description comes out correctly "New York’s top boutique ..."
I've noticed the release 5.0.53 includes a "better utf-8 support". Maybe it's something related with that.
Could you please check it?
Thanks
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Are you talking about {LINKDESCRIPTION} or some other template variable? That page appears to be using it in some sort of non-standard way and you haven't posted your template code.
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
Yes I'm talking about the {LINKDESCRIPTION}.
I mean, once I add or edit a link and in the description field there is the character " ' " , then the description comes out truncated.
For example, if I write "New York's top boutique" and then I submit the link, the descriptions comes out "New York" without the rest of the sentence.
And yes I've changed the templates, BUT everything was working percefctly before upgrading.
And once again, I've experienced the same problem on my other site www.photographyphotographers.com
Before asking for your help I did a test by upgrading photographyphotographers.com from the 5.0.53 (the last working release) to the 5.0.59 (not working) and I've experienced the same problem as per photographydirectory.org
Anyway, this is the code of the suggest link template:
<script type="text/javascript">
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;
}
function showorhide(id)
{
if (document.getElementById(id).style.display == "none") document.getElementById(id).style.display = "block";
else document.getElementById(id).style.display = "none";
}
</script>
<div>
<table cellspacing="0" cellpadding="0" width="950" bgcolor="" border="0" align="center">
<tr valign="top">
<td bgcolor="#000000">{NAVIGATION}</td></tr >
<tr valign="top">
<td bgcolor="#5a5a5a"><br></td></tr>
<tr valign="top">
<td bgcolor="5a5a5a"><IF {PREVIEWING}>
<div class="comment">{PREVIEW}</div>
</IF 62;
<IF {SUBMISSIONRULESEXIST}>
<div class="rules">{SUBMISSIONRULES}</div>
< ;/IF>
<form name="submitform" enctype="multipart/form-data" action="suggest.php?action=addlink&filled=1" method="post">
<span class="important">{INCOMPLETE}</span>
60;table>
<tr><td colspan="2" class="tableheader"><img src="{IMAGESURL}/icon_general.gif" alt="" /> Submit Link</td></tr>
<tr>
<td class="labelscolumn"><span class="labels">Category:</span></td>
<td class="optionscolumn">
<IF {SWITCH_LEVELSELECTOR}>
<div id="catlevels">
<div id="levelbox{LEVELID}" class="floatleft">
<select name="catlevelid[{LEVELID}]" size="5" onclick="getnextlevel(this.value)">{LEVELOPS}</ select>
</div>
<!-- LEVELS ROWS -->
<div class="clear"></div>
</div>
<OTHER WISE>
<IF {SWITCH_CATSELECTOR}><select name="catid">{CATSELECTOR}</select><ELS E><input type="hidden" name="catid" value="{CATID}" />{CATNAME}</IF>
</IF>
<IF {THISMEMBERGROUPCANSUBMITCATEGORIES}>
<br /><input type="checkbox" name="setnewcat" onclick="showorhide('div1');" value="1" {SUGNEWCATCHECK} /> Suggest new category?
<div id="div1" style="position: relative;<IF not {SUGNEWCATCHECK}> display: none;</IF>">
<input type="text" name="suggestcatname" size="{STANDARDSIZE}" value="{SUGGESTCATNAME}" /> as a subcategory of
<IF {SWITCH_CATSELECTOR}><select name="suggestcatparent"><option value="0">Top Level</option>{FUNC_CATSELECTOR[{SUGGESTCA TPARENT}]}</select><ELSE><input type="text" name="suggestcatparent" value="{SUGGESTCATPARENT}" size="4" /></IF>
</div>
</IF>
</td>
</tr>
<IF {THISMEMBERGROUPCANALIAS} and {MEMBERISADMIN}>
<tr>
<td class="labelscolumn"><span class="labels">Secondary Categories:</span><br />Select the secondary categories in which you want this link to appear.</td>
<td class="optionscolumn">
<IF {SWITCH_CATSELECTOR}>
<select multiple="multiple" name="aliasids[]" size="5">{ALIASOPTIONS}</select><input type="hidden" name="aliassubmited" value="1" />
<ELSE>
Type the id numbers separated by commas. <br /> <input type="text" name="aliasids" value="{LINKALIASIDVALUES}" size="{STANDARDSIZE}" />
</IF>
</td>
</tr>
</I F>
<IF {SWITCH_PAD}>
<tr>
<td class="labelscolumn"><span class="labels">PAD File:</span><br />PAD stands for <a href="http://www.asp-shareware.org/pad/" {EXTERNALLINKS}>Portable Application Description</a>, and is a commonly used XML format for providing data about software.</td>
<td class="optionscolumn"><input type="text" name="padfile" size="{STANDARDSIZE}" value="{LINKPADFILE}" />
<input type="submit" name="padsubmit" value="Get PAD Data" class="button" /></td>
</tr>
</IF>
<tr 62;
<td class="labelscolumn"><span class="labels">Link Title:</span></td>
<td class="optionscolumn"><input type="text" name="title" size="{STANDARDSIZE}" value="{LINKTITLE}" maxlength="{TITLELENGTH}" /></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">URL:</span></td>
<td class="optionscolumn"><input type="text" name="url" size="{STANDARDSIZE}" value="{LINKURL}" /> <IF {SWITCH_GETMETA}><input type="submit" name="getmeta" value="Get META Tags" class="button" /></IF></td>
</tr>
<IF {SWITCH_SUMMARIES}>
<tr>
<td class="labelscolumn"><span class="labels">Summary:</span></td>
<td class="optionscolumn"><input type="text" name="summary" size="50" maxlength="{MAXSUMMARY}" value="{LINKSUMMARY}" /></td>
</tr>
</IF>
<tr 62;
<td class="labelscolumn"><span class="labels">Description: </span>A brief and well written description is your best business card.<br>
Important rules:<br>
1) English only<br>
2) Do not make a list of keywords.<br>
3) Do not write things like: the best site ... the fairest...<br>
4) Remember that the description is indexed for searching, you may want to write here the fields of specialization of your business.<br>
Example of well written description: Professional photographer based in New York, specialized in advertising and corporate photography.
<IF {SWITCH_WYSIDESCRIP}>
<br /><IF {THISMEMBERPOSTEDITOR} is WYSIWYG><IF {SWITCH_SMILIES}>Drag a <a href="index.php?custom=yes&TID=smilies&usewrapper=no " target="win" onclick="window.open('','win','width=400,height=350,scrollba rs=yes');">smilie</a> to insert it into your message.</IF> You may use <a href="index.php?custom=yes&TID=codes&headerfooter=no &trimhtmlto=10" target="win" onclick="window.open('','win','width=610,height=400,scrollba rs=yes');">WSN Codes</a> in your message.<ELSE><IF {SWITCH_SMILIES}>Click a <a href="index.php?custom=yes&TID=smilies&usewrapper=no " target="win" onclick="window.open('','win','width=400,height=350,scrollba rs=yes');">smilie</a> to insert it into your message.</IF> You may use <a href="index.php?custom=yes&TID=codes&headerfooter=no " target="win" onclick="window.open('','win','width=610,height=400,scrollba rs=yes');">WSN Codes</a> in your message.</IF>
<p align="center">
<IF {THISMEMBERWYSIWYGDESCRIP}>
<input type="submit" name="switcheditor" value="Switch to plain editor" class="button" />
<OTHERWISE>
<input type="submit" name="switcheditor" value="Switch to WYSIWYG editor" class="button" />
</IF>
</p>
</IF>
</td>
<td class="optionscolumn">
<IF {THISMEMBERWYSIWYGDESCRIP}>
<?php
include("[I FADMIN../]fckeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('description') ;
$oFCKeditor->Value = '{LINKDESCRIPTIONWYSIWYG}' ;
$oFCKeditor->ToolbarSet = 'Basic'; // uncomment to use basic tools
$oFCKeditor->Create() ;
?>
<OTHERWISE>
<textarea name="description" rows="5" cols="45" onkeydown="textCounter(submitform.description,submitform.rem Len,{DESCRIPLENGTH});" onKeyUp="textCounter(submitform.description,submitform.remLe n,{DESCRIPLENGTH});">{LINKDESCRIPTION}</te xtarea>
<br /><input readonly type="text" name="remLen" size="4" maxlength="4" value="{DESCRIPLENGTH}" /> characters remaining
</IF>
</td>
</tr>
<IF {THISMEMBERGROUPCANUPLOAD}>
<tr>
<td class="labelscolumn" width="20%"><span class="labels">Attach Files:</span>
<br />Allowed file types: {ALLOWEDEXTENSIONS}</td>
<td class="optionscolumn" width="80%">
<IF {LINKNUMATTACHMENTS} is less than {THISMEMBERGROUPATTACHPERLINK}><input type="file" name="filefield" /> <input type="submit" name="uploadattachment" value="Attach" class="button" /></IF>
<IF {LINKNUMATTACHMENTS}>
<br />Current Attachments:<br />
<!-- BEGIN LINK ATTACHMENTS -->
<input type="checkbox" name="attachdelete[]" value="{ATTACHID}" /> {ATTACHFILETITLE} ({ATTACHKB} KB)<br />
<!-- END LINK ATTACHMENTS -->
<input type="submit" name="attachdeletion" value="Delete Selected" class="button" />
</IF>
</td>
</tr>
</I F>
<IF {SWITCH_ADDRESS}>
<tr>
<td class="labelscolumn"><span class="labels">Address:</span></td>
<td class="optionscolumn"><input type="text" name="address" size="{STANDARDSIZE}" value="{LINKADDRESS}" /></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">City:</span></td>
<td class="optionscolumn"><input type="text" name="city" size="{STANDARDSIZE}" value="{LINKCITY}" /></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">State:</span></td>
<td class="optionscolumn">
<div id="americanstate"><select name="state">{LINKSTATEOPS}</select></d iv>
<div id="foreignstate" style="display: none;"><input type="text" name="foreignstate" size="{STANDARDSIZE}" value="{LINKSTATE}" /></div>
</td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">ZIP/Postal Code:</span></td>
<td class="optionscolumn"><input type="text" name="zip" size="8" value="{LINKZIP}" /></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">Country:</span></td>
<td class="optionscolumn"><select name="country" onchange="updatestate(this)">{LINKCOUNTRYOPS}</ select></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">Phone Number:</span></td>
<td class="optionscolumn"><input type="text" name="phone" size="{STANDARDSIZE}" value="{LINKPHONE}" /></td>
</tr>
</IF>
<IF {SWITCH_TAGS} and {THISMEMBERGROUPCANSUBMITTAGS}>
<tr>
<td class="labelscolumn"><span class="labels">Add Tags:</span></td>
<td class="optionscolumn"><input type="text" name="addtags" size="{STANDARDSIZE}" value="{LINKADDTAGS}" /></td>
</tr>
</IF>
<IF {SWITCH_TOPICTYPES} and {MEMBERISADMIN}>
<tr>
<td class="labelscolumn"><span class="labels">Type of Link:</span><br>Select Reciprocal if you link back to The Photography Directory.<br>Please note: Reciprocal sites are displayed ahead of sites that don't link back to The Photography Directory<br>Reciprocal links are automatically checked.</td>
<td class="optionscolumn"><select name="type">{LINKTYPESELECTOR}</select>< ;/td>
</tr>
</IF>
<IF not {ISALBUM}>
<IF {SWITCH_RECIPLINKS} and {MEMBERISADMIN}>
<tr>
<td class="labelscolumn"><span class="labels">Reciprocal Link URL:</span><br />Place <<b></b>a href="<IF {MYURL}>{MYURL}<ELSE>{DIRURL}< ;/IF>">{SITETITLE}<<b></b>/ a> on the page you specify here.</td>
<td class="optionscolumn"><input type="text" name="recipurl" size="{STANDARDSIZE}" value="{LINKRECIPURL}" /></td>
</tr>
<IF {SWITCH_RECIPWITH} and {MEMBERISADMIN}>
<tr>
<td class="labelscolumn"><span class="labels">Reciprocated With:</span><br />If you're using an indirect URL to link, such as an out.php?id=x script, type the custom URL being used to reciprocate (which will be found on the page) here.</td>
<td class="optionscolumn"><input type="text" name="recipwith" size="{STANDARDSIZE}" value="{LINKRECIPWITH}" /></td>
</tr>
</IF>
</IF& #62;
<IF not {THISMEMBEREMAILBOOL}>
<tr>
<td class="labelscolumn"><span class="labels">E-Mail:</span></td>
<td class="optionscolumn"><input type="text" name="email" size="{STANDARDSIZE}" value="{LINKEMAIL}" />
<IF {SWITCH_COMMENTS} and {THISMEMBERISREGISTERED}><br /><input type="checkbox" name="notify" {LINKNOTIFY} /> Notify me when a visitor comments on my link?</IF></td>
</tr>
</IF> ;
</IF>
<IF {SWITCH_FEEDS}>
<tr>
<td class="labelscolumn"><span class="labels">RSS Feed URL:</span><br />If there's a feed associated with the site you can list it here.</td>
<td class="optionscolumn"><input type="text" name="feedurl" size="{STANDARDSIZE}" value="{LINKFEEDURL}" /></td>
</tr>
</IF>
<IF {SWITCH_REASSIGN} and {THISMEMBERISREGISTERED}>
<tr>
<td class="labelscolumn"><span class="labels">Reassign Link:</span><br />You can reassign to an existing member, or create a new new member who will henceforth be the owner. For reassigning to an existing member, only the name or email field needs to be filled.</td>
<td class="optionscolumn">
Name: <input type="text" name="reassignname" size="{STANDARDSIZE}" value="" /><br />
E-Mail: <input type="text" name="reassignemail" size="{STANDARDSIZE}" value="" /><br />
Password: <input type="text" name="reassignpassword" size="{STANDARDSIZE}" value="" />
</td>
</tr>
</IF>
<IF {SWITCH_EXPIRATIONS}>
<tr>
<td class="labelscolumn"><span class="labels">Expiration:</span><br /><IF not {SWITCH_EXPINCOPS}>Leave blank to never expire, or write the days left until the link expires or the date on which the link should expire.</IF></td>
<td class="optionscolumn">
<IF {SWITCH_EXPINCOPS}>
<select name="daystoadd">{LINKRENEWALOPTIONS}</select 62;
<OTHERWISE>
<input type="text" size="{STANDARDSIZE}" name="expire" value="{LINKEXPIRE}" />
</IF>
</td>
</tr>
</IF>
<IF {SWITCH_EFFECTIVE}>
<tr>
<td class="labelscolumn"><span class="labels">Effective Date:</span><br />Leave blank normally, or type the future date on which the link should first show up.</td>
<td class="optionscolumn"><input type="text" size="{STANDARDSIZE}" name="effectivetime" value="{LINKEFFECTIVEDATE}" /></td>
</tr>
</IF>
[INSERT FILE=customlink]
<IF {THISMEMBERGROUPCANDOFULLEDIT}>
<IF {SWITCH_RATINGS}>
<tr>
<td class="labelscolumn"><span class="labels">Rating:</span></td>
<td class="optionscolumn"><input type="text" name="rating" size="5" value="{LINKRATING}" /></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">Votes:</span></td>
<td class="optionscolumn"><input type="text" name="votes" size="5" value="{LINKVOTES}" /></td>
</tr>
</IF>
<IF {SWITCH_HITS}>
<tr>
<td class="labelscolumn"><span class="labels">Hits out:</span></td>
<td class="optionscolumn"><input type="text" name="hits" value="{LINKHITS}" size="5" /></td>
</tr>
</IF>
<IF {SWITCH_HITSIN}>
<tr>
<td class="labelscolumn"><span class="labels">Hits in:</span></td>
<td class="optionscolumn"><input type="text" name="hitsin" size="5" value="{LINKHITSIN}" /></td>
</tr>
</IF>
<tr 62;
<td class="labelscolumn"><span class="labels">Owner name or id#:</span><br /> <IF {LINKOWNERID}>({MEMBERNAME})</IF>< /td>
<td class="optionscolumn"><input type="text" name="ownerid" size="{STANDARDSIZE}" value="{LINKOWNERID}" /></td>
</tr>
<IF {SPONSORUSELINK} is yes>
<tr>
<td class="labelscolumn"><span class="labels">Link Funds:</span><br />For use if you have activated a sponsorship option.</td>
<td class="optionscolumn">{LANG_GENERAL_CURRENCY}<i nput type="text" name="funds" size="5" value="{LINKFUNDS}" /></td>
</tr>
</IF>
<tr 62;
<td class="labelscolumn"><span class="labels">Related Links:</span><br />Type link id numbers separated by commas.</td>
<td class="optionscolumn"><input type="text" size="{STANDARDSIZE}" value="{LINKRELATED}" name="related" /></td>
</tr>
<IF {SWITCH_COMMENTS}>
<tr>
<td class="labelscolumn"><span class="labels">Allow further comments?</span></td>
<td class="optionscolumn"><select name="threadclosed"><option value="0">yes</option><option value="1">no</option></select></td 62;
</tr>
<tr>
<td class="labelscolumn"><span class="labels">Order of comments thread:</span></td>
<td class="optionscolumn"><select name="ordercomments">{LINKORDERCOMMENTSOPS}</se lect></td>
</tr>
</IF>
</ IF>
<IF {THISMEMBERGROUPCANHIDEOWNLINKS}>
<tr>
<td class="labelscolumn"><span class="labels">Hide Link?</span></td>
<td class="optionscolumn"><select name="hide">{LINKHIDESELECTOR}</select>< ;/td>
</tr>
</IF>
<IF {SPONSORUSELINK} is yes>
<tr>
<td class="labelscolumn" colspan="2"><input type="checkbox" name="sponsorthis" value="1" {LINKCHECKED[sponsorthis]} /> I would like to sponsor this link</td>
</tr>
</IF>
<IF {MEMBERUSERGROUP} is 1 and {SWITCH_MEMBERS} and not {SWITCH_AUTOREGISTER}>
<tr>
<td class="labelscolumn"><span class="labels">Register a User Account:</span>
<br />If you wish to be able to edit your link, you need to register.</td>
<td class="optionscolumn">Username: <input type="text" name="name" size="{STANDARDSIZE}" /> <br />
Password: <input type="text" name="password" size="{STANDARDSIZE}" /> </td>
</tr>
</IF>
<IF {SECURITYIMAGE} and {THISMEMBERISGUEST}>
<tr>
<td class="labelscolumn"><span class="labels">Anti-Spam Image:</span>
<br />Type the letters and numbers shown on the left into the box on the right (this is to prevent automated submissions).</td>
<td class="optionscolumn"><img src="securityimage.php" alt="{LANG_ALT_SECIMAGE}" class="bullet" /> <input type="text" name="securityimage" size="4" maxlength="4" /> </td>
</tr>
</IF>
</table> ;
<input type="hidden" name="isalbum" value="{ISALBUM}" />
<input type="hidden" name="customwrapper" value="{CUSTOMWRAPPER}" />
<input type="hidden" name="redirectto" value="{REDIRECTTO}" />
<p><b>PLEASE NOTE: </b>If you don't get a confirmation email please
check your Spam Folder to make sure it wasn't trapped by accident.
<br>
Emails sent to you may contain your login info, as well as info about the status of your listing.</p>
<input type="submit" value="Submit" class="button" /> <input type="submit" name="preview" value="Preview Changes" class="button" />
</form></td></tr>
</ table>
</div>
If you need of other templates, or if you want access to my site, let me know.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I mean the display code, not the submit page. The place where it's not appearing as you want it to.
Access would save a lot of time.
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
Sorry for my ignorance but I don't know what's the display code!
Anyway I've filled in the form for site inspection regarding my other post "Open links in frameset" and I've asked to check this problem too, so by accessing the site you can have a better understanding
Thank you Paul!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Fixed the frameset, that was a URL rewriting compatibility issue.
Submitting a link on your site I still don't see any issues with apostrophes: www.photographydirectory.or...ting-apostrophe-12383.html
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
Just upgraded to 5.0.63 and now – (dashes) and ' (single quotes) are breaking the text input in my description field.
You must be logged in to see the description ... not only that, when you try to edit the description, the text is gone after the offending character.
help!
FYI I am using ASCII code to render these characters temporarily on the url I included with this topic....because I didn't want the customer to keep trying to edit it.
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
I am having this exact problem after upgrading today. Created a new topic before seeing this one.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
To quote the email discussion in which the issue this thread is about was solved back in July:
"The issue was Microsoft Word characters being used with a non-utf8 database, as described at www.crucial-systems.com/tha...SQL_ing_truncate_bug_again
Converted the site to utf8 and it works."
There's a convert to utf8 option in the admin panel front page now.
You could also change the language character set to match the mysql character set (probably latin1) and that should work... but utf8 is recommended now.
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
I saw that link in the admin section, and every time I click on it, I get a 500 - Internal Server Error message. Let me look on the server and see if the file is there.
- just checked, the file is not found because it's not there. Hmmmm WAIT, it's there. I bet its a chmod setting.
YES, that was it. Thanks!