Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2006
Posts: 67
journeyman
journeyman
Joined: Oct 2006
Posts: 67
Hej
Today i needed some extra space for a banner on my dosearch page, where the default shown posts is 25, which I wanted to increase to 30. I coudnt find anything in the admin menu and at last I opened dosearch.php and found the code:
Code
// Figure  out if we link to showflat or showthreaded
   $mode = $user['U_Display'];
   if (!$mode) {
      $mode = $theme['postlist'];
   }
   $linker = "show$mode";

   if ($Searchpage < 0) {
      $html -> not_right($ubbt_lang['NO_MORE'],$Cat);
   }
   if (!$Match) { $Match = "Or"; }
   if (!$Searchpage) { $Searchpage = 0; }
   if (!$Limit) { $Limit = 25;}
 

I changed the $Limit value to 30, but that didnt help. Then I edited the line to:
Code
if ($Limit) { $Limit = 30;}
 
and that solved the problem, but I still wonder where $Limit is set?


trosfrihed.dk
Custom Ubb 7.5.2
Joined: Jun 2006
Posts: 16,533
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,533
Likes: 150
!$Limit means "if limit isn't set then set it as 25"; thus if it uses the value there, $limit isn't set elsewhere.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2006
Posts: 67
journeyman
journeyman
Joined: Oct 2006
Posts: 67
Yes I know. But I still wonder why the number of posts didnt changed from 25 to 30 when !$Limit was set to 30?


trosfrihed.dk
Custom Ubb 7.5.2
Joined: Jun 2006
Posts: 16,533
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,533
Likes: 150
you should just be able to put:
$Limit = 30

Above the !$Limit line versus having to adjust it; I'm not sure where it'd be defined though


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 393 guests, and 148 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)