vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Registration Hack v1.0 (any location!) (https://vborg.vbsupport.ru/showthread.php?t=40663)

g-force2k2 07-03-2002 10:00 PM

Quick Registration Hack v1.0 (any location!)
 
As required [ Here ] by Reverend :)

What does this hack do? Allows for quick registration of users!
When doing usergroup permissions and restricting access to alot of things you can use this little hack to call a quick register instead of Showing No Permission!
It allows for you to also disable the option in the Registration Settings :)
For instance if you restrict viewing in thread for guests they will get the normal empty forum with no threads and also they'll get a quick registration form!
Enjoy! Suggestions? Questions? Comments? [ g-force2k2 ]

*Notice: This hack doesn't include Coppa users. So if you rather have users join as Coppa if they're suppose to be then probably this isn't the hack for you ;)

What to do:

+++++++++++++++++++++++++++++++++++++++++++++++++
// +++++++ Queries to Run (1) +++++++
// +++++++ File Modifiactions ( ? ) +++++++
// +++++++ Template Modifications ( ? ) +++++++
// +++++++ Templates To Add (1) +++++++
+++++++++++++++++++++++++++++++++++++++++++++++++

I tested this hack on the forumdisplay.php but you can use it anywhere :)

Instructions in the php file attached just open it in notepad... sorry but once again no screenshots... would appreciate if someone could attach some thanks... ;) Enjoy...

g-force2k2

Edit: Zip updated thanks to Reverend for showing me an error in instructions ;)

Reverend 07-04-2002 08:03 PM

Please excuse my ignorance,but what does the "queries to run" part mean? :rolleyes:

g-force2k2 07-04-2002 08:07 PM

You have to run the query via phpmyadmin or you can find fireflys runaquery hack ;\ but not sure where it is... if you can wait a minute i will attach an install file for you to run it automatically :)

g-force2k2

Edit: Attaching Screenshot of what it looks like for an unregistered member viewing restricted forums :D

MrLister 07-04-2002 08:08 PM

you run it through phpmyadmin. basically to modify your vB database.

g-force2k2 07-04-2002 08:13 PM

Actually Reverend in you vbulletin go to this link...

admin/setting.php

You'll find the registration options and where it says add just add one to the registration settings set...

As follows:

Name: Quick Registration Enabled?
Variable Name: QRenabled
Value: 1
Description: 'Allows unregistered users to use the Quick Register Option (Notice: This option doesn't use the coppa function!

Type: yesno
Order: 18

Then you don't have to run the query ;)

g-force2k2

Reverend 07-04-2002 08:39 PM

Strange,it isn't working for me.
I've double checked everything.
Ran the query successfully. :confused:

g-force2k2 07-04-2002 08:40 PM

:p maybe you can't view it because you're logged in :) ?

Edit:

did you place the:

$quickregister

in the forumdisplay template?

g-force2k2

Reverend 07-04-2002 08:53 PM

Yep i've followed the installation instructions exactly.

Has anyone else tried this.

g-force2k2 07-04-2002 08:56 PM

I tested it out and i didn't have any probs ;\ make sure then that you named the template correctly when adding it ;) not sure what else could be wrong... check and make sure that the option is enabled in admin options as well :)

g-force2k2

Reverend 07-04-2002 09:04 PM

Yeah is everything is named correctly and enabled.Damn this is annoying.
:(

g-force2k2 07-04-2002 09:08 PM

If you want i can look into it for you quickly?

g-force2k2

Chris M 07-04-2002 09:13 PM

Cool...

Satan

g-force2k2 07-05-2002 01:38 AM

Reverend you ever solve the prob? and hellsatan did it do a clean install or not? just wondering ;)

g-force2k2

Reverend 07-05-2002 04:43 AM

Quote:

Originally posted by g-force2k2
Reverend you ever solve the prob?
g-force2k2


No afraid not g-force.
I'm wondering whether it's not working because of other hacks i have installed.
We also tried it on a friends similarly hacked board and it didn't work for him either. :ermm:

Did you test it on a clean install?

Broekie 07-05-2002 06:31 AM

maybe a stupid question but uhm, do you have a screenshot of the quick registration form?

MrLister 07-05-2002 12:59 PM

yea that's what i was wondering as well

g-force2k2 07-05-2002 02:49 PM

Here's a screen shot of the quick registration enabled...

Oh and Reverend go to your settings in admin cp and just confirm and update them... the install my have stated that its on... but i dunno it seems like the option still needs to be confirmed ;\

g-force2k2

Reverend 07-05-2002 03:21 PM

Nope still not working. :disappointed:

I've installed correctly,all the settings are enabled.
I've even uninstalled,then reinstalled etc,etc, but it still don't run.

All i get is the "There have been no posts in the last 30 days in this forum." screen.

g-force2k2 07-05-2002 03:54 PM

heh err... can i say that sucks ;\

A) make sure that its the forumdisplay.php and forumdisplay template

B) make sure that you updated the options in admin cp settings

C) make sure you're on the correct style...

Not sure what else i can do... i'd come and take a look... but you said you can't have that... if you check my ss it's definately a workin demo...

As for further support you can attach you forumdisplay.php ? Not really sure what else can be done ;\ anyone else having a problem?

g-force2k2

Reverend 07-05-2002 04:20 PM

I appreciate your time g-force.

A) Yes

B) Yes

C) Yes

Here's my forumdisplay.php in notepad format.

g-force2k2 07-05-2002 04:28 PM

damn sorry Reverand my bad ;\ it was an error in my instructions... so used to doing it that i didn't recognize the error ;\ no coding error just instruction...

