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)
-   -   Admin Functions (https://vborg.vbsupport.ru/showthread.php?t=23692)

eva2000 12-03-2001 03:24 AM

Kevin convert.php has a parse error on line 26 ?

FWC 12-03-2001 03:31 AM

Quote:

Originally posted by eva2000
Kevin convert.php has a parse error on line 26 ?
I think it's missing an { at the end of line 22. I put it in and it works as advertised. :D

Symbian.info 12-09-2001 08:12 PM

When I use: Convert Date/Time or Encrypt String
I get this: Parse error: parse error in /home/symbian/www/forum/admin/convert.php on line 26

I follow the att.txt witch has a fault:
makenavoption("Update Counters","misc.php?action=chooser");
must be:
makenavoption("Update Counters","misc.php?action=chooser");,"<br>");

Thanks!

eva2000 12-10-2001 06:27 AM

Quote:

Originally posted by FWC
I think it's missing an { at the end of line 22. I put it in and it works as advertised. :D
thanks that fixed it :)

FWC 12-10-2001 06:48 AM

Quote:

Originally posted by eva2000
thanks that fixed it :)
Glad it worked for you, too. :)

KuraFire 12-10-2001 09:15 AM

Are the install instructions in the very first post completely working and functional for version 2.2.1 now, too? I'd very much like this hack, but if there are still issues to be worked out for version 2.2.1 (or lower, but I'm already up-to-date..) I think I'll wait until they're all ironed out :)

Great hack regardless, an attachment viewer and remove function was what I have been missing in that Admin panel all along... :)

Axel Foley 12-10-2001 01:32 PM

Hi Kevin...

There's a bug in convert.php (at line 22):

PHP Code:

if ($action == "md5");
  
$md5string md5($string);
  echo 
"<b>$string</b> encrypts as <b>$md5string</b>";
  
$action "intro";


Should be:

PHP Code:

if ($action == "md5") {
  
$md5string md5($string);
  echo 
"<b>$string</b> encrypts as <b>$md5string</b>";
  
$action "intro";



For the rest it works great on vB 2.2.1 Kevin.

I loved the attachments management functions, but I have a request Kevin, isn't it possible to show the attachment size? Can't see it anywhere...it is helpful to see it in order to decide if it should be removed or not.

Anyway: GREAT JOB! (as usual) ;)

KuraFire 12-10-2001 01:46 PM

Ooh, yeah that'd be very useful, being able to see the size of all attachments. :up:

Thx Axel, I now know that this works for 221 as well and everything. And thanks to you I can also fix that bug. :)

LuBi 12-12-2001 03:54 AM

So is this now working on 2.2.1? And the first post by tubedog is updated with all the fixes, or will I have to go through the whole thread looking for updates? Thanks!

FWC 12-12-2001 04:14 AM

Quote:

Originally posted by LuBi
So is this now working on 2.2.1? And the first post by tubedog is updated with all the fixes, or will I have to go through the whole thread looking for updates? Thanks!
Lubi, Kevin updated the first post. If you get a parse error on convert.php just add a { at the end of line 22.

LuBi 12-12-2001 04:59 AM

Thanks, worked great and got the error fixed in a jiffy. Thanks for the great hack and thanks FWC as usual, your great.

FWC 12-12-2001 05:10 AM

Quote:

Originally posted by LuBi
Thanks, worked great and got the error fixed in a jiffy. Thanks for the great hack and thanks FWC as usual, your great.
Glad it's working. It's a great hack. :)

The Realist 12-12-2001 07:40 AM

Thanks for the Info below, worked like a charm.

Nice one M8.
:)


Quote:

Originally posted by Axel Foley
Hi Kevin...

There's a bug in convert.php (at line 22):

PHP Code:

if ($action == "md5");
  
$md5string md5($string);
  echo 
"<b>$string</b> encrypts as <b>$md5string</b>";
  
$action "intro";


Should be:

PHP Code:

if ($action == "md5") {
  
$md5string md5($string);
  echo 
"<b>$string</b> encrypts as <b>$md5string</b>";
  
$action "intro";



For the rest it works great on vB 2.2.1 Kevin.

I loved the attachments management functions, but I have a request Kevin, isn't it possible to show the attachment size? Can't see it anywhere...it is helpful to see it in order to decide if it should be removed or not.

Anyway: GREAT JOB! (as usual) ;)


Crinos 12-12-2001 08:56 AM

Quote:

Originally posted by Axel Foley
I have a request Kevin, isn't it possible to show the attachment size? Can't see it anywhere...it is helpful to see it in order to decide if it should be removed or not.
I agree, this would make the hack truly perfect :D

The Realist 12-15-2001 11:07 AM

Can anyone tell me how to get the convert date/time line in Import & maintenance to drop down a line.

See pic attached for a better idea.

Lesane 12-15-2001 11:26 AM

Just edit admin/index.php and search for Update Counters and add after that but before convert date/time a "brb"

RS25com 01-04-2002 02:53 AM

GREAT HACK!

I've never messed with my board and this thing worked flawlessly the first time! I installed it and it worked like a breeze.

Only one thing (which has probably already been posted, I didn't look) which is a minor cosmetic item:

In the index page mod for 2.20 the existing line above it does not have a <br>, so using similar code as the new lines added, add a <br> in the existing last line like this:

makenavoption("Update Counters","misc.php?action=chooser","<br>");

The Realist 01-04-2002 10:41 AM

Found the problem:
makenavoption("Update Counters","misc.php?action=chooser","<br>");

"<br>") << This was missing!

Thanks,

Brian


Quote:

Originally posted by The Realist
Can anyone tell me how to get the convert date/time line in Import & maintenance to drop down a line.

See pic attached for a better idea.


NitroSimSev 02-18-2002 02:57 PM

Works like a champ......took my attachment DB from 28.5 megs to 19.2 megs still need to come down a lot more. I tried the convert to file but its got a parse error in it.

FWC 02-18-2002 04:11 PM

Quote:

Originally posted by NitroSimSev
I tried the convert to file but its got a parse error in it.
Look a post #50. You should always read the thread when installing hacks. :)

Silver_2000_)! 09-07-2002 06:43 AM

The hack works great trimmed about 1/3 of the attachments BUT the Attachement Table in mysql hasnt shrunk..

I have updated the counters and have tried the repair.php script just for good measure... What am I missing ???

Is there a query required to compact the table or database ?

Thanks in advance...

Doug

johnr 09-07-2002 11:41 AM

Err...Because this hack is like 8 months old and since then 5+ new Vbulletin versions have been released?

Go figure :)

Silver_2000_)! 09-07-2002 03:45 PM

[QUOTE]Originally posted by johnr
Err...Because this hack is like 8 months old and since then 5+ new Vbulletin versions have been released?

Go figure :)

Symbian.info 03-28-2003 07:05 PM

Grreat tool !!

Silver_2000_)! 03-29-2003 10:42 PM

The table shrunk ... Great Mod

Doug

Bison 03-30-2003 03:36 AM

Anyone with a ton of attachments really need this gem ofva hack!

(Ten Stars!) :speechless:

iggy123 05-17-2003 02:49 PM

when i try this on 2.3.0 I get the following error

Code:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: SELECT postid,post.attachmentid AS aid,FROM_UNIXTIME(attachment.dateline)
 AS date,filename,attachment.userid AS id,attachment.counter AS countera FROM post,attachment
WHERE post.attachmentid=attachment.attachmentid  AND
 attachment.userid='1' LIMIT 0,20 mysql error: Column: 'postid' in field list is ambiguous

mysql error number: 1052

Date: Saturday 17th of May 2003 10:44:56 AM


Milez 05-24-2003 08:08 AM

Anyone know a better way to remove all attachments from specified forums, as this hack seems to no longer function on 2.3.0.

camikazi2k 06-02-2003 10:22 PM

everytime i hit remove
i get
Your session hash doesn't match the one in the database. Try logging in again.


All times are GMT. The time now is 07:41 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.02503 seconds
  • Memory Usage 1,796KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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