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


Offline Joined: Apr 20, 2004 Posts: 526 Location: florida
|
Posted: 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&file=categories&op=newindex&catid=$catid\"><font class=\"storycat\">$title1</font></a>: $title";
$morelink .= " | <a href=\"modules.php?name=News&file=categories&op=newindex&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&file=categories&op=newindex&catid=$catid\"><font class=\"storycat\">$title1</font></a>: $story_link<font class=\"storytitle\"> $title</font></a>";
$morelink .= " | <a href=\"modules.php?name=News&file=categories&op=newindex&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&catid=$catid")."\"><font class=\"storycat\">$cattitle</font></a>: $title";
$morelink .= " | <a href=\"".getlink("News&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 |
|
 |
tour93 Gold Supporter


Offline Joined: Apr 20, 2004 Posts: 526 Location: florida
|
Posted: 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&catid=$catid")."\"><font class=\"storycat\">$cattitle</font></a>: $story_link<font class=\"storytitle\"> $title</font></a>";
$morelink .= " | <a href=\"".getlink("News&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 |
|
 |
Jeruvy Security Team


Offline Joined: Apr 23, 2004 Posts: 1432 Location: Canada
|
Posted: 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 |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
Posted: 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  , 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 |
|
 |
Kuragari 500+ Posts Club


Offline Joined: Apr 25, 2005 Posts: 563 Location: AnimeEgo
|
Posted: 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
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 |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
Posted: 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 |
|
 |
Kuragari 500+ Posts Club


Offline Joined: Apr 25, 2005 Posts: 563 Location: AnimeEgo
|
Posted: 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 |
|
 |
medigangsta Nice poster


Offline Joined: Jul 16, 2004 Posts: 69
|
Posted: 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 |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: 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 |
|
 |
Andreas 500+ Posts Club


Offline Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Posted: 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 |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
Posted: 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 |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: 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 |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
Posted: 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 |
|
 |
Andreas 500+ Posts Club


Offline Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Posted: 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 |
|
 |
|
|