How to expand skin?

Share your CuteNews.RU skins and code snippets.

How to expand skin?

Postby stvaen » Tue Jun 10, 2008 1:37 pm

Hello!

I have a question, current skin is way outdated and doesn't fit best to curent screens, so i decided to improve it :) but i still have some questions:

that s how my skin now looks like:
http://i26.tinypic.com/2r4khvp.gif

but i want to move right panel to right side (i resized table from 700 to 910xp in default.skin.php)
like that:
http://i32.tinypic.com/2eygqq1.gif

final result should look like this (Atention: this is photoshoped image, i didnt find the solution!)

http://i26.tinypic.com/29zalty.gif

plz help *smallcatwithbigeyes*
stvaen
 
Posts: 4
Joined: Sun Feb 03, 2008 11:02 am

Postby FI-DD » Tue Jun 10, 2008 6:40 pm

I think you have to edit some values in skins/default.css.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby ivanh » Wed Jun 11, 2008 6:00 am

hehe
put them into sperate divs (the textareas and the options)
i did that and mine looks like this

http://img210.imageshack.us/img210/8811/skinak5.jpg
ivanh
 
Posts: 75
Joined: Thu Aug 16, 2007 2:41 pm

Postby al3loo » Mon Sep 08, 2008 1:10 pm

very easy, just like what FI-DD said, go to skins/default.css and find like these lines and IDs:
Code: Select all
#title, #short, #full, #actions {
   width: 410px;
   border-right: solid 1px #f7f7f7;
   float: left;
   clear: both;
}

#short textarea, #full textarea {
   width: 400px;
   height: 150px;
}


change the width to your suitable width .. for example change the first width to 610px and the second to 600px or any appropriate width :)
Al3loOo IS H3R3

Image
al3loo
 
Posts: 65
Joined: Sat Aug 04, 2007 2:19 am

Postby scottdallas » Sun Sep 14, 2008 5:28 am

ooh looks nice :)
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby svennis » Sat Nov 07, 2009 12:29 am

hiya,
how about this one?
how can I separate the other plugins that shows under categories? move them to the right side of the categories.
Attachments
add_news.gif
(28.17 KiB) Downloaded 16 times
svennis
 
Posts: 94
Joined: Mon Oct 09, 2006 2:54 pm

Postby DarkSlim » Tue Nov 10, 2009 5:02 pm

I havn't tried it myself, but look in the css files of CNR
for something that controlls them, and try to add in their style:

Code: Select all
   float:right;
User avatar
DarkSlim
 
Posts: 296
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby Chaser » Tue Nov 10, 2009 10:41 pm

All values in the right column are called through the function "run_actions('new-advanced-options');". If you want to display some plugins separately you must define a new variable in the specific plugins and add it to addnews.mdu/editnews.mdu.
User avatar
Chaser
 
Posts: 72
Joined: Tue Feb 17, 2009 7:26 pm

Postby D72 » Wed Nov 11, 2009 9:53 am

Chaser wrote:All values in the right column are called through the function "run_actions('new-advanced-options');". If you want to display some plugins separately you must define a new variable in the specific plugins and add it to addnews.mdu/editnews.mdu.


Hi Chaser, i am very pleased to see that you're putting some time and energy in the CNR support. Thanks man!
What you mentioned above sounds really interesting to me.
I am re-styling CNR completely at the moment and was wondering how i could move the URL field, move the Category options and so on...
Can you show me an example how i should do that without screwing up the system it self?
In the left column (screenshot) i want to add more collapsible/expandable boxes with different type of plugins/xfields etc
Or i want to move some plugins into tabbed navigation, just like i did with Short and Full story.

Image
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby DarkSlim » Wed Nov 11, 2009 11:17 am

Wow very nice D72!
Looks awesome! :o

I think we really need to make a new nextgen look skin
for CNR, it looks too good hehe :)
User avatar
DarkSlim
 
Posts: 296
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby D72 » Wed Nov 11, 2009 12:26 pm

DarkSlim wrote:Wow very nice D72!
Looks awesome! :o

