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)
-   -   Stars for vB2.2.1 (english/german) (https://vborg.vbsupport.ru/showthread.php?t=34626)

Wolf42 07-04-2002 02:24 PM

@hellsatan
Yes, working on vB 2.2.6.

@Webmasta XT
You want to decide how many stars each usergroup can reach at max depending on the amout of posting? (i.e. Members max 5 stars, Mods 7 stars and Admins 8, but depending on the amount of postings)

Chris M 07-04-2002 02:29 PM

Sweet...

I'll install it then!

*installs*

Satan

Thewnagchung 07-24-2002 07:00 PM

Hi. I just cant get this hack to work, i do fine until i reach functions.php, then i get a weird error message about T_encassed or something.

here is my functions.php file, could someone edit it to the way it should be ? thanks

and im on 2.2.6 btw


Please do not post full files of vBulletin. Thank you.

Wolf42 07-25-2002 09:26 AM

This is what the instructions says:

****In admin/functions.php****

**Find
PHP Code:

if ($post['receivepm'] and $enablepms==1) {
            eval(
"\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
        } else {
            
$post[pmlink] = "";
        } 

In your functions.php is this line 208 to 212.

**After this insert
PHP Code:

$sli 0;
    while (
$sli $post[starlevel]) {
      
$post[stars] .= "<img src=\"{imagesfolder}/stars/$post[starimg].gif\" border=\"0\">";
      ++
$sli;
    } 

Thats all you have edit in functions.php.

Molok 08-21-2002 10:05 PM

Hello!
I become problems when i modify a User Group!
When i click on the save button this error msg will be show:

Code:

Invalid SQL: UPDATE usergroup SET title='Administrators',usertitle='Administrator',starlevel='',starimg='',cancontrolpanel=1,canmodifyprofile=1,canviewmembers=1,canview=1,showgroup=1,cansearch=1,canemail=1,canpostnew=1,canmove=1,canopenclose=1,candeletethread=1,canreplyown=1,canreplyothers=1,canviewothers=1,caneditpost=1,candeletepost=1,canusepm=,canpostpoll=,canvote=1,canpostattachment=1,ismoderator=1,canpublicedit=1,canpublicevent=1,canthreadrate=1,cantrackpm=1,candenypmreceipts=1,maxbuddypm=1,maxforwardpm=1,canwhosonline=1,canwhosonlineip=1,cangetattachment=1 WHERE usergroupid=6
mysql error: You have an error in your SQL syntax near 'canpostpoll=,canvote=1,canpostattachment=1,ismoderator=1,canpublicedit=1,canpubl' at line 1

mysql error number: 1064

Date: Thursday 22nd of August 2002 01:04:10 AM
Script: http://domain.de/admin/usergroup.php
Referer: http://domain.de/admin/usergroup.php...&usergroupid=6

I have vB 2.2.6
Can you help me?!

Wolf42 09-02-2002 11:55 AM

Sorry for my late reply, but I was on holidays.

I've checked the SQL-command and it is correct!! It must be an other problem (maybe PHP). Which version of PHP are you running?

Molok 09-02-2002 02:13 PM

its php 4.0.4

Wolf42 09-18-2002 07:53 AM

Please check you admin/usergroup.php again.
PHP Code:

$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',starlevel='$starlevel',starimg='$starimg',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread=$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canviewothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,canusepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$canpostattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicevent=$canpublicevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenypmreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm,canwhosonline=$canwhosonline,canwhosonlineip=$canwhosonlineip,cangetattachment=$cangetattachment WHERE usergroupid=$usergroupid"); 

Thats the query where the usergroup is updated.

I don't understand why the bits canusepm and canpostpoll are set to null in you query.

Barto 10-21-2002 06:26 PM

Any one can help me to use this in v. 2.2.6?
give me an icq number pls :(

Wolf42 10-22-2002 07:30 AM

What's your problem? Support is only given here. ;)


All times are GMT. The time now is 10:07 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.01273 seconds
  • Memory Usage 1,753KB
  • 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
  • (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