Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2002, 01:05 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-02-2002, 07:08 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 04-02-2002, 09:06 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget to use mt_srand() before using mt_rand().
Reply With Quote
  #4  
Old 06-09-2003, 09:22 PM
MuSuL MuSuL is offline
 
Join Date: Sep 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 06-09-2003, 09:57 PM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 06-10-2003, 02:31 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good tip from an old post by Logician there.
Reply With Quote
  #7  
Old 06-11-2003, 07:21 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #8  
Old 06-11-2003, 07:56 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 06-11-2003, 08:32 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 06-12-2003, 08:05 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:59 PM.


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.04136 seconds
  • Memory Usage 2,259KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete