Smiley face
 
  Forum Index    Search    Usergroups    Edit your profile    Members    Arcade    Ranks

 Reputation    Medals    Staff    Statistics    Board Rules    Forum FAQ    Log in 

Search for at
Soldier Of Fortune 2 Advanced Search



Post new topicReply to topicprinter-friendly viewThank Post
   Soldier Of Fortune 2 Forum Index » Content management system » PHP Nuke - evolution Xtreme » [ block ] - Teo Tutorials Block
 View previous topic :: View next topic  
Author Message
Teo
Owner
Owner
Administrator
Administrator


In Game: Teo

Joined: Sep 21, 2009
Last Visit: May 23, 2017
Age: 36
Posts: 1105
Location: Milan
Italy.png 
Reputation: 4485
votes: 6
Medals: 6 (View more...)
Modder (Amount: 1)

Status: Offline
PostPosted: Tue Jun 09, 2015 5:52 pm
PostPost subject: No icon [ block ] - Teo Tutorials Block
Reply with quote

I rebuilt the SimpleTutorial block. My version has all the old features with improvements in the code it lists how many new/most popular tutorial You wish because you can change number of tutorial shown by the config into the file. It also shows:
    In which category is the tutorial with the link to the category
    Author
    Date
    How many comments, views and hits of each one


Actual version: 1.0.2



Last edited by Teo on Mon Jun 15, 2015 8:39 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook: http://www.facebook.com/ricordalo
Sponsor
DreAdeDcoRpSE
VIP
VIP


Gender: Gender:Male
Joined: Jul 30, 2012
Last Visit: Nov 14, 2016
Age: 36
Posts: 2

usa.png 
Reputation: 1128.8
Medals: 2 (View more...)
Site Supporter (Amount: 1)

Status: Offline
PostPosted: Sun Jun 14, 2015 1:51 am
PostPost subject: No icon Re: [ block ] - Teo Tutorials Block
Reply with quote

Okay, I tool a look at the block and I have a few suggestions.

Here is the Diff Checker that will show you some changes I made quickly to overall improve the coding.
https://www.diffchecker.com/1q9oiz6w

One thing that I do want to bring up is your use of the wrong hook in the CSS. You used a ID selector when you should have a class. The id for CSS is for unique elements. Classes can be used multiple times on a single page. A good rule of thumb is;

ID's
  • Each element can have only one ID
  • Each page can have only one element with that ID


Classes
  • Can have multiple on a single page


Because of that, using a class can be used. With classes, you can use multiple classes in a single element. You can see that on line 94 of my edits.

Code:
<div class=\"tabella aligncenter\">


right there you can see that I am using both of the CSS hooks that are in the script. Just need to separate the two CSS hooks with a space. I also removed your tables that you had for the footer for the credits and put it into a div and used inline styling so its easier to copy and past into other scripts.

Note: Over on RavenNuke, there are some that claim that inline styling is bad. After researching and actually having the privilage to chat with a Developer of HTML/CSS coding, they even said that they are full of shit. It's in there just for the reason of easily copy & paste if you need to and not calling on a CSS file.




A few other things I felt that was necessary to bring up.
  1. having the default of the top 20 is a bit too much, it stretches quite long. maybe do 3/5 by default or set it up so if it is something like top 20, you do two columns, left and a right column so it will make it only 10 deep and cut it in half.
  2. Right now, as is, this looks good on a fixed width theme, but on a full width theme, looks a bit empty. Only small sections off to the left and completely empty on the right. May want to work on something that looks good on both or make one for fix width themes and one for full width.


That's all I can think of ATM. Just a couple of suggestions.

Well, enjoy.



Owner of HeadShotDomain.net


Last edited by DreAdeDcoRpSE on Mon Jun 15, 2015 5:50 pm; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: 125621444168832
Teo
Owner
Owner
Administrator
Administrator


In Game: Teo

Joined: Sep 21, 2009
Last Visit: May 23, 2017
Age: 36
Posts: 1105
Location: Milan
Italy.png 
Reputation: 4485
votes: 6
Medals: 6 (View more...)
Dedication (Amount: 1)

Status: Offline
PostPosted: Mon Jun 15, 2015 8:32 am
PostPost subject: No icon Re: [ block ] - Teo Tutorials Block
Reply with quote

thanks for the suggestions and the time taken to fix it.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook: http://www.facebook.com/ricordalo
Display posts from previous:
Post new topicReply to topic printer-friendly viewThank Post
Soldier Of Fortune 2 Forum Index » Content management system »  PHP Nuke - evolution Xtreme
 
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
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts block - Teo No Cheat Clan 6 Teo 3203 Tue Mar 05, 2013 2:19 am
jl-loe- View latest post
No new posts Block: Teo Highest Rated Articles 0 Teo 1266 Wed Jan 16, 2013 5:45 pm
Teo View latest post
No new posts Teo's mp_shop_ctf.ent - new shop map 9 Teo 5865 Tue Nov 20, 2012 4:35 pm
darkraider View latest post
No new posts Teo Mod v.4 7 Teo 4473 Wed Sep 19, 2012 5:25 pm
orkan View latest post
No new posts Teo which programs u use for make themes? 1 MacTavishXx 2730 Wed May 02, 2012 5:23 pm
Teo View latest post
 




Back to Top

SOF2.ORG Multiplayer Community © 2017 All times are UTC + 2 Hours [DST enabled]
 

Copyright ©