vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Ultimate Navbar for vB3.7 (https://vborg.vbsupport.ru/showthread.php?t=172507)

Boofo 03-10-2008 12:04 PM

How much time you got? It can hold as many as you want. 60 and hour and times that by 24 hours and you get 1440, but I don't think I'd stretch it that far. Too much change can be as bad as not enough change. ;)

TTG 03-10-2008 12:41 PM

Quote:

Originally Posted by Boofo (Post 1461165)
Then you messed up the template edit as there is no possible way this touches anything esle but that one line. Check your edits.

I'm not as stupid as I look .. edits were quite simple. Mmmm, reminds me of my ex :D

Quote:

Originally Posted by ssvp (Post 1461180)
Just edit Unread Posts and Reputation (2) in your plugin manager.

Code:


$vbphrase['welcome_x_link_y'] .= '</strong><br />'.$unread.'<strong>';

with this
Code:


$vbphrase['ung_greeting'] .= '</strong><br />'.$unread.'<strong>';


Thanks ssvp .. that solved the problem :up:

choccyclaire 03-10-2008 12:59 PM

LOL, this looks so much fun. :D I'll be installing soon, thanks!

youradhere4222 03-10-2008 07:11 PM

Quote:

Originally Posted by Boofo (Post 1461167)
Yes, that will work, but you will have it saying good morning from 10 PM tp 12 Noon. Change the 22:00 to 24:00 and that should correct it. ;)

I would have just commented out what you didn't want in case you wanted to change or re-add it later on.

From what I understand, it's like military time. Correct me if I'm wrong.

Anyways, I made it this:

PHP Code:

if ($navbar_localtime '24:00') {
$vbphrase[ung_line] = $vbphrase[ung_morning];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '12:00') {
$vbphrase[ung_line] = $vbphrase[ung_afternoon];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '18:00') {
$vbphrase[ung_line] = $vbphrase[ung_evening];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];


I did those changes, uploaded/overwrote my previous file, and like the previous time, I now have no name in the navbar after doing the template edits. It simply shows this:

Code:

                         
                                                                                             
                        You last visited: Yesterday at 11:46 PM                                                          Private Messages: Unread 0, Total 143.


Brandon Sheley 03-10-2008 07:46 PM

Quote:

Originally Posted by ssvp (Post 1461181)
Actually if your using PaulM's script.. It injects on the [welcome_x_link_y] and you'll need to change to [ung_greeting] in the plugin manager for his Unread post mod..

thanks for this :)
I was wondering what happen to those..lol :erm:

ivanstanchev 03-10-2008 08:22 PM

How can i translate this phrases,i use different language on my forums ?

FLMom 03-10-2008 09:13 PM

Hey Bob, will this work for 3.6.7? :)

Boofo 03-10-2008 09:43 PM

Yes, Cori. ;)

Boofo 03-10-2008 10:06 PM

Quote:

Originally Posted by youradhere4222 (Post 1461710)
From what I understand, it's like military time. Correct me if I'm wrong.

Anyways, I made it this:

PHP Code:

if ($navbar_localtime '24:00') {
$vbphrase[ung_line] = $vbphrase[ung_morning];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '12:00') {
$vbphrase[ung_line] = $vbphrase[ung_afternoon];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '18:00') {
$vbphrase[ung_line] = $vbphrase[ung_evening];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];


I did those changes, uploaded/overwrote my previous file, and like the previous time, I now have no name in the navbar after doing the template edits. It simply shows this:

Code:


 
            You last visited: Yesterday at 11:46 PM                              Private Messages: Unread 0, Total 143.


Use this as you had the times wrong.

Quote:

if ($navbar_localtime < '12:00') {
$vbphrase[ung_line] = $vbphrase[ung_morning];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif ($navbar_localtime < '18:00') {
$vbphrase[ung_line] = $vbphrase[ung_afternoon];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif ($navbar_localtime < '24:00') {
$vbphrase[ung_line] = $vbphrase[ung_evening];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
}
Are you running Paul M's Unread Posts and Reputation hack? Is so, the first post has the fix for it at the bottom.

FLMom 03-10-2008 10:08 PM

Quote:

Originally Posted by Boofo (Post 1461818)
Yes, Cori. ;)


YAY! Thanks Bob! I think my members will really like this!

Boofo 03-10-2008 10:12 PM

Let me know if you need a special version for your site. ;)

youradhere4222 03-10-2008 10:36 PM

Quote:

Originally Posted by Boofo (Post 1461831)
Use this as you had the times wrong.



Are you running Paul M's Unread Posts and Reputation hack? Is so, the first post has the fix for it at the bottom.

I still can't see my name or any of the text on that line.

Let me attach the file now, there must be a little mistake in there, because I don't have Paul M's hack installed and I've done all of the template modifications.

Boofo 03-10-2008 10:40 PM

Quote:

Originally Posted by youradhere4222 (Post 1461860)
I still can't see my name or any of the text on that line.

Let me attach the file now, there must be a little mistake in there, because I don't have Paul M's hack installed and I've done all of the template modifications.

You need to add back the ung_period phrase for this hack. The link in the navbar can't find it.

youradhere4222 03-10-2008 10:42 PM

Yes, that's what I meant.

Boofo 03-10-2008 10:44 PM

Re-read my post above.

youradhere4222 03-10-2008 10:47 PM

I'm sorry, I don't know where to put it.

Could you take the .xml I attached, add it in then re-upload? I have no idea if it's a specific phrase, if there are a number of them, and where they should be. :confused:

FLMom 03-10-2008 11:07 PM

OK I have looked and looked, but can't find that code in the navbar. Could it be because I have a custom skin?

This is the closest code I found:


<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<if condition="$bbuserinfo['pmunread']">

Boofo 03-10-2008 11:34 PM

This is the part you want to replace:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

Boofo 03-10-2008 11:37 PM

Quote:

Originally Posted by youradhere4222 (Post 1461874)
I'm sorry, I don't know where to put it.

Could you take the .xml I attached, add it in then re-upload? I have no idea if it's a specific phrase, if there are a number of them, and where they should be. :confused:

Try this:

FLMom 03-10-2008 11:41 PM

Yes! It worked :D Thanks Bob!!!

Boofo 03-10-2008 11:53 PM

You had doubts? ;)

FLMom 03-11-2008 12:13 AM

Nope, no doubts here lol Now I am just trying to get Paul's Hack(posts and reps) back up and working. I swear my coding is all messed up because I can never find the correct code to edit lol

Boofo 03-11-2008 12:38 AM

The link to the fix for Paul's hack with this in in the first post at the bottom. ;)

Ohiosweetheart 03-11-2008 02:51 AM

Quote:

Originally Posted by Boofo (Post 1461436)
How much time you got? It can hold as many as you want. 60 and hour and times that by 24 hours and you get 1440, but I don't think I'd stretch it that far. Too much change can be as bad as not enough change. ;)

Kewl. But you didn't tell me where I can add them at?

FLMom 03-11-2008 02:51 AM

Thanks! I saw it, but I am afraid I don't even have that code to fix lol It's late now so I'll see if I can work on it tomorrow some :D

Boofo 03-11-2008 03:05 AM

Quote:

Originally Posted by Ohiosweetheart (Post 1461983)
Kewl. But you didn't tell me where I can add them at?

You would have to add them in the hook code in the xml file. ;)

Quote:

Originally Posted by FLMom (Post 1461984)
Thanks! I saw it, but I am afraid I don't even have that code to fix lol It's late now so I'll see if I can work on it tomorrow some :D

If you are still having problems with getting this to work with Paul M's hack, let me know and I will help you get it figured out. ;)

Ohiosweetheart 03-11-2008 03:08 AM

Quote:

Originally Posted by Boofo (Post 1461989)
You would have to add them in the hook code in the xml file. ;)

Kewl, thanks darlin! *is off to do some damage*

FLMom 03-11-2008 03:56 AM

Quote:

Originally Posted by Boofo (Post 1461989)
If you are still having problems with getting this to work with Paul M's hack, let me know and I will help you get it figured out. ;)

Thanks, I'll let you know :D

binevi 03-11-2008 04:21 PM

7:00 am - 11:59 am - Good Morning, Pam.
12:00 pm - 12:59 pm - Enjoying your lunch break, Pam?

How can we remove that question mark after the username ?

FLMom 03-11-2008 04:27 PM

Just curious as to why you would want to? If you remove it, then you wouldn't be using correct Grammar ;) After all, it is asking a question.

binevi 03-11-2008 04:58 PM

i've just translate these words to turkish and for example if i change one word to turkish, question mark doesnt make sense any more ;) that's why im asking ;)

FLMom 03-11-2008 05:02 PM

ah ok...that makes total sense :D

Boofo 03-11-2008 06:47 PM

The ung_question phrase is the phrase that has the question mark. You could make that an empty phrase, I suppose. But then it will affect the others.

binevi 03-11-2008 09:56 PM

Quote:

Originally Posted by Boofo (Post 1462418)
The ung_question phrase is the phrase that has the question mark. You could make that an empty phrase, I suppose. But then it will affect the others.


Ok thanx a lot. Forget others never minds :D

Boofo 03-11-2008 10:40 PM

Quote:

Originally Posted by binevi (Post 1462542)
Ok thanx a lot. Forget others never minds :D

Don't forget the install button as I am working on an update and you won't get notified.

Ohiosweetheart 03-12-2008 05:10 AM

and we absolutely DO want to be notified :D

Boofo 03-12-2008 05:34 AM

I got it to do the template edit automatically now and adding a row of links at the top of the navbar. I will release this version after some more testing, but so far so good. ;)

ssvp 03-12-2008 10:56 AM

Quote:

Originally Posted by TTG (Post 1461456)
I'm not as stupid as I look .. edits were quite simple. Mmmm, reminds me of my ex :D



Thanks ssvp .. that solved the problem :up:

Happy to help..:)

Bounce 03-13-2008 12:12 AM

*Installed*:D

AWMJen 03-13-2008 12:57 PM

Awesome hack!


All times are GMT. The time now is 01:34 PM.

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.01425 seconds
  • Memory Usage 1,836KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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