Webmastersite.net
Register Log In

which file to edit to put catpermissions
into neat table?

Comments on which file to edit to put catpermissions

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Aug 27, 2005 - 4:15 AM:

what file do I have to edit to put what you see in the attached screenshot into a neat table?

Attached Files:
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Aug 27, 2005 - 6:59 AM:

well, admin/catusergroups.tpl has the HTML, which is like this:
<input type="checkbox" name="canviewpages" {canviewpages}>


I don't know why it says input type="checkbox" but classes/category.php has code on line 1290 which does this:
$temp = str_replace('<input type="checkbox" ', '<select ', $temp); 


So I changed catusergroups.tpl so that it used a neat table but then
the resulting display was different! For some reason the str-replace
code above didn't activate... I attach my changed catusergroups.tpl and
you'll see that the only thing thats different is that its all in table
cells....



Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 27, 2005 - 2:11 PM:

It says checkbox simply for easy porting of the main usergroup permissions. Doesn't matter if you change to <select.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Aug 28, 2005 - 1:43 AM:

so why does it happen automatically at first... and then when you sort catusergroups.tpl into a table, it doesn't...?
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Aug 28, 2005 - 1:55 AM:

it does not work Paul. If you change catusergroups.tpl from <input type="checkbox" to <select, you'll get this when you view the edit page of a category:


<tr>
<td>Can edit all:</td>
<td>Links
<select name="3_caneditalllinks"{caneditalllinks}>
<br>
Link votes
<select name="3_caneditvotes"{caneditvotes}></td>
<td>Comments
<select name="3_caneditallcomments"{caneditallcomments}></td>
<td>Full details? (rating, views, etc)
<select name="3_candofulledit"{candofulledit}>
</td></tr>


whereas before it would be like this:

Can edit all:
<select name="2_caneditalllinks"><option value="">use default</option><option value="0">yes</option><option value="1">no</option></select> Links
<select name="2_caneditallcomments"><option value="">use default</option><option value="0">yes</option><option value="1">no</option></select> Comments
<select name="2_candofulledit"><option value="">use default</option><option value="0">yes</option><option value="1">no</option></select> Full details? (rating, views, etc)
<select name="2_caneditvotes"><option value="">use default</option><option value="0">yes</option><option value="1">no</option></select> Link votes
<br>


Spot the difference... Please tell me definitively what I'm supposed to do. All I want is to put the cat permissions (that are currently all over the place as you can see from the attached screenshot in the first post) into a table, so that there's some order to the chaos.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Sep 05, 2005 - 4:31 PM:

any ideas with this issue?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 07, 2005 - 6:58 AM:

The appearance of something only seen by administrators isn't on top of my priority list, but glancing at the template you posted all the template variables are wrong... {canviewpages} instead of {CANVIEWPAGES} et cetera. I don't know how you would've messed up every one.

Also I don't know if there's screen width to fit everything in a table row.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.