Quote
JoiNNN wrote:
Believe me, your are only limited by your imagination in PHPFusion if you have some PHP knowledge. Everything you just mentioned above can be done already, no mods to the core, just a theme.
For example here is a snippet which you can use to show a slider, a different footer w/e you like only on selected pages.
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$url = htmlspecialchars($_SERVER['REQUEST_URI']);
$page = FUSION_SELF;
//Pages to show the content on
$allowed_pages = array("news.php", "downloads.php", "articles.php");
//Check
if (!strpos($url, '/administration/') && in_array($page, $allowed_pages)) {
echo $page;
}[/syntaxhighlighter]
to show/change something only while in forums you can use
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (strpos($url, '/forum/')) {
echo $page;
}[/syntaxhighlighter]
Category Forum
Themes SupportLabels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions