 WS Newbie ~PHP Nuke User~Posts: 8
Next Group: 42 posts
exciting wrote:hello i ported 4images gallery with your mod
now i have ravennuke 7.6 and i can not make right blocks off.
maybe you know why?
Code: |
if (!defined('ROOT_PATH')) {
die("Security violation");
}
// Cache Templates
/*$template_list = 'header,footer,category_dropdown_form,user_logininfo,user_loginform';
if (isset($templates_used) && $templates_used != "") {
$template_list = $template_list.",".$templates_used;
}
$site_template->cache_templates($template_list);*/
//WESTERN STUDIOS MOD
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
define('INDEX_FILE', false);
include("header.php");
OpenTable();
//END |
or must i use this code:
Code: |
if (!defined('ROOT_PATH')) {
die("Security violation");
}
// Cache Templates
/*$template_list = 'header,footer,category_dropdown_form,user_logininfo,user_loginform';
if (isset($templates_used) && $templates_used != "") {
$template_list = $template_list.",".$templates_used;
}
$site_template->cache_templates($template_list);*/
//WESTERN STUDIOS MOD
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly..."); }
if (!isset($mainfile)) {
include("mainfile.php"); }
$index = 0;
include("header.php");
OpenTable();
//END |
but then is nothing shown
thx for help!
Posted: Mon Nov 27, 2006 9:43 am
 Site Admin ~PHP Nuke User~ Posts: 3353
StaffNext Group: 1647 posts
admin(Mark) wrote:hi, use the first code you posted but remove this part:
Code: |
| define('INDEX_FILE', false); |
Posted: Mon Nov 27, 2006 11:26 am
 WS Newbie ~PHP Nuke User~Posts: 8
Next Group: 42 posts
exciting wrote:thx, it works
other problem i have,
that all links are modules.php?name=Gallery&file......
but only when i click to view an image maybe with
......modules.php?name=Gallery&file=details&image_id=728
then the home-link is:
modules/Gallery/index.php
on all other things the home-link is right.
the code in details.php:
Code: |
$main_template = 'details';
define('GET_CACHES', 1);
define('ROOT_PATH', 'modules/Gallery/');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');
if (!$image_id) {
redirect($url);
}
$additional_sql = "";
if (!empty($additional_image_fields)) {
foreach ($additional_image_fields as $key => $val) {
$additional_sql .= ", i.".$key;
}
}
|
and can i make the template, that only the css works alone for 4image, otherwise my navigation from nuke has another color.
look at: look here
Posted: Mon Nov 27, 2006 2:51 pm
 WS Newbie ~PHP Nuke User~Posts: 8
Next Group: 42 posts
exciting wrote:i got the error
it was in details.php always root_path and not nuke_path.
can i change links for admin-links too?
to change commentars or delete them.
now the link is:
http://www.site.de/modules/Gallery/admin/index.php?goto=comments.php%3Faction%3Deditcomment%26amp%3Bcomment_id%3D13
can i change on a way to modules?name=Gallery......
when i do with nuke_path then the link is modules?name?Gallery&file=admin/index.php
and then sorry, the module isnt active.
sorry for my much questons
normal that all files that have to do with nuke_path and root_path
includes/functions.php
includes/page_header.php
includes/sessions.php
categories.php
details.php
global.php
index.php
login.php
lightbox.php
logout.php
member.php
postcards.php
register.php
rss.php
search.php
top.php
Posted: Mon Nov 27, 2006 6:45 pm
 WS Newbie ~PHP Nuke User~Posts: 5
Next Group: 45 posts
punkt6 wrote:
admin wrote: |
hi, use the first code you posted but remove this part:
Code: |
| define('INDEX_FILE', false); |
|
Thanks for the Tip! It works also under Nuke Evolution German!!
greets
Punkt6
Posted: Tue Dec 12, 2006 12:21 pm
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
 |