Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 11-17-2009, 05:30 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What is the code for this?

I want to know the code to get the box like this one: http://img4.imageshack.us/img4/1516/forumba.png

What I want to do is where the forum content is I should be able to put my own text into it.
Any code for a box like that?
Reply With Quote
  #2  
Old 11-17-2009, 03:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand what you want. The code for that is just in the page source, so you can just grab it from there.
Reply With Quote
  #3  
Old 11-18-2009, 02:11 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I don't understand what you want. The code for that is just in the page source, so you can just grab it from there.
Then I suppose the source doesn't like me, whenever I copy it to my custom page it doesn't work.

I'm talking about this part:
Code:
	<!-- main -->
	<ol id="forums" class="floatcontainer">
		<li class="forumbit_nopost L1" id="cat1">
	<div class="forumhead foruminfo L1 collapse">
		<h2>
			<span class="forumtitle"><a href="forumdisplay.php?1-Main-Category">Main Category</a></span>

			<span class="forumlastpost">Last Post</span>
		
			<a class="collapse" id="collapse_c_cat1" href="forum.php#top"><img src="images/buttons/collapse_40b.png" alt="" title="Collapse this Category" /></a>
		
		</h2>

		
		<div class="forumrowdata">
			<p class="subforumdescription">Main Category Description</p>

			
		</div>
		
	</div>

	
	<ol id="c_cat1" class="childforum">
		<li id="forum2" class="forumbit_post L2">
	<div class="forumrow table">
		<div class="foruminfo td">
			<img src="images/statusicon/forum_old-48.png" class="forumicon" id="forum_statusicon_2" alt="" />
			<div class="forumdata">
				<div class="datacontainer">
					<div class="titleline">
						<h2 class="forumtitle"><a href="forumdisplay.php?2-Main-Forum">Main Forum</a></h2>

						
					</div>
					<p class="forumdescription">Main Forum Description</p>
					
					
					
					

					
				</div>
			</div>
		</div>
		<h4 class="nocss_label">Forum Actions:</h4>
		<ul class="forumactionlinks td">
			
			<li class="forumactionlink subslink"> <a href="subscription.php?do=addsubscription&amp;f=2" title="Subscribe to This Forum">Subscribe to This Forum</a></li>

		</ul>
		<h4 class="nocss_label">Forum Statistics:</h4>
		<ul class="forumstats td">
			<li>Threads: 1</li>
			<li>Posts: 1</li>
		</ul>
		<div class="forumlastpost td">

			<h4 class="lastpostlabel">Last Post:</h4>
			<div>
				
	<p class="lastposttitle">
	<img src="images/icons/icon1.gif" alt="" border="0" />
	
	<a href="showthread.php?1-tyjtyjjty&amp;goto=newpost#post1" class="threadtitle" title="Go to first unread post in thread 'tyjtyjjty'">tyjtyjjty</a>
	<a href="showthread.php?1-tyjtyjjty&amp;goto=newpost#post1"><img src="images/buttons/lastpost_40b.png" alt="Go to last post in this thread" /></a>
	</p>
	<p class="lastpostby">

	
		by <a href="member.php?1-Torrentstorm">Torrentstorm</a>
	
	</p>
	<p class="lastpostdate">11-15-2009 04:51 AM</p>
 
			</div>
		</div>
						
	</div>
	
</li> 
	</ol>

	
</li> 
	</ol>
	<!-- /main -->
Reply With Quote
  #4  
Old 11-18-2009, 02:19 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't think of why that isn't OK. Well, except you may be missing the css to go with it and perhaps that is causing the problems you are seeing?
Reply With Quote
  #5  
Old 11-18-2009, 02:35 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I can't think of why that isn't OK. Well, except you may be missing the css to go with it and perhaps that is causing the problems you are seeing?
That's probably it. Since all I can see when using the code is the forum and the text, nothing else. Any way I can include the CSS in the template?
Reply With Quote
  #6  
Old 11-18-2009, 02:55 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would just include it in the <head> part of the page (example from this page):
HTML Code:
<link rel="stylesheet" type="text/css" href="clientscript/blue.css" id="blue" />
Reply With Quote
  #7  
Old 11-18-2009, 03:11 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You would just include it in the <head> part of the page (example from this page):
HTML Code:
<link rel="stylesheet" type="text/css" href="clientscript/blue.css" id="blue" />
Crap, that didn't help. The new vBulletin is pretty mean. This is what I end up with: http://img29.imageshack.us/img29/4208/resuylt.png
Reply With Quote
  #8  
Old 11-18-2009, 03:14 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are several different css files. You need to make sure you include all the ones you need.
Reply With Quote
  #9  
Old 11-18-2009, 03:36 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
There are several different css files. You need to make sure you include all the ones you need.
I've been messing around with it for 20 minutes now. Still no result.
All I want is a proper custom page with a proper box for content. Not just the simple:
Code:
    <h2 class="blockhead">Title</h2>
    <div class="blockbody">
      <div class="blockrow">
        Text
      </div>
    </div>
For that code only leaves the blue top bar and nothing else. There should be someway to get it all.
Reply With Quote
  #10  
Old 11-18-2009, 08:54 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At the moment, the classes blockbody and blockrow etc. are largely without visible definitions. The styling of the boxes atm largely depends on id's. This was brought up during testing and might still change, so I would advise to just wait.
Paul_M and I resorted to double-using an id to display boxes on forumhome for two of our modifications. That's not the proper way to do it, but hopefully this will be fixed.
Reply With Quote
Reply

Thread Tools
Display Modes

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:07 AM.


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.08575 seconds
  • Memory Usage 2,255KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete