code for vote/rate for viewing profile

I want to make a new CSS CLASS for the Rate/Vote stars on the photos_gallery.php page.

So instead of using:

.votes_big
{
margin-left: 130px;
margin-right: 0px;
width: 200px;
}

That is in base\css\general.css and it applies the style to all big vote stars on the site... I'll make a new one that is just for this page because it needs different margin values to show centered. For example ill make it .votes_big_pg or something. But, I need to find the code that displays the votes and calls for the    .votes_big  class on the photos gallery page before I can do that. Does anyone know how/where I can find this code?

Quote · 7 Sep 2008

So just add your stiles in your CSS file for ' .votes_big' element that for photos_gallery.php page.

or you can add it to tmpl_uni\css\general.css if you want

If you want to change code generation of this place, it here:

templates\base\scripts\BxBaseVotingView.php

function getVoting($iCanRate, $iSize, $sName)

Quote · 9 Sep 2008

Ok,


if i want to make it use votes_big_gallery instead of votes_big


what do I type in for the code?

Quote · 10 Sep 2008

Are you looking code or not?

Look at line 41

$sRet = '<div class="votes_'.$sName.'" id="' . $sDivId . '">';

just change to

$sRet = '<div class="votes_'.$sName.'_gallery" id="' . $sDivId . '">';

or are you lazy? :)

Quote · 10 Sep 2008

I didn't know how!! haha. Thanks'

Quote · 12 Sep 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.