Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-25-2002, 12:28 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, find this in index.php (in your main forums directory) file:

Code:
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
Right before it, put this:

Code:
$respected = $DB_site->query_first("SELECT userid,username FROM user WHERE usergroupid = '8' ORDER BY joindate DESC LIMIT 1");
There, now you have these variables available to you in the forumhome template: $respected[userid] and $respected[username].

Reply With Quote
  #12  
Old 01-25-2002, 01:37 PM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack! I had to modify it to suit my needs, of course, but it works great!
Reply With Quote
  #13  
Old 01-25-2002, 02:16 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you like it. leased:
Reply With Quote
  #14  
Old 01-28-2002, 08:10 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks Commish, I finally got this hack installed after getting some other things working. One thing I noticed is that it changed the name, but the # of registered members is still the number of registered users INCLUDING the person that hasn't clicked their verify link yet.

Is there a way to have the registered number match who has and hasn't clicked their verify link?
Reply With Quote
  #15  
Old 01-28-2002, 08:15 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. Around line 51, you'll see this line of code:

Code:
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
Chizzange it to this:

Code:
$numbersmembers=$DB_site->query_first("SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE usergroupid != '-3'");
Reply With Quote
  #16  
Old 01-28-2002, 08:27 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I don't know if it worked since I didn't have somebody register and I guess I wont really know until I see somebodies name in there and I check the number and their usergroup.

Thanks though commish you respond fast too.

Me likes that.

Maybe you can help me on my PM box problem too.

I moved it from the bottom to the top, but when I did that I lost the small left table where the little icon/lightbulb thingy goes and it's centered. If you don't know what I am talking about you can hit this page up and see: http://www.theforumz.com/forumz/index.php

Any help you could offer on this would be of great help as well.

Thanks for your help already too. :up:
Reply With Quote
  #17  
Old 01-28-2002, 08:51 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what's wrong -- you've mucked up your code pretty bad though, for some reason. Check this out:

Code:
<tr id="cat">
	<td bgcolor="000000" colspan="5"><a href="private.php?s=" title="Click Here to Open Your Private Messages Inbox"><font face="verdana, arial, helvetica" size="2"  color="FFFFFF"><b>Private Messages</font></b></a></td>
</tr>
<tr>
	<td bgcolor="383838" align="center" valign="top"><img src="images/off.gif" alt=""></td>
	<td bgcolor="333232"  colspan="4"><font face="verdana,arial,helvetica" size="1" >
	<b>TWTCommish</b> - You have 0 new message(s) since your last visit.<br>
	(You have 0 unread messages and 0 total messages in all your folders.)</font></td>
</tr>
</tr>
I don't think there should be two closing table row tags at the end there...no without a closing table data or closing table tag, or something. Anyway, I don't know if it'll work, but here's my advice: stick the "#" character before those bgcolor attributes (before the "383838" part), and change align="center" in the first cell to align="left". See if that works.
Reply With Quote
  #18  
Old 01-28-2002, 09:03 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is all I did was moved the $pminfo up in the template that's it. And I don't think I ever messed up pmloggedinusers so that should be messed up entier.

I tried changing that to left and all it does is move the blue square over to the left, but the text stays centered.

I think it was using that table seperation from the forumbits or something.
Reply With Quote
  #19  
Old 01-28-2002, 09:07 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try changing this...

Code:
<tr>
	<td bgcolor="383838" align="center" valign="top"><img src="images/off.gif" alt=""></td>
	<td bgcolor="333232"  colspan="4"><font face="verdana,arial,helvetica" size="1" >
	<b>TWTCommish</b> - You have 0 new message(s) since your last visit.<br>
	(You have 0 unread messages and 0 total messages in all your folders.)</font></td>
</tr>
...to this...

Code:
<tr>
	<td bgcolor="#383838" width="10%" align="left" valign="top"><img src="images/off.gif" alt=""></td>
	<td bgcolor="#333232"  width="90%" colspan="4"><font face="verdana,arial,helvetica" size="1" >
	<b>TWTCommish</b> - You have 0 new message(s) since your last visit.<br>
	(You have 0 unread messages and 0 total messages in all your folders.)</font></td>
</tr>
The width attribute might do the trick...but yes, moving it to the top must've done it, because mine is aligned just fine, and I've used no width attribute.
Reply With Quote
  #20  
Old 01-28-2002, 09:33 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are looking at the html source which does look fawkered.

here's part of the source from the pmloggedin template:

PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}" align="left" valign="top"><img src="{imagesfolder}/$lightbulb.gif" alt=""></td>
    <
td bgcolor="{firstaltcolor}"  colspan="4"><smallfont>
    <
b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(ssince your last visit.<br>
    (
You have $unreadpm[messagesunread messages and $allpm[messagestotal messages in all your folders.)</smallfont></td
There is no width in that source, which was pulled directly from the pmlogged template.
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 02:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04297 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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