NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: Vanquistador
Today: 1
Yesterday: 1
Overall: 15103

Visitation:
Guests: 416
Members: 0
Total: 416


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Nuke Sites Link Directory
Nuke Sites Link Directory

NukeResources :: View topic - News module (Fixes) re-edited
NukeResources Forum Index

NukeResources Forum Index -> Bug Fixes -> News module (Fixes) re-edited
Post new topic  Reply to topic    View previous topic :: View next topic 
News module (Fixes) re-edited
PostPosted: Tue Sep 20, 2005 11:51 am Reply with quote
smotrs
Resource Seeker
Resource Seeker
 
Joined: May 25, 2005
Posts: 9




Not sure why, but the Topics moduel may have been modified so that when you click a topic, rather then it passing the varaible $new_topic to the News module, it now passes $topic. Unfortunately the News module is still expecting $new_topic so you lose the search function at the top of the page.

To fix, open the <root>/modules/News/index.php file, scroll to the very bottom and locate the default execution which looks like this,
Code:
default:
theindex($new_topic);
break;


change the $new_topic varaible to just $topic so it looks like the following and you'll get the search function back on the top of the page,
Code:
default:
theindex($topic);
break;


I only noticed this because I was adding my code to allow navigating through all articles in the topic, not just the last articles that $storynum equates to.

Added at 4pm: Viewing any Topic causes all topics to have their counter's increased. To prevent this and only have the viewed topic's counter increased, goto the sql_query at approximately line 57 in the theindex() function and add the WHERE comand to the end so that it looks like the following,
Code:
$db->sql_query("UPDATE ".$prefix."_topics SET counter=counter+1 WHERE topicid='$new_topic'");
View user's profile Send private message
PostPosted: Wed Sep 21, 2005 11:05 am Reply with quote
smotrs
Resource Seeker
Resource Seeker
 
Joined: May 25, 2005
Posts: 9




Disregard the first portion of the fix above. Making that change then breaks it when clicking a topic from the main page. Some how when the 3.1 patch was released, the new_topic variables in the Topics module (index.php file) was changed to just topic.

To correct this, do a search and replace within the <root>/modules/Topics/index.php file for the following string
Code:
&amp;topic


and replace it with the following string,
Code:
&amp;new_topic


There will be two (2) instances within the above file, if you get more then two, double check what your searching for. I suspect that's how it was changed in the first place, with a mass search and replace, just guessing though. If it was changed because the author wanted topic rather then new_topic then the change would need to be done to both the Topic's and News modules.

Note: This and the above only apply when the 3.1 patch has been applied. No changes necessary on un-patched versions.
View user's profile Send private message
can you help me out of this ( show only last article of each
PostPosted: Tue Jun 27, 2006 3:19 am Reply with quote
binhaus
Resource Seeker
Resource Seeker
 
Joined: Jun 16, 2006
Posts: 12




hi
i see you realy good in php and nuke ..
can you help me out of this project

i trying to modify the news modules of phpnuke to make it fress..

i wanna show up on homepages only the last article of each topics ( not some last artical of any topics ) and the links to its full containt , it similar like following:
-----------------------------------------------------|
*tittle of last artical of topic one |
-- this is contain of last article of topicone |
+link to full contain of article |
-----------------------------------------------------|
+link to second last article of topic one
+link to thirth last article of topic one
==============================

-----------------------------------------------------|
*tittle of last artical of topic two |
--this is contain of last article of topic two |
+link to full contain of article |
-----------------------------------------------------|
+link to second last article of topic two
+link to thirth last article of topic two
==============================

or you can goto www.veryzoo.com/testpage.jpg for pictures show this situation..

i think just need modify some in modules/news/index.php and add some varialble in story_home.html of themes pages..

i realy not got in php and sql so hope you can heolp me out... Arrow Arrow
View user's profile Send private message
News module (Fixes) re-edited
 NukeResources Forum Index -> Bug Fixes
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 129 unique hit(s) in the past 24 hours.
Forums ©
Nuke Sites Link Directory


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.28 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::