Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Nov 2001, 09:11
LuBi LuBi is offline
 
Join Date: Nov 2001
Question ATTN: Firefly, Report to Mod / IP Hack or Template Hack

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!
Reply With Quote
  #2  
Old 15 Nov 2001, 11:24
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
In functions.php, I added this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

right after this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #3  
Old 15 Nov 2001, 16:04
LuBi LuBi is offline
 
Join Date: Nov 2001
your the best! but wheres the IP logged link? Or did you remove it completely?

replace it with $post[report] and create a new template "postbit_report".
What am I replacing for $post[report]

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?


Last edited by LuBi : 15 Nov 2001 at 16:45.
Reply With Quote
  #4  
Old 15 Nov 2001, 17:02
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
My postbit_report template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

postbit_editpost template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In my postbit I just place this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #5  
Old 15 Nov 2001, 17:16
LuBi LuBi is offline
 
Join Date: Nov 2001
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!?
Reply With Quote
  #6  
Old 15 Nov 2001, 17:22
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Oh right, sorry.

I *think* I replaced this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #7  
Old 15 Nov 2001, 17:31
LuBi LuBi is offline
 
Join Date: Nov 2001
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
Reply With Quote
  #8  
Old 09 Jan 2002, 13:18
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Real name: Maurice
Just added it to my forum. Thanks FlyFire
Reply With Quote
  #9  
Old 07 Feb 2002, 18:34
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
works like a charm

thanks
Reply With Quote
  #10  
Old 16 Feb 2002, 19:11
tanster's Avatar
tanster tanster is offline
 
Join Date: Feb 2002
Thumbs up

Worked beautifully.

Thank you!
Jennie
Reply With Quote
  #11  
Old 21 Apr 2002, 19:18
212rikanmofo 212rikanmofo is offline
 
Join Date: Nov 2001
nice hack, but im having problems with the IP logged thing

how do i get it to show up as a button and not as a hyperlink?

where do i go to set this so it would show up the {imagesfolder}/ip.gif?

thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 00:48.

Layout Options | Width: Wide Color: