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,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
!$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, Scouters World
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,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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, Scouters World
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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (DennyP, 1 invisible), 969 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)