Results 1 to 3 of 3

styling in php

This is a discussion on styling in php within the Template Modifications forums, part of the vBulletin SEO Discussion category; Not really sure if it would be OK to ask here as it isn't really related to vBSEO (though it ...

  1. #1
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1

    styling in php

    Not really sure if it would be OK to ask here as it isn't really related to vBSEO (though it is to SEO)

    Could someone perhaps help me by adding a div id/class around
    PHP Code:
    eval('$home[$mods[\'modid\']][\'content\'] .= "' fetch_template('adv_portal_recthreads_' $recthread_tempname) . '";'); 
    It would be more than appreciated

    Edit:

    This is probably going to come back to me later on, but I've found a workaround
    HTML Code:
    <if condition="$mods['modid'] == 5">
    	<div id="recthreads">
    		<h3><if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></h3>
    		$modulehtml
    	</div>
    <else />
    	<h3><if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></h3>
    	$modulehtml
    </if>

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    You can't class or id a template call. the class/id needs to be in the template itself, like you have done.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    thanks. I figured I was doing wrong somewhere, hoping to accomplish something like this
    PHP Code:
    $home[$newsmod['modid']]['content'] = '<div id="articles' '">' $home[$newsmod['modid']]['content'] . '</div>'
    this solved it though

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •