Discussion Board
Welcome Guest! You can login or register. Login or Register.
2 Pages12>

Options
Go to last post Go to first unread
Pack93z  
#1 Posted : Thursday, May 19, 2011 10:25:26 AM(UTC)
Sometime when you have time.. post your vision on the skin design for this site.. maybe if I have some free time I will play with it and see what I can come up with.. something to make it less... pale white. Blink
Methodikal  
#2 Posted : Thursday, May 19, 2011 10:27:49 AM(UTC)
Haha, shit, I forgot about that. I got so wrapped up in pushing things over, lol.

I'll hand draw some stuff and through it up on photoshop. I do like the stuff that's offered. Oh and it's EASY to make a test website too. I'm excited about that.
Methodikal  
#3 Posted : Friday, May 20, 2011 5:21:00 PM(UTC)
I'd like to make it clear, the template/theme/skin you currently see for the entire site and forum's is NOT final. It will take quite a long time to get the theme layout I desire, and then skin it to my liking. Yes, that's dictator talk. :)
Pack93z  
#4 Posted : Wednesday, May 25, 2011 5:40:33 PM(UTC)
Creating a custom Theme/Skin for YAF... (Some layout info there as well.. basic though.)

Quote:
Skinning YetAnotherForum is kind of self evident. Just copy an existing theme folder and XML file from the themes folder. All there is to it is a theme.css file in the folder (and a bunch of images) and the settings in the XML file. Done.


Can you dump out the theme.css and let me take a peak at it.. see what is all involved in it.
Zero2Cool  
#5 Posted : Wednesday, May 25, 2011 6:20:42 PM(UTC)
Quote:
Actually, you can only create "theme", not "skin". If you want to create theme, , you need to create subforlder in '/themes' directory (e.g. '/themes/mytheme'Wink, then create xml file for your theme directly in themes directory (e.g. 'mytheme.xml'Wink. In xml file, you'll define name and directory in one of first nodes (you must point yaf to directory you just created for theme files).

Best way how to do this is copy some existing theme and change it's files. Basically, you need to change that xml file in themes root. It's structure quite self-explanatory, but don't hesitate to ask if there is something unclear


http://forum.yetanotherf...ow-do-I-make-a-skin.aspx



Edit, change ZIP to CSS
File Attachment(s):
theme.zip (19kb) downloaded 4 time(s).

You cannot view/download attachments. Try to login or register.
Zero2Cool  
#6 Posted : Wednesday, May 25, 2011 6:26:37 PM(UTC)
Pack93z  
#7 Posted : Wednesday, May 25, 2011 6:42:42 PM(UTC)
Got an file is corrupt error on the zip file..


On another note.. attachment button has been disabled again. :-k Attachments are back.. lol.
Pack93z attached the following image(s):
Error.jpg (18kb) downloaded 38 time(s).

You cannot view/download attachments. Try to login or register.
Zero2Cool  
#8 Posted : Wednesday, May 25, 2011 6:56:44 PM(UTC)
Pack93z said: Go to Quoted Post
Got an file is corrupt error on the zip file..


On another note.. attachment button has been disabled again. :-k Attachments are back.. lol.



did you change the file extension after you downloaded it?
Zero2Cool  
#9 Posted : Thursday, May 26, 2011 6:32:51 PM(UTC)
http://www.spencerdrager...nd-layout-customization/

Quote:
YetAnotherForum (YAF — pronounce “laugh”) is a forum package based on ASP.NET (C#) and Microsoft SQL Server. It has tons of features and functionality, and it use my , but when tasked with customizing it… well, that can be not quite so easy.
Creating a custom Theme/Skin for YAF

Skinning YetAnotherForum is kind of self evident. Just copy an existing theme folder and XML file from the themes folder. All there is to it is a theme.css file in the folder (and a bunch of images) and the settings in the XML file. Done.
Modifying the Layout of YAF

For as easy as changing the theme of YAF is, changing the actual layout is a time-consuming and involved process. And there are a few things which are not as evident from quick google searches or examining the code. So take a lesson from me and save yourself hours of time.


1. You cannot easily remove elements by commenting out the C#

Almost any main <YAF:Element> you try to comment out will trigger errors when you try to compile due to dependent blocks elsewhere. And the source of the errors may not always be apparent. You may be able to fix those errors, but chances are it will not be worth your effort. This is a pain because depending on what you want to do you may want to eliminate some elements from showing. This may be typical for ASP.NET, but coming from PHP it prevented a learning curve. Many things you may want to remove can be removed by changing BoardSettings. (See next tip)


2. YafContext.Current.BoardSettings are stored in the database

Once you start investigating the depths of the page and class files of YAF, you will eventually start noticing how many part of the board are in hide/show if blocks based on a value of YafContext.Current.BoardSettings.[something]. Other parts of the forum look to these settings for things.

I can’t tell you how many searches I made trying to find what file BoardSettings are stored in. I still don’t know if there is a file with defaults. I didn’t find it despite much searching.

These settings can be changed in the database under the Registry table. Easy peasy? I got thrown off because many of the settings are not in the table. If they are not in the table, you will have to insert a row. The “value” field is a string, so numbers and boolean values are stored just as their string equivalent. i.e. a true value can be stored as the string “true”.

3. The logical structure of the code is as follows

This may seem elementary, but I’m new to ASP.NET and working with modifying larger(ish) packages. It would have been helpful to me to have a diagram or even just a quick explanation of the layout of what calls what. YAF file structure diagram

pic
As you can see, any single page may reference a dozen or two files. This can be a serious pain, as those .cs files in the YAF.Controls.dll are in my experience, very tedious to edit. I didn’t realize I neede the SRC version until I realized I could not access TopicLine.cs, which is necessary to change how the single line each topic is displayed as when you look at a single forum.

And to be clear: There are many more pages, controls, and elements within Controls.dll that aren’t shown here. Also, there may be some exceptions to the hierarchy shown here.


4. CSS Class names do not always describe what they refer to

With class names like .header1, .header1Title, and .rightItem, it is not always easy to tell what element these CSS classes are referring to. This can be particularly challenging when you want to edit what they are referred to and you can’t locate which source file the element it is referring to spawns in. This is more of a heads up than an actual tip.
Enjoy, and Contribute

That’s all the tips I have for you today about YetAnotherForum. In my one-day’s experience with them, I found it to be a little frustrating, however now that I am more familiar with it I feel more confident in the likelihood I would be able to switch things up more rapidly. I hope these tips help other newbies trying to do what I was doing.

If you have any tips/tricks of your own you’d like to contribute, please feel free to share and comment.
Pack93z  
#10 Posted : Thursday, May 26, 2011 6:36:29 PM(UTC)
Hmm.. that posts looks so familiar. \:d/
Zero2Cool  
#11 Posted : Thursday, May 26, 2011 6:39:51 PM(UTC)
Pack93z said: Go to Quoted Post
Hmm.. that posts looks so familiar. \:d/

Read this and thought, what the hell is he talking about?


The links are not easily noticeable, as was said already.
Pack93z  
#12 Posted : Thursday, May 26, 2011 6:45:06 PM(UTC)
Mind dumping out the icons and the whole theme folder.. so I can preview it.. or attempt to.. did some tinkering last night.. but it errors out without the icons and I am too damn lazy to step through the code and create them all or a version of it right now.. lol.
Nonstopdrivel  
#13 Posted : Thursday, May 26, 2011 11:23:28 PM(UTC)
Forum programmers do have an appalling tendency to make their class and variable names opaque or worse, ambiguous. It gets really frustrating trying to navigate among things named as unhelpfully as x1, x1a, and x2. The worst part is that some of the classes might only be used once on the entire forum, or in an obscure area available only to moderators (or never, depending on the settings of the forum), so hours spent scouring the site after commenting something out may yield no results. Or the results might not be apparent for days or weeks, only emerging after a setting was changed, by which time it is almost impossible to remember what was commented out/edited earlier. To top it all off, the files tend to be wretchedly documented, if they are documented at all, peppered with vague comments that do little to elucidate the code.

I don't know what would be so hard about naming classes and variables explicitly enough that anyone reading the files could figure out what they do without consulting a manual. Yes, it might mean a little more typing, since the variable names would be longer, but as my father likes to point out, most of programming is just cutting and pasting anyway.
Zero2Cool  
#14 Posted : Friday, June 10, 2011 9:34:08 PM(UTC)
Put a few hours into the Site skin tonight. Did the testing on PackersBeta.com (while its still available) and created the Skin package and installed it Live. So far, no errors.

Registration has a blue color that I can't figure out how the hell to change.




I'll work on the Forums skin tomorrow.
Greg C.  
#15 Posted : Saturday, June 11, 2011 2:56:52 AM(UTC)
It got greener, so I'm happy. Thanks Zero!
vikesrule  
#16 Posted : Saturday, June 11, 2011 4:25:18 AM(UTC)
Greg C. said: Go to Quoted Post
It got greener....


UserPostedImage


Wade  
#17 Posted : Saturday, June 11, 2011 6:26:31 AM(UTC)
While I like the green color (seems real close to the real Packer Green), the light green letters are very hard to read.

And while the mouse-over red is kind of cool, but the un-mouseovered black is next to impossible for the eyes of a geezer like me to find.
Zero2Cool  
#18 Posted : Saturday, June 11, 2011 8:04:16 AM(UTC)
Wade said: Go to Quoted Post
While I like the green color (seems real close to the real Packer Green), the light green letters are very hard to read.

And while the mouse-over red is kind of cool, but the un-mouseovered black is next to impossible for the eyes of a geezer like me to find.


There are two skins, one for the site and one for the forums. I didn't touch the forums, yet.
Greg C.  
#19 Posted : Saturday, June 11, 2011 11:33:43 AM(UTC)
Wade said: Go to Quoted Post
While I like the green color (seems real close to the real Packer Green), the light green letters are very hard to read.

And while the mouse-over red is kind of cool, but the un-mouseovered black is next to impossible for the eyes of a geezer like me to find.


Yes, the black on dark green is hard to see. Maybe it is only happening with certain Internet browsers. I use Safari.
gbguy20  
#20 Posted : Saturday, June 11, 2011 4:25:32 PM(UTC)
Aww what happened??????

I loved the green!
Rss Feed
Users browsing this topic
Guest
2 Pages12>
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error

Fan Shout
Nonstopdrivel (9m) : should have done*
Zero2Cool (16h) : Hi 😊😉
TheKanataThrilla (22h) : I guess I should have did a refresh when I walked away from the computer.
TheKanataThrilla (22h) : Peters is 25 with one year left on his contract at just over $3M
Zero2Cool (23h) : Mel Kiper sticks with Marcus Davenport to GB in 2nd mock
Zero2Cool (21-Feb) : As for Marcus Peters, how old is he an what's his contract years left?
Zero2Cool (21-Feb) : Packers got tired of Sitton's antics.
Zero2Cool (21-Feb) : Sitton was released not because of play or salary, but personality. He will not be re-signed.
TheKanataThrilla (21-Feb) : If we are planning on possibly cutting Cobb I can see the 2nd round pick. A second round pick for Peters is a pretty good deal.
Smokey (21-Feb) : I'd offer Cobb + a 3rd round pick + a 6th round pick in 2019 for the CB Peters from KC.
TheKanataThrilla (21-Feb) : I guess that is a highter round pick
TheKanataThrilla (21-Feb) : Suggestion was a 2nd round pick. I would want a lower round pick. I think that is too much. A 3rd or 4th seems about right.
Smokey (21-Feb) : Cobb and WHAT PICK ?
TheKanataThrilla (21-Feb) : A suggestion I saw was a trade of Cobb and a Pick for Peters. I think that would be a great move.
Smokey (21-Feb) : Sitton was drafted be GB in 2008, not a young man at this point, but still is a "bear" of a man.
Cheesey (21-Feb) : Sitton? Maybe if the price is right.
Cheesey (21-Feb) : I doubt the Packers would try to resign Sutton. But who knows? If the price is right?
Zero2Cool (20-Feb) : Bears declining option on Josh Sitton. He'll be Free Agent.
Zero2Cool (20-Feb) : Chiefs CB Marcus Peters trade rumors -- come to Packers!
Smokey (20-Feb) : Join us in Packershome and be part of the discussion today .
Zero2Cool (19-Feb) : Elizabeeth ... good bye
Zero2Cool (19-Feb) : Saturday, August 19, 2017
Zero2Cool (19-Feb) : That's dedicated spammng!
Nonstopdrivel (19-Feb) : For some reason, I had to flush my DNS cache to access this site from my laptop today.
Nonstopdrivel (19-Feb) : I prefer toads to frogs, Smokey, thank you very much.
Rockmolder (19-Feb) : My girlfriends says thanks, Rourke.
Smokey (19-Feb) : Nonstopdrivel that you most likely say to all the frogs you meet .
Nonstopdrivel (19-Feb) : Rockmolder's avatar is so fucking sexy.
gbguy20 (19-Feb) : never seen the interview before. tough to listen to. can't believe it was 7 years ago
gbguy20 (19-Feb) : just watched a nick Collins tribute on yourube. the end featured an interview with nick reflecting on his injury
buckeyepackfan (17-Feb) : Saints De'Vante Harris nothing but a POS!!!!! Look up his tweetes on Florida killings!!
Nonstopdrivel (17-Feb) : They're laying new gas line near my house. The trucks are all from a company in Madison.
Smokey (14-Feb) : 2018 Hall o Fame Game/Aug.2,2018/Ravens vs Bears
Zero2Cool (13-Feb) : Based off 2017 records, Packers have toughest schedule for 2018
Smokey (13-Feb) : Wow, tough new 2018 Packer Schedule !
Please sign in to use Fan Shout
2017 Packers Schedule
Sunday, Sep 10 @ 3:25 PM
SEAHAWKS
Sunday, Sep 17 @ 7:30 PM
at Falcons
Sunday, Sep 24 @ 3:25 PM
BENGALS
Thursday, Sep 28 @ 7:25 PM
BEARS
Sunday, Oct 8 @ 3:25 PM
at Cowboys
Sunday, Oct 15 @ 12:00 PM
at Vikings
Sunday, Oct 22 @ 12:00 PM
SAINTS
Sunday, Oct 29 @ 12:00 AM
- BYE -
Monday, Nov 6 @ 7:30 PM
LIONS
Sunday, Nov 12 @ 12:00 PM
at Bears
Sunday, Nov 19 @ 12:00 PM
RAVENS
Sunday, Nov 26 @ 7:30 PM
at Steelers
Sunday, Dec 3 @ 12:00 PM
BUCCANEERS
Sunday, Dec 10 @ 12:00 PM
at Browns
Sunday, Dec 17 @ 12:00 PM
at Panthers
Saturday, Dec 23 @ 7:30 PM
VIKINGS
Sunday, Dec 31 @ 12:00 PM
at Lions
Think About It
Think About It
Recent Topics
30m / Random Babble / Nonstopdrivel

35m / Green Bay Packers Talk / Nonstopdrivel

4h / Green Bay Packers Talk / TheKanataThrilla

14h / Green Bay Packers Talk / Cheesey

14h / Green Bay Packers Talk / Cheesey

21h / Random Babble / Smokey

23h / Random Babble / Pack93z

21-Feb / Green Bay Packers Talk / Smokey

21-Feb / Green Bay Packers Talk / Smokey

19-Feb / Green Bay Packers Talk / Smokey

19-Feb / Green Bay Packers Talk / Cheesey

17-Feb / Green Bay Packers Talk / Rockmolder

16-Feb / Around The NFL / Cheesey

15-Feb / Green Bay Packers Talk / Cheesey

14-Feb / Green Bay Packers Talk / wpr

Headlines