PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 4.0 (http://www.photopost.com/forum/bugs-vbulletin-4-0/)
-   -   Issue with usernames with '&' (http://www.photopost.com/forum/bugs-vbulletin-4-0/144435-issue-usernames.html)

myuption November 5th, 2010 11:20 AM

Issue with usernames with '&'
 
1 Attachment(s)
Just realized that users that have '&' inside are modified to '&'.

Could this be a bug? It seems to happen only if the thumb is displayed, inside the user album it is alright.

Luciano November 5th, 2010 02:11 PM

Good find, its a leftover..
quickfix: open forums/includes/functions_gallery.php

find:
Code:

Content visible to verified customers only.
you will find it 2 times.

both should be replaced by:
Code:

Content visible to verified customers only.
You will say why do we need the stripslashes? its more or less deprecated in vb code. Yes, but if you have an old vbgallery, that you upgraded, the username in versions 2.1 etc.. was saved with addslashes... so if you upgraded you could run into problems.

Then open gallery/browseimages.php
find:
Code:

Content visible to verified customers only.
replace with:
Code:

Content visible to verified customers only.
(just add the // in front of the line)

in the same file find:
Code:

Content visible to verified customers only.
replace with:
Code:

Content visible to verified customers only.
finally, last one... its a template edit:
open template ADV_GALLERY_BROWSEIMAGES

in that template find:
Code:

Content visible to verified customers only.
replace with:
Code:

Content visible to verified customers only.
in profile block there are 3 more fixes needed:
open template adv_gallery_member_block
find:
Code:

Content visible to verified customers only.
replace with:
Code:

Content visible to verified customers only.
then in same template find:
Code:

Content visible to verified customers only.
replace with:
Code:

Content visible to verified customers only.
then finally open:
forums/includes/vbgallery/gallery_profile_block.php
find:
Code:

Content visible to verified customers only.
replace with:
Code:

Content visible to verified customers only.
thats the ones I found...

Luc

myuption November 8th, 2010 01:22 PM

WOW! Several changes, thanks Luc, will start modifying :D


All times are GMT -5. The time now is 04:28 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97