Add this coding:

PHP Code:

// +++++++ Quick Register on Restricting Access [ Start ] +++++++
if($QRenabled) {
  if(
$bbuserinfo[userid]==0) {
    eval(
"\$quickregister = \"".gettemplate('register_quick')."\";");
  }
}
// +++++++ Quick Register on Restricting Access[ End ] +++++++ 

Below the:

PHP Code:

require('./global.php'); 

instead of above my bad... i'll update the instructions... thanks for lasting it out ;)

g-force2k2

Reverend 07-05-2002 04:52 PM

Hehe,got there in the end.Working perfect.Many thanks.

g-force2k2 07-05-2002 05:15 PM

Reverend if you still want to get rid of that 'No Posts in the Last 30 days' you can take this code:

PHP Code:

// +++++++ Quick Register on Restricting Access [ Start ] +++++++
if($QRenabled) {
  if(
$bbuserinfo[userid]==0) {
    eval(
"\$quickregister = \"".gettemplate('register_quick')."\";");
  }
}
// +++++++ Quick Register on Restricting Access[ End ] +++++++ 

And replace it with:

PHP Code:

// +++++++ Quick Register on Restricting Access [ Start ] +++++++
if($QRenabled) {
  if(
$bbuserinfo[userid]==0) {
    eval(
"\$forumdisplay[threadslist] = \"".gettemplate('register_quick')."\";");
  }
}
// +++++++ Quick Register on Restricting Access[ End ] +++++++ 

I just didn't include that if you wanted to use it on other locations instead of the show_nopermission ;)

g-force2k2

Reverend 07-05-2002 05:28 PM

mmmm....i replaced the code and it has gone back to the "no posts in the last ## days" screen. :rolleyes:

g-force2k2 07-05-2002 05:40 PM

then put the coding at the end of the forumdisplay.php

above:

PHP Code:

eval("dooutput(\""gettemplate("forumdisplay")."\");"); 

see if that works better?

g-force2k2

Reverend 07-05-2002 05:50 PM

g-force u r a star. :cool:

Perfect.



If any other members want to see the quick reg box,go
here and click on one of the forum links.Or view the attached screenie.

Apologies,i'm not trying to spam.

g-force2k2 07-05-2002 05:55 PM

Reverend also replace your template with the one attached below... i fixed the zip but after looking at teh screenshots i saw something i wanted to remove ;)

btw im just glad it finally worked for ya :)

g-force2k2

Reverend 07-05-2002 06:00 PM

Yep,i see what you changed.The top bar fontcolor.
Looks a lot better.

Reverend 07-05-2002 07:16 PM

g-force,sorry to be a pain.
Using this hack,is there anyway i can let guests still view certain forums/threads.

g-force2k2 07-05-2002 07:24 PM

yeah i'll see what i can do for you Reverend ;) i can probably do an forum exclusion pretty easily just do you want a number of different forums? one in general? just wondering what you're looking for :)

g-force2k2

Reverend 07-05-2002 07:38 PM

Yeah what i mean is use the same hack that you made,but have it so that i have an option to apply it to certain forums of my choice,rather than the whole board.

Hope that makes sense. :cross-eyed:

Chris M 07-05-2002 07:38 PM

Reverend - You will need to take out that "forumdisplay.php.txt" file from your post...

You are not allowed to post full vBulletin files on here...

Satan

g-force2k2 07-05-2002 07:40 PM

meh that was my bad hellsatan ;\ i asked him if i could see it...

yeah Reverend makes perfect sence ;) only thing is you still want the quick register to show on every forum still?

g-force2k2

Reverend 07-05-2002 07:41 PM

Quote:

Originally posted by hellsatan
Reverend - You will need to take out that "forumdisplay.php.txt" file from your post...

You are not allowed to post full vBulletin files on here...

Satan

OK sorry.Removed.

Chris M 07-05-2002 07:43 PM

Its alright...Just warning ya before a Mod does it...

@g-force - You should have asked him to email it to you...Never mind...No harm done:)

Satan

bluecat 07-06-2002 02:47 AM

Hi. I'm getting ready to install this hack but I have a quick question. I want guests to still be able to view threads and only be taken to the quick register when they want to reply or post. Is this possible?

g-force2k2 07-06-2002 03:45 AM

Yeah I will work on a modification. :)

g-force2k2

g-force2k2 07-06-2002 01:49 PM

bluecat when just add the new template and then in your coding

open newreply.php

find:

PHP Code:

if ($action=="newreply") { 

after it add:

PHP Code:

if($bbuserinfo[userid]==0) {
  if(
$QRenabled) {
    eval(
"dooutput(\'".gettemplate("register_quick")."\");");
    exit;
  }


then open newthread.php

find:

PHP Code:

if ($action=="newthread") { 

after it add:

PHP Code:

if($bbuserinfo[userid]==0) {
  if(
$QRenabled) {
    eval(
"dooutput(\'".gettemplate("register_quick")."\");");
    exit;
  }


And thats how you do it :p only thing i'd recommend is adding more to the quick register because it was made to appear in the forumdisplay setup not as a sole template :) hope that helps

g-force2k2

Danny 07-07-2002 02:47 PM

is it possible to have this as a block in vbportal?

g-force2k2 07-07-2002 04:06 PM

Quote:

Originally posted by Danny
is it possible to have this as a block in vbportal?
I would assume that it'd be fairly easy ;) what are you looking exactly to do?

g-force2k2


All times are GMT. The time now is 04:47 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.01366 seconds
  • Memory Usage 1,836KB
  • 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
  • (9)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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