PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 9th, 2008, 01:20 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Problems with banned user..

Sorry chuck if i seem to find lots of little ones.. but i'm going through the files line by line and testing all eventualities.. the site has to be finished by feb. 1st.

I have a user called tester.
I banned that user.. to see what output he gets in gallery..
If he is in gallery (showimage).. he gets the u are banned page..
BUT the replacements are NOT made...
so he gets-> javascript error.. AND no css.. which looks horrible in vbulletin..

the replacements cant be made.. because the url of the page is still:
http://..../gallery/showimage.php?i=40&catid=5
the global thinks its showimage script...

OK if we banned the user, we dont really care what he gets for output.. but i had really trouble reading the page without any css..

Luc
PS: I did some tests and we do need the $show['avatar'] = false;

Last edited by Luciano; December 10th, 2008 at 12:30 AM.
Luciano is offline   Reply With Quote
Old December 9th, 2008, 02:52 PM   #2 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Ok i seem to have fixed it..
I rewrote the whole forum/includes/vbgallery/error_generic.php

It includes now the old replacements and the new ones for banned user.
AND i added a conditional: if(PP_SCRIPT == 'vBGallery')

BUT to remove overhead.. this conditional should be in the plugin code and NOT in the file.. otherwise if an error is generated by vbulletin or other script.. then it still loads the file.. ok it doesnt do anything but still if we can avoit it.. why not.. (btw this can also be done with plugin style_fetch.php in plugin code)


so i would suggest for future versions to have this plugin text as following:
Code:
Content visible to verified customers only.
but for now.. to fix the banned user problem, do following:
open: forum/includes/vbgallery/error_generic.php
and replace ALL the content with:
Code:
Content visible to verified customers only.
ATTENTION I ONLY DID THE REPLACEMENTS I THOUGHT WERE NEEDED (I have most links in header and footer allready prefixed with $vboptions[bburl] in template.. so in my install i only needed clientscript and sendmail.php
so please check if there are any missing.

Luc

Last edited by Luciano; December 9th, 2008 at 03:09 PM.
Luciano 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
Banned users uncle fuzzy Before You Buy 3 January 18th, 2008 12:33 PM
Banned SCAMMER sending email through ads. oldengine Classifieds Bug Reports 11 February 15th, 2007 08:43 AM
How to make it so BANNED users can not contact sellers? snowbird ReviewPost How do I...? 5 July 10th, 2006 08:45 AM
Pp5 and vB3 Banned users still can view Geiri Photopost Pro How Do I...? 2 March 12th, 2005 04:28 PM


All times are GMT -5. The time now is 06:33 PM.

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