Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Mod Name / Version: Fill profile is required

Description: If you want write new post or new reply, you have to fill your profile

I tested it on 6.3.2 version, but I should work on 6.4.x

Working Under: UBB.Threads 6.3-6.4

Mod Status: Beta

Any pre-requisites: -

Author(s): Slawek_L

Date: 04/15/04

Credits: -

Files Altered: newpost.php | newreply.php

New Files: no

Database Altered: no

Info/Instructions: Instrutions for two files:
Find:
$user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview,U_Groups");
Change to:
$user = $userob -> authenticate("U_Name,U_Location,U_EReplies,U_TextCols,U_TextRows,U_Preview,U_Groups");

find:
if (!$user['U_Groups']) {
$user['U_Groups'] = "-4-";
}

add below:
if((!$user['U_Name'])||(!$user['U_Location'])){
$html -> not_right("Fill your profile to write any post",$Cat);
}


--------
Write, and upload files

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Thanx

Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Just to get this right.

This mod do not let anyone who is already registered make a post if some specified fields in their profile is not filled?

This would be great togheter with JoshPet´s Registration Mod!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
well if you add the firleds to this statement..

if((!$user['U_Name'])||(!$user['U_Location'])){
$html -> not_right("Fill your profile to write any post",$Cat);
}

that you don;t want users to be able to post if they don;t fill out.. then yes

Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Ok!


Anyone tried this in 6.4?

Ex:

This is what the instructions want me to find in newpost.php:
Code
$user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview,U_Groups");

but this is what the code looks like in 6.5:
Code
<br />$user = $userob -> authenticate("U_EReplies,U_TextCols,U_TextRows,U_Preview,U_Groups, U_Display");

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
You have the code to 6.5?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
see none of us are running 6.5 so we don't know

Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Sorry!

Of course I meant 6.4

But I sure got your attention!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
well then what I would do is compare that line to the change they want you to make and see how to change it correctly.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)