Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ CMS (All) ⇒ Requests :: Archives ⇒ News/Articles Titles linked to the articles. :: Archived


News/Articles Titles linked to the articles. :: Archived
Requests for core changes must be submitted through the Projects Features section.
Go to page 1, 2  Next
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ⇒  Requests

Topic Archived View previous topic :: View next topic  
Author Message
tour93
Gold Supporter
Gold Supporter

Offline Offline
Joined: Apr 20, 2004
Posts: 526
Location: florida
PostPosted: Wed Sep 01, 2004 5:25 pm
Post subject: News/Articles Titles linked to the articles.

Quote from NukeCops.com

Quote::
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>";
}

www.nukecops.com/postt11715.html

I went to our index.php (CPG) and I got that:

Code::
if ($catid != 0) {
            $title = "<a href=\"".getlink("News&amp;catid=$catid")."\"><font class=\"storycat\">$cattitle</font></a>: $title";
            $morelink .= " | <a href=\"".getlink("News&amp;catid=$catid")."\">$cattitle</a>";
        }
Is the change the same way for CPG, replacing "$title "with "$story_link<font class=\"storytitle\"> $title</font></a>"; "

Thanks
Alain

_________________



tour93's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39/4.1.22/4.4.7/Dragonfly9.1.2.1
Back to top
View user's profile Visit poster's website MSN Messenger
tour93
Gold Supporter
Gold Supporter

Offline Offline
Joined: Apr 20, 2004
Posts: 526
Location: florida
PostPosted: Thu Sep 02, 2004 2:10 am
Post subject: Re: News/Articles Titles linked to the articles.

I tried it, it seems to work.
Code::
        if ($catid != 0) {
            $title = "<a href=\"".getlink("News&amp;catid=$catid")."\"><font class=\"storycat\">$cattitle</font></a>: $story_link<font class=\"storytitle\"> $title</font></a>";
            $morelink .= " | <a href=\"".getlink("News&amp;catid=$catid")."\">$cattitle</a>";
        }else { 
$title ="$story_link <font class=\"storytitle\">$title</font></a>"; 
} 

_________________



tour93's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39/4.1.22/4.4.7/Dragonfly9.1.2.1
Back to top
View user's profile Visit poster's website MSN Messenger
Jeruvy
Security Team
Security Team

Offline Offline
Joined: Apr 23, 2004
Posts: 1432
Location: Canada
PostPosted: Thu Sep 02, 2004 2:26 pm
Post subject: Re: News/Articles Titles linked to the articles.

This will require better knowlege of the getlink() function. You should review this process before attempting modification.

_________________
J.
j e r u v y a t y a h o o d o t c o m

Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net

Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
Back to top
View user's profile ICQ Number Yahoo Messenger Photo Gallery
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Fri Jun 24, 2005 4:28 am
Post subject: news title linked to article

ok since the other forum that I posted this in was deleted Confused , could the title of each news article be linked to the article by default? it may be confusing to some to find the rest of an article by clicking 'read more'. thoughts? I know a couple others supported this as well.

_________________


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
Kuragari
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Apr 25, 2005
Posts: 563
Location: AnimeEgo
PostPosted: Fri Jun 24, 2005 5:16 am
Post subject: Re: news title linked to article

those threads were merged with the design team staff threads, not deleted Razz


Kuragari's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.9 / 1.3.34 / 4.1.14 / 4.4.1 / CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Fri Jun 24, 2005 5:27 am
Post subject: Re: news title linked to article

doh. I thought those forums were visible to everyone?

_________________


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
Kuragari
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Apr 25, 2005
Posts: 563
Location: AnimeEgo
PostPosted: Fri Jun 24, 2005 5:35 am
Post subject: Re: news title linked to article

i think they were at one point, but i'm not sure :/


Kuragari's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.9 / 1.3.34 / 4.1.14 / 4.4.1 / CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
medigangsta
Nice poster
Nice poster

Offline Offline
Joined: Jul 16, 2004
Posts: 69

PostPosted: Tue Jul 19, 2005 6:15 pm
Post subject: Re: news title linked to article

I was just searching for something else and stumbled across this thread. I made a post a few months ago that, if I've understood the original topic correctly, should be of some help.


www.cpgnuke.com/Forums...=7771.html


medigangsta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.50/MySQL 4.0.18 /PHP 4.3.9/CPG 8.2b
Back to top
View user's profile Visit poster's website
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Tue Jul 19, 2005 6:36 pm
Post subject: Re: news title linked to article

thanks, works great! Smile

_________________


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Jul 19, 2005 11:49 pm
Post subject: Re: News/Articles Titles linked to the articles.

indeed, it was moved because it wasn't a themes issue.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Andreas
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden
PostPosted: Thu Jul 21, 2005 5:01 pm
Post subject: Re: News/Articles Titles linked to the articles.

Has this "hack" been implemented into the Core?

_________________
Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder

Andreas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.52(Unix)/4.0.23/4.3.10-2/Dragonfly 9.0.6.1
Back to top
View user's profile Visit poster's website ICQ Number MSN Messenger Yahoo Messenger
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Thu Jul 21, 2005 5:15 pm
Post subject: Re: News/Articles Titles linked to the articles.

no. it would be nice if we had an easy way to organize little but important things like this for the devs to consider

_________________


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
djdevon3
Gold Supporter
Gold Supporter

Offline Offline
Joined: Aug 05, 2004
Posts: 4363

PostPosted: Fri Jul 22, 2005 8:29 am
Post subject: Re: News/Articles Titles linked to the articles.

i'll agree with this idea.


djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website Photo Gallery
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Fri Jul 22, 2005 4:32 pm
Post subject: Re: News/Articles Titles linked to the articles.

I will make a list of things like this and submit it to the devs to see what can be done

_________________


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
Andreas
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden
PostPosted: Thu Aug 18, 2005 8:03 am
Post subject: Re: News/Articles Titles linked to the articles.

Anything happen? Any response?

_________________
Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder

Andreas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.52(Unix)/4.0.23/4.3.10-2/Dragonfly 9.0.6.1
Back to top
View user's profile Visit poster's website ICQ Number MSN Messenger Yahoo Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ⇒  Requests
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy