View Single Post
  #2422  
Old 10-22-2005, 06:19 PM
cecdah cecdah is offline
 
Join Date: Nov 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by texasasl
By using the vbindex how is possible to add a news page e.g a code from APN news
>>>>>>>>>>>>>>>>>>>>>>>>>

<table width="400" cellpadding=0 cellspacing=0>
<tr>
<td bgcolor="#FFFFFF">
<font color="#000099" face="arial,helvetica,sans-serif" size="3"><b>
apn.gr
<br><br>
</b></font>
</td>
</tr>

<!-- begin syndicated content -->
<script language="Javascript1.1"><!--

var syndicate = new Object;

syndicate.title_fontbold = true;
syndicate.title_fontital = false;
syndicate.title_fontface = 'arial,helvetica,sans-serif';
syndicate.title_fontsize = '3';
syndicate.title_fontcolor = '#000099';

syndicate.date_fontbold = false;
syndicate.date_fontital = true;
syndicate.date_fontunder = false;
syndicate.date_fontface = 'Verdana, Arial, Helvetica, sans-serif';
syndicate.date_fontsize = '1';
syndicate.date_fontcolor = '#666666';

syndicate.summary_fontbold = false;
syndicate.summary_fontital = false;
syndicate.summary_fontunder = false;
syndicate.summary_fontface = 'arial,helvetica,sans-serif';
syndicate.summary_fontsize = '2';
syndicate.summary_fontcolor = '#000000';

syndicate.bgcolor = '#FFFFFF';
syndicate.max_articles = '8';
syndicate.display_date = true;
syndicate.display_summaries = true;
syndicate.not_found_message = '<font face="arial,helvetica,sans-serif" size="2" color="#000000">Sorry, no articles were found.</font>';

// -->
</script>
<script language="Javascript1.1" src="http://www.apn.gr/manager/publish/syndicate_0.js"></script>

<noscript>
<tr>
<td bgcolor="#FFFFFF">
<font color="#000000" face="arial,helvetica,sans-serif" size="2">
<p>This webpage uses Javascript to display some content.
<p>Please enable Javascript in your browser and reload this page.
</font>
</td>
</tr>
</noscript>
<!-- end of syndicated content -->

</table>



>>>>>>>>>>>>>>>>>>>>>>

that's the addition I want to install in my portal how I can do that via vbindex???

I will be appreciate if somebody can help me.
Hi!

You go to admincp/templates and find one of your vbindex customblocks that is available.
Replase all of the content with this:


<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<thead>
<tr>
<td class="tcat" style="text-align: center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('vbindex_customblock$box')"><img id="collapseimg_vbindex_customblock$box" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_vbindex_customblock.gif" alt="" border="0" /></a>
<strong>Diverse</strong>
</td>
</tr>
</thead>
<tbody id="collapseobj_vbindex_customblock$box" style="$collapseobj_vbindex_customblock">
<tr><div>

<!-- begin syndicated content -->
<script language="Javascript1.1"><!--

var syndicate = new Object;

syndicate.title_fontbold = true;
syndicate.title_fontital = false;
syndicate.title_fontface = 'arial,helvetica,sans-serif';
syndicate.title_fontsize = '3';
syndicate.title_fontcolor = '#000099';

syndicate.date_fontbold = false;
syndicate.date_fontital = true;
syndicate.date_fontunder = false;
syndicate.date_fontface = 'Verdana, Arial, Helvetica, sans-serif';
syndicate.date_fontsize = '1';
syndicate.date_fontcolor = '#666666';

syndicate.summary_fontbold = false;
syndicate.summary_fontital = false;
syndicate.summary_fontunder = false;
syndicate.summary_fontface = 'arial,helvetica,sans-serif';
syndicate.summary_fontsize = '2';
syndicate.summary_fontcolor = '#000000';

syndicate.bgcolor = '#FFFFFF';
syndicate.max_articles = '8';
syndicate.display_date = true;
syndicate.display_summaries = true;
syndicate.not_found_message = '<font face="arial,helvetica,sans-serif" size="2" color="#000000">Sorry, no articles were found.</font>';

// -->
</script>
<script language="Javascript1.1" src="http://www.apn.gr/manager/publish/syndicate_0.js"></script>

<noscript>
<tr>
<td bgcolor="#FFFFFF">
<font color="#000000" face="arial,helvetica,sans-serif" size="2">
<p>This webpage uses Javascript to display some content.
<p>Please enable Javascript in your browser and reload this page.
</font>
</td>
</tr>
</noscript>
<!-- end of syndicated content --></div></>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<br />


I tested the code on my forum, and it worked fine.
After inserting into one of your customblocks, you have to go to vbulletin options/vbindex options and set active the customblock on either left og right side of your vbindexportal.

Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01382 seconds
  • Memory Usage 1,794KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete