PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   Changing unregistered user english var bug(FIXED) (http://www.photopost.com/forum/photopost-pro-bug-reports/116437-changing-unregistered-user-english-var-bug-fixed.html)

Johnny Doomo October 26th, 2005 11:47 AM

Changing unregistered user english var bug(FIXED)
 
If you change the unregistered text var of what appears as the username for unregistered user groups and then more people upload as the new name, in the Top Posters pal it will show both names. If you go to the adminCP and run the scan database and the setting for "Check here to resync photo/comments usernames/update comments counts." Then the account name goes blank. It's now neither naming and under every picture that was posted by an unregistered user is blank to. Whereever the name of the unregistered english varaible is suppose to appear, now turns blank.

On a side note I was wondering... What would happen if a user registered with the same name as your unregistered var? Is their any type of protection that (at least for internal Photopost registration system) disallows a user to register the same name that is the ['unreg'] name? I am just trying to think of future scenarios that an abusive user might try and use on my site.

Chuck S October 26th, 2005 12:06 PM

Johnny where are you changing this name

Your simply change it in the language file

As far as uploads I see they are set what the name in the language file

Now only thing I see we could change is on scan database


Code:

Content visible to verified customers only.
to this


Code:

Content visible to verified customers only.

Johnny Doomo October 28th, 2005 11:17 AM

What file do I change that code in?

(Yes, the problem seemed to appear after I changed the unregistered english word and then ran the scan database function from the AdminCP.)

Chuck S October 28th, 2005 11:56 AM

adm-misc.php

Johnny Doomo October 28th, 2005 12:18 PM

When loading up the AdminCP I get this error in both frames:

Parse error: parse error, unexpected '=' in /home/user/public_html/photopost/adm-misc.php on line 1328

Chuck S October 28th, 2005 12:22 PM

Reapply the code edit

$tname[$tuserid] = addslashes($Globals['pp_lang']['unreg']);

Johnny Doomo October 28th, 2005 09:05 PM

uh? What do you mean by "Reapply the code edit"?

Chuck S October 28th, 2005 09:34 PM

Reapply means redo it

Johnny Doomo October 31st, 2005 03:15 PM

It gives this error now:

Quote:

Parse error: parse error, unexpected '{', expecting ')' in /home/user/public_html/photopost/adm-misc.php on line 1334
BTW 1334 reads:

Quote:

$tname[$tuserid] = addslashes({$Globals['pp_lang']['unreg']});

Chuck S October 31st, 2005 03:18 PM

Johnny just go download the photopost distribution ;)

Johnny Doomo November 2nd, 2005 02:12 PM

I finally got it working. I don't understand why I had to try 3 times to finally get it to work though?

ANyway, thanks.

Michael P November 2nd, 2005 02:18 PM

Maybe some kind of fbrowser/file caching on your downloads. Glad you got it.


All times are GMT -5. The time now is 11:31 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