View Full Version : Annoying Guests
jjj0923
04-01-2002, 01:05 PM
Some of the guest at my forum are wearing out their welcome. They come to the site everyday and go through every message, but never join.
I'd really like to have a pop-up message or screen that informs them that "Don't you think it about time you joined".
I know their IP addresses are ascertained and I believe their date of last visit is also kept. Is someone interested in putting together hack that would limit guest to N visits????
thanks
- jeff
Logician
04-02-2002, 07:08 AM
there is a recently relesased hack that limits their view to xx threads only which you can use...
Or you can disable their access to many forums and leave a them a few to force them registation.
Many internet users have dynamic ip's and it would not be practical to trace the ips for guests. One solution may be inserting/checking the cookie in their computers and warn them after a certain amount of time though.
And here is another temporary solution for you: (not tested writing on the fly!)
1- edit your showthread.php
find
-- cut --
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}
-- cut --
AFTER THAT insert this:
-- cut ---
$random_num = mt_rand(1,3);
if ($random_num == 1 AND $bbuserinfo['userid']==0)
{
eval("dooutput(\"".gettemplate("guestwarning")."\");");
exit;
}
-- cut --
Now login to your admin cp and create yourself a template named "guestwarning" that asks your guests to register.
So what does this hack do? Simple: Checks if thread viewer is a logged-in user and if not (so he is most likely a guest) guest randomly receives the please register warning and thread not dislplayed to him. Randomly once in his every 3 showthread attempts. You can change 3 to any number you like in the code above. You can also add he same code to forumdisplay.php to have the same results when guests are browsing the forums.
Hope this helps..
Regards,
Logician
Admin
04-02-2002, 09:06 AM
Don't forget to use mt_srand() (http://php.fastmirror.com/manual/en/function.mt-srand.php) before using mt_rand().
MuSuL
06-09-2003, 09:22 PM
Or you can disable their access to many forums and leave a them a few to force them registation.
i can find this anywhere, can someone tell me where to disable the guest account?
thanks
Talisman
06-09-2003, 09:57 PM
In your Admin Control Panel, go to Usergroups > Forum Permissions..... then "edit" the Unregistered/Not Logged In usergroup. (Go back here later and do the same for your "Awaiting Email Confirmation" usergroup.)
From here, you can deny them whatever permissions you want to turn off --> canview, cansearch, canemai,l canpostnew, canmove, canopenclose, candeletethread, canreplyown, canreplyothers, canviewothers, caneditpost, candeletepost, deletetimelimit, canpostattachment, canpostpoll, canvote, cangetattachment.
Erwin
06-10-2003, 02:31 AM
Good tip from an old post by Logician there. :)
Talisman
06-11-2003, 07:21 AM
Is it? Well I guess it's pretty standard stuff. It sure took me a while at first to figure out the vB settings. (And I still get lost in there.)
I couldn't remember exactly for this so I had to call up my ACP to get the right steps. (Guess now I'll have to find what Logician posted.)
Talisman
06-11-2003, 07:56 AM
Just did a search using "Logician forum permissions" and found this one, Erwin:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=41215&highlight=logician+forum+permissions
Doesn't sound like that's the one you were thinking of. He's done others, but those were way more complicated.
gmarik
06-11-2003, 08:32 AM
If you need, I have a pop-up hack for guests.
Logician, why doen't you release it as mini-hack?
Many admins would lave to have that option ...
Guests that visit the site more than 5 times and doen't register could be added to the DB with the IP and they're host. It would be good for statistics also.
Logician
06-12-2003, 08:05 AM
Yesterday at 12:32 PM gmarik said this in Post #9 (https://vborg.vbsupport.ru/showthread.php?postid=407433#post407433)
Logician, why doen't you release it as mini-hack?
I have literally hundreds of hack codes given in hack requests forum. If I had released them all in Full Releases, I would be commiting my full time to vbulletin.org to support them (answer questions, solve bugs, help installers etc.). As you can guess this is not possible.
So my policy is, I release a hack in full releases ONLY IF:
a) I use it myself too.
b) I find it useful to many
c) I tested it for a long time
d) It is not a work done in 2 minutes.
The hacks I gave in hack requests forum do not comply with these so I prefer not to release them.
IMO vb.org users should have a habit of searching a hack in hack requests forum too instead of only browsing full releases section. This forum is a great library. And I guess veteran members already have this habit so I believe such hacks are not completely lost in the dust..
gmarik
06-12-2003, 09:31 AM
a) the same with me
b) this one is the one
c) you could bring it out here
d) make it 3
This is a very important idea, to make guest register, doen't you think so. And why not? You would be a great vb.org memmber, just as Chen is.
Logician
06-12-2003, 09:51 AM
ok if you think this is a crucial hack to many, you have my permission to release it yourself..
gmarik
06-12-2003, 09:53 AM
Logician, thanks, but my php knowledge is not enough for that. So you're the man :o)
Chris M
06-13-2003, 04:06 PM
Heh...
No wonder when I say "Search and ye shall find" they turn around and say "We can't find it":p
I always notice stuff coded in Hack Requests more than Full Releases, and have become acustomed to using this forum as a search resource;)
Maybe others should too:p - There really is alot of useful stuff in here, even things you might never have thought about...
Satan
gmarik
06-13-2003, 08:35 PM
And this hack too?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.