Number of new posts from portal different to index

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Number of new posts from portal different to index

Beitrag von Blisk »

:( I get another problem after make this sliding-navigation working.
At the portal or at the top I have NEW POSTS and there is like NEW POSTS (10), but after I click a index page there is like no new posts, no litle red images which signes a new posts!
I tested and sliding navigation menu IS the problem, when I remove it it works OK.
Maybe some java problems.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Maybe some incompatiblitie codes or variables.
Can you enable the slidemenu for testing by myself?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

it is enabled od www.povej.com.
That rhing works for me almost all the time, even users said that doesn't work, but today I notice that happends to me too, no red images for new posts.
It happends but not all the time.
www.povej.com is identical to www.povej.net.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The board doesn't stop loading :(
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

If you use IE, page load a little bit long, but if you use mozilla, it is fast, you need to wait.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I'm using Firefox and the page is still loading more than 10 minutes (after this I stop the page...)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

that is really strange, because for me it works from work, or home, from my friends it always work, don't know why is loading so long on your pc.
is that happend only on povej.com or both?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Both.
I don't know why. On IE I've now tested the sites, too and both will run into an error: "Page not reachable".
Does your portal load external data? Or will be the server to slow?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

yes my portal loads external data, but that should not be problem,
server is not slow it is something medium.
Try to acess directly index page not portal.
what if you have a cookie problem or history problem?
try to delete that!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The index works very fast, other sites, too.
Just the portal may have a big loop...

Back to your request:
The number of new posts will be set to X, but after using the search the number is set to the correct value.
Now I'm not getting a wrong number. It seems to be okay now.
I think, a small bug in the cookie/session management.
Which mods do you installed reflecting the sessions.php, viewtopic.php, viewforum.php, index.php?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

OK I see where is a problem with povej.com I will fix that, but povej.net should work ok.

that's the hard question, don't know which mods, I can check, but that will take some time, I will check and write a list.

Problem is that happends to some users, and when I remove a sliding-navigation, or snow falling (java scripts) it works ok, like this scripts interrupt session.

Here are my all installed mods, and edited files, which you write!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

There I can't find a mod which may affect your problem.
Counting the new posts will be done in page_header.php.
On a plus 1.5.x with this code:

Code: Alles auswählen

if( $userdata['session_logged_in'] ) 
{ 
	$sql = "SELECT COUNT(post_id) as total 
		FROM " . POSTS_TABLE . " 
		WHERE post_time >= " . $userdata['user_lastvisit'] . " 
		AND poster_id != " . $userdata['user_id']; 

	$result = $db->sql_query($sql); 
	if( $result ) 
	{ 
		$row = $db->sql_fetchrow($result); 
		$lang['Search_new'] = $lang['Search_new'] . " (" . $row['total'] . ")"; 
		$lang['Search_new2'] = $lang['Search_new2'] . " (" . $row['total'] . ")";
		$lang['Search_new_p'] = $lang['Search_new_p'] . " (" . $row['total'] . ")";
	}
}
Compare this code with yours. There might be differences, so post them here.
Further search for the $lang['Search...'] variables later on in this file. Check, they will not be changes bevore sending via "$template->assign_vars(" to overall_header.hpl.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

When I check the file, it is all OK.
Do you really think that, there is a problem with php code.
Because when I remove the javascript sliding_navigation_menu and snowflakes it works ok. :D

The last mods I install was
advanced censor
thread kicker
verified
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, I'll check this tomorrow.

EDIT
I can't find something reflected the new posts number based on the slide menu.
Only the topic calender may be interrupt this. Maybe.

Sorry, I've no more Idea about this.
Try to ask the author from the slide menu on phpbb.de...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I did ask author and we will see.
I noticed something else.
When I put a snowfall (java) into index.php I found out sometimes doesn't snow and when I press new topics and than back button on my browser it starts to snow.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

May something be wrong on implementing the snowing...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I did like I did before at the top of file index.php
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Waht on index.php? The javascript? This may better be in overall_header.tpl or index_body.tpl...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

no doesn't work in mozilla, if I do in tpl file!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

It works on Mozilla, too, of you uses

Code: Alles auswählen

<script language="JavaScript" type="text/javascript">scriptname();</script>
after the script block for snowing or other javascript which shall work on/after page load.
Only replace here "scriptname" with the function name.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

sorry doesn't understand, with what function name do you mean?
Here is my tpl file.

I found out a funny thing, when I put a snowing into overall_header.tpl doesn't work at all, but if I have java sliding menu on portal it snows on portal, if I remove javascript from portal for sliding menu, than it doesn't snowing at all.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

For example my countdown mod:
Here exists the function countdown(); as javascript (if the countdown is switched on).
On the last lines of your overall_header.tpl you can find

Code: Alles auswählen

<script language="JavaScript" type="text/javascript">countdown();</script>
This line will start the javascript function "countdown()" at this point to start the countdown on Mozilla/Firefox on page loading, too..
For other functions, like your snowfall mod or the slidemenu, you can use this line to start another javascript functions at the same way.
You must only insert this line with the name for the needed function (here countdown(), for slidemenu or snowfall the needed functions from the mods).
And by doing this, Mozilla Browsers will start the javascript, too ;)

At least I mean this is the reason the number of new posts will work probertly, if you install each javascript like the mods describes them and only add the line above to run the needed javascript on mozilla, too.
The method to get them work on Mozilla like you install the javascript at the php file will work, but maybe not correct...

BTW:
Other browsers like the IE will start the javascript and ignore the second call, which is needed only for gecko based browsers like Mozilla/Firefox.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I tested this but doesn't work.
If the code is in tpl, sliding menu is open and fixed at the top.
With snow fall is the same only one snowflake at the top left corner, and snow doesn't fall.
I will try with author of mod if not i will uniinstall it.

I found out another thing If i put a menu code in portal.tpl and than

Code: Alles auswählen

<script language="Javascript" type="text/Javascript">countdown();</script>
at the top of portal.php it works ok
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Maybe the countdown will be incompatible with other mods... Must there be insert an "onLoad" on the body-tag by the slidemenu/snowfall???
Then delete the entry from my countdown mod there ans retry...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I did a test, I did uninstall countdown mod for page_header and overall_header
and that's not it, menu stays opened, snow doesn't fall.
Antworten