Some vB questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tanapangarap
    Member
    • Dec 2007
    • 36
    • 3.7.x

    Some vB questions

    I've also asked this in vBulletin.org a few days ago. Still hoping for feedback. In the mean time, I thought I'd post this here as well, since someone suggested it at The Admin Zone.

    Here are my questions:

    1. I want to make "Calender" a "quick link" rather than one of the main menu items. How would I go about doing this?

    2. How does one change the default vB welcome message on the index? Here's the message I want to replace the default one with:

    <b>Welcome to The Infinity Program Forum</b>.<br><br>For reasons to register, screen shots of the other templates available for use, and information about the forum, please read "<b><a href="http://www.theinfinityprogram.com/showthread.php?t=2260">About The Forum</a></b>." Join TIP to have access to all the many features and abilities afforded to members. Don't be satisfied with lurking when you can interact with the people of this community--<b><a href="http://www.theinfinityprogram.com/register.php">register now</a></b>!
    Where would I insert this, and what format changes would I have to make to prevent an error?

    3. I tried searching vBulletin.org for a MOD, but the type of "announcement" MOD I keep finding is for a message on top of the topic list index, when what I actually want is to make an existing topic an announcement. I suppose I can use the announcement feature in vBulletin, but it didn't seem to be made for the announcing of rules, but rather for special events, as I judge from the requirement of an end date. I can just make the end date very far from now, though. Even so, it would be nice to be able to make any topic an announcement, just like topics can be made stickies, as I have many topics in some of my forum that I feel like making a sticky, but there are topics I feel are even more important than stickies, and should therefore be made announcements. I'll be sure to make a request at vBulletin.org.

    4. I noticed that, beside the user name of the person who submitted an announcement on vBulletin, his custom rank is shown in parenthesis. How would I go about getting rid of the custom rank and the parenthesis, leaving only the user name?

    5. On the agreement page, I want to add "Thank you for your interest in participating in our community." one line directly above "In order to proceed, you must agree with the following rules:", and I want to edit "I have read, and agree to abide by" near the bottom to include a comma after "abide by". How would I go about doing this?
    Last edited by Tanapangarap; Tue 25 Dec '07, 5:12pm.
    http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

    Read my latest article, "The Elected President: A Case Study."
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    1) The second post in this thread shows how to add a link to the quick links menu. The original calendar link can simply be removed from the same template.

    2) Go to your:

    Admin CP -> Languages & Phrases -> Search in Phrases

    Search for "first_visit_message" in the Phrase Variable Name Only. Edit the matching phrase.

    3) Stickies are similar to announcements. Many people use them in place of announcements because they are easier to manage.

    4) Edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit_announcement

    Remove the red code:

    Code:
    <tr>
    	<td class="alt1"><img src="$stylevar[imgdir_statusicon]/announcement_$announcement[statusicon].gif" border="0" alt="$vbphrase[announcement]" /></td>
    	<td class="alt2" colspan="$announcecolspan">
    		<div>
    			<span class="smallfont" style="float:$stylevar[right]">$vbphrase[views]: <strong>$announcement[views]</strong> <a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]$announcementidlink"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[view_announcement]" border="0" /></a></span>
    			<strong>$vbphrase[announcement]</strong>: <a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]$announcementidlink">$announcement[title]</a>
    		</div>
    		<div>
    			<span style="float:$stylevar[right]"><if condition="$show['forumtitle']"><a href="forumdisplay.php?$session[sessionurl]f=$announcement[forumid]">$announcement[forumtitle]</a> </if><span class="smallfont">$announcement[postdate]</span></span>
    			<span class="smallfont">
    				<a href="member.php?$session[sessionurl]u=$announcement[userid]">$announcement[username]</a>
    				[color=red]<if condition="$announcement['usertitle'] != ''">($announcement[usertitle])</if>[/color]
    			</span>
    		</div>
    	</td>
    </tr>

    Comment

    • Tanapangarap
      Member
      • Dec 2007
      • 36
      • 3.7.x

      #3
      Thank you. I've managed to implement the changes.

      I have four further questions. I anticipate no more after that.

      1. On the View Forum Leaders page, I want to add a message on top of the administrator list. I want the message to be contained inside a box that like the welcome message displayed to guests on the index. I want it to say:
      Listed below are all the members of forum staff. If you want more information about them, you can check their profiles, or you can read the "<strong><a href="http://www.theinfinityprogram.com/showthread.php?t=1229">Staff List</a></strong>."
      How might I go about doing this?

      2. How do I remove View Forum Leaders from near the bottom of the forum? I want to remove it because I instead added it as a menu option near the top of the forum, and titled it "Staff List".

      3. The header for the guest welcome message says "Welcome to the The Infinity Program". As you can see, "the" is listed twice. "The" is part of my forum name, and it must be capitalized, so how would I go about removing the one that is shown uncapitalized?

      4. How would I go about implementing online/offline/invisible IMAGES in place of the "is [insert status here]" text?
      Last edited by Tanapangarap; Wed 26 Dec '07, 9:44am.
      http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

      Read my latest article, "The Elected President: A Case Study."

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        1) Edit this template:

        Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Groups Templates -> SHOWGROUPS

        Near the top, add the blue code:

        Code:
        $stylevar[htmldoctype]
        <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
        <head>
        $headinclude
        <title>$vboptions[bbtitle] - $vbphrase[show_groups]</title>
        </head>
        <body>
        $header
        $navbar
        
        [color=blue]<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
        	<td class="tcat" align="left">
        		MESSAGE TITLE
        	</td>
        </tr>
        <tr>
        	<td class="alt1" align="left">
        		MESSAGE HERE
        	</td>
        </tr>
        </table>
        <br />[/color]
        
        <if condition="$moderatorbits">
        <!-- moderators -->
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
        	<td class="tcat" colspan="4">$vbphrase[moderators]</td>
        </tr>
        <tr>
        2) Edit this template:

        Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> FORUMHOME

        Remove the red code:

        Code:
        	  </if>
        	</tr>
        </thead>
        $forumbits
        <tbody>
        	<tr>
        		<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
        			<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
        			[color=red]<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
        			<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>[/color]
        		</strong></div></td>
        	</tr>
        </tbody>
        </table>
        $forumhome_markread_script
        <!-- /main -->
        
        <br />
        <br />
        
        <!-- what's going on box -->
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
        3) Go to your:

        Admin CP -> Languages & Phrases -> Search in Phrases

        Search for "welcome to the". Edit the first matching phrase.

        4) The software already shows those images by default:

        images/statusicon/user_invisible.gif
        images/statusicon/user_offline.gif
        images/statusicon/user_online.gif

        Comment

        • Tanapangarap
          Member
          • Dec 2007
          • 36
          • 3.7.x

          #5
          Thank you; your instruction was most helpful again.

          However, I have some comments:

          Regarding #3, does it matter if I search "Phrase Text Only" or "Phrase Variable Name Only", or both?

          Regarding #4, yes, and I should have been more specific. For the template supported by vBulletin, including the default one packaged with the software, this would be the case, but the problem I'm having is with the ones I purchased, which, instead of an image, has text either saying "is online" or "is offline" beside the user name. But it occurred to me that it would be proper for me to consult the respective companies I got my templates from, since they know the modifications they made to the template, so I would have been wasting your time and being improper asking you the question instead of the company I got the templates from. For that, I'm sorry.

          Regards,

          Kevin
          http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

          Read my latest article, "The Elected President: A Case Study."

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            3) Use Phrase Text Only which is the default.

            4) It sounds like they have changed this template:

            Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit_onlinestatus

            Try reverting it.

            Comment

            • Tanapangarap
              Member
              • Dec 2007
              • 36
              • 3.7.x

              #7
              Regarding #3: Thank you; I have applied the change.

              Regarding #4: Correct. I have checked, and this is what I found:
              Code:
              <if condition="$onlinestatus==0">is <span class="smallfont">Offline</span></if>
              <if condition="$onlinestatus==1">is <span class="smallfont" style="color:#cdf16c;">Online</span></if>
              <if condition="$onlinestatus==2">is <span class="smallfont" style="color:green;">Invisible</span></if>
              I knew to look at the code for the default vBulletin template, which already has online/offline images instead of text, to see how I should change the above code, but I'm still confused how I should go about modifying, assuming I wouldn't merely copy-and-paste.

              Here would be the respective directories of the two templates (marked in red) to which I want to apply the change (assuming it would be of any use to know):

              /enlighten/statusicon

              /images/greenfox/statusicon

              (As to the latter directory having the template in "/images", well, that was the company's template installation instructions, and it was proper.)

              I have already posted in the support forums of the companies of the templates I purchased, but thought, in the mean time, I might ask you, too, in case I made get additional useful info, or in case it's similar info, but phrased in such a way as to further help my understanding.
              http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

              Read my latest article, "The Elected President: A Case Study."

              Comment

              • Jake Bunce
                Senior Member
                • Dec 2000
                • 46598
                • 3.6.x

                #8
                That template has been modified. Try reverting it. This is the default code:

                Code:
                <if condition="$onlinestatus==0"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/user_offline.gif" alt="<phrase 1="$user[username]">$vbphrase[x_is_offline]</phrase>" border="0" /></if>
                <if condition="$onlinestatus==1"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/user_online.gif" alt="<phrase 1="$user[username]">$vbphrase[x_is_online_now]</phrase>" border="0" /></if>
                <if condition="$onlinestatus==2"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/user_invisible.gif" alt="<phrase 1="$user[username]">$vbphrase[x_is_invisible]</phrase>" border="0" /></if>
                Note the $stylevar[imgdir_statusicon] variable in the image path. Each style has its own statusicon directory defined:

                Admin CP -> Styles & Templates -> Style Manager -> StyleVars (in the menu) -> Item Status Icon Folder

                Comment

                • Tanapangarap
                  Member
                  • Dec 2007
                  • 36
                  • 3.7.x

                  #9
                  If it's alright, I have one additional question for now. I already asked in the topic of the author of the modification in question, but have been without a response in a long while, so I thought I'd repeat it here. I posted telling the author that I like his modification and wish to implement it, but that I cannot because I do not understand step three of implementation, which is this:
                  Code:
                  STEP THREE
                  
                  ADD PHRASE
                  
                  type: global
                  varname: gender
                  Text: Gender
                  I asked for a walk-through, if someone might give me the privilege. Might I have the privilege here?

                  And if it might also be of use, here is the text for the modification in question for context:
                  Code:
                  **************************************************
                  ** ADD GENDER ICON TO POSTBIT    v1.04          **
                  ** By peterska2 08 June 2006                    **
                  ** For release at vBulletin.org peterska2.co.uk **
                  **        and vBhacks-germany.com only          **
                  **                                              **
                  **************************************************
                  
                  
                  STEP ONE
                  
                  Create the following new profile field. 
                  Type: Single-Selection Menu
                  Title: Gender
                  Description: Select your gender
                  Options: Male
                       Female
                  Set Default: None
                  
                  Allow user to input own value: No
                  
                  Display page: Edit Profile
                  
                  
                  ***********************************
                  
                  STEP TWO
                  
                  Note the field number (shown in the profile field manager), eg field5
                  
                  ***********************************
                  
                  STEP THREE
                  
                  ADD PHRASE
                  
                  type: global
                  varname: gender
                  Text: Gender
                  
                  ************************************
                  
                  
                  
                  STEP FOUR
                  
                  POSTBIT TEMPLATE EDIT
                  
                  -----------
                  
                  POSTBIT OR POSTBIT_LEGACY
                  -------
                  
                  FIND
                  
                                  <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                  
                  ADD BELOW
                  
                  <if condition="$post[fieldx]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
                  
                  CHANGE X TO THE FIELD NUMBER NOTED IN STEP 2
                  
                  
                  SAVE
                  
                  
                  ********************************
                  
                  STEP FIVE
                  
                  MEMBERS LIST TEMPLATE EDIT
                  
                  In Template memberlist_resultsbit
                  
                  FIND
                  
                  <if condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>
                  
                  AFTER ADD
                  
                  <if condition="$userinfo[fieldx]"><div class="smallfont">$vbphrase[gender]<img src="$stylevar[imgdir_misc]/$userinfo[fieldx].gif" alt="$userinfo[fieldx]" /></div></if>
                  
                  
                  ******************************
                  
                  STEP SIX
                  
                  Choose your image set (either male & female or male2 and female2) 
                  Rename to male and female. They MUST match exactly the way it is typed 
                  in the profile field, otherwise they will not work!
                  
                  Upload Male.gif, Female.gif and undisclosed.gif to /images/misc
                  
                  *********************************
                  
                  YOU ARE DONE! ALL YOU NEED TO DO IS SET YOUR GENDER IN YOUR USERCP
                  
                  DON'T FORGET TO CLICK INSTALL! THANKS.
                  http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

                  Read my latest article, "The Elected President: A Case Study."

                  Comment

                  • Jake Bunce
                    Senior Member
                    • Dec 2000
                    • 46598
                    • 3.6.x

                    #10
                    Code:
                    STEP THREE
                    
                    ADD PHRASE
                    
                    type: global
                    varname: gender
                    Text: Gender
                    Admin CP -> Languages & Phrases -> Phrase Manager -> Add New Phrase

                    Phrase Type = Global
                    Varname = gender
                    Text = Gender

                    Then click Save.

                    Comment

                    • Tanapangarap
                      Member
                      • Dec 2007
                      • 36
                      • 3.7.x

                      #11
                      Thank you.

                      Another question has been lingering in my mind for about a week now, and I've been unable to get help for it even at the forum where I saw the modification in question implemented. As I asked elsewhere:

                      Do you also know how to word-wrap the text for the Location field, for in case someone makes a long entry? This is already done at AdminFusion forum. For instance, at AdminFusion, I entered, for my location, "This is a long entry for the case of demonstration." The result was thus:

                      Location: This is a long entry for the
                      case of demonstration
                      I seek such a modification for Postbit, or the setting that has all user info above the post, like here at vbulletin.com.
                      http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

                      Read my latest article, "The Elected President: A Case Study."

                      Comment

                      • Jake Bunce
                        Senior Member
                        • Dec 2000
                        • 46598
                        • 3.6.x

                        #12
                        Which postbit template? postbit or postbit_legacy?

                        From what I can see of those templates, both of them should allow the text to wrap unless it's one long string of text with no spaces.

                        Comment

                        • Tanapangarap
                          Member
                          • Dec 2007
                          • 36
                          • 3.7.x

                          #13
                          I mean postbit.

                          For an example/demo, please view the second post in this topic on any three of my templates. Even the vBulletin default template has the problem.
                          http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

                          Read my latest article, "The Elected President: A Case Study."

                          Comment

                          • Jake Bunce
                            Senior Member
                            • Dec 2000
                            • 46598
                            • 3.6.x

                            #14
                            In the postbit template, try removing the red code:

                            Code:
                            				<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                            				<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                            				$template_hook[postbit_userinfo_left]
                            				
                            			</td>
                            			<td width="100%">&nbsp;</td>
                            			<td valign="top" [color=red]nowrap="nowrap"[/color]>
                            				
                            				<div class="smallfont">
                            					<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                            					<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                            					<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                            					<div>
                            ...and adding the blue code:

                            Code:
                            				<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                            				<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                            				$template_hook[postbit_userinfo_left]
                            				
                            			</td>
                            			<td width="100%">&nbsp;</td>
                            			<td valign="top" [color=blue]width="200"[/color]>
                            				
                            				<div class="smallfont">
                            					<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                            					<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                            					<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                            					<div>
                            Use whatever fixed width you want.

                            Comment

                            • Tanapangarap
                              Member
                              • Dec 2007
                              • 36
                              • 3.7.x

                              #15
                              Unfortunately, I haven't been able to get it to work. No matter what width I choose--either great, small, or in between--all the info in the right becomes squeezed to the right, so that there are only a few characters per line, and the user info ends up stretching substantially vertically.
                              http://img.photobucket.com/albums/v2...12/favicon.png Join The Infinity Program, my den of villains and swashbucklers.

                              Read my latest article, "The Elected President: A Case Study."

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...