Hello Guest
No Avatar
Sign In to Remove

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sCeege

Pages: [1]
Posts: 
7
Posted: April 1, 2012, 12:26 PM
Thanks sCeege for answering. I was actually away at a competition so I am glad you were able to respond.

To be more specific you could add the color css to .cadence_header_news_scroller_text in index.css

woah, how come Chrome didn't identify the different div class?
Posts: 
7
Posted: March 31, 2012, 6:58 PM
You need to make it a separate ID/class. It uses the same styling as all the other texts in body.

Or if you want a quick and dirty fix, just add a style to the <div> tag in the template.

Notice on the right, it's referencing Line 90 of Index_Original.css, where body {} is, and the highlighted text at bottm, where I added the style to the div tag.



Btw if you're making edits to the original CSS file, you should record your changes, so you can roll back. Unless you have some kind of revision control. It keeps your edits organized.
Posts: 
7
Posted: March 20, 2012, 3:40 AM
A slight rant on SMF: coming over from phpBB, I can't tell you how simple SMF is to use and customize. One of my favorite things about it is the ability to link features and settings in a webpage/post, and having fuctional dynamic information fed back to the person clicking the link. Anyways, for your particular problem, all you need to find the section of the template/index you want to make an edit to, and use the ?action=Unread feature.

So for example, if your SMF forum is http://website.com/forum/index.php , http://website.com/forum/index.php?action=Unread would display a page with a list of unread topics, so just make a link to it.

I'm also using the Vertex theme on my forum, with a few personal modifications, including adding a link to Unread posts.

Before I begin, just want to give props to MLM for making an awesome theme, as well as thank him/her for a well documented template. I have literally no training in PHP, much less SMF, so I couldn't of made nearly as many edits as I wanted to without the comments included in his/her theme file.

Now that's out of the way:
If you navigate to the root folder of the Vertex theme, open index.template.php
Scroll down to about line 225, or find this phrase in the file :
Code: [Select]
// If the user is logged in, display stuff like their name, new messages, etcand look below that line.

I don't know what the originals are anymore, it was originally all on one line if I recall correctly, and I put mine on different lines so I can see what's going on, and here's what it looks like in mine:
Code: [Select]
// If the user is logged in, display stuff like their name, new messages, etc. David-Addition: View New Posts
if ($context['user']['is_logged'])
{
echo '
', $txt['vp_help'] ,'
', $context['user']['name'], '
', $txt['bar_symbol'] ,' <a href="', $scripturl ,'?action=pm">', $txt['view_inbox'] ,'</a> ', $txt['bar_symbol'] ,' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], '
', $context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase'], '</a>', $txt['newmessages4'], '
', $context['user']['unread_messages'], '
', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] ,'.
', $txt['bar_symbol'] ,' <a href="', $scripturl ,'?action=unread">', $txt['view_unread_category'] ,' since your last visit</a>.
';
}
the next word in the line should be "else{echo...", so if you've pasted past that, you've gone too far.

By the way, the edit is actually really small, this should be the only additional code that wasn't included in the original file:
Code: [Select]
$txt['bar_symbol'] ,' <a href="', $scripturl ,'?action=unread">', $txt['view_unread_category'] ,' since your last visit</a>.
'

Hoped that helped, and hope you can sort of derive how to make your own edits for other stuff based on this.

Posts: 
7
Posted: February 25, 2012, 3:39 AM
If so, how? I put one in it but it's not showing up. The one in pub_html is overwriting it.
Posts: 
7
Posted: February 25, 2012, 3:29 AM
Can never beat free  ::)

I have been using plain n++ for a while. What themes do you suggest for it?

well you can customize it to what suits you best, but for me, I'm currently just using the Obsidian theme that came pre-installed, it's got a soft mix to it, I find bright text on a pure black background to be pretty annoying too. It's just easier on the eyes when you've been staring at codes for a few hours.
Posts: 
7
Posted: February 23, 2012, 1:50 PM
Checked out Sublime 2, it's pretty nice and slick, but considering the $60 price tag, I will have to stick with my notepad++ for now =).

I did really like the interface for Sublime though, but it's easily mimicked with Notepad++ themes and removing the extra icons.
Posts: 
7
Posted: February 3, 2012, 10:51 AM
Woah, hope I'm not breaking some unknown rules here by making a thread, but I didn't see another thread in here  :-\

Anyhow, I just wanted to drop in and say hello. I came across this website/forum through your Cadence them on the SMF themes database, and it seems like a cool place to hang out and maybe learn some stuff.

I'm somewhat of a computer power-user. I know enough to get a website up and running, fix a bit of php script here and there, but no where near enough to be comfortable of calling myself a "developer" of any kind. I can do more in Photoshop than just applying a Lens Flare and calling it "graphics", make a basic template for a webpage, but not enough to call myself a designer.

Anyways, I hope to learn some stuff here to help with running my website, and hopefully contribute sometime down the future.

Cheers.
Pages: [1]