 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
July 14th, 2005, 11:47 PM
|
#1 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
| How do I remove a user from the "Top Posters"?
In my gallery I am the one uploading most of the images, 41,585 to be exact. I don't want it to display my name, BUT my registration system is using my forum registration and I am not the only admin on my forums. Does that mean that the other person that has admin on my forum also has admin on my gallery as well? If so, I want it to not show my name on the "Top Posters", but I don't want it to hide the other admin.
Can somebody help me with how I can do this? It has been bugging me for a long time. Any help you can provide me with I would really appreciate it.
Thanks in advance.
|
| |
September 8th, 2005, 04:35 PM
|
#2 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
|
bumpy
|
| |
January 27th, 2006, 12:29 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Apr 2005
Posts: 53
|
I am by NO MEANS an expert, so take my advice for what it's worth, but this is how I did it.
You need to make this edit in the following four files:
index.php
showphoto.php
showgallery.php
showmembers.php
Find this: Quote: |
$queryz = ppmysql_query("SELECT cat,id,title,rating FROM {$Globals['pp_db_prefix']}photos ORDER BY rating DESC,views DESC LIMIT {$Globals['mostpoppal']}", $link);
| Replace with this: Quote: |
$queryz = ppmysql_query("SELECT user,userid,COUNT(*) AS pcount FROM {$Globals['pp_db_prefix']}photos WHERE user NOT LIKE 'username' GROUP BY user ORDER BY pcount DESC LIMIT {$Globals['numtoppal']}", $link);
| Replace username with the username you want to exclude.
You can see mine here: http://vfrworld.com/photos
Good luck!
Michael
|
| |
January 27th, 2006, 10:30 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
NOT LIKE OR simply !=
|
| |
April 7th, 2006, 05:22 PM
|
#5 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
| Quote: |
Originally Posted by Chuck S NOT LIKE OR simply != | What do you mean? You mean replace the "NOT LIKE OR" with "!="?
|
| |
April 7th, 2006, 08:16 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
You can use NOT LIKE
|
| |
April 9th, 2006, 01:55 AM
|
#7 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
|
I tried this and it didn't work. I am trying to get rid of the admin user and the "user" unregistered. Can somebody help me more on what I need to add to get this to work? I need them both gone, but as a test I tried each one individually and neither disappeared after changing it.
Any ideas?
|
| |
April 9th, 2006, 10:46 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
| Code: Content visible to verified customers only.
Guaranteed no photos will be pulled by Johnny Doomo but anyway good luck with your hacking
|
| |
April 11th, 2006, 11:59 PM
|
#9 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
|
Nope that doesn't work. It still shows me in the top uploaders. Is the top posters pal cached? Do I need to change the code and wait a while or change a setting in the admincp?
|
| |
April 12th, 2006, 07:50 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
It could be a cache issue but your free to continue any discussion on code modifications in the mod forum.
|
| |
April 12th, 2006, 11:16 AM
|
#11 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
|
discussion? More like empty requests that never get replies. |
| |
April 12th, 2006, 11:39 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Sorry if you feel that way about our mod forum Johnny.
The suggestion I posted above works and I would think your issue if that of cache
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:57 PM. | |