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 v0.2.3 (https://vborg.vbsupport.ru/showthread.php?t=19081)

joecrow 08-25-2001 04:43 PM

can u repack the hack then

Bane 08-25-2001 04:49 PM

I'm sure tubedogg will. I dont have access to his post though.

tubedogg 08-25-2001 07:20 PM

It's fixed and updated.

tweak 08-26-2001 02:13 AM

Nice hack thanx man

LuBi 08-26-2001 06:45 AM

Yea this works great easy install my first hack. Check my site if you need an example. Thanks again Bane, thanks tubedogg.

MApI 08-27-2001 10:00 PM

As usually, great job ! & simple to install. Thx again.

VB 2.0.3

bye

tamarian 08-31-2001 06:08 PM

PHP Code:

Step 2 of 2 find

....  
PHP code

Just under that add


Should be

Replace with

If you add under, new users will be added to user table in duplicates.

AJR 09-01-2001 10:22 PM

Hey Tubedog... very nice hack! I installed this a few weeks ago and everything went off without a hitch!

Here's something you may want to update in your stars hack distribution...Show stars on announcements page. I'm using v2.0.3 but should work on v2.0.x

Open announcement.php (NOT admin/announcement.php)

find:
PHP Code:

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

Below it add:
PHP Code:

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


In announcebit template add $post[stars] where you want the stars to appear.


That's it! Now the stars of those who put up announcements will show under their usertitle when viewing the announcement.

tamarian 09-02-2001 05:01 PM

Kevin,

This is exactly what I mentioned just 2 posts above :)

tubedogg 09-02-2001 05:08 PM

There was an error in the instructions supplied by Bane, as reported by tamarian.

To fix it, download the attached file and follow the instructions in it. The first post in this thread has been updated with the correct instructions in the zip file.

tamarian 09-02-2001 05:17 PM

Kevin,

I wonder what would be the best fix for those already registered? I simply deleted new users who registered and didn't post in the period before correcting it (2days). For those who did post, I asked them to try and post, and if they can't to let me know and I'll delete them so they can sign up again.

Some get into difficulty loging in, possibly because they have to memberships with the same name, one as registered, and one as "awaiting".

escalade 09-05-2001 09:53 PM

i dont know where post bit template is

tubedogg 09-06-2001 06:50 AM

escalade I'll tell you if you enter your license information in your profile.

Silverlight 09-06-2001 04:35 PM

Okay, I've waded through the first 8 or 9 pages and no one else asked, so I figure it's probably something really stupid.

But I will risk ridicule and embarrassment anyway.

On the new install, it says to find some code, which I'm not going to post here, but the fact of the matter is, my admin/functions.php file doesn't contain the code I'm supposed to be looking for.

I very much doubted the code could just be inserted in anywhere, so I tried to go on. But there's no link to the next page! I manually entered http://***/admin/install_starshack.php?s=&step=5, and it went on, but in this case, my control panel says "Fatal error: Call to undefined function: maketableheader() in /web/sites/342/asheri/www.asheri.f2s.com/forums/admin/install_starshack.php on line 394" where the stars controls should be.

So am I a retard, or am I missing something?

tamarian 09-06-2001 06:17 PM

Kevin,

Another bug in the docs:

Changes to
admin/usergroup.php (4)

Step 4 of 4 find:

Should be:

replace

I haven't checked if they're all like that, I just check files when the sh*t hits the fan. :D

LuBi 09-06-2001 06:58 PM

Tube your hack makes it so when someone registers it adds them once now, but thep roblem is now they get an error after they register.

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

And i get an email. Did you update fix banes hack from adding 2 of a new member to our database? If so, it works but now after they register at my board it sends them to an error. A fix would be great ASAP. thanks.

tamarian 09-06-2001 07:08 PM

LuBi, read the posts from 8-31 to fix it.

This will only fix it for future users. I had to delete my double users and email them to register again.

LuBi 09-06-2001 07:10 PM

Add this above what tube says to replace the other text with.

PHP Code:

  $userid=$DB_site->insert_id(); 


LuBi 09-06-2001 07:25 PM

It's not working for me, it will add the user but will give them an error.

TheComputerGuy 09-07-2001 03:29 AM

Parse error: parse error in /home/web+++++/public_html/demo/admin/usergroup.php on line 90

What do I need to fix

tamarian 09-07-2001 03:48 AM

Read my post, just 4-5 posts back. This should fix this problem. Read a bit further up, to fix another problem that is a bit "hidden". i.e. no errors, but new users will have trouble.

TheComputerGuy 09-07-2001 03:54 AM

Quote:

Originally posted by tamarian
Kevin,

Another bug in the docs:

Changes to
admin/usergroup.php (4)

Step 4 of 4 find:

Should be:

replace

I haven't checked if they're all like that, I just check files when the sh*t hits the fan. :D


There is what I need but I need to know what I need to replace it...???

tamarian 09-07-2001 04:03 AM

Replace it with the the code specified in the "add". The documentation is accurate accept for two mistakes where it says add instead of replace.

LuBi 09-07-2001 04:44 AM

tam your doing a great thing but your instructions are a bit confusing, include the code so we may copy and paste what your talking about.

tamarian 09-07-2001 05:10 AM

LuBi,

It would be very confusing if I include the code, since it would depend if if it's pre hack or post hack.

But I'll assume you already followed the instructions according to the instructions in the hack.

In this case, two changes need to be made:

A) In the register.php changes


Step 2.2


PHP Code:

// Stars Hack
//  $DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts,startofweek,ipaddress,pmpopup,referrerid,nosessionhash) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes($password)."','".addslashes(htmlspecialchars($email))."',".$newstyleval."'".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','".time()."','$cookieuser','".addslashes($prunedays)."','".time()."','".time()."','$newusergroupid','".addslashes($timezoneoffset)."','$emailnotification','$receivepm','$emailonpm','$options','".addslashes($birthday)."','".addslashes($umaxposts)."','".addslashes($startofweek)."','".addslashes($ipaddress)."','$pmpopup','".addslashes($testreferrerid['userid'])."','$nosessionhash')");
// Stars Replaced Code
  
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts,startofweek,ipaddress,pmpopup,referrerid,nosessionhash,starlevel,starimg) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes($password)."','".addslashes(htmlspecialchars($email))."',".$newstyleval."'".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','".time()."','$cookieuser','".addslashes($prunedays)."','".time()."','".time()."','$newusergroupid','".addslashes($timezoneoffset)."','$emailnotification','$receivepm','$emailonpm','$options','".addslashes($birthday)."','".addslashes($umaxposts)."','".addslashes($startofweek)."','".addslashes($ipaddress)."','$pmpopup','".addslashes($testreferrerid['userid'])."','$nosessionhash','$userstarlvl','$userstarimg')");
// Stars Hack End 

Simply comment out, or delete the line above it:

PHP Code:

$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts,startofweek,ipaddress,pmpopup,referrerid,nosessionhash) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes($password)."','".addslashes(htmlspecialchars($email))."',".$newstyleval."'".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','".time()."','$cookieuser','".addslashes($prunedays)."','".time()."','".time()."','$newusergroupid','".addslashes($timezoneoffset)."','$emailnotification','$receivepm','$emailonpm','$options','".addslashes($birthday)."','".addslashes($umaxposts)."','".addslashes($startofweek)."','".addslashes($ipaddress)."','$pmpopup','".addslashes($testreferrerid['userid'])."','$nosessionhash')"); 


B) In the usergroup.php

Step 4 of 4:

PHP Code:

// Stars Hack
/*  $DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,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 WHERE usergroupid=$usergroupid"); */
// Stars Hack 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,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 WHERE usergroupid=$usergroupid");
// Stars Hack End 

Simply delete or comment out the line above it:

PHP Code:

$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,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 WHERE usergroupid=$usergroupid"); 

IF the line "above it" that I mentioned is not there, you're o.k. and it should work fine.

LuBi 09-08-2001 04:52 AM

I haven o clue what you mean. But now when people join it doesn't make dups but after they register it says error and refresh to them, then it says member name already in use. How can I fix this and what might the problem be.

tamarian 09-08-2001 05:06 AM

Quote:

Originally posted by LuBi
I haven o clue what you mean. But now when people join it doesn't make dups but after they register it says error and refresh to them, then it says member name already in use. How can I fix this and what might the problem be.
You cannot find the dups through vb, you only see it in the user table through mysql or phpmysql. And yes, your symptoms are exactly like mine before I corrected the installation as indicated above.

