Previous Thread
Next Thread
Print Thread
Rate Thread
#262149 11/05/2003 6:02 AM
Joined: Mar 2002
Posts: 6
Lurker
Lurker
Offline
Joined: Mar 2002
Posts: 6
Hey, I'm using the collowing code I found in an old thread about this same topic to restrict the post count from increasing in a specific forum but it doesn't seem to be working. I'm running 6.4b1. Oh and yes I'm sure the forum name is correct. Ideas?

addpost.php
Code
    if ($Board=='asylum') {		      <br />	$Totalposts = $user['U_Totalposts'];		      <br />	$CurrTitle  = $user['U_Title'];		      <br />	$Color      = $user['U_Color'];		<br />        }    		  <br />    else {	    <br />	$Totalposts = $user['U_Totalposts'] + 1;<br />	$CurrTitle  = $user['U_Title'];		      <br />	$Color      = $user['U_Color'];	<br />	}<br />

Sponsored Links
bugbee #262150 11/06/2003 11:17 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Try to adjust your spacings:

Code
<br />	if ($Board == 'asylum') {<br />		$Totalposts = $user['U_Totalposts'];<br />		$CurrTitle = $user['U_Title'];<br />		$Color = $user['U_Color'];<br />	} <br />	<br />	  else {<br />		$Totalposts = $user['U_Totalposts'] + 1;<br />		$CurrTitle = $user['U_Title'];<br />		$Color = $user['U_Color'];<br />	}<br />


This is an example of my code, and it works just fine. I believe.... You have me paranoid now! [runs off to check /]

eslmix #262151 11/06/2003 11:18 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Yeah, it works.


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,575
Posts293,927
Members13,822
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)
cgregg 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 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 20240506)