View Full Version : problem with the store hack version 2.0, username field is blank
well i have installed it and i got a problem:
the glow user name doesnt work for me,and i dont know why. i have tried everything,edited 3 times the functions.php,showtread.php,checked a lot of times the database deleted the tables and readded them but it never works doesnt metter what!,just when iam replacing in the pos bit the $post[username] with $storeextraglow it doesnt work and the username field is blank until iam changing it back to $post[username] and i have tried almost everything please some help me :dead:
thanks from advance :)
please someone i need help i really need this hack installed well :ninja:
Lesane
03-02-2003, 01:22 PM
Ok, we are gonna fix this. ;)
A few steps to watch:
Open functions.php and find:
eval("\$post[buddy] = \"".gettemplate("postbit_buddy")."\";");
Add after it:
if ($post[glow]!="" AND $post[italic]=="1") {
eval("\$storeextraglow = \"".gettemplate('store_extra_glow_italic')."\";");
} elseif ($post[glow]!="") {
eval("\$storeextraglow = \"".gettemplate('store_extra_glow')."\";");
} elseif ($post[italic]=="1") {
$storeextraglow="<i>$post[username]</i>";
} else {
$storeextraglow="$post[username]";
}
Save and close functions.php
Then be sure that you have added the following templates:
Name: store_extra_glow_italic
Content: <font style="filter:glow(color=$post[glow], strength=3);height=1px"><i>$post[username]</i></font>
Name: store_extra_glow
Content: <font style="filter:glow(color=$post[glow], strength=3);height=1px">$post[username]</font>
And finally open the template: postbit
Find: $post[username]
Change it to: $storeextraglow
Good luck.
thanks a lot :) ill gonna try this :)
still not working :\ and i have done that a lot of times over and over again its not the problem its onther thing i dont know what can you please try to solve it? thanks :D
Yeah I had this same issue. Registered users names showed up just fine, but guests names didn't show up at all. Not a huge problem. Oh well. ;)
but my problem isn't with guests! i even not allowing guests on my board just has this with every user! please help :\ my friend has been succseed install it and it works for him with old registered members too
does it matter that i have vbb version 2.2.9?
Lesane
03-03-2003, 11:39 PM
No, wich os do you use?
the host os or my pc os?
mine is
Windows Xp
the host:
Windows Nt
but i dont think that its matter
Lesane
03-04-2003, 12:11 PM
Oops, i meant wich browser you are using? :sleep:
Lesane
03-04-2003, 02:47 PM
There must be something overlooked, is it possible to give me permission to watch for it?
i dont know its my private board lol but u can wonder please what is the problem? i mean you can ask me here what are the whole things i need to have for make it work and i will tell you if i got that ok? (database,templaes,editing etc..)
Lesane
03-05-2003, 12:50 PM
Ok, no problem.
You said that when you replace $post[username] with $storeextraglow then it will show nothing in the postbit, username is a blank field. That means that there is something wrong in the file admin/functions.php or something wrong in the database.
Did you have bought the glow? If so, then execute the following query(i suppose you are the admin of the forum and have id 1):
SELECT glow FROM user WHERE userid='1'
What's the result of above query?
Then, execute this query and give me the result as well:
SELECT userid,username,glow FROM user WHERE glow!=''
Lesane
03-05-2003, 04:32 PM
What's the result of the second query? (You need to execute that query in phpmyadmin)
Cyricx
03-05-2003, 04:34 PM
Finally got it workin on my site.
I end up having $storeextraglow listed twice in the postbit.
Try going back into your post bit and look for a second
$post[username]
And then change that to
$storeextraglow
Still a newb to this stuff but it is what worked for me hehe.
Thanks Lesane for pointing me to this thread! :)
thanks a lot iam gonna try it :)
the result of the second query is my nick name and the color number of my glow but still it doesnt work even after what cyricx told me to do mybe its because iam using custom posbit,mybe beacuse its customizing the color,font and width of the username? here is the code with the $post[username]
<td width="100%" bgcolor="#13486D">
<smallfont><b><font size="1" face="Tahoma"><font color="#FFFFFF"><center><normalfont><b>
$post[username]</b></normalfont></font><font color="#FFFFFF"> </font>
</font></b> </smallfont></td>
</tr>
when iam changing it too
<td width="100%" bgcolor="#13486D">
<smallfont><b><font size="1" face="Tahoma"><font color="#FFFFFF"><center><normalfont><b>
$storeextraglow</b></normalfont></font><font color="#FFFFFF"> </font>
</font></b> </smallfont></td>
</tr>
the username field is blank :\
Lesane
03-05-2003, 08:39 PM
Everything is good, you did the good replacement in the postbit and the glow wich you have bought is listed in the database. So the only thing that can be the problem is the file 'admin/functions.php'.
Are you be able to send me that file by pm so i can give a look on it?
wolfe
03-05-2003, 09:16 PM
EDIT
Sorted now :D works great 10 * hack :D
sure Lesane i will send it to you :D
Lesane
03-06-2003, 09:52 AM
Nothing wrong with that file.
Can you give me the exact result of this query:
SELECT * FROM template WHERE title like 'store_extra%'
Lesane
03-06-2003, 09:53 AM
And could u also post the content of the template: store_extra_glow ?
this is the result of the qeury:
templateid templatesetid title template
715 -1 store_extra_glow <font style="filter:glow(color=$post[glow], streng...
716 -1 store_extra_glow_italic <font style="filter:glow(color=$post[glow], streng...
and the content of the template: store_extra_glow is:
<font style="filter:glow(color=$post[glow], strength=3);height=1px">$post[username]</font>
mybe beacuse there is a , with a space after it?:
$post[glow], strength=3
Lesane
03-07-2003, 01:54 PM
Everything is ok. :confused:
Do you have more styles on your forum?
Do you have more postbit templates?
nop non of them :\ i really dont know what's the problem mybe beacuse my host is on nt?
Lesane
03-08-2003, 10:17 AM
Somehow it don't parse $storeextraglow in your postbit, while the code is there in admin/functions.php.
Try to delete the glow through the store, also delete the italic so you don't have nothing anymore on your username. Look then again in the posbit if it shows you the username. Does it show you the username?
well,its not showing the username to the whole of my users not only me even to users who have normal user without glow,italic
or mybe its beacuse i got htaccess on my board and on my /admin folder? so the parse doesnt work beacuse the htaccess of the admin folder?
Lesane
03-08-2003, 12:22 PM
No, that would be no problem. I have protected my admincp with .htaccess as well.
Ok, open the file admin/functions.php and find:
if ($post[glow]!="" AND $post[italic]=="1") {
eval("\$storeextraglow = \"".gettemplate('store_extra_glow_italic')."\";");
} elseif ($post[glow]!="") {
eval("\$storeextraglow = \"".gettemplate('store_extra_glow')."\";");
} elseif ($post[italic]=="1") {
$storeextraglow="<i>$post[username]</i>";
} else {
$storeextraglow="$post[username]";
}
And change it to:
$storeextraglow="This is a test!";
Upload the file, don't forget to add '$storeextraglow' in your postbit. Then, check your postbit if it displays 'This is a test'.
Rapid Gaming
03-09-2003, 11:02 AM
I had this error. Someone sent me there functions.php and it worked great after. Maybe Lesane should send u the functions.php?
ammm never mind thanks a lot for your help Lesane :) but i did something else i just added glow to the whole users and they can choose from the user cp the color of the font&glow thanks again
Rapid Gaming
03-09-2003, 12:24 PM
What hack did you use?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.