![]() |
Thanks blind-eddie
I hate to give this kind of access to the forum I'm having this submitted into...do you think there would be a way to setup a new user account that I could hard code into this hack. That way I can limit the user account setting within vB so that it only has access to this one forum. Hard coding the user setting might be a bit of a security risk but my forum is hosted on an intranet so I'm no worried that the employees in my company will be hacking my site. Do you think this could be done easily? |
Dont get me to lying.....Your first question was easy, your second one is a lil tougher....I have it set up for only registered user who are logged in can post on any forum, thus reducing spam. My opion to you is that I wouldnt want anyone to fill out a form unless they were registered,to ensure they are who they are.
|
K so if we go that route how can I have the form force the user to login first.
i.e. if the user enters "http://www.myforum.org/forum/newthread.php?do=form" they're currently taken to the form regardless of whether they are logged in. If they're not logged in and fill out the form and hit submit they are given no indication that their post has not gone through. So what I would like to do is some how check that the user is logged in when they first get to this page and if they are not, force them to login first...make sense? |
Quote:
Code:
if ($_REQUEST['do'] == $formname) Code:
if (!$vbulletin->userinfo['userid']) Alternatively you can amend this line in the plugin code: Code:
// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission(); Setting the post to be from a defined user is, from what I can tell, far more difficult, as the call to build_new_post() picks up the current user's id (whether a member or not). Anyone found out how to circumvent the posts (from unregd users) going into the Moderation queue yet? |
Quote:
|
woww :D very very good job.
thanx abe1... |
Quote:
Here's my template: Code:
$normalquestion1 |
I've searched through the plugin and the templates yet still cannot find out how to remove it either....
|
Why don't the two of you compare installed hacks and plugins? Perhaps you can find a common vein which might lead to being able to track it down more easily.
Sorry I couldn't be more help than that, but it's a potential start - at least until one of the more capable coders comes along to shed some light. |
Quote:
|
All times are GMT. The time now is 05:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|