vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   --Please read-- Stars Hack for 2.2.6 (https://vborg.vbsupport.ru/showthread.php?t=42700)

N9ne 08-24-2002 05:51 PM

--Please read-- Stars Hack for 2.2.6
 
I know there's a stars hack out there but it's for 2.2.1 and it's full of bugs on 2.2.6 so this is my request which will probably help out so many people out there :)

Just like the stars hack for 2.2.1 but for 2.2.6 with no bugs :)

Please no one tell me to go post in the stars hack thread because many people have posted bugs etc but many don't ever get fixed and it's not getting updated so please :(

Thanks a MAJOR bunch to whoever does this :)

g-force2k2 08-24-2002 05:57 PM

Tha Rock what kind of bugs are you experiencing? because i believe that i did a clean install of that not too long ago... i would gladly make one compatible if you can give me a list of what need to be fixed ;) regards

g-force2k2

N9ne 08-24-2002 06:30 PM

Well i'm not going to install it because i've read about bugs and such, so I don't want to take the risk...I was just thinking it's about time for it to be recoded? Surely it's not that much code?

N9ne 08-24-2002 06:39 PM

Also, my set up is a bit different, I don't have normal stars, instead I have bars which contain different colours, etc...

So I only have one image for each ranking not a set number of stars

So what my request really is is a hack that will allow me to assign a graphic to each user post ranking, AND to Moderators, SuperMods, Admins and userid=8 [custom group I made]

So really I am asking for pretty much a new hack...?

And be able to change it all through the CP of course :)

So g-force, if this is possible and you create it, thanks very much :)

g-force2k2 08-24-2002 06:44 PM

are we talking about just something on the postibit? or would you prefer to have it show in other locations as well?

g-force2k2

N9ne 08-24-2002 07:52 PM

Just the postbit :) under their custom title or title...

g-force2k2 08-25-2002 05:23 AM

Tha Rock then you can just user the admin/functions.php to make your own type of hack...

find:

PHP Code:

// do ip addresses 

under it add:

PHP Code:

if($bbuserinfo[posts] >= 0) {
  
$post[specialimg] = "<img src=\"[url here].[extension here]\" border=\"0\">";
} elseif(
$bbuserinfo[posts] >= 50) {
  
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";


and you can keep that going and user whichever posts that you want and different images etc... i hope you get my point...

then after if you want to user custom images for moderators... smods and administrators...

under my other coding add:

PHP Code:

if($bbuserinfo[usergroupid] == 6) { // Image for Administrators
  
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";
} elseif(
$bbuserinfo[usergroupid] == 7) { // Image for Smods
  
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";
} elseif(
$bbuserinfo[usergroupid] == 5) { // Image for Moderators
  
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";


then in the postbit template where ever you want the image to show just place:

PHP Code:

$post[specialimg

hope that helps you on your request :)

g-force2k2

N9ne 08-25-2002 09:50 AM

It's useful, however we'd find it easier if it was an option in the AdminCP to change :)

N9ne 08-25-2002 09:54 PM

bee you emm pee spells B.U.M.P ;)

g-force2k2 08-25-2002 09:55 PM

okay but do you mind if it runs extra queries then?

regards...

g-force2k2


All times are GMT. The time now is 03:13 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.01114 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_php_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
  • (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