Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

News.php paging & the welcome message?

Asked Modified Viewed 3,093 times
C
cornersoyo
C
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
asked
Member

Is it just for me that this happens?

I tried a fruitless search for this so maybe it's just me!

On my default installation (not just the one I've been messing with) I noticed that if I have more than X news items on the default home page such that the page 1 / page 2 links appear, if I go to page 2, then back to page 1, the Welcome message is no longer showing. Is there a way to make the paging work such that the Welcome message either shows on each page or at least re-appears on the first page when you get back to it?? Thanks for any thoughts
0 replies

7 posts

C
cornersoyo
C
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Member

After playing around, it seems like the best answer for showing the welcome message when returning to the first page is using the include as you suggested (just had to make slight mod to the include statement):

if (isset($rowstart) && ($rowstart == "0")) include (INFUSIONS."welcome_message_panel/welcome_message_panel.php");


and then to show the welcome message on ALL of the pages, simply change the '==' to '>=' ...although on my site the welcome message is a bit too long to make this work well, too confusing - but maybe would work with a short one who knows!

Anyways, thanks again, these may be small solutions to small problems, but all are great learning experiences!
Edited by cornersoyo on 14-04-2008 09:57,
0 replies
C
cornersoyo
C
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Member

Thanks for the post, good points. The include option may be a better fit to this - in fact maybe with a small change in the criteria, it could be used to show the Welcome Message on each of the pages, (though I'm not sure if that would make the paging more confusing - guess it's something I'll have to play with).

Heh you know I feel like I'm the only person who saw this disappearing welcome message thing as a problem :| so I do appreciate you (and the others above) taking the time to follow up and provide your insight :)
Edited by cornersoyo on 14-04-2008 08:29,
0 replies
C
cornersoyo
C
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Member

It seems that I solved this by adding the following to my news.php just above the predefined variables:

if (isset($rowstart) && ($rowstart == "0")) redirect("index.php");


If there is a better way to do this please let me know - I'm not clear as to the difference between redirect & fallback but redirect seems to be doing the job...
0 replies
C
cornersoyo
C
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Member

Thank you, yes I just looked and it certainly makes perfect sense as to the why... now I will peek into the file and see if I can find how best to change this. I'm glad to know this wasn't due to something I screwed up, not a big issue but it seems curious to me why nobody else has tried to alter this behavior?

Thanks again!
0 replies
J
jak17
J
jak17 10
  • Member, joined since
  • Contributed 155 posts on the community forums.
  • Started 46 threads in the forums
answered
Member

that happens on everybodys page. the reason is this. once u press "1" you are not redirected to your news.php page. when i click 1 it redirects me to http://polishgoals.com/news.php?rowstart=0

as you can see, rowstart=0. the way to change this would be to change the redirect link for the number one in your php files to yoursite.com/news.php

hope i helped?
0 replies
C
cornersoyo
C
  • Member, joined since
  • Contributed 56 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Member

Hi,

Thanks, but unfortunately that is not what I am trying to resolve. I don't want the Welcome Message to show up everywhere - just on the "Home" page (/news.php).

The problem is, if there are enough news items on /news.php (I believe the default max is 11 in the code, though we changed this to 7) to cause pagination to occur on this page (i.e. Page 1 | Page 2 | etc...) and a user clicks on say 'Page 2' to see the second page of news headlines, and then decides to go back to 'Page 1' - the Welcome Message that was just there is no longer there.

Since our Welcome message contains instructions for a new user, we would like it to not disappear on them should they decide to page through the news headlines. True, they can get it back by clicking 'home' - but that isn't going to be obvious to a new user.

I haven't had time to investigate this further - but I would have thought someone else would have came across this same issue and possibly resolved it???

Thanks again
0 replies
N
noxes
N
noxes 10
noxes connection
-express your mind with imagination -
  • Member, joined since
  • Contributed 61 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

go to system admin>> panels and edit welcome message
tick "display on all pages"

and save..
your welcome message will display on all pages
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet