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, 52 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - [Trick] News/Articles Titles linked to the articles. [ ]
 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
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Thu Oct 09, 2003 2:04 am Reply with quoteBack to top

I was reading these forums tonight and saw THIS thread where one person had an idea about linking the Title of the article to the whole article's page.

Few people posted thier tricks and it looked like none of them were working for 6.5 and above.

I took one of those old tips and sorta ported to make it work with 6.5 and above ( I am using 6.9)

Here is goes.

modules/News/index.php:
Look for:

Code:

if ($catid != 0) {
       $sql3 = "SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'";
       $result3 = $db->sql_query($sql3);
       $row3 = $db->sql_fetchrow($result3);
       $title1 = $row3[title];
       $title = "<a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><font class=\"storycat\">$title1</font></a>: $title";
       $morelink .= " | <a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\">$title1</a>";
   }


And change it to:


Code:

if ($catid != 0) {
       $sql3 = "SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'";
       $result3 = $db->sql_query($sql3);
       $row3 = $db->sql_fetchrow($result3);
       $title1 = $row3[title];
       $title = "<a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><font class=\"storycat\">$title1</font></a>: $story_link<font class=\"storytitle\"> $title</font></a>";
       $morelink .= " | <a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\">$title1</a>";
   } else {
   $title ="$story_link <font class=\"storytitle\">$title</font></a>";
   }

That is it!

You can see it working here:
http://www.chicagobase.com
All fixes and patches are applied.

I am such a thick head, took me more than 2 hours to figure this out.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Oct 09, 2003 6:18 am Reply with quoteBack to top

Very nice! Thanks for sharing.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
dsnail2000
Site Admin
Site Admin


Joined: Mar 17, 2003
Posts: 331

Location: Northern VA

PostPosted: Mon Aug 16, 2004 8:09 am Reply with quoteBack to top

anybody want to tackle the update for this hack for nuke 7 and up?

_________________
Webmaster of ControlBooth.com
Have new module or block ideas?
Submit your ideas here or in the Suggestions Forum
Find all posts by dsnail2000View user's profileSend private messageVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Aug 16, 2004 9:25 am Reply with quoteBack to top

You might be shocked to find this out my friend that the code it has not changed since 6.5 Very Happy

When I posted this message, I actually checked it on 7.4 before hit the "Submit" button.

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Aug 16, 2004 9:30 am Reply with quoteBack to top

Code from 7.4
Code:

if ($catid != 0) {
       $row3 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
       $title1 = stripslashes(check_html($row3['title'], "nohtml"));
       $title = "<a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><font class=\"storycat\">$title1</font></a>: $title";
       $morelink .= " | <a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\">$title1</a>";
   }


Change it too:
Code:

if ($catid != 0) {
       $row3 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
       $title1 = stripslashes(check_html($row3['title'], "nohtml"));
       $title = "<a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><font class=\"storycat\">$title1</font></a>: $title";
       $morelink .= " | <a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\">$title1</a>";
   } else {
   $title ="$story_link <font class=\"storytitle\">$title</font></a>";
   }


You will see this code if you have already applied ChatServ's fixes 2.5.

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
dsnail2000
Site Admin
Site Admin


Joined: Mar 17, 2003
Posts: 331

Location: Northern VA

PostPosted: Wed Aug 18, 2004 7:20 am Reply with quoteBack to top

oops, had an extra space in the search string when I was trying to find the code in Dreamweaver... hate it when that happens. But I've got the code applied now and am eating my humble pie.

_________________
Webmaster of ControlBooth.com
Have new module or block ideas?
Submit your ideas here or in the Suggestions Forum
Find all posts by dsnail2000View user's profileSend private messageVisit poster's website
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Wed Aug 18, 2004 1:45 pm Reply with quoteBack to top

I am looking at that code and visited the website but I don' t notice any difference Confused

Can somebody help me sorting this out?

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Wed Aug 18, 2004 2:30 pm Reply with quoteBack to top

My site is currently under a change of code stage. Please see http://www.controlbooth.com/ for an example.

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
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
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.246 Seconds - 309 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::