I think we really need to make a new nextgen look skin
for CNR, it looks too good hehe :)


Thank you Darkslim.
When i got it finished i will see what i can do to share it with the community.
With this theme, not everything is driven bij the core files.
Some translations are done directly in the .mdu or .tpl files.
Also, and for me the biggest issue, is that the menu/navigation on - on the left -
is not working as the default menu of CNR.
For instance, if you add a new user with editor/journalist rights, the menu in the original CNR
contains less menu items.
The menu i've done, doesn't behave like that unfortunately.
At the moment this theme is running on lot of Jquery plugins. I should only keep the best ones and get rid of the "over the top" effects.

But when i'm "ready" with the theme i shall make a topic on the forum.
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby DarkSlim » Wed Nov 11, 2009 5:27 pm

Cool, thanks, the translations won't be a problem either :)

About the side menu, you need to learn how the current menu
works, how and where the attributes are set, then you can
imitate it and creat a new menu :D

Files that I know that are related to the menu:
index.php
default.skin.php
options.mdu
and global.ini in the lang folders

You should check them and try to add a similar menu in the skin
then to alter it for your will, I really don't have much experience
with changing the menu etc' but I can try and help as much as
I can :)

I'm currently working on my new website, and I'm creating some
really cool stuff like links in the post's author or comment author
that when clicked open a pop-up with a stylish profile containing
all the info used by show_users.php (mail, website,icq,place,about etc')
and the latests 5 news posts headlines - only if it's a writer/editor/admin
profile, plus! all of the links (website and latest posts) open in the parent
window, and at the bottom, a Close Window button, it's really beautifull. :D
And many more hacks and fixes of mine, that I will continue to share them
here but some are more advanced and require more time, plus I think
I'll try redoing some as plugins or so. ;)

I look forward to see how your skin and design are advancing!
If you need any help I'll do my best,

Cheers :)
User avatar
DarkSlim
 
Posts: 296
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby Chaser » Wed Nov 11, 2009 7:21 pm

D72,

i will give you a short example for the URL field.

You find the "function rufus_AddEdit" in plugins.inc.php around line 385. Above this function you can see 2 lines:
Code: Select all
add_action('new-advanced-options', 'rufus_AddEdit', 1);
add_action('edit-advanced-options', 'rufus_AddEdit', 1);

Rename these to "new-url-options" and "edit-url-options". "new-" is linked to addnews.mdu, "edit-" is linked to editnews.mdu.

Then open addnews.mdu and add the following where you want to display the url field.
Code: Select all
<?php echo run_actions('new-url-options', 'rufus_AddEdit');?>


Put in the same way in editnews.mdu:
Code: Select all
<?php echo run_actions('edit-url-options', 'rufus_AddEdit');?>


Thats it. I hope i have described it simple enough.


PS: The categories function can be found in plugins.inc.php line 314.
User avatar
Chaser
 
Posts: 72
Joined: Tue Feb 17, 2009 7:26 pm

Postby D72 » Wed Nov 11, 2009 7:43 pm

Chaser...
I'm really, really glad you're on the forum... as FI-DD didn't have the time anymore, Ramon has other busy things... and a couple more die-hard CNR users that aren't here anymore.
Really, without people like you and Darkslim CNR will bleed to death slowly. Thanks guys..

@Chaser
That's one hell of a great and easy example. I'm so NOT into php, but this one is easy to understand.
Will try it one of these days. Thanks.

@Darkslim
I will try to finish this theme within a week and hopefully i can give you a good copy with this skin.
Right now i am trying not only to add this theme, but also to put some hacks which you can find on the forum.
Like random news articles, making future dates in the core files so you only have to add $schedule = true ...etc etc
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby Goberg » Mon May 31, 2010 6:41 am

Hi D72,

What you have done with the skin looks very interesting. Do you think you will ever share what you have created with the rest of this forum? I am very interested in testing it and maybe help you improve it as well if you need any help?
Goberg
 
Posts: 79
Joined: Thu Jan 18, 2007 2:31 pm

Next

Return to Skins and snippets



Who is online

Users browsing this forum: No registered users and 0 guests