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 02-12-2002 09:48 AM

PHP Code:

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

**
Find

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

**
After this insert

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

It seems this part of the instruction is not working on your board. :(

Can you please post your postbit-template?

sezmar 02-12-2002 10:06 AM

ok, this is my postbit template:

PHP Code:

<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr>
    <
td bgcolor="$post[backcolor]width="175" valign="top" nowrap>
    <
a name="post$post[postid]"></a>
    
$post[firstnewinsert]
    <
normalfont><b>$post[username]</b></normalfont><br>
    <
smallfont>$post[usertitle]</smallfont><br>$post[stars]<br>
    
$post[avatar]<p>
    <
smallfont>Registered$post[joindate]<br>
    
Location$post[field2]<br>
    
Posts$post[posts]<br>
<
a href="moderator.php?s=$session[sessionhash]&action=points&userid=$userinfo[userid]target=_blank>Status:</a$post[field5]<br></smallfont></td>
    
    <
td bgcolor="$post[backcolor]width="100%" valign="top">
    <
smallfont>$post[icon] <b>$post[title]</b></smallfont>
$ftpinfo
    
<p><normalfont>$post[message]</normalfont></p>
    
$post[attachment]
    <
p>$post[signature]</p>
    <
p>$post[editedby]</p>
    <
p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
    </
td>
</
tr>
<
tr>
    <
td bgcolor="$post[backcolor]width="175" height="16" nowrap><smallfont>$post[foldericon]
    
$post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>
    
    <
td bgcolor="$post[backcolor]width="100%" valign="middle" height="16">
        <
table width="100%" border="0" cellpadding="0" cellspacing="0">
        <
tr valign="bottom">
            <
td><smallfont>$onlinestatus
            $post
[profile$post[pmlink$post[useremail$post[homepage$post[search$post[buddy]
            <!-- $ 
post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
            </
smallfont></td>
            <
td align="right" nowrap><smallfont>
            <
a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
            <
a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
            </
smallfont></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
td></tr></table>

<!-- 
spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table


Wolf42 02-12-2002 10:18 AM

Ok, the template is correct. Is your board online? On "your" homepage is running a UBB and not a vB.

sezmar 02-12-2002 01:19 PM

yep. its online.

the ubb is an old one.

could it be that there is something missing in the instructions?
cause all other hacks are working

sezmar 02-12-2002 01:22 PM

hey i just noticed that the online /offline function stopped working too

Rapclick 02-12-2002 11:39 PM

hmmm i have now upgraded to 2.2.2 and im just wondering how different 2.2.1 and 2.2.2 actually are enough were i could not succesfully install this hack...? i know there is no support for any other versions i am just wondering........ :D

Radon3k 02-13-2002 12:44 AM

Doesn't make sense....Where do you find "Stars" in the admin CP? I ran the script, and it just had me log in, then said "go to ur admin CP and follow stars.txt from there".....Where in the admin CP is "Stars" that you modify?

sezmar 02-13-2002 03:40 AM

Quote:

Originally posted by Radon3k
Doesn't make sense....Where do you find "Stars" in the admin CP? I ran the script, and it just had me log in, then said "go to ur admin CP and follow stars.txt from there".....Where in the admin CP is "Stars" that you modify?
after running that script, you must follow the instruction
in the text file that was in the zip you downloaded.

after you've done that, the parts that can be modified will appear in your cp

Wolf42 02-13-2002 09:23 AM

Quote:

Originally posted by sezmar
could it be that there is something missing in the instructions?
cause all other hacks are working

No, the instruction is complete.

I just made a new clean install of a vB 2.2.2 on my testserver.

Then build in the star-hack (english version, the most of you are running an english board).

And it is working.

Friends, I don't know what you are doing. But it seems you are doing something wrong. :confused:

@Redon3k
This stars.txt is starhack221_english.txt or starhack221_deutsch.txt. This is the instruction (like sezmar said). The MYSQL.PHP is only creating and altering tabels.

@sezmar
What is your adminpanel showing when clicking on Stars -> Modify? In the attachement is mine.

sezmar 02-13-2002 04:25 PM

mine shows the same thing!
look at the attachment


All times are GMT. The time now is 08: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.01356 seconds
  • Memory Usage 1,793KB
  • 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
  • (2)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
  • (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