php forum
php mysql forum
php mysql smarty
 
Page 5 of 9 < 1 2 3 4 5 6 7 8 9 >
Topic Options
#140831 - 04/02/01 02:07 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Roodah Offline
Junior Member

Registered: 04/02/01
Posts: 3
Loc: Germany, 84069 Schierling

   Re: [6.0x] Last User Name to Reply in Forum [ Finished ] to Del.icio.us Add to del.icio.us
  Digg Re: [6.0x] Last User Name to Reply in Forum [ Finished ] Digg it
I just wanted to asy that I have the same problem with the multipages ...

I'm using UBB v6.01

- Roodah

Top
#140832 - 04/02/01 02:07 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
amykhar Offline
Member

Registered: 08/20/00
Posts: 240
It's working fine for me as well. I am on 6.02

Amy
_________________________
My Board

Top
#140833 - 04/02/01 02:54 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Guys DOUBLECHECK you are using the code from Allen's first post in this thread, it DOES work!
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#140834 - 04/03/01 02:49 AM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
h4p3 Offline
Member

Registered: 09/29/00
Posts: 105
Loc: Vienna
hm, Slurpee ... strange. I've installed it, i think, 5 times, and yes i took the file from Allens first post. It doesn't work for many people.
_________________________
greetz
h4p3
OC Austria | www.overclockers.at

Top
#140835 - 04/03/01 02:58 AM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Roodah Offline
Junior Member

Registered: 04/02/01
Posts: 3
Loc: Germany, 84069 Schierling
Ok guys, now we know why it doesn't show the correct pages: The script doesn't hop into this query:

if ($total_pages > 1) {
$page_num = "&p=$total_pages";
}


Don't ask me why! The funny thing is, $total_pages equals sometimes more than 1, but the loop gets not executed. I checked it out with a simple print "$total_pagesn"; - it does not show any values. When I set the print-command above the if-block, it prints out the correct number of pages. It seems that anything isn't ok with the if-block. But what? I don't see any wrong things in it ...

- Roodah

[ April 03, 2001: Message edited by: Roodah ]

Top
#140836 - 04/03/01 03:14 AM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Roodah Offline
Junior Member

Registered: 04/02/01
Posts: 3
Loc: Germany, 84069 Schierling
Ok, I think I have it. In Allen's version, the if-block I writed I my last posting is out of the if ($total_posts > $vars_display{HTMLDisplayMax}) { ... }. And that's the cause of our problems. $total_pages is defined with a my-definition, so out of the if ($total_posts > $vars_display{HTMLDisplayMax}) { ... }-thing $total_pages = 0! There are 2 ways to fix the problem: 1st Delete the my out of the my $total_pages = int ($total_posts / $vars_display{HTMLDisplayMax}); or 2nd set the if ($total_pages > 1) { ... }-block into the if ($total_posts > $vars_display{HTMLDisplayMax}) { ... }-thing.

I used the 2nd way, so my code in ubb_forum.cgi is:

Code:
code:


- Roodah

[ April 03, 2001: Message edited by: Roodah ]

[ April 03, 2001: Message edited by: Roodah ]

Top
#140837 - 04/03/01 12:29 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
qasic Offline
Developer

Registered: 01/01/01
Posts: 1930
Loc: Surrey, BC, Canada
Can anyone else verify this?

q
_________________________

Top
#140838 - 04/03/01 01:44 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
amykhar Offline
Member

Registered: 08/20/00
Posts: 240
it's better than that. You don't need this line at all:

Code:
code:


because, if the number of posts is greater than the max allowed per page, there is GOING to be more than one page.

I removed it a while back and moved the page number code into the main if block. It's been working like a charm.

Amy
_________________________
My Board

Top
#140839 - 04/03/01 03:13 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Dirtrider Offline
Junior Member

Registered: 03/17/01
Posts: 24
Loc: Germany
Ok, that exactly must i change, so it will work correct. confused
_________________________
OFFROADFOREN.de

Top
#140840 - 04/03/01 04:07 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Redshift Offline
Member

Registered: 12/14/00
Posts: 36
Loc: Raleigh, NC, USA
Thanks, amy! Can you post exactly what the new snippet of code looks like so we don't err on making the changes?
_________________________
- Brian A. Marks
Visit my UBB6 C5 Corvette Forum

Top
#140841 - 04/03/01 04:16 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25427
Loc: Texas
please... added back here does show the error... frown
_________________________
- Allen wavey
- What Drives You?

Top
#140842 - 04/03/01 04:18 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Redshift Offline
Member

Registered: 12/14/00
Posts: 36
Loc: Raleigh, NC, USA
I commented out all three lines, amy, (the if statement and opening and closing braces) and the behaviour does not change.

Any other ideas? Perhaps a fix to the source code, so that I can re-download it? Or even better a quick "how to upgrade" doc.

smile
_________________________
- Brian A. Marks
Visit my UBB6 C5 Corvette Forum

Top
#140843 - 04/03/01 05:59 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25427
Loc: Texas
ahhh, I used roodah's change and it fixed it here... I'll document it and post here this evening when I have it uploaded again.

For those with it already installed, change this section in ubb_forum.cgi to this:
Code:
code:
_________________________
- Allen wavey
- What Drives You?

Top
#140844 - 04/03/01 06:19 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Yeah Allen, thanks for making me look bad. tipsy
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#140845 - 04/03/01 06:23 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25427
Loc: Texas
OK, file linked to on front page has been updated, plus it is now using the vars_wordlets_mods.cgi most of you already have, if you don't, then check DPK's Mod for it, as we are working towards standardizing the wordlets files for modifications added.

Slurpee: tipsy
_________________________
- Allen wavey
- What Drives You?

Top
#140846 - 04/03/01 08:37 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Sonic Offline
Member

Registered: 02/11/01
Posts: 74
Loc: Arizona, USA
Hi, I just updated my UBB to 6.02 and went back and installed sevral of the hacks I collected including yours. I've ran into a problem; in private forums, when you click Show Topics from last 45 days, or higher, it brings up
Quote:
quote:

This may not have been due to your hack, I currently have 6 hacks installed:
Anchor, last reply, News Fader, Custom Rank, and MODs Wordlets.cgi
Any Suggestions?
_________________________
{SFP} Sonic
Expecting the Unexpected!

Top
#140847 - 04/03/01 09:01 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25427
Loc: Texas
Hey Paul, not sure where your problem may be, but it isn't affecting us here (I just checked) - right now, we only have who's online and this one installed.
_________________________
- Allen wavey
- What Drives You?

Top
#140848 - 04/03/01 09:09 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Nope just checked my forum, no private forum problem like that.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#140849 - 04/03/01 09:53 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Sonic Offline
Member

Registered: 02/11/01
Posts: 74
Loc: Arizona, USA
Could this be a CHMOD problem? I've tried reinstalling the hacks using a fresh upgrade zip.

I guess I'll just reinstall the whole board then try each hack one at a time.

[ April 03, 2001: Message edited by: Paul D ]
_________________________
{SFP} Sonic
Expecting the Unexpected!

Top
#140850 - 04/03/01 10:32 PM Re: [6.0x] Last User Name to Reply in Forum [ Finished ]
Redshift Offline
Member

Registered: 12/14/00
Posts: 36
Loc: Raleigh, NC, USA
Thank you Allen, that did the trick. Whew. cool cool cool
_________________________
- Brian A. Marks
Visit my UBB6 C5 Corvette Forum

Top
Page 5 of 9 < 1 2 3 4 5 6 7 8 9 >


Who's Online
0 Registered (), 38 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks