Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic This topic is locked: you cannot edit posts or make replies.
Author Message
nuckles
Nucleus Fan


Joined: 12 Apr 2005
Posts: 48

Post Posted: Tue Apr 17, 2007 5:17 pm   Post subject: Headers
Reply with quote

roel wrote:
Just something that popped into my head: I'm thinking that this is actually aimed at creating "static" pages. Correct?

If yes, my suggestion would be to:
1. change the url's from /index.php?scustom=pagename to /index.php?page=pagename
2. Remove the page add/remove functionality from the skin overview page and bring it to its own page. From there, it could be reached via a "Pages" link on the line of blog related links in the admin area:
Quote:
BlogName - Add Item - Edit/Delete Items - Comments - Pages - Bookmarklet - Settings - Bans - Delete All



Alright, there is something that I am not sure is addressed yet with this static page, and that is whether I can include one of these pages as a header or footer or sidebar, from the database, instead of from flat inc files.

Another thing I'd like to address is the page name, and whether we can get the 'page' part of /index.php?page=pagename
to be configurable.

Back to top

View user's profile Send private message
jolupa
Nucleus Addict


Joined: 01 Apr 2006
Posts: 60
Location: Barcelona

Post Posted: Wed Apr 18, 2007 12:03 am   Post subject:
Reply with quote

Where can I fint the 3.3 beta to download?.

I try to make the changes for my self but is not working.

_________________

Back to top

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
jako
Nucleus Newbie


Joined: 06 Mar 2007
Posts: 10

Post Posted: Wed Apr 18, 2007 11:24 am   Post subject:
Reply with quote

for some reason some plugins dont work at my custom skinpart like NP_Profile
Code:
<%Profile(realname,,,1)%>
e.g. does return nothing...
and
Code:
<%Profile(realname,,,%ME%)%>

neither
but
Code:
<%member(yourrealname)%>
does work perfectly!?!?!??

anyone got an idea whats wrong here?
thx.

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Wed Apr 18, 2007 3:34 pm   Post subject:
Reply with quote

Some plugins, like some skin variables, are made to only work on specific skin types. I haven't played with custom skin parts, so when I updated NP_Profile, I never considered them. The original authors didn't allow the profile variable on search or error skin parts, and I have carried that forward. Currently this code is used to enforce this restriction (line 773 of version 2.14, near top of doSkinVar() function):
Code:
if (in_array($skinType, array('member','archive','archivelist','item','index','template','comment'))) {

You could change it to this (I'll probably do this on a later version):
Code:
if (!in_array($skinType, array('error','search'))) {


In general, if the plugin skin var doesn't work on your skin part, look in the plugin file and find the doSkinVar() function. There are likely to be conditional statements in there that work on the $skinType.

Back to top

View user's profile Send private message Visit poster's website
nuckles
Nucleus Fan


Joined: 12 Apr 2005
Posts: 48

Post Posted: Thu Apr 19, 2007 10:22 pm   Post subject: Great
Reply with quote

I never realised that that was what made a plugin work on a particular page.
Tha nk s 4 that!!

Back to top

View user's profile Send private message
jako
Nucleus Newbie


Joined: 06 Mar 2007
Posts: 10

Post Posted: Fri Apr 20, 2007 2:03 pm   Post subject:
Reply with quote

thx!
i added my custom skinpart in that list. works perfectly

Back to top

View user's profile Send private message
jolupa
Nucleus Addict


Joined: 01 Apr 2006
Posts: 60
Location: Barcelona

Post Posted: Fri Apr 20, 2007 6:40 pm   Post subject:
Reply with quote

I have the following problem and I can't find the error.

Code:

RSS 2.0 syndication of weblogsmySQL error with query SELECT `stype` FROM `nucleus_skin` WHERE `stype` not in ('index', 'item', 'error', 'search', 'archive', 'archivelist', 'imagepopup', 'member'): Table 'qag833.nucleus_skin' doesn't exist


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/vhost/jolupatech.info/home/html/nucleus/libs/SKIN.php on line 233


This is the SKINS.php modified file:

Code:

      // HACK
   //
      $default = array(
            'index' => _SKIN_PART_MAIN,
            'item' => _SKIN_PART_ITEM,
            'archivelist' => _SKIN_PART_ALIST,
            'archive' => _SKIN_PART_ARCHIVE,
            'search' => _SKIN_PART_SEARCH,
            'error' => _SKIN_PART_ERROR,
            'member' => _SKIN_PART_MEMBER,
            'imagepopup' => _SKIN_PART_POPUP
      );   
      $query = "SELECT `stype`  FROM `nucleus_skin` WHERE `stype` not in ('index', 'item', 'error', 'search', 'archive', 'archivelist', 'imagepopup', 'member')";   
      $cskinres = sql_query($query);
      while ($row = mysql_fetch_array($cskinres)) {
         $default[$row['stype']] = ucfirst($row['stype']);
         }
      // END
   return ($default);   
   }


Can anyone point me to the right direction?.

Thanks

_________________

Back to top

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Fri Apr 20, 2007 7:26 pm   Post subject:
Reply with quote

It can't find the table. Are you using a table prefix? you should probably change the query to look like this:
Code:
$query = "SELECT `stype`  FROM `".sql_table('nucleus_skin')."` WHERE `stype` not in ('index', 'item', 'error', 'search', 'archive', 'archivelist', 'imagepopup', 'member')";

Back to top

View user's profile Send private message Visit poster's website
jolupa
Nucleus Addict


Joined: 01 Apr 2006
Posts: 60
Location: Barcelona

Post Posted: Fri Apr 20, 2007 10:40 pm   Post subject:
Reply with quote

The problem is the same, but the sql error is different.

Code:
Skin para la webmySQL error with query SELECT `stype` FROM `nucleus_nucleus_nucleus_skin` WHERE `stype` not in ('index', 'item', 'error', 'search', 'archive', 'archivelist', 'imagepopup', 'member'): Table 'qag833.nucleus_nucleus_nucleus_skin' doesn't exist


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/vhost/jolupatech.info/home/html/nucleus/libs/SKIN.php on line 233


Any idea. Sad

_________________

Back to top

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Sat Apr 21, 2007 3:34 am   Post subject:
Reply with quote

Yeah, I had a typo (or was just sloppy), use this instead:
Code:
$query = "SELECT `stype`  FROM `".sql_table('skin')."` WHERE `stype` not in ('index', 'item', 'error', 'search', 'archive', 'archivelist', 'imagepopup', 'member')";

Back to top

View user's profile Send private message Visit poster's website
Post new topic This topic is locked: you cannot edit posts or make replies.
Display posts from previous:   

Goto page Previous  1, 2, 3, 4  Next

Page 3 of 4

All times are GMT + 1 Hour

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

Powered by phpBB © 2001, 2002 phpBB Group