Our Sponsors



PHP Nuke themes, stock photos, icons, drupal themes and more.
Custom jobs at low cost, free lancers and service buyers.



Western Studios :: View topic - right blocks always shown
Need Jobs done? Use our brand new Jobs Board to get your projects done at affordable prices.
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


right blocks always shown



 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> 4 Images
Western Studios

WS Newbie
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

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3358
Staff
Next Group: 1642 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

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 8
Next Group: 42 posts
exciting wrote:

thx, it works Smile

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

Western Studios

WS Newbie
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 Embarassed

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

Western Studios

WS Newbie
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

Post new topic   Reply to topic    Western Studios Forum Index -> 4 Images All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Sticky: Advertise on Western Studios 2 admin 1131 Thu Sep 11, 2008 8:08 pm
admin View latest post
No new posts Free offer for all gamers @ Western Studios 0 Anna 401 Sun Apr 08, 2007 1:31 am
Anna View latest post
No new posts Advertise on Western Studios.net 0 admin 547 Fri Sep 29, 2006 1:15 pm
admin View latest post
No new posts Western Studios revealed! 0 admin 650 Thu Mar 17, 2005 12:33 pm
admin View latest post
This topic is locked: you cannot edit posts or make replies. Western Studios Integration 0 admin 704 Mon Sep 27, 2004 4:31 pm
admin View latest post
 
Forums ©