Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2004
Posts: 14
User
User
Offline
Joined: Oct 2004
Posts: 14
I use to use the below wrapper for 6.4. I upgraded to 7.2 and now a bunch of my static pages are broke. Is there a new wrapper that I need to use? I have some pages that I used the old wrapper to verify a user was in a specific group to be able to view:

Thanks in advance.

Code

<?
$pagetitle = "Member List";
$threadspath = "/usr/www/users/boards";
require ("$threadspath/main.inc.php");
$userob = new user;
$user = $userob -> authenticate("U_Totalposts,U_Laston,U_Sort,U_Display,U_View,U_PostsPer,U_EReplies,U_TextCols,U_Text
Rows,U_Language,U_TempPass,U_TimeOffset,U_Groups,U_StartPage,U_Picture,U_Name,U_Title,U_Favorites,U_PicWidth,U_PicHeight,U_Ti
meOffset,U_FlatPosts,U_TempRead");
list($totalposts,$laston,$sort,$display,$view,$postsper,$ereplies,$textcols,$textrows,$ubbt_language,$temppass,$offse
t,$groups,$startpage,$picture,$fullname,$title,$favorites,$picwidth,$picheight,$timeoffset,$flatposts,$read,$CheckUser,$pass,
$sessionid,$stylesheet,$status,$privates,$frontpage,$Uid) = $user;

$html = new html;
$html -> send_header($pagetitle,$Cat,0,$user);
// ---------------------
// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();

// ***** YOU MAY NEED TO EDIT THE NAME OF THE TEMPLATE ******
if (!$debug) {
include("$thispath/templates/$tempstyle/_top.tmpl");
}
echo "<center><font size=+1>Members</font>";
if ( (ereg ("-8-", $groups)) || (ereg ("-15-",$groups)) ) {
echo "<br>(Member access)";
} else {
echo "<br>Public access";
}
....


Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Check the threads 7 forum for mods/addons. There's a 'generic page' mod post that's stickied to the top


- Allen wavey
- What Drives You?

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
Posts: 70
Joined: January 2007
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
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)