You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 226 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - News Articles and Searching [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
austin457
Nuke Soldier
Nuke Soldier


Joined: Mar 01, 2008
Posts: 10


PostPosted: Mon Jun 16, 2008 3:52 pm Reply with quoteBack to top

I originally thought this behavior was a result of my editing, but I noticed that the same happens on NukeCops so perhaps it is a feature that never got properly finished (or has been messed up by updates).
I didn’t find a relevant topic already for this, so I’ll post just in case someone has already addressed this and can point me in the right direction.
The symptom:
If you click on a Read More link at the bottom of a news article, the page opens with the full story. The right hand column is present and in mine (and NukeCops) are blocks labeled “Related Links, “Article Rating”, and “Options”. My concern is the Related Links block. It says something like More About topic and News by author. The properties of the links are something like
/modules.php?name=Search&topic=1
or
modules.php?name=Search&author=austin
But clicking on the link simply opens the standard search box. One would expect to be presented with a listing of all results of searching by Topic or Author.
I’ll start digging into this tonight, but does anyone have input?
Austin
Find all posts by austin457View user's profileSend private messageVisit poster's website
doctornuke
Corporal
Corporal


Joined: Oct 15, 2003
Posts: 66


PostPosted: Tue Jun 24, 2008 8:24 am Reply with quoteBack to top

I think this is an unfinished version of news up to 7.8 .I also have the same problems . Only click the search and go to standard search page.

_________________
home|thaios|healthhosting
b|game
Find all posts by doctornukeView user's profileSend private messageVisit poster's website
gnaunited
Corporal
Corporal


Joined: Jun 22, 2003
Posts: 67

Location: Northglenn, Colorado

PostPosted: Tue Jun 24, 2008 10:28 am Reply with quoteBack to top

It wants you to type in a search term that it will serch for based on the username / topic you select. I really don't post news that often so not really a big deal for me. But, you get what you pay for I guess.
Find all posts by gnaunitedView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
austin457
Nuke Soldier
Nuke Soldier


Joined: Mar 01, 2008
Posts: 10


PostPosted: Thu Jun 26, 2008 12:17 pm Reply with quoteBack to top

Well, I fixed that problem, only to encounter another. Apparently the code I'm trying to post triggers NukeSentinel, which accuses me of trying a script attack- sigh. (even tho I use the BBCode for code).
So, I had to make a text file, zip, and upload to my site. I really hate that because you can't actually read the answer here, and it's something that I feel should be fixed in the next set of updates.
Sorry, but oh well.
You can find the file at
http://www.ezcandlesticks.com/public/realted_links_fix.zip

To give you an idea of where to look (if you don't want to or can't download the text file), I'll post my original post attempt minus the code:

This is first chance I had to get back to this. I saw someone had responded, and when I read the post above I had a Eureka moment.
You are absolutely correct. The Search (module) wants an input for a query. So we just need to pass a wildcard from the Related Links link to the Search page. But alas, the Search module does not support a wildcard and it also requires a minimum of 3 characters. I did notice that if you hit the space bar three times (in the search term box), it works like a wildcard. So you can hit 3 spaces, choose an author, and you’ll get everything by that author- which is what we are looking for.
So…to keep editing to a minimum and simple all I did was in modules/News/articles.php find the links for the Related Links box. Around line 185:

Add a value for query- you have to use the word query, but the value can be anything >3 letters. I used 4 asterisks.
Here is the new code:

Now, in modules/Search/index.php we need to fake out the query. I did it this way and it works. Around line 24 find:

And make it like this:

Tada. Now the Related Links work like they should.
I should mention this is not the best fix. For one thing you will notice the ...more box at the bottom of the search results will list everything. It would be best to actually check for a value from the Related Links link and if it is present have a separate db query and result page. My method was just easier and quicker for a novice like me.
Cheers
Austin

_________________
http://www.ezCandlesticks.com (non-nuke)
http://www.ezcandlesticks.com/lounge (nuke, but not "open" yet)
Find all posts by austin457View user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.048 Seconds - 131 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::