>>  Site Map >>  Forums >>  General

Forum module - topics in forum:



General - Got a general or non nuke problem which doesn't fit anywhere else, ask here.



number of topics in topic view

i deleted some code from a file so it displays ALL news items in a topic rather than limiting it to about 10 or something, i cant remember what file it was from or where abouts though.

can some body remind me please?

i dnt want to replace the file cos i also did some other work in it lol

thanks






Got a link to the page where you removed the code?

I could then tell you what file.






Latest Microsoft News


Thats the biggest and main Topic






Probably modules/topics/index.php then.

Something like

Code: :
if ($num == 10) {
          echo "<div align='right'><big><strong>&middot;</strong></big>&nbsp;<a href='modules.php?name=News&new_topic=$topicid'><b>"._MORE." --></b></a>&nbsp;&nbsp;</div>";
       }







The code I removed was SQL code that limits how many are displayed, by the looks of it, that is just adding a MORE NEWS link...






The above code controls the more link as on this page.

http://phpnuke-uk.net/topics.html






I want code to limit the number of articles displaying when viewing a topic, look at the link I provided, you see there are ALL articles ever added in that topic being displayed, I dont want them all displayed any longer






I did look at the link and suggested what I thought it you wanted to achieve.

Ok, try modules/news/index.php

Find

Code: :
."[ <a href=\"index.php\">"._GOTOHOME."</a> | <a href=\"modules.php?name=Topics\">"._SELECTNEWTOPIC."</a> ]</center>";
   }
   CloseTable();
   echo "<br>";
    }


Below that is normally the code which sorts those articles.

Code: :
$result = $db->sql_query("SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories $qdb $querylang ORDER BY sid DESC limit $storynum");


If you've removed more than this you'll need to compare your file with an original file backup which you're sure to have.






Thats EXACTLY what I was looking for!

Thank you very much for your help.




Show more News

hello there

I saw this post and its helped me in one way. To make unlimited number of News in Topic Module

$result = $db->sql_query("SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories $qdb $querylang ORDER BY sid DESC limit 20");

(I put number 20 to show me last 20 News)

But now if I have much more News, it will be not nice to have unlimited number of them. Scroll will be so long.

Is there any way to split pages? To add some new codes to do: Example: after 20 News on page, to have link to open next page.

In PHP I know how to make it, but not know how to include in PHPNUKE.

I hope you will understan me what I asked

Regards






Try http://phpnuke-uk.net/downloadview-details-60-Page_Numbers_7.0.html




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS