PDA


View Full Version : Lost Edit button :(


Merjawy
07-02-2004, 03:14 PM
Hi there

I have been with vbahome from the start, meaning I installed vbhome and went through all the upgrades till the latest cmps release

I have done this on two almost identical boards

on one board I see both Edit and Reply buttons, but on the other I don't see the Edit button (also on that board I only user right culomn) with 0 weidth for the left culomn

I thought it was the news forum, but its not as when I changed to another forum it still the same .. so its in cmps settings (should be permission issue but its not)

I am the admin on both sites.. and when I go to the news forum I see both buttons normal

I didn't take it off and heres what my adv_portal_newsbit template look like for that

<tr class="alt2" valign="middle">
<td valign="middle">
<span style="float:right">
<if condition="$bbuserinfo['usergroupid'] == 6">
<a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&amp;p=$news[postid]"><img alt="$vbphrase[edit_this_post]" border="0" src="$stylevar[imgdir_button]/edit.gif" /></a>
</if>

<if condition="$vba_options['portal_news_allowreplies']">
<a href="$vboptions[bburl]/newreply.php?$session[sessionurl]do=newreply&amp;t=$news[threadid]"><img alt="$vbphrase[reply_to_this_post]" border="0" src="$stylevar[imgdir_button]/reply_small.gif" /></a>
</if>


as you can see the edit and reply buttons are there in the tempate
the only difference is in the if condition there one uses groupID and the other if allowed !!!


I just noticed the missing button today.. I beleive I had it before :)

thnx

Brian
07-02-2004, 03:19 PM
That needs to be changed and based on permissions instead of the usergroup. I'll look into that as soon as I get a chance. :)

Merjawy
07-02-2004, 03:26 PM
thanks for a quick reply Brian..

but you see the problem is only on one board, not both.. and I used the same install/mod on both sites.. this is whats getting me :)

Merjawy
07-02-2004, 06:26 PM
Got it:)

on that board I was playing with groups so I placed my self in Primary Registered group and as secondary groups I added Admin and SMod :)

so even though I am still the admin. my primary group is "Registered" in that case I can't see the Edit button .. now that really should be changed to be based on permission and not groupID as you said :)

Merjawy
07-02-2004, 06:48 PM
ok heres what I wanna do and let me if this is correct before I apply it please


can I change this:

<if condition="$bbuserinfo['usergroupid'] == 6">
<a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&amp;p=$news[postid]"><img alt="$vbphrase[edit_this_post]" border="0" src="$stylevar[imgdir_button]/edit.gif" /></a>
</if>

to this:

<if condition="$post['editlink']">
<a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&amp;p=$news[postid]><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>


I just want to know if I can do that till you officialy fix it :)

thnx

Merjawy
07-09-2004, 08:50 PM
any comment on this Brian? :)