Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2009, 10:32 PM
pokash pokash is offline
 
Join Date: May 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default questions!

Hi

I have a lot of questions:

I want to change some things in the tab menu: I want to change the title of the first tab 'forum' and I want to get rid of the 'what's new' tab.

Then I want to get rid of the navigation part under the tabs and add some of it's links to top right where it says Welcome, username Notifications.. etc.

I also want to have a section above every category where I can place Some content in a html format (just like the admanager but then the content should only appear above the specific category)

I want to get rid of the the text and links that show in what part of the forum you are (has a little home on the left). On the home page it currently says: Forum.

Under the'post new thread button it says : Forum: and the the category name. I want to get rid of this also.

Help me please

Little rant:
I honoustly don't understand how some of you make sense out of the cp. When you want to change this you need to go here and here and then do that and the next time you have forgotten how you did it again. This whole template system and phrase system..... man o man what a pain.
Reply With Quote
  #2  
Old 11-28-2009, 10:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are going to want to edit at least the navbar template for a lot of that (anything to do with the tabs).

As for adding more text and removing other text, that is probably also going to require editing a template. To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Reply With Quote
  #3  
Old 11-29-2009, 01:02 PM
pokash pokash is offline
 
Join Date: May 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the last one hour and a half I have been able to do two things:
  • Change the name of the tab 'forum'
  • Get rid of the welcom message

Now I realy don't know how to get rid of the 'what's new tab'. I think I've found the code in the source:
<li><a class="navtab" href="search.php?do=getnew&amp;contenttype=vBForum _Post">What's New?</a></li>

But I've tried deleting this piece of code and other pieces that resembled it but it doesn't seem to do anything (navbar template):

<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBFor um_Post">{vb:rawphrase new_posts_nav}</a></li>

In the source code it all seems so simple but when I get to the templates it has all this stuff that I can't realy make sense of.



Another thing that I still don't know how to acomplish exaxtly is putting static content on top of a specific category. The only option I see is doing it with a announcement but I'm not sure if I can put html in that.

And to remove the part with the litle house with 'forum' next to it, I haven't found a way to do that either.
Reply With Quote
  #4  
Old 11-29-2009, 01:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To remove the whole What's New tab:

Find and remove from the navbar template all the stuff between this line " {vb:raw template_hook.navtab_middle}" and this line "{vb:raw template_hook.navtab_end}". I think that should do it (I haven't tried it).
Reply With Quote
  #5  
Old 11-29-2009, 05:45 PM
pokash pokash is offline
 
Join Date: May 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That did the trick except it also removed my other added tabs. But I found the piece of code that did only remove the whats new tab withing that area of the code. So thanks!

Do you have any suggestions for placing content above a specific section?
Reply With Quote
  #6  
Old 11-29-2009, 06:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would guess you would edit the template. I really don't know where you are talking about adding something, so I can't be more specific. An image would help.
Reply With Quote
  #7  
Old 11-29-2009, 07:05 PM
pokash pokash is offline
 
Join Date: May 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lets take the the page your on right now for example. I want to be able have a section of content above the posts. And be able to have this specific content only above this topic.

If you still dont know what I mean I will put a picture up.
Reply With Quote
  #8  
Old 11-29-2009, 07:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you probably want something in the SHOWTHREAD template and you'll want to put a condition about it:
HTML Code:
<if condition="$thread[threadid] == xx">
stuff
</if>
There are other ways to do it (plugin, for instance), but that is probably the easiest for a beginner.
Reply With Quote
  #9  
Old 11-29-2009, 08:25 PM
pokash pokash is offline
 
Join Date: May 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is an example of an thread id? And instead of above a thread I want the content above all threads of a certain category/forum. So instead of $thread[threadid] I use ?

Can I use that code also in the AD template? I think that might be simpler for me.
Reply With Quote
  #10  
Old 11-29-2009, 08:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want a condition in the SHOWTHREAD template based on the forumid, then either $thread[forumid] or $forum[forumid]:
HTML Code:
<if condition="$forum[forumid] == xx">
stuff
</if>
Where xx is the forumid (from the forum manager).

You can try it in an ad template (I don't use those, so don't know for sure).
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 03:13 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.04156 seconds
  • Memory Usage 2,268KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_html
  • (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