If you have no clue what I mean or the fixes that have been listed, I strongly recommend you un-install this hack, and bring the file back as they were before. There's no point adding bells and whistles, with the forum screwd up :)

mADmAX` 09-09-2001 01:41 AM

I am having the same problems with this hack also...

The register page says there is an error in the database and then I hit refresh and it says someone has already registered with this address. Its in the database but not in VB?!?

The usergroup page parse's out on me. I have checked all settings a thousand times and everything is as stated throughout these post and the installation file...

mADmAX` 09-09-2001 02:03 AM

Here is a copy of the email I get:

Database error in vBulletin: Invalid SQL: INSERT INTO userfield (userid,field1,field2,field3,field4) VALUES (,'','','','') mysql error: You have an error in your SQL syntax near ''','','','')' at line 1 mysql error number: 1064
Date: Saturday 08th of September 2001 07:57:20 PM
Script: /forums/register.php

LuBi 09-09-2001 02:15 AM

I get that same error, how can we fix this?

tubedogg 09-09-2001 02:28 AM

Considering nowhere in my instructions do I have you do anything with anything relating to userfield, that has nothing to do with my hack...

mADmAX` 09-09-2001 02:31 AM

I was thinking the same thing to but what do you think is wrong with it? Also, whats with the usergroup.php parsing out on line 240 something or another...

mADmAX` 09-09-2001 02:33 AM

I have no hack in the register page btw, so cant seem to figure it out, works before I put this hack ... hmm

VAN 09-10-2001 02:32 AM

T-Dogg, cool hack as usual, but I have a few problemos. :)

When installing, it says there are (4) changes to be made to the postbit template, yet there is only one change documented. I think this is just a minor type in the file.

Also, I have run through the install process. The stars show up great!

But......, something happened during the install and now I have lost all of the "profile" link buttons which appear under each post.

Any ideas?

LuBi 09-10-2001 09:05 PM

Well I tried the update with no luck. Such a simple thing and it didn't work. I don't know PHP very much more of a script kiddie but, it must be getting an error because of somewhere else in the script. Maybe it doubles like that somewhere else I'll do my best to look but I can't make any promises.

Below is the error message I keep getting sent. I installed the script as informed from before now I have used the update.txt and this is the error I get. Also again when members sign up they get an error then refresh and it says that user name is already taken. It no loger doubles in mySQL but I get in error instead. Someone please help me this is causing a lot of trouble.

Database error in vBulletin: Invalid SQL: INSERT INTO userfield (userid,field5,field4,field3,field2) VALUES (,'','','','')
mysql error: You have an error in your SQL syntax near ''','','','')' at line 1
mysql error number: 1064
Date: Monday 10th of September 2001 06:00:07 PM
Script: /register.php
Referer: http://forums.suprascene.com/register.php

LuBi 09-11-2001 01:51 AM

help me :eek:

tamarian 09-11-2001 02:27 AM

Lubi,

Why not start freash? Uninstall everything, or better yet do a fresh install since the forum isn't up yet.

It appears you have installed several hacks at once, and got something wrong in the process. This will allow your users to sign-up and login. Next, install a test forum to practice hacking on, and test each hack seperately until you are confident about it.

LuBi 09-11-2001 02:34 AM

I got ya, I have installed alot of hacks but this hack is the problem. I put in my saved copy of register.php edited it with the update and I still recieve the same error. I am thinking of reinstalling the forum and all my hacks when phpportals3.0 comes out and i can try that out first on my existing forum. Just a fix for this would still be nice. ;) thanks though.

VAN 09-11-2001 07:33 PM

Yoohoo, Tubedogg! :)

I know you're a busy guy and all, but can you please take a peek at my post regarding your star hack? (bottom of pg 13)

Ive been trying my damndest, but I can't find the problem.

Thanks

[VbbFr]Elie 09-11-2001 11:51 PM

Hy ... May be some one talk about it before but i'm to lazy to read :)

I managed to install all ...
But i don't understand if member can choose is style of stars like avatar ? or admin must atribute which star for which one !...

Thanks :)

A french version was make by me :)


All times are GMT. The time now is 04:35 PM.

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.02146 seconds
  • Memory Usage 1,885KB
  • 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
  • (8)bbcode_php_printable
  • (2)bbcode_quote_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
  • (40)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