Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 09-02-2010, 12:53 PM
Force011 Force011 is offline
 
Join Date: Jan 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the thing is, I don't have that in the forumhome template. Nothing from $forumbits to main exists.
Reply With Quote
  #12  
Old 09-02-2010, 03:19 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you view source the code is somewhere:
Code:
 
<tbody id="collapseobj_forumbit_1" style=""> 
<tr align="center"> 
<td class="thead" width="4%">&nbsp;</td> 
<td class="thead" width="62%"align="left">Forum</td> 
<td class="thead" width="5%">Threads</td> 
<td class="thead" width="5%">Posts</td> 
<td class="thead" width="23%">Last Post</td> 
 
</tr> 
<tr align="center"> 
	<td class="alt2"><img src="limited/statusicon/forum_old.png" alt="" border="0" id="forum_statusicon_2" /></td> 
	<td class="alt1Active" align="left" id="f2">
Maybe it's in another template? If you go to "Search Templates" and look for:
$vbphrase[threads]
That should list all templates with that code in it.
Reply With Quote
  #13  
Old 09-02-2010, 03:32 PM
Force011 Force011 is offline
 
Join Date: Jan 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I might have created a misunderstanding, I am not trying to move the category itself over, the categories Theards, Posts, Last Post are in the right places, I am trying to move the content under those categories in the correct place.

If I were to move what you stated over it would look the way it was before.

Basically my forum should be made as Forums (under that lists the forums), Threads (under that lists the threads), Posts (under that lists the posts), and finally Last Post (under that lists the latest post by the user).

I am not trying to switch the categories, just the content under the categories.
Reply With Quote
  #14  
Old 09-02-2010, 05:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I understand, you want to move the content not the titles... Hmm... I THINK you have to edit the php file for that, index.php in this case- but honestly not sure. I would look for $forumbits in the php file and see if you can change the order it's "put together" - backup the file of course before testing.
Reply With Quote
  #15  
Old 09-02-2010, 06:52 PM
Force011 Force011 is offline
 
Join Date: Jan 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Now I understand, you want to move the content not the titles... Hmm... I THINK you have to edit the php file for that, index.php in this case- but honestly not sure. I would look for $forumbits in the php file and see if you can change the order it's "put together" - backup the file of course before testing.
I tried both index.php and forumsdisplay.php and nothing, I don't see any reference to anything I can change . Forumsbits shows up, but I don't know enough code to decipher what its doing.
Reply With Quote
  #16  
Old 09-02-2010, 07:08 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK you need to look at the function: construct_forum_bit
in the file includes/functions_forumlist.php

That's is the code that puts the $forumbits together.
Reply With Quote
  #17  
Old 09-02-2010, 09:47 PM
Force011 Force011 is offline
 
Join Date: Jan 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hate to ask, but can you tell me what to change, I took a look through that section and I can't figure out what needs to be moved, I am not that good at php and there isn't really any reference towards post or thread count, just lots of references to the last post.
Reply With Quote
  #18  
Old 09-03-2010, 12:03 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I looked at it myself- unfortunately I can't figure it out either.

Maybe someone else who is reading this thread? (anyone?)
Reply With Quote
  #19  
Old 09-03-2010, 12:12 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a set of templates under Forum Home Templates named forumhome_forumbit_levelN_post where N is a number 1 to 4. These are used by construct_forum_bit to build $forumbits, so I think those are what you want to change.
Reply With Quote
  #20  
Old 09-03-2010, 02:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)

Once you've found the template using that method, just move the variables around.
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 12:04 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.04159 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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