First post on every page

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
yasinahmetsevim
Registered User
Posts: 26
Joined: Mon Mar 17, 2008 6:28 pm
Location: Istanbul
Contact:

Re: First post on every page

Post by yasinahmetsevim »

It worked out with bg2. Thank you for helping me solve this problem.

PrometheusKZ
Registered User
Posts: 76
Joined: Mon May 08, 2006 9:07 pm
Contact:

Re: First post on every page

Post by PrometheusKZ »

rxu
New error appeared
PHP Notice: in file /posting.php on line 1362: Undefined variable: first_post_show_checked when posting / editing posts.

Thank you.

rxu
Extensions Development Team
Posts: 3050
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: First post on every page

Post by rxu »

Most likely you've missed some part of installation. There should be definition in posting.php around line 1223

Code: Select all

$topic_first_post_show = (isset($_POST['topic_first_post_show'])) ? 1 : 0;

PrometheusKZ
Registered User
Posts: 76
Joined: Mon May 08, 2006 9:07 pm
Contact:

Re: First post on every page

Post by PrometheusKZ »

I don't see in install instruction of version 1.2.2 this code...

Thank you.

PrometheusKZ
Registered User
Posts: 76
Joined: Mon May 08, 2006 9:07 pm
Contact:

Re: First post on every page

Post by PrometheusKZ »

Tried... nothing changed. What can be else?

Thank you.

PrometheusKZ
Registered User
Posts: 76
Joined: Mon May 08, 2006 9:07 pm
Contact:

Re: First post on every page

Post by PrometheusKZ »

I've found it. The missed code was

Code: Select all

$first_post_show_checked = (isset($post_data['topic_first_post_show'])) ? $post_data['topic_first_post_show'] : 0;
Thank you.

Uucyc
Registered User
Posts: 18
Joined: Thu Mar 03, 2005 9:46 pm

Re: First post on every page

Post by Uucyc »

Is there a way to change the collor of the background of the first post on all the pages? Otherway it looks like the same post was posted once again at the second page...

It would make sence for it to have a different apearence. Is there such an add-on?

rxu
Extensions Development Team
Posts: 3050
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: First post on every page

Post by rxu »

Uucyc
Try to read the topic starting from this ;)

Uucyc
Registered User
Posts: 18
Joined: Thu Mar 03, 2005 9:46 pm

Re: First post on every page

Post by Uucyc »

rxu wrote:Uucyc
Try to read the topic starting from this ;)
Thank you!

Uucyc
Registered User
Posts: 18
Joined: Thu Mar 03, 2005 9:46 pm

Re: First post on every page

Post by Uucyc »

rxu wrote:
issjut wrote:Do you see a simple way to realize it now? Currently it's really difficult to differ the first Post from the others. This confused my users
Try the following code:

Code: Select all

OPEN... 
RXU - you are awsome!

mykee
Registered User
Posts: 271
Joined: Thu Jun 07, 2007 9:46 pm

Re: First post on every page

Post by mykee »

I installed Post numbers 1.1.0c mod, but I get different number for first post. How can fix it in this mod? I need fix first number for first post. I don't know what mod I need fix? :roll:

rxu
Extensions Development Team
Posts: 3050
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: First post on every page

Post by rxu »

mykee wrote:I installed Post numbers 1.1.0c mod
Try this:

Code: Select all

OPEN
viewtopic.php

FIND
	$post_number = $i + $start;
	$post_number = $post_number + 1;
	$post_id = $postrow[$i]['post_id'];

REPLACE WITH
/**/

FIND
	$poster_id = $row['user_id'];

AFTER, ADD
	$post_id = $row['post_id']; 
	if ($topic_data['topic_first_post_show'] && ($start != 0)) 
	{ 
		$post_number = ($post_id == $topic_data['topic_first_post_id']) ? 1 : ($i + $start); 
	} 
	else 
	{ 
		$post_number = ($i + $start + 1); 
	}
Last edited by rxu on Wed Apr 16, 2008 2:09 pm, edited 3 times in total.

mykee
Registered User
Posts: 271
Joined: Thu Jun 07, 2007 9:46 pm

Re: First post on every page

Post by mykee »

Thanks! I changed, but nothing happened. :roll: First post number same before... If change page, then on second page on first post I see #51... :roll:
I cleared cache...

rxu
Extensions Development Team
Posts: 3050
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: First post on every page

Post by rxu »

mykee
Yes... this is because of Post numbers 1.1.0c code bug.
I've edited the code in my previous post, try again, please.

mykee
Registered User
Posts: 271
Joined: Thu Jun 07, 2007 9:46 pm

Re: First post on every page

Post by mykee »

Great!!!!!!!
Now working! Thanks!!!!!!!
Please publish this fox to Post numbers MOD topic for better mod! Many, many thanks!

Locked

Return to “[3.0.x] MOD Database Releases”