Author Topic: Link Colors & Moderator Access  (Read 3706 times)

kiss

  • Active Member
  • ***
  • Posts: 93
  • Karma: +0/-0
Link Colors & Moderator Access
« on: December 02, 2010, 03:55:03 AM »
Dear Friends,
I have only three questions today and hope will get some good & useful answers.

My first question is, i would like to change only & only color of username. ( Where i can find the code & so i can change the color for only usernames)

My 2nd question is what is the difference between dedicated hosting server & shared  hosting server? ( How i would know my hosting is dedicated or shared )

Third last question is, In my admin control panel. I can see an option to make new Admin or Moderator... I would like to know.... I can select member who are already register to make him Admin or Moderator or i will create new user name for to make someone Admin or Moderator? Also If i will make someone Admin or Moderator then what he/she can contorl? He/She will have the full access to the Admin panel which i have as a main Admin???

Hope will get some useful answer..

Many thanks in advance!

Regards,
Kiss
''A kiss makes the heart young again and wipes out the years''

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3169
  • Karma: +212/-7
    • Maverick Webworks
Re: Link Colors & Moderator Access
« Reply #1 on: December 02, 2010, 07:53:25 AM »
1. Not every word or text link has it's own separate CSS code to change it's color or size etc., this would create a massive amount of excess coding. A lot of things are universal and share the same CSS code. The username is a hyperlink (or link) that you click on to jump to a another section of the site and shares the same CSS code as all the other text links on the site. Typically most sites make all text links the same color so users can easily identify which text on the site is a link that they can click on.

You can get hints on which CSS classes and ID's are being used for a particular component on your site by viewing the page's source in your browser, in this particular case you'd be looking for user results, the key class for the username link is shown in red.

         <div class="result_user">
   <a class="link_bare" href="http://www.yoursite.com/profile.php?uid=3" title="username"><img class="user_photo thumb1" src="http://www.yoursite.com/media/pics/t1/4/3_11263280457.jpg" alt="username" /></a>
   <a class="content-link member_link" href="http://www.yoursite.com/profile.php?uid=3" title="username profile">username</a>

Generally most CSS code will be found in either the corresponding CSS file for the page that you're viewing or one of the following "common" css files used throughout the site ...
 layout.css
 header.css
 content.css
 footer.css
(a corresponding css file has the same file name as the php and html file names used for the page, example index.php, index.html, index.css)

In the content.css file the following code produces the appearance of most of the site's general text links. Links in the header and footer are an exception and have their own CSS code for the text and links.

/* LINKS */

.content-link {
   font-size: 12px;
   color: #c57794;
   padding: 0 3px 4px 25px;
   text-decoration: none;
   background-position: top left;
   background-repeat: no-repeat;
   font-weight: bold;
}
.content-link:hover {
   text-decoration: underline;
   background-position: bottom left;
}

It's possible to make the username link a different color than the other links on your site but will require some custom coding.


2. The difference between a dedicated and shared server is basically exactly what the the two words mean. A "dedicated" server means the entire sever is "dedicated" to solely just one customer. A "shared" sever is "shared" by multiple customers. The price you're paying will be one sure sign that tells you whether you have a dedicated server or not, you would also have a separate login to administrate and manage the server and create accounts for sites to be hosted on the server, which is totally different than the the admin login to manage a site.


3. No you can't assign a member to have admin or moderator privileges, you have to create an admin or moderator account and give the login details to whoever you want to use it. If you make a person an Admin they will have full access and the same privileges as any other Admin. If you just make them a Moderator they won't be able to make changes to the site and will be limited to some basic moderator tasks. Administrators have full access to the entire admin panel and all features, moderators only have access to member management features.

If you want to know exactly what a moderator can do simply create a moderator account and login as the moderator and see what you have access to.
 

DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 966
  • Karma: +56/-7
Re: Link Colors & Moderator Access
« Reply #2 on: October 18, 2012, 09:20:32 AM »
How do I give moderators blog management access in the admin control panel? By default, they have no access.
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

Schyzo

  • Active Member
  • ***
  • Posts: 31
  • Karma: +9/-0
Re: Link Colors & Moderator Access
« Reply #3 on: October 18, 2012, 10:40:37 AM »
Hi.

Try this if you want to allow moderators on other page :

For example to allow a moderator to moderate blogs, edit "admin\blog_search.php"

On line 16, replace :
Code: [Select]
allow_dept(DEPT_ADMIN);
By :
Code: [Select]
allow_dept(DEPT_MODERATOR | DEPT_ADMIN);

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3169
  • Karma: +212/-7
    • Maverick Webworks
Re: Link Colors & Moderator Access
« Reply #4 on: October 18, 2012, 11:04:46 AM »
Schyzo is correct, however you'll need to go through the blog php files in the admin folder and add the moderator to whatever you want to allow them to do. If you just allow a moderator access to blog_search.php then they'll just be able to search but won't be allowed to edit anything. You'll also need to include the moderator in the blog_post_edit.php file as well. Make sure the blogs_results.php file also includes DEPT_MODERATOR.

If you also wanted to allow a moderator to access and edit comments, you'd do the same for the comment php files located in the admin folder. Such as comment_addedit.php, comment_results.php and comment_search.php.
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.