vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Annoying Guests (https://vborg.vbsupport.ru/showthread.php?t=36838)

jjj0923 04-01-2002 01:05 PM

Annoying Guests
 
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() before using mt_rand().

MuSuL 06-09-2003 09:22 PM

Quote:


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/showthrea...um+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

Quote:

Yesterday at 12:32 PM gmarik said this in Post #9

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..


All times are GMT. The time now is 06:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete