View Single Post
  #8  
Old 02-22-2012, 05:27 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, OK - I would start with this:

Code:
<style type="text/css"> 
                 #seofq_list_cell *{background:none;display:inline;border:none;color:black;padding:0px 0px 0px 0px;-webkit-border-top-right-radius:0px;-webkit-border-top-left-radius:0px;-webkit-box-shadow: none;font-weight:normal;} 
                 #seofq_list_cell h2{font-size: 130%;font-weight: bold;} 
                 #seofq_list_cell h3{font-size: 120%;font-weight: bold;} 
                 #seofq_list_cell h4{font-size: 120%;} 
                 #seofq_list_cell h5{font-size: 110%;} 
                 #seofq_list_cell strong{font-size: 110%;} 
                 #seof_queries_list a.seoq{margin:0px 0px 0px 0px;font-size: 100%;} 
                 </style> 
    <h4 class="threadinfohead"><span class="optiontitle">$vbphase[seofq_title]</span></h4> 
    <div id="seof_queries_list" class="thread_info_block"> 
        <div class="inner_block"> 
            <div id='seofq_list_cell'>$feosq_keywords</div> 
        </div> 
    </div>

I just changed {vb:rawphrase seofq_title} to $vbphase[seofq_title] and replaced the whole <vb:each>...</vb:each> section with $feosq_keywords, so you should be able to do the same thing to the other two templates.

Now you just need to add a section of code in the plugin to create $feosq_keywords from the keyword array. To be honest there's something a little weird going on there with the '<' character so I'm not sure what was intended, which makes it difficult to give you the correct code. But I'll take a stab at it and say in the process_templates_complete plugin, find this section:

Code:
$newTemplate = vB_Template::create( $plugin_template );
$newTemplate->register( 'keywords', $keywords );
$newTemplate->register( 'tagscount', (count($keywords)-1) );
$newTemplate->register( 'tag_fix', '<' );
$rendered = str_replace( "&lt;", "<", $newTemplate->render() );

and replace it with this:

Code:
$feosq_keywords = array();
foreach ($keywords AS $word)
{
    $feosq_keywords[] = "<$word[tag]>$word[term_value]</$word[tag]>";
}
$feosq_keywords = implode('&nbsp;', $feosq_keywords);
eval('$rendered = "' . fetch_template($plugin_template) . '";');

I can see there are other changes that need to be made in the code, but if you're in contact with the mod author then maybe he can help you with those.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01072 seconds
  • Memory Usage 1,769KB
  • 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
  • (3)bbcode_code
  • (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