![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
I don't know who else would know this but if anyone could write up the code like on this page where a report button takes the place of the edit button for everyone except on their own posts where then there is no report button but in it's place an edit button. Whew! anyways I dunno who else would know this but I guess the IP logged link is gone or only available to mods etc etc.. so if anyone could set me in the right direction
Thanks!No members have liked this post.
|
|
#2
|
||||||||
|
||||||||
|
In functions.php, I added this:
right after this:
You need to make some changes in the postbit template though. Replace the edit button with $post[editpost], and create another template "postbit_editpost" that will contain that buttons. Same thing for the report button, replace it with $post[report] and create a new template "postbit_report".
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
||||||||
|
#3
|
|||
|
|||
|
your the best! but wheres the IP logged link? Or did you remove it completely?
Also what would one of those templates look like? Or can I just hack something up like (this is my report button) <a href="report.php?s=$session[sessionhash]&postid=$post[postid]"><img src="{imagesfolder}/report.gif" border="0" alt="Report this post to a moderator"></a> ??? Basically now I have the edit show up all the time and the report show up only on thread that are not mine. How do i get one icon to take the place of another.. in the postbit? ![]() No members have liked this post.
Last edited by LuBi : 15 Nov 2001 at 16:45. |
|
#4
|
||||||||||||
|
||||||||||||
|
My postbit_report template:
postbit_editpost template:
In my postbit I just place this:
where I want the button to appear. BTW, it's coded so mods and admins will always see the edit button, and also the report button. Only regular members can't see both of them at the same post. :) So I would say you're fine...
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
||||||||||||
|
#5
|
|||
|
|||
|
rofl thanks! you know from dealing with me on these forums I'm nothing better than a script kiddie wit very little skill
Thanks Again!Oh lol you still haven't answered what about the IP logged? Where is that or when does it show up if at all!? No members have liked this post.
|
|
#6
|
||||||||
|
||||||||
|
Oh right, sorry.
I *think* I replaced this:
with this:
Although I'm not sure about the original code. ![]() And yes, it only shows up for mods/admins.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
||||||||
|
#7
|
|||
|
|||
|
Thanks so much as usual! Everything worked great site looks clean, my real members love it!
everyone's gotta start somewhere, un-luckly for me I have only one direct compeditor with a solid foundation. So I fugure I'll have more than just a forum plus have a better faster more reliable feature packed forum to make it an easy transition for all his members. Everytime I get help on a hack or something from here I get closer to my goal! Now you know when I say thanks I really mean it ![]() No members have liked this post.
|
|
#8
|
||||
|
||||
|
Just added it to my forum. Thanks FlyFire
![]() No members have liked this post.
|
|
#9
|
||||
|
||||
|
works like a charm
![]() thanks No members have liked this post.
|
|
#10
|
||||
|
||||
|
Worked beautifully.
Thank you! JennieNo members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 00:48.

Thanks!


