The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#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!
|
#2
|
||||
|
||||
In functions.php, I added this:
Code:
if ($post[userid]==$bbuserinfo[userid] or ($bbuserinfo[usergroupid]=="5" or $bbuserinfo[usergroupid]=="6" or $bbuserinfo[usergroupid]=="7")) { eval("\$post[editpost] = \"".gettemplate("postbit_editpost")."\";"); } else { $post[editpost]=""; } if ($post[userid]!=$bbuserinfo[userid]) { eval("\$post[report] = \"".gettemplate("postbit_report")."\";"); } else { $post[report]=""; } Code:
$post[joindate]=vbdate($registereddateformat,$post[joindate]); 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". |
#3
|
|||
|
|||
your the best! but wheres the IP logged link? Or did you remove it completely?
Quote:
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? |
#4
|
||||
|
||||
My postbit_report template:
Code:
<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> Code:
<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a> Code:
$post[report] $post[editpost] 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... |
#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!? |
#6
|
||||
|
||||
Oh right, sorry.
I *think* I replaced this: Code:
// do ip addresses if ($post[ip]!="") { if ($logip==2) { eval("\$post[iplogged] .= \"".gettemplate("postbit_ip_show")."\";"); } if ($logip==1) { eval("\$post[iplogged] .= \"".gettemplate("postbit_ip_hidden")."\";"); } if ($logip==0) { $post[iplogged]=""; } } else { $post[iplogged]=""; } Code:
// do ip addresses if ($bbuserinfo[usergroupid]=="5" or $bbuserinfo[usergroupid]=="6" or $bbuserinfo[usergroupid]=="7") { if ($post[ip]!="") { if ($logip==2) { eval("\$post[iplogged] .= \"".gettemplate("postbit_ip_show")."\";"); } if ($logip==1) { eval("\$post[iplogged] .= \"".gettemplate("postbit_ip_hidden")."\";"); } if ($logip==0) { $post[iplogged]=""; } } else { $post[iplogged]=""; } } And yes, it only shows up for mods/admins. |
#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 |
#8
|
||||
|
||||
Just added it to my forum. Thanks FlyFire
|
#9
|
||||
|
||||
works like a charm
thanks |
#10
|
||||
|
||||
Worked beautifully.
Thank you! Jennie |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|