define("TRUE_PHP_SELF", $current_page);
if (preg_match("/\/(administration)\//", $current_page))
{
define("TRUE_PHP_SELF", $current_page);
}
else if (preg_match("/".preg_replace("/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $settings['opening_page'])."/", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $current_page)))
{
define("TRUE_PHP_SELF", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "/$1", $current_page));
}
else
{
define("TRUE_PHP_SELF", $current_page);
}
if (preg_match("/\/(administration)\//", $current_page))
{
define("TRUE_PHP_SELF", $current_page);
}
else if (preg_match("/".preg_replace("/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $settings['opening_page'])."/", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $current_page)))
{
define("TRUE_PHP_SELF", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "/$1.html", $current_page));
}
else
{
define("TRUE_PHP_SELF", $current_page);
}
define("[b]TURE[/b]_PHP_SELF", $current_page);
Quote
halisson wrote:
-
Seems like a great job. This feature already is natively in version 8? I'm sorry, but I'm still not fully up to date on the project v8. :)
-
Quote
Rush_ wrote:
that's good. but not...
for each link replaced it need to make a db query to get "news-description". do u think its normal, me not. brrrr
Quote
Sprunkas wrote:
i think it's mistake, here need to be TRUE i think.
Quote
jikaka wrote:
@Ankur, my anti-virus swears at this link
Quote
jikaka wrote:
great work!
define("TRUE_PHP_SELF", $current_page);
if (preg_match("/\/(administration)\//", $current_page))
{
define("TRUE_PHP_SELF", $current_page);
}
else if (preg_match("/".preg_replace("/(.*)(\.php|\.html)?/", "$1", $settings['opening_page'])."/", preg_replace("/(.*)(\.php|\.html)?/", "$1", $current_page)))
{
define("TRUE_PHP_SELF", preg_replace("/(.*)(\.php|\.html)/", "$1", $current_page));
}
else
{
define("TRUE_PHP_SELF", $current_page);
}
Quote
Sprunkas wrote:
I tested at my site this addon. I saw that when replacing maincore.php:
Then don't displays forum threads at the main page.
Quote
Yodix wrote:
A great solution. You would not have anything against it, to use it in modification for PHPFusion v8? :)
Quote
http://fusion8.co.cc/Article-Category-2-PHPFusion-v7-Tutorials
Quote
http://fusion8.co.cc/article-category-2-php-fusion-v7-tutorials
Quote
jikaka wrote:
instead of this:Quote
http://fusion8.co.cc/Article-Category-2-PHPFusion-v7-Tutorials
better way:Quote
http://fusion8.co.cc/article-category-2-php-fusion-v7-tutorials
best of all urls in lower case
Quote
Ankur wrote:Quote
Sprunkas wrote:
I tested at my site this addon. I saw that when replacing maincore.php:
Then don't displays forum threads at the main page.
Really ? You forgot to change Site Opening Page link in Main Settings, I guess.
However, What is your website link? It would be more useful B)Quote
Yodix wrote:
A great solution. You would not have anything against it, to use it in modification for PHPFusion v8? :)
Pardon me... but I didn't got your point... hmm?
Sorry for my bad english... :|
Quote
Sprunkas wrote:
P.S Forum threads only displays when you tick box in the panel to display at all pages.
P.S.S Not only last forum threads not displaying at main page.
Quote
spunk wrote:
And yes... the forum_thread_lists_panel is not working.
Quote
spunk wrote:
Hmmm Opening Page is: news.html
There is no forum_thread_list_panel :|
http://dev.spicker.info
if (preg_match("/\/(administration)\//", $current_page))
{
define("TRUE_PHP_SELF", $current_page);
}
else if (preg_match("/".preg_replace("/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $settings['opening_page'])."/", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $current_page)))
{
define("TRUE_PHP_SELF", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "/$1.html", $current_page));
}
else
{
define("TRUE_PHP_SELF", $current_page);
}
Category Forum
Addons Open TestingLabels
None yet
Statistics
9 participants
Notifications
You are not receiving notifications from this thread.
Related Questions