Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-02-2001 Last Update: Never Installs: 161
 
No support by the author.

Thanks to Bane there has been a complete reworking of the installation/instructions for this hack. It is now up to date for 2.0.3 and the installer runs exactly like the vB install/upgrade scripts do.

There is no demo as I don't currently use stars on my board.

For version: 2.0.3

Files needed: stars.php

Files to edit: newthread.php, newreply.php, admin/misc.php, admin/index.php, admin/usergroup.php, register.php and possibly stars.php

Templates to edit: postbit

Instructions: Upload install_starshack.php and stars.php to your admin directory. Go to example.com/admin/install_starshack.php and login, then follow the on-screen instructions.

Upgrade information: If you have previously installed the stars hack, make sure you choose the "upgrade" option on the screen mentioned in the instructions. If you have previously installed this version (using install_starshack.php), you MUST STILL use the upgrade option even if you are reinstalling or you will get database errors.

This hack is © 2001 Kevin Schumacher and may not be redistributed, modified or not, without prior permission.

Please DO NOT contact me via AIM, ICQ, PM, or email about this hack. Post your question/problem here and I will try to help you.

Feedback appreciated.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #377  
Old 03-13-2003, 01:22 AM
Serge's Avatar
Serge Serge is offline
 
Join Date: Jan 2002
Location: The Matrix
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Shadow_NL
When I'm editing my files I also need to edit this:

root/newthread.php

Step 2 of 2 find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");

I couldn't find it, till I noticed that I already changed it with Zajako's RPG hack to:

// Zajako's Rpg hack pay per post
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney +'$moneynewthread' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post

How can I edit this to the right code which is needed to install this stars hack? I don't want to drop Zajako's RPG hack ofcourse.

Thanks in advance.
Ok well the only thing that you added with Zajako's hack is:

PHP Code:
rpgmoney=rpgmoney+'$moneynewthread' 
If you could post the change you have to make I can give you something to replace with because it is just a matter of finding the differences and makeing it that way.
Reply With Quote
  #378  
Old 03-17-2003, 05:24 PM
Shadow_NL Shadow_NL is offline
 
Join Date: Mar 2002
Location: The Netherlands
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}

CHANGE it to:

// Zajako's Rpg hack pay per post
$rpgadmin = $DB_site->query_first("SELECT * FROM rpgmoneyadmin");
$payme=$rpgadmin[newthread];
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney +'$payme' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post
Reply With Quote
  #379  
Old 03-18-2003, 04:35 AM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need a slight bit of help on the index.php.

I installed this hack way back at ver 2.0.0.
It worked fine until I hada hacker crash my database for me. :ermm:
Anyway I'v installed updates up to 2.0.3, and ran the
forum for quite a while without stars, although the old
stars.php, and my star graphics where in place.
(also the database tables were still ok.)
I recently upgraded to 2.3.0, and decided to try this
again.
I did the upgrade, and ther were some slight changes, but I
got it working great.
The only problem I have is I made the new stars catigory
in the index.php, but since it's change so much I can't figure
out how to get the "add" & "modify" catigories under the header.
I uploaded the new stars.php, and if I go directly to it, everything
is in place. I just would like to get to it through the admin cp.

Thanks
This is still a great hack. :banana:

I stuck this in the index ????
Code:
//<!-- Stars Hack -->
maketableheader("User Stars");
makenavoption("Modify","stars.php?action=add","|");
makenavoption("Modify","stars.php?action=modify");
//<!-- Stars Hack End -->
Reply With Quote
  #380  
Old 03-18-2003, 04:46 AM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eh
nevermind I forgot I save this text file...
Got it working. :banana:

Code:
//Stars Hack
makenavoption("Add","stars.php?action=add","<br>");
makenavoption("Modify","stars.php?action=modify","<br>");
makenavselect("User Stars");
//End Stars Hack
Adaption Instructions by damicatz

Thanks Tubedogg and damicatz.
Reply With Quote
  #381  
Old 03-18-2003, 08:19 AM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all

I am really getting down with this hack, I went by the instructions and have changed all the files and used the modified code but then I started getting errors.

First was my registration, I could not see a way out so I replaced my hacked registration page with the original one. All seems ok and no difference to the hack.....or will it?

Now I just tried to modify a user group and I am getting '
Parse error: parse error, unexpected $ in /home/virtual/site76/fst/var/www/html/forum/admin/usergroup.php on line 308'

I did everything by the book, btw is there a copy of the stars.txt file that I can download so I can have another go and editing the files, the only information was in the installation file which I cant read again without wiping my tables.

Please someone, I am in urgent need of some help, thank you.
Reply With Quote
  #382  
Old 03-18-2003, 01:21 PM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

floridaideal,
I'll see if I can help.
First, what vB ver are you using.
Reply With Quote
  #383  
Old 03-19-2003, 11:05 AM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much catocom2

I am running version 2.2.8, the hack seems to still be working ok on my forum but the usergroups and registration didnt work, so I replaced both files with the original files and it seems to work but still not happy about doing that, would rather edit the files to work properly.

Does anyone please have the stars txt file so I can check over the files again please?

Thanks

Stuart
Reply With Quote
  #384  
Old 03-19-2003, 12:45 PM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the install file that I just quick converted for you to html.
It's not pretty, but I think you can read it enough to get the info
that you need.
Reply With Quote
  #385  
Old 03-19-2003, 01:22 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Catocom2

Thats great, but I just edited usergroups again and still getting this error :

Parse error: parse error, unexpected $ in /home/virtual/site76/fst/var/www/html/forum/admin/usergroup.php on line 239

Just attached my usergroups file, can you please take a look?

Thank you again

Stuart
Reply With Quote
  #386  
Old 03-19-2003, 06:36 PM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There may be another place, and I not sure of the differences
in 2.2.8 and 2.3.0, but..
on line 178 (i think) you might need to add the attachment thing.

where this is.. (close to the end of the line)
PHP Code:
canwhosonlineip=$canwhosonlineip WHERE 
change to..
PHP Code:
canwhosonlineip=$canwhosonlineip,cangetattachment=$cangetattachment WHERE 
I think there may be another place too, Sorry my mem isn't so good.

Where ever you are supposed to change that long line you need to make that change.
Reply With Quote
  #387  
Old 03-21-2003, 01:10 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again for all your help Catocom2 but unfortunitly that didnt work either

Got this error Parse error: parse error, unexpected $ in /home/virtual/site76/fst/var/www/html/forum/admin/usergroup.php on line 239

It wont let me Add | Modify any Usergroups

Its just something out, can't be too much, just can't work it out, spend the last hour looking over it.

Have attached the file again for all those clever VB'ers out there.

Thanks you.
Reply With Quote
  #388  
Old 03-26-2003, 05:50 PM
iceman11111 iceman11111 is offline
 
Join Date: Feb 2003
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem!

I installed this hack, and did all the changes!

Now when I click Add and fill in all the info and then click submit I get a blank screen.

What did I do wrong?

P.S I am not to good with php, but I am trying
Reply With Quote
  #389  
Old 03-26-2003, 07:12 PM
iceman11111 iceman11111 is offline
 
Join Date: Feb 2003
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I am getting!

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.
Reply With Quote
  #390  
Old 05-07-2003, 01:08 AM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i installed this and it works perfectly fine. my only problem is that i set admins to 6 start (custom color) and mods to 5 stars (red) and it either shows 2 yellow stars or none at all.

my regular posters get the correct amount of stars based on posts but admins / mods only get 2 yellow stars
Reply With Quote
  #391  
Old 05-07-2003, 01:46 AM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

btw, i temporarily changed the amount of stars admins / mods get by editing my users table in my database until someone helps me
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:48 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.05706 seconds
  • Memory Usage 2,366KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete