try another color scheme:


Go Back   TECH6.0 > Web Design/Development and SEO > Internet Forum Softwares > vBulletin


Display Dynamic data in boxes to right of forum

This is a discussion on Display Dynamic data in boxes to right of forum within the vBulletin section, part of the Internet Forum Softwares category; OK, I am not sure if this belongs in HTML, or PHP, or here in the VBulletin forum, so I ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 25-01-2010, 01:24 PM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default Display Dynamic data in boxes to right of forum

OK, I am not sure if this belongs in HTML, or PHP, or here in the VBulletin forum, so I picked this one.

We have just upgraded to 4.0 (from 3.7) and are trying to do things "right" rather than using add-on hacks like we did before.

I have been given a product called SevinSkins RightColumn to work with.

Now I have found the style template where I can put html code to display in a box in the right column. The style template is called "ss_rightcolumn_contents"

It looks something like this:

HTML Code:
<div class="<vb:if condition="THIS_SCRIPT == 'index'">ss_rightcolumn_index<vb:else />ss_rightcolumn_other</vb:if>">
<!-- DO not edit above this line -->

<!-- Block #1 -->
<div class="ss_column_head">
  <div style="padding-left: 12px; font-weight: bold;" >
    <!-- Title -->
    Top 5
    <!-- Title -->
  </div>
</div>

<div class="ss_column_body">
  <div style="padding: 4px;">
This holds information for block 1
  </div>
</div>
<!-- /Block #1 -->

<!-- Block #2 -->
<div class="ss_column_head">
  <div style="padding-left: 12px; font-weight: bold;" >
    <!-- Title -->
    Block Two
    <!-- Title -->
  </div>
</div>

<div class="ss_column_body">
  <div style="padding: 4px;">
    <!-- Contents -->
    Text <br />
    Text <br />
    Text <br />
    Text <br />
    <!-- Contents -->
  </div>
</div>
<!-- /Block #2 -->

<!-- Block #3 -->
<div class="ss_column_head">
  <div style="padding-left: 12px; font-weight: bold;" >
    <!-- Title -->
    Block 3
    <!-- Title -->
  </div>
</div>

<div class="ss_column_body">
  <div style="padding: 4px;">
    <!-- Contents -->
    Text <br />
    Text <br />
    Text <br />
    Text <br />
    <!-- Contents -->
  </div>
</div>
<!-- /Block #3 -->

<!-- DO not edit below this line -->
</div> 
My problem is that I want this information to be dynamic. In our previous version, I used a php module and wrote php code to pull and format data from our DB, which then called the template and translated the variables.

I do not know how to get this data into this template. I thought (since the template is basically HTML) that I could just insert php code into it. Obviously to everyone else probably, this can not be done.

So the question is, how do I display boxes on the side (right column) and load them with dynamic data? I assume (and hope) that I have to use php to do this, but how do I put it all together?

Thanks for your time. I hope I have given you enough information, but if not, I will be checking back frequently to answer anything I need to.

Last edited by MisawaPlayer; 25-01-2010 at 02:13 PM.
Reply With Quote
  #2  
Old 26-01-2010, 02:12 PM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

OK, 21 views and not a hint of a response. Perhaps if I make the question simpler.

I am running version 4.0.

I want, in one column to the right, to be able to put boxes (in 3.7 they were vBa cmps modules) that will contain dynamic data, generated by php code querying my database and formatting the output.

Any ideas how I can do this? I do not know if vBa cmps is still available, but for whatever reason the site owner does not (and will not) have it.

For an example of the look of what I am doing, the current poll listed on the right side of the home page of tech6 is exactly what I want.
Reply With Quote
  #3  
Old 26-01-2010, 04:20 PM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

phew.. I am still far from upgrading to vb4. So I don't think I'd be able to help in this matter. Though if I am not wrong, if its just the poll thing you want on the right side, then why not use the Poll Widget included in the vBCMS. Simply get the right column added via the design interface and add the poll widget to it. No coding etc. is required here.

I do not know if vBa cmps is still available, but for whatever reason the site owner does not (and will not) have it.
It is available for vb4, though its in Beta as of now.
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #4  
Old 26-01-2010, 08:58 PM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

Thanks, if you haven't gotten running with v4 yet, I understand.

Unfortunately, I used a poor example. I do not need widgets. I need custom data displayed in these "modules". vBa CMPS would work I am sure, since that is what we used in the earlier version, simply using a PHP module, but I was given the impression that it was not available.

I will push the site owner hard to get ahold of this product.

Thank you again for your time.
Reply With Quote
  #5  
Old 29-05-2010, 12:49 PM
No Avatar

Learner
 
Join Date: May 2010
Posts: 5
Jaflosan is on a distinguished road
Default

You need to create a connection to the Access DB using OLE (for Windows IIS/ASP) or JDBC if using any other host non Windows Host.
Reply With Quote
  #6  
Old 12-08-2010, 12:37 PM
No Avatar

Learner
 
Join Date: Aug 2010
Posts: 18
albertwilson is on a distinguished road
Default

I want, in one column to the right, to be able to put boxes (in 3.7 they were vBa cmps modules) that will contain dynamic data, generated by php code querying my database and formatting the output.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 10:20 AM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top