Start a new topic
Answered

Updating category on listing page

 So I have my site setup and have imported listings.


I had to do Category - sub category - sub sub category since they are all lawyers.


On individual pages for listings it is listing the Top Level category (which is Lawyer) for everyone. Here is an example:


http://lawyerfindr.com/virginia/richmond/lawyers/jonathan-m-petty--16582


Under their name, instead of Lawyers I would rather it say: Personal Injury Lawyer which is their speciality or niche.


Any suggestions on how to do that?


Thanks in advance


Best Answer

Hi Jan,


Thank you for your question. 


What I understand, he wants to have it like this: 


Jonathan M. Petty

Personal Injury Lawyers (Use the Sub level instead of the Top level) 
Richmond, Virginia


If you want to modify the code please follow these steps: 


1. Go to the Admin and click on "Visit Website" (Top right side).

2. Visit any Listing Profile and find the left admin sidebar and click on "Show Widgets".

3. Click on the widget called "Profile Page Member Action Box". 




4. Then PASTE this code in the title: "Widget Code" and click on "Save Changes".


 

<table class="quote">
<tr>
<? if ($photo[file]!="" || $logo[file]!="") { ?>
 <td class="profile">
  <a href="/<?=$user[filename]?>/connect" title="Contact <?=$w[trade]?> <?php echo $user['full_name'];?>"><img src="<? if ($photo[file]!="") { ?><?=$photo[file]?><? } else { ?><?=$logo[file]?><? } ?>" alt="<?=$w[trade]?> <?php echo $user['full_name'];?> in <?=$user[city]?> <?=$user[state_code]?>" title="Contact <?php echo $user['full_name'];?>"></a>
 </td>
<? } ?>
<td class="information">
  <table class="contactinfo">
    <tr>
      <td>
          <h1><?=$user[full_name]?></h1>
          <table>
              <tr>
                  <td><p class="city"><? if ($user[profession_id]>0){ ?><?/*=getProfession($user[profession_id],$w)*/
                  echo plural($user[profession]);?><br /><? } ?><? if ($user[listing_type]!=Company) { ?><? if ($user[company]!="") { ?> <? if ($user[position]!="") { ?><font style="text-transform:capitalize;"><?=$user[position]?></font> at <? } ?><?=$user[company]?><br /><? } ?><? } ?><? if ($user[city]!="") { ?><?=$user[city]?>,<? } ?> <? if ($user[state_name]!="") { echo "$user[state_name]"; ?> <? if ($user[zip_code]!="") { echo "$user[zip_code]"; ?><? } ?> <? } else { ?> <?=getCountry($user[country_code],$w)?> <? } ?></p></td>
                  <td><? if ($user[phone_number]!="" && $member[show_phone]==1) { ?><span class="showphone2"><i class="fa fa-phone"></i> <?=$user[phone_number]?></span><? } ?></td>
              </tr>
              <tr>
                  <td><a class="hero-link yellow-bg" title="<?=$Label[profile_action]?> from <?=$w[trade]?> <?php echo $user['full_name'];?>" href="/<?=$user[filename]?>/request"><?=$Label[profile_action]?> &raquo;</a></td>
                  <td><? if ($w[promote_feature_reviews]==1) { ?><?=$rating[stars]?> <a class="getreview" href="/<?=$user[filename]?>/writeareview" title="Write A <?=$label[recommendation]?> for <?=$w[trade]?> <?php echo $user['full_name'];?>">Write a <?=$label[recommendation]?></a><? } ?></td>
              </tr>
          </table>
      </td>
    </tr>
  </table>
</td>
<? if ($subscription[profile_badge]!="" || $user[verified]==1 || $usetting[blog_link_url]!="" || $user[nationwide]==1) { ?>
 <td class="badges" nowrap>
 <?=widget("Profile Page Badges","",$w[website_id],$w)?>
 </td>
<? } ?>
</tr>
</table>

 

 

5. Go back to the Listing Profile page and refresh it. Now you'll have the Sub Level Category under the the name.


**NOTE: To avoid broken CSS we made the code that only "print" one Sub-Level Category it doesn't matter if the member has 8 Sub Level Categories the system will only display the first one selected by the listing. 


@ADAM: We changed the Top Level to Sub-Level Categories on your site, if you wanted something different please let us know and we will more than glad to assist you and revert the changes, it will take us 2 minutes.


Thanks and let me know if you have further questions! :)






Hi Adam, 


Thank you for your question. 


Please take in consideration that if the member selects more than one sub level-category, they will  display in the member profile page. The CSS of that specific page could be affected. 

keep in mind that our staff does not provide support to customizations made to default  widgets.


Please let me know if you still want the code. 


Thanks!  



Hi Luana,  I myself would like to know which widget would contain the display code and css for a member listing. It would be good to have a simple table style document sheet explaining each Widget that is used in Member page and Tab layouts. There are so many widgets, we have to stab at it blindly to find the one that controls a desired change for display.

Correct me if I'm wrong, but I think what Adam is asking for is this

Jonathan M. Petty

Lawyers > Personal Injury Lawyers
Richmond, Virginia


%profession% > %service_name% equals Lawyers > Personal Injury Lawyers

So it's just adding %service_name% in the Widget code
And Adam... with shortcodes, the service name only displays when a "Specializing in" Option is Selected for an Advanced Search.  It is not a static display, you won't see it if you just browse to the Member Listing. They will have several Services(sub-categories) selected so it only works like when a user is Searching Advanced
Answer

Hi Jan,


Thank you for your question. 


What I understand, he wants to have it like this: 


Jonathan M. Petty

Personal Injury Lawyers (Use the Sub level instead of the Top level) 
Richmond, Virginia


If you want to modify the code please follow these steps: 


1. Go to the Admin and click on "Visit Website" (Top right side).

2. Visit any Listing Profile and find the left admin sidebar and click on "Show Widgets".

3. Click on the widget called "Profile Page Member Action Box". 




4. Then PASTE this code in the title: "Widget Code" and click on "Save Changes".


 

<table class="quote">
<tr>
<? if ($photo[file]!="" || $logo[file]!="") { ?>
 <td class="profile">
  <a href="/<?=$user[filename]?>/connect" title="Contact <?=$w[trade]?> <?php echo $user['full_name'];?>"><img src="<? if ($photo[file]!="") { ?><?=$photo[file]?><? } else { ?><?=$logo[file]?><? } ?>" alt="<?=$w[trade]?> <?php echo $user['full_name'];?> in <?=$user[city]?> <?=$user[state_code]?>" title="Contact <?php echo $user['full_name'];?>"></a>
 </td>
<? } ?>
<td class="information">
  <table class="contactinfo">
    <tr>
      <td>
          <h1><?=$user[full_name]?></h1>
          <table>
              <tr>
                  <td><p class="city"><? if ($user[profession_id]>0){ ?><?/*=getProfession($user[profession_id],$w)*/
                  echo plural($user[profession]);?><br /><? } ?><? if ($user[listing_type]!=Company) { ?><? if ($user[company]!="") { ?> <? if ($user[position]!="") { ?><font style="text-transform:capitalize;"><?=$user[position]?></font> at <? } ?><?=$user[company]?><br /><? } ?><? } ?><? if ($user[city]!="") { ?><?=$user[city]?>,<? } ?> <? if ($user[state_name]!="") { echo "$user[state_name]"; ?> <? if ($user[zip_code]!="") { echo "$user[zip_code]"; ?><? } ?> <? } else { ?> <?=getCountry($user[country_code],$w)?> <? } ?></p></td>
                  <td><? if ($user[phone_number]!="" && $member[show_phone]==1) { ?><span class="showphone2"><i class="fa fa-phone"></i> <?=$user[phone_number]?></span><? } ?></td>
              </tr>
              <tr>
                  <td><a class="hero-link yellow-bg" title="<?=$Label[profile_action]?> from <?=$w[trade]?> <?php echo $user['full_name'];?>" href="/<?=$user[filename]?>/request"><?=$Label[profile_action]?> &raquo;</a></td>
                  <td><? if ($w[promote_feature_reviews]==1) { ?><?=$rating[stars]?> <a class="getreview" href="/<?=$user[filename]?>/writeareview" title="Write A <?=$label[recommendation]?> for <?=$w[trade]?> <?php echo $user['full_name'];?>">Write a <?=$label[recommendation]?></a><? } ?></td>
              </tr>
          </table>
      </td>
    </tr>
  </table>
</td>
<? if ($subscription[profile_badge]!="" || $user[verified]==1 || $usetting[blog_link_url]!="" || $user[nationwide]==1) { ?>
 <td class="badges" nowrap>
 <?=widget("Profile Page Badges","",$w[website_id],$w)?>
 </td>
<? } ?>
</tr>
</table>

 

 

5. Go back to the Listing Profile page and refresh it. Now you'll have the Sub Level Category under the the name.


**NOTE: To avoid broken CSS we made the code that only "print" one Sub-Level Category it doesn't matter if the member has 8 Sub Level Categories the system will only display the first one selected by the listing. 


@ADAM: We changed the Top Level to Sub-Level Categories on your site, if you wanted something different please let us know and we will more than glad to assist you and revert the changes, it will take us 2 minutes.


Thanks and let me know if you have further questions! :)





Thanks, Luanna.  Your clear explanations continue to be helpful

Re:   We changed the Top Level to Sub-Level Categories on your site, if you wanted something different please let us know and we will more than glad to assist you and revert the changes, it will take us 2 minutes.

I thought the same thing, a "Lawyer" Directory does not need a top level category "Lawyers"... the top categories should the legal specialties... Tax Law, Criminal Law, etc

Adam, your site will likely work much better that way.

And Luanna,  its incredibly unfortunate that your variables name for Category 1 is [profession]
That's confusing everyone.  "profession" is subjective and can mean what the reader wants it to mean

 

One more question Luanna
I'd still like to have a hierachy Category - SubCategory
Line 34, 35
echo getProfession($user[profession_id],$w);
echo "<br />";

How can I get the sub-category after "profession"?  Just need the correct variable for sub-category
That would display both levels
Category - Sub-Category

example:
Jonathan M Petting
Criminal Attorney - Federal Jurisdiction
City, State

It would be Line 4 in this example I need help replacing the Profession and profession_id, to fetch the Sub-Category used

echo getProfession($user[profession_id],$w);
echo "&ndash;";
echo getProfession($user[profession_id],$w);
echo "<br />";

 

 Jan,


That in initially how we had it set up. Problem was that on the home page search, we couldn't do this:


Family Law --> Specializing in Divorce.


We had to use their Sub - Sub sub option on the home page.


That forced us to put all lawyers into the Top level category of just Lawyers to get the Sub - sub sub search home page to work.


I assume I would have to pay for some customization to get it the other way.


We don't want to have a top level category as Lawyers, just what we were told on our training session on how to make that happen.


If that isn't the case, I have no problem wiping the database and starting from scratch and getting rid of the Top level category of Lawyer and doing it how I was initially going to do it.


Let me know if that is something that can be done easily.


Thanks,

Adam



Hi Jan, 


Thank you for your question. 

As you could see in the last code the Top Level Category was commented so it wasn't displaying (line 15). 

If you want to have the Top level and then the Sub level please use the next code: 

 

<table class="quote">
<tr>
<? if ($photo[file]!="" || $logo[file]!="") { ?>
 <td class="profile">
  <a href="/<?=$user[filename]?>/connect" title="Contact <?=$w[trade]?> <?php echo $user['full_name'];?>"><img src="<? if ($photo[file]!="") { ?><?=$photo[file]?><? } else { ?><?=$logo[file]?><? } ?>" alt="<?=$w[trade]?> <?php echo $user['full_name'];?> in <?=$user[city]?> <?=$user[state_code]?>" title="Contact <?php echo $user['full_name'];?>"></a>
 </td>
<? } ?>
<td class="information">
  <table class="contactinfo">
    <tr>
      <td>
          <h1><?=$user[full_name]?></h1>
          <table>
              <tr>
                  <td><p class="city"><? if ($user[profession_id]>0){ ?><?=getProfession($user[profession_id],$w);
                  echo " - ".plural($user[profession]);?><br /><? } ?><? if ($user[listing_type]!=Company) { ?><? if ($user[company]!="") { ?> <? if ($user[position]!="") { ?><font style="text-transform:capitalize;"><?=$user[position]?></font> at <? } ?><?=$user[company]?><br /><? } ?><? } ?><? if ($user[city]!="") { ?><?=$user[city]?>,<? } ?> <? if ($user[state_name]!="") { echo "$user[state_name]"; ?> <? if ($user[zip_code]!="") { echo "$user[zip_code]"; ?><? } ?> <? } else { ?> <?=getCountry($user[country_code],$w)?> <? } ?></p></td>
                  <td><? if ($user[phone_number]!="" && $member[show_phone]==1) { ?><span class="showphone2"><i class="fa fa-phone"></i> <?=$user[phone_number]?></span><? } ?></td>
              </tr>
              <tr>
                  <td><a class="hero-link yellow-bg" title="<?=$Label[profile_action]?> from <?=$w[trade]?> <?php echo $user['full_name'];?>" href="/<?=$user[filename]?>/request"><?=$Label[profile_action]?> &raquo;</a></td>
                  <td><? if ($w[promote_feature_reviews]==1) { ?><?=$rating[stars]?> <a class="getreview" href="/<?=$user[filename]?>/writeareview" title="Write A <?=$label[recommendation]?> for <?=$w[trade]?> <?php echo $user['full_name'];?>">Write a <?=$label[recommendation]?></a><? } ?></td>
              </tr>
          </table>
      </td>
    </tr>
  </table>
</td>
<? if ($subscription[profile_badge]!="" || $user[verified]==1 || $usetting[blog_link_url]!="" || $user[nationwide]==1) { ?>
 <td class="badges" nowrap>
 <?=widget("Profile Page Badges","",$w[website_id],$w)?>
 </td>
<? } ?>
</tr>
</table>

 

It will look like this: 


Please let me know if you have further questions. 


Thanks! :) 


Hi Adam,

Let me give you one more reply to see If I'm on the same page with you

Re Adam: "Problem was that on the home page search, we couldn't do this:Family Law --> Specializing in Divorce."

The website itself is a domain about Lawyers. So you don't need "Lawyers" anywhere in the search or categories.  Google works with you on this. So if you have a "Lawyer" domain, you have this

Main Categories:  Family Law, Criminal Law, Corporate Law
( and the fewer main the better for you and your site users)
Sub-Categories: 
under Family Law:  Divorce, Child Custody, etc
under Criminal Law: Drugs, DUI, Federal Jurisdications, Tax Fraud, etc

And if that is what you have, you are good to go.  If you don't, then IMO, you should change it before launch. 

I have plenty of UI(user interface) experience.  Three levels flummoxes 99% of all site visitors. I've seen some people doing this with Brilliant Directories trying to bite off a Huge Topic and frankly it's a huge mess when you see it as Browse Categories.

It's better to have several domains each with its own directory.  And google likes it better when you bite off a smaller chunk and put it under a domain.


 

Thank you Luanna.

My own Profile Member Action Box widget didn't have anything commented out.  And thanks for this code so I can add it
.plural($user[profession]);?>

This just makes this "profession" naming scheme your coders use an even bigger mystery

<?=getProfession($user[profession_id],$w);

echo " - ".plural($user[profession]);?>


get Profession id brings back a Main Category from user_data table

and

.plural($user[profession]) brings back the first Sub-Category in the list attached to the Main Category,  which is "profession" I guess.


Thanks again

 

Hi Jan, 


You're welcome. Your Profile Member Action Box widget didn't have anything commented because you had the default widget. When I told you about the "Comment" in the widget I was referring to the first code I gave in this conversation, sorry I wasn't specific. 


About this:


<?=getProfession($user[profession_id],$w);

echo " - ".plural($user[profession]);?>


get Profession id brings back a Main Category from user_data table

and

.plural($user[profession]) brings back the first Sub-Category in the list attached to the Main Category,  which is "profession"


Yes, you're correct and we use this code to "Print" the Sub Categories in plural:

 .plural($user[profession])


Thanks! :) 

Jan,

Do you do any work with people on their directories?
If so, let me know and I would love to hire you for an hour or 2 to get my directory up and running correctly.
Give me a call at 618-407-8383

Thanks

 

I do paid consulting for all types of lead generation. But my time is very, very limited. Having said that, I'd like to help you in particular, because you are in the right place in your buildout. It is much easier to start with the proper hierachy and marketing model than it is to remodel a site architecture after the site fails.

Click here for my website and please send me a message from there.
 Groupkiva Lead Generation

Can I recommend this, Adam? 
You would get the most benefit from sharpening the focus on the 30,000 foot view of your business model for a directory. Make sure you know exactly where you want to go, so your BD site will better match up to your needs, desires, and expectations.
  • Determine the Best Business Model to match your own Resources to grow a business.
  • Map out a basic Marketing Plan before you build the website.
  • Determine the MoneyBall keywords for your Target Market.
  • Ways you can monetize a Directory. Sell Leads. Sell Subscriptions. Or a Hybrid?
  • Automate the process of selling Prospects the Listing Subscriptions.
  • Match up your site UI (user interface) of Brilliant Directories site to match your Model.
  • Create Navigation and Content to please Visitors and Google

Search and Navigation for any directory site is critical. Today's consumer's and site visitors possess the attention span of a gnat. Make it easy is a requirement these days. The other area is website congruency with Search Engines. Most directory business models are about Local Search. And that's a different animal than just vanilla "organic search".

One of things that makes Brilliant Directories a clear winner... is the responsive design for Mobile devices and ability to manipulate SEO settings for on-page signals to search engines.

Google has moved to a completely separate Search Engine for mobile devices... smartphones represent 45% to 60% of local search queries in most metro markets. Google and Bing can do this with ease, since every browser on any smartphone is identifiable... Google sends different search results to the Phone than it does to an iPad, Laptop, or Desktop.

The criteria for ranking is directly related to how you setup your sites Categories > Sub-Categories and site navigation.

Keyword Research
Keywords are just words. Searchers are just searchers. We want visitors who spend Money.

Your website must be built around the MoneyBall Keywords attracting Money and driving Revenue. You want your site pages to match up... with what Buyers/Searchers are already searching for.

 

Jan,

Just sent you a message. Your contact box wouldn't take the full thing so shoot me an email and I can go more in depth.

Thanks
Adam

 

I have tried the second set of code that Luana suggests here, but for some reason, I am getting the top level category showing up twice.  What am I missing?


Here is the code I entered.


<table class="quote">

<tr>

<? if ($photo[file]!="" || $logo[file]!="") { ?>

 <td class="profile">

  <a href="/<?=$user[filename]?>/connect" title="Contact <?=$w[trade]?> <?php echo $user['full_name'];?>"><img src="<? if ($photo[file]!="") { ?><?=$photo[file]?><? } else { ?><?=$logo[file]?><? } ?>" alt="<?=$w[trade]?> <?php echo $user['full_name'];?> in <?=$user[city]?> <?=$user[state_code]?>" title="Contact <?php echo $user['full_name'];?>"></a>

 </td>

<? } ?>

<td class="information">

  <table class="contactinfo">

    <tr>

      <td>

          <h1><?=$user[full_name]?></h1>

          <table>

              <tr>

                  <td><p class="city"><? if ($user[profession_id]>0){ ?><?=getProfession($user[profession_id],$w);

                  echo " - ".plural($user[profession]);?><br /><? } ?><? if ($user[listing_type]!=Company) { ?><? if ($user[company]!="") { ?> <? if ($user[position]!="") { ?><font style="text-transform:capitalize;"><?=$user[position]?></font> at <? } ?><?=$user[company]?><br /><? } ?><? } ?><? if ($user[city]!="") { ?><?=$user[city]?>,<? } ?> <? if ($user[state_name]!="") { echo "$user[state_name]"; ?> <? if ($user[zip_code]!="") { echo "$user[zip_code]"; ?><? } ?> <? } else { ?> <?=getCountry($user[country_code],$w)?> <? } ?></p></td>

                  <td><? if ($user[phone_number]!="" && $member[show_phone]==1) { ?><span class="showphone2"><i class="fa fa-phone"></i> <?=$user[phone_number]?></span><? } ?></td>

              </tr>

              <tr>

                  <td><a class="hero-link yellow-bg" title="<?=$Label[profile_action]?> from <?=$w[trade]?> <?php echo $user['full_name'];?>" href="/<?=$user[filename]?>/request"><?=$Label[profile_action]?> &raquo;</a></td>

                  <td><? if ($w[promote_feature_reviews]==1) { ?><?=$rating[stars]?> <a class="getreview" href="/<?=$user[filename]?>/writeareview" title="Write A <?=$label[recommendation]?> for <?=$w[trade]?> <?php echo $user['full_name'];?>">Write a <?=$label[recommendation]?></a><? } ?></td>

              </tr>

          </table>

      </td>

    </tr>

  </table>

</td>

<? if ($subscription[profile_badge]!="" || $user[verified]==1 || $usetting[blog_link_url]!="" || $user[nationwide]==1) { ?>

 <td class="badges" nowrap>

 <?=widget("Profile Page Badges","",$w[website_id],$w)?>

 </td>

<? } ?>

</tr>

</table>

png