PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 24th, 2005, 08:51 AM   #1 (permalink)
Junior Member
 
Join Date: Dec 2004
Location: Belgium
Posts: 28
Automatic addslashes when creating a category description(FIXED)

Hello, when I use the ' in the category description, the description automatically "addslashed" resulting in this :
Any kind of equipment that doesn\'t fit into another category.
Thanks
Gliderstyle is offline   Reply With Quote
Old July 25th, 2005, 08:02 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
In adm-misc.php find these

Code:
Content visible to verified customers only.
change to this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 25th, 2005, 01:28 PM   #3 (permalink)
Junior Member
 
Join Date: Dec 2004
Location: Belgium
Posts: 28
Addslashes problems

Thanks for the answer but I encountered the same problem when updating templates. I update some templates via the admin section and all the updated templates code are automatically "addslashed" resulting in code execution error. Here an example of a part of the menubar.tmpl after the update :
<?php
echo <<<PPPRINT
$ppopen
<tr>
<td class=\"{$Style[\'menubar\']}\" width=\"100%\" colspan=\"2\">
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<!-- modif knapy inversion des menu et menu 2 --->
<td class=\"{$Style[\'menubarnb\']}\" width=\"50%\" align=\"left\" valign=\"middle\">
&nbsp;$menu
</td>
<td class=\"{$Style[\'menubarnb\']}\" width=\"50%\" align=\"right\"valign=\"middle\">
$menu2&nbsp;&nbsp;
</td>
</tr>
</table>
</td>
As you can see all the code has been "addslashed".
Greetings
Gliderstyle is offline   Reply With Quote
Old July 25th, 2005, 02:00 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Okay I went through the whole file with a fine tooth comb try this file
Attached Files
File Type: zip adm-misc.zip (28.4 KB, 7 views)
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 26th, 2005, 12:59 PM   #5 (permalink)
Junior Member
 
Join Date: Dec 2004
Location: Belgium
Posts: 28
Addslash problem

Hello, I used the updated adm-misc.php file to test but the problem remains the same. I corrected the templates via my editor and they work fine again but when I want to update them via the admin section, the problem is still there.
Greetings
Gliderstyle is offline   Reply With Quote
Old July 26th, 2005, 01:18 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
If I use that file I can surely edit templates without slashes getting added or cat desc title etc in cat editor

Remember you need to actually remove the slashes and then save
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 27th, 2005, 02:04 AM   #7 (permalink)
Junior Member
 
Join Date: Dec 2004
Location: Belgium
Posts: 28
Addslashes added in templates

OK, but even if I remove the slashes manually, the templates stays automatically "addslshed" for all the characters like " or '. Have a look at the diewell.tmpl template after 3 saves using the updated adm-misc.php file you provided me (I didn't remove the slashes manually between saves for showing the problem):
<?php

echo<<<PPPRINT
<br />
$ppopen
<tr>
<td colspan=\\\\\\\"2\\\\\\\" align=\\\\\\\"left\\\\\\\" class=\\\\\\\"{$Style[\\\\\\\'menubar\\\\\\\']}\\\\\\\">
<span class=\\\\\\\"{$Style[\\\\\\\'medium\\\\\\\']}\\\\\\\"><b>{$Globals[\\\\\\\'galleryname\\\\\\\']} Message</span>
</td>
</tr>
<tr>
<td class=\\\\\\\"{$Style[\\\\\\\'tdbackground\\\\\\\']}\\\\\\\" height=\\\\\\\"300\\\\\\\" valign=\\\\\\\"middle\\\\\\\" align=\\\\\\\"center\\\\\\\">
<span class=\\\\\\\"{$Style[\\\\\\\'large\\\\\\\']}\\\\\\\"><b>$message</b></span>
</td>
</tr>
$ppclose
<br />

PPPRINT;

?>
I never had that problem before. It started after 2.41 installation. I update my templates via my html editor now but I would like to know also if other people have this kind of problem when they update via admin ?
Gliderstyle is offline   Reply With Quote
Old July 27th, 2005, 09:00 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
I have tried this file many many times on my own install and the one I posted above does not add slashes to the files
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 4th, 2005, 08:59 AM   #9 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
I can second Omegatron. I use Classified 2.41.

I just overwrote the old file with the one omegatron uploaded above and my quote problem disappeared.

No matter how often I did edit the category afterwards
snoopy5 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link it Category Name and Description Fields Steve_C Photopost Pro How Do I...? 0 July 12th, 2005 12:57 PM
Category Permissions and Description Issue Xil Ze Installs and Upgrade - vBulletin 3.0.X 0 July 9th, 2005 01:12 PM


All times are GMT -5. The time now is 01:44 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0