vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [v1.2] Edit / Report Button Hack (https://vborg.vbsupport.ru/showthread.php?t=45344)

camikazi2k 11-07-2002 04:26 PM

DOnt get it
i did put the
$post[editreport]
in the postbit template
but whats the point if there is already a edit button in the thread?

assassingod 11-07-2002 04:55 PM

What it does is show the Edit Button if you posted it, and shows the report button if you dont.

Dean C 11-07-2002 05:34 PM

Update: I'm having huge problems with my testboard so anyone with a testboard that can help me would be highly appreciated :)

PM me

I'm normally on between 7.30-8.30pm GMT

Regards

- miSt

kreftt 11-07-2002 06:16 PM

nice

it checks for your admin status as well, very nice

2 minutes --> works

thx

kreftt

Areku 11-13-2002 10:24 AM

Regarding admin status, can I add a new groupid so my coadmin (different than admin) can still see the edit button everywhere?

The code for this would be appreciated!

Dean C 11-13-2002 06:12 PM

Yes whats yourusergroupid?

- miSt

Areku 11-14-2002 08:01 AM

Say that in addition to Admin (groupid 6) I wanna add Coadmin (groupid 9).

Dean C 11-15-2002 03:27 PM

If you already have the hack installed find this line:

PHP Code:

if (($bbuserinfo[usergroupid] == 5) OR ($bbuserinfo[usergroupid] == 6) OR ($bbuserinfo[usergroupid] == 7) OR ($post[userid] == $bbuserinfo[userid])){ 

And change it to:

PHP Code:

if (($bbuserinfo[usergroupid] == 5) OR ($bbuserinfo[usergroupid] == 6) OR ($bbuserinfo[usergroupid] == 7) OR ($bbuserinfo[usergroupid] == 9) OR ($post[userid] == $bbuserinfo[userid])){ 

- miSt

lalo landa 11-23-2002 05:18 PM

i doit a change..
I prefer an image button.

Then i made a report.gif and upload in images foulder (the report button in your forum style)

Remplace in showthread...

PHP Code:


 
////////// Start edit or report buttons hack //////////
  
if (($bbuserinfo[usergroupid] == 5) OR ($bbuserinfo[usergroupid] == 6) OR ($bbuserinfo[usergroupid] == 7) OR ($post[userid] == $bbuserinfo[userid])){
   
$post[editreport] = "<a href=\"editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]\"><img src=\"./images/edit.gif\" border=\"0\" alt=\"Edit/Delete Post\"></a> <a href=\"report.php?s=$session[sessionhash]&postid=$post[postid]\"><img src=\"./images/report.gif\" border=\"0\" alt=\"Report\"></a>";
  }else{
   
$post[editreport] = "<a href=\"report.php?s=$session[sessionhash]&postid=$post[postid]\"><img src=\"./images/report.gif\" border=\"0\" alt=\"Report\"></a>";
  }
/////// End edit or report buttons hack ///////////// 

and i made 1 change more..
I'm an admin and if i want to report some post to the moderators i can't ... then i add the report button to admins, mods, supermods and the user who made the post..

Sorry about my verry poor english..

I hope u understand and enjoy the modificattion

Cool Hack!

Dean C 11-23-2002 08:41 PM

Yes i do understand what you mean..

All these things will be in v2 mate :)

I got exams starting a week on monday so i haven't got time to test the next version out so im trying to get some help off someone :)

Regards

- miSt


All times are GMT. The time now is 06:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01251 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete