PDA

View Full Version : [release] Hackless/imageless PM bar on forumhome


filburt1
11-02-2002, 10:00 PM
Author: filburt1
Description: Displays the classic "private message bar" on forumhome. Credit for a bit of the code (mostly the query and the round() code) goes to princeton and his enhanced PM bar hack at https://vborg.vbsupport.ru/showthread.php?s=&threadid=34761 .
Demo: None unless you register, naturally
Screenshot: http://www.vbulletintemplates.com/mods/attachment.php?s=&postid=14563

This adds one query to forumhome only when a registered user is logged in and has private messaging enabled.

filburt1
11-03-2002, 01:18 AM
Screenshot:

Tony G
11-03-2002, 03:43 AM
Nice mod, but it looks ugly on forumhome so I'm not going to use it.

imported_TMG1
11-03-2002, 03:54 AM
nice another winner

imported_Tweak
11-03-2002, 04:27 AM
Anyway to do this like a STAR SYSTEM.

filburt1
11-03-2002, 12:36 PM
Originally posted by Tony
Nice mod, but it looks ugly on forumhome so I'm not going to use it.

Ugly as in colors ugly or ugly as in should be in private.php instead?

With a little bit of work you can change the colors :)

imported_TMG1
11-03-2002, 02:08 PM
ya you can change the colors very easy.

Fiyah
11-05-2002, 04:14 AM
I'm real new at doing any modifications, so you may need to spoon feed me. I think I did it like your instructions said and the bar will not show up.

Tony G
11-05-2002, 05:51 AM
Originally posted by filburt1


Ugly as in colors ugly or ugly as in should be in private.php instead?

With a little bit of work you can change the colors :)

It's not the colors, just having a nice fat bar on forumhome isn't appealing to me.

alkatraz
11-05-2002, 06:31 AM
Great! Thanks!

I modified mine a bit so that it's more compact... I removed the <smallfont> tags and replaced it with <font face=terminal size=1>&nbsp;</font> (There's 3 of them, one in each bar table.

I also removed one of the <br>'s in forumhome_pmloggedin

Fiyah
11-05-2002, 01:17 PM
Originally posted by Fiyah
I'm real new at doing any modifications, so you may need to spoon feed me. I think I did it like your instructions said and the bar will not show up.

If the number of saved pm's were over the limit, would that effect the box not showing up?

I was checking it w/ my log in and all admins can go over the max that is set.

Fiyah
11-05-2002, 01:35 PM
Nope, that didn't work either.

I pasted the info in my phpincluded template exactly like it is above in the txt file.

filburt1
11-05-2002, 02:53 PM
Originally posted by Fiyah


If the number of saved pm's were over the limit, would that effect the box not showing up?

I was checking it w/ my log in and all admins can go over the max that is set.

You can use if ($bbuserinfo[usergroupid] != 6) to have it work for only non-admins.

filburt1
11-05-2002, 02:54 PM
Originally posted by Fiyah
Nope, that didn't work either.

I pasted the info in my phpincluded template exactly like it is above in the txt file.

Just follow the instructions, they're pretty specific.

Did you enter stuff in phpinclude and forumhome_pmloggedin?

Fiyah
11-05-2002, 02:59 PM
Yes and I just got this from one of my posters wondering what it meant.

Parse error: parse error in /home/.sites/28/site1/web/vbulletin/global.php(302) : eval()'d code on line 13

Warning: Cannot add header information - headers already sent by (output started at /home/.sites/28/site1/web/vbulletin/global.php(302) : eval()'d code:13) in /home/.sites/28/site1/web/vbulletin/showthread.php on line 116

filburt1
11-05-2002, 03:34 PM
What's in your phpinclude template right now?

Fiyah
11-05-2002, 09:21 PM
Originally posted by filburt1
What's in your phpinclude template right now?

// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();

filburt1
11-05-2002, 09:25 PM
Well you have to add the stuff to phpinclude as per the instructions ...

Fiyah
11-05-2002, 09:29 PM
I did have it there, but I deleted it back out when people told me they were getting that error message.

I had it in there like this....

deleted

Lostuk
11-08-2002, 10:53 PM
How would i make the bar slimmer like???

Thanx for the work grerat mod

alkatraz
11-08-2002, 11:38 PM
Originally posted by Lost
How would i make the bar slimmer like???

Thanx for the work grerat mod

Check my post on the first page for a screenshot and instructions on how I made it a bit slimmer.

Lostuk
11-09-2002, 08:15 AM
Done that and stil it will not shrink the bar,the text has gone nice and small .

Yes i removed the <brs> and yes i replaced the <smallfont>

In 3 places as you said

filburt1
11-09-2002, 01:28 PM
You can get rid of all the text inside the table cells, then specify your own height.

LiL pImPsTeR
11-11-2002, 08:55 AM
yah fil, i get that weird *** error in my header now too, i did exactlly wut u said, but now at the top of my forum is tells me that i have this...

<php>Warning: Division by zero in c:\program files\easyphp\www\private\global.php(309) : eval()'d code on line 23

Warning: Division by zero in c:\program files\easyphp\www\private\global.php(309) : eval()'d code on line 57</php>

can u tell me wuts wrong?

scorpion2003
11-11-2002, 10:31 AM
that's a nice one!

filburt1
11-11-2002, 11:21 AM
Maybe you don't have a PM quota in which case the bar would be kinda pointless...

CobraR
11-12-2002, 05:11 AM
im having a problem also. installed it on both templates and it has no bar. Just shows "You have 0 new message(s) since your last visit.
(You have 0 unread messages and 0 total messages in all your folders.) You are using % of your allowed storage space of 70 messages"

what did i do wrong?

lebanon2001
11-13-2002, 07:10 PM
THANK YOU

filburt1
11-13-2002, 07:13 PM
Originally posted by highrider
what did i do wrong?

Something in the phpinclude template is wrong.

pattox
03-06-2003, 07:15 PM
can I also do this without the bar?

ah never mind I found it owt.