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 Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 1st, 2011, 03:07 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
Ampersand in Username

Hi, I have just noticed on my Photopost that usernames that contain an ampersand are being changed to &

See here: Photoshop Brushes - Tea Stains 2 | Digiscrap Forum Product Gallery

I did a search but nothing I found seems to fit my particular problem lol

I have the vbulletin features turned on for the template only (headers, footers and styles), not the advanced features for the editor etc
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 1st, 2011, 04:05 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Please give me an example. I see nowhere in our code that we are adding anything to a username. We simply grab the username as it appears in your vb database.

What is the actual username in your database?
__________________
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 1st, 2011, 04:12 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
On the link I posted Chuck if you scroll down to see the username you can see what I mean, I just checked the database and it is entered there as Creative Victorian & Netta Riss so I guess PP is adding the extra amp; to the url link and display?
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 1st, 2011, 04:24 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Your gallery was closed so remember I could not see anything which is why I asked

Maybe try in showphoto.php this code

Code:
Content visible to verified customers only.
change it 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 1st, 2011, 04:27 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
Sorry Chuck, I closed it for 10 minutes while I upgraded since I just realised there were newer files lol it's open now....off to try that change and will let you know if it works
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 1st, 2011, 04:30 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
That took away the extra amp; but it is still displaying the & instead of just &
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 1st, 2011, 10:37 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
well instead of what I told you before how about just changing htmlspecialchars with un_htmlspecialchars
__________________
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 1st, 2011, 11:07 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
Perfect! Thanx so much Chuck The url still shows the old link, would there be a way to clear that so it can show the url correctly now?
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 2nd, 2011, 10:20 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
we have not been discussing urls so not sure what your referring to our discussion here has been about a username display issue.
__________________
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 2nd, 2011, 03:35 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
I'm sorry, I thought it was ok to ask about a related issue..

On the page I linked the url shows as Member Profile | Digiscrap Forum Product Gallery
yet on the front page in the most recent box the url still shows as Member Profile | Digiscrap Forum Product Gallery

Both links lead to the same place, there are no errors in that but I don't want duplicate content either

I would have thought with changing the display the url would have adjusted too, the way the image url does if you edit the title .. all I wanted to know is if there is a way to clear that so it can "rewrite" the url.
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 2nd, 2011, 04:15 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
It is fine to ask about another issue you just need to explain some so I know what your referring to.

Well the question I would have is where did you come to the first url from. I see how each link is formed and they are formed by the same function so honestly I do not see how they are different for those actions but you can try in your forums subfolder of your gallery install in the vb3.php file line 432 is this

Code:
Content visible to verified customers only.
try changing it 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.

Last edited by Chuck S; July 2nd, 2011 at 04:44 PM.
Chuck S is offline   Reply With Quote
Old July 2nd, 2011, 04:29 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
The first url is from the page I originally linked here Photoshop Brushes - Tea Stains 2 | Digiscrap Forum Product Gallery the username down next to the description box is linked to the profile, and takes the url (seo) from how the username was displayed before your fix. The second url is from the Most Recent box at the top of the front page.

I don't see any difference in your before and after code? *hides* lol
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 2nd, 2011, 04:44 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
reapply the recommended change.
__________________
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 2nd, 2011, 04:54 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
That didn't make any change, I may be stuck with it lol
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 2nd, 2011, 07:52 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I do not see how it would not make a change. Basically we just did the same thing we did for your showphoto script throughout the whole application making the change in the global integration file.
__________________
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 2nd, 2011, 08:28 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
There might be some confusion in what I mean, I'm sorry Chuck

The display now is fine from your first fix, it's the way the url is being written...the seo here coverted my links so you might have missed what I meant:

Show Photo Page: [GALLERY_HOME_LINK]/m167-creative-victorian26amp-3bamp-3b-netta-riss
Front Page: [GALLERY_HOME_LINK]/m167-creative-victorian26amp-3b-netta-riss

See how those two url's are being written differently? That's what I'd like to change, maybe I need to do a db search and just replace
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 2nd, 2011, 09:28 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I know what your saying. what I am saying is your issue is with an & being in the username whereas you can see my first fix basically added un_htmlspecialchars to the showphoto which fixed the file. My next suggestion basically does what we did in showphoto to the entire application.

You can try in pp-inc.php line 2437

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 2nd, 2011, 11:03 PM   #18 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 116
Unfortunately that still didn't fix the actual url, however I tried adding the two new replaces at the end here in pp_inc:

Quote:
$str1 = array('Ä', 'ä', 'Ü', 'ü', 'Ö', 'ö', 'ß', '(', ')', '[', ']', ' | ', '&', 'amp;');
$str2 = array('Ae', 'ae', 'Ue', 'ue', 'Oe', 'oe', 'ss', '', '', '', '', '-', 'and', '');
which now gives the nice url m167-creative-victorian-and-netta-riss on the url links, I had to add the second amp; as it still displayed wrong on the showphoto page while being just right on the front page....so far I can't see that this has adversely affected any other section of the gallery but I will keep my eyes open and look around

Thanx for all your help Chuck
__________________
Digiscrap Forum Layout Gallery - PhotoPost PHP Pro v7.1
Digiscrap Forum Product Gallery - PhotoPost PHP Pro v7.1
LissaE is offline   Reply With Quote
Old July 3rd, 2011, 07:41 AM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Okay no problem
__________________
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
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
ampersand not displaying right handicappedpets Classifieds Bug Reports 9 July 19th, 2010 12:51 PM
Username Changes aacircle Photopost Pro How Do I...? 3 August 12th, 2007 09:41 PM
Change Username Fingertips Classifieds How do I...? 5 October 31st, 2006 04:25 PM
weird ampersand problems. Griffin80 Installs and Upgrade - vBulletin 3.5.X 2 February 5th, 2006 04:41 PM


All times are GMT -5. The time now is 02:39 PM.

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