Discussion in "E107 FURL Support" started by    bndr    May 19, 2008.
Mon May 19 2008, 03:09 pm
#1
i can't get news..php?extend.number. to look like news-news-title.html

Anyone can help?

I know that you need to edit core files,so please tell me which ones i should edit?

Help me.

I would appreciate if you could post complete instructions on what and where to edit.



[ Edited Mon May 19 2008, 06:33 pm ]
Tue May 20 2008, 08:42 am
#2
I think you need to search on e107 forum. Because i myself has least idea on how to do it. I think you need to work on news shortcode file. still confirm on e107 forum coz some people has implemented it already.
Tue May 20 2008, 10:10 am
#3
then can you tell me how to do this:
from news..php?extend to news-1.html?
Tue May 20 2008, 11:34 am
#4
edit news_shortcode.php file
Tue May 20 2008, 11:42 am
#5
Maybe you can give me some tips,cause i've been editing this file for 2 days now and still couldn't make it work.
Fri May 23 2008, 02:09 pm
#6
ajay, why do not you teach this to us, is a long time that I am trying to achieve but never make it work :mad . I researched the forum but not quite achieve nothing concrete on the short code.

I'm giving up a look at the project e107high

http://www.e107high.org/
Sat May 24 2008, 08:03 am
#7
sarava i have seen e107high. Its good but too much of core hacking has been done which for a newbie i wont recommend.

sorry for late reply. I was busy in office work.
go to
WEBROOT/e107_files/shortcode/batch/
open file news_shorcode.php

edit this part something like this..
SC_BEGIN EXTENDED
$news_item = getcachedvars('current_news_item');
$param = getcachedvars('current_news_param');
if ($news_item['news_extended'] && (strpos(e_QUERY, 'extend') === FALSE || $parm == "force")) {
	if (defined("PRE_EXTENDEDSTRING")) {
		$es1 = PRE_EXTENDEDSTRING;
	}
	if (defined("POST_EXTENDEDSTRING")) {
		$es2 = POST_EXTENDEDSTRING;
	}
	if (isset($_POST['preview'])) {
		return $es1.EXTENDEDSTRING.$es2."<br />
".$news_item['news_extended'];
	} else {
		return $es1."<a class='".$GLOBALS['NEWS_CSSMODE']."_extendstring' href='".e_BASE."news".$news_item['news_id'].".html'>
".EXTENDEDSTRING."</a>
".$es2;
	}
} else {
	return "";
}
SC_END


the reason i cant be more expressive is i did this a long long time back and i really do not remember what part i edited.
there are many files. thats why i do not recommend doing this. coz later it causes problems.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Clydehet
Wed May 01 2024, 06:44 pm
Davidoried
Wed May 01 2024, 06:11 pm
KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am