iDEV Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

IDEVSPOT COMMUNITY FORUMS. -----( ( ( NOT FOR OFFICIAL TECH SUPPORT ) ) )-----

Pages: [1] 2

Author Topic: Help with display - Free listing and Paid, and one more ..... please help!!  (Read 3093 times)

0 Members and 1 Guest are viewing this topic.

techzonez

  • Newbie
  • *
  • Posts: 9
    • View Profile
Hi all,
I have purchased this software, installed with no problems. Its a great looking software but I need some modifications . Hence asking the experts, as i don’t know anything about php, simple help required please:

I have 2 packages - Free and Paid, when searched the display is showing everything
I want:
1.   For Free listing –  client to add every details but the display should be only Name, Address, Phone Number, and Google Map.

For the paid, Everything.

2.   In the index page, i want only the search/advance search option to be display (no category list)
Once again I am a novice, so please help.

Thanks
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
I'm novice too, but I have playing around and I can help you:
1 - Log in Admin... Packages...Allow Logo Upload? NO....Additional Photos Allowed? NO... I don't know about Description, sorry.

2 - Open file home.php and delete first line
<?PHP include "bit_centerbar.php"; ?>
Logged

techzonez

  • Newbie
  • *
  • Posts: 9
    • View Profile
Hi, thanks for your reply, :)

I had done the insturctions for 1. but i wanted the description and other field not to display, how should i remove them from free listings.

2. Great !! I got rid of the catagory listings, but also i wanted only search to be displayed on the index page.  So how can i copy the search sript and put on other pages, egs the users sould be able to search from any page?

Thanks once again

Cheers
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
1- If you don't want show "Descripition" and other field not to display, what you want show? only google map?

2 - Place this code whatever you want to serch be displayed:


<form action="index.php?page=browse&amp;mode=search" method="post" style="display: inline; margin: 0;">
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td width="100%" class="padder5">
        <p><span class="textclass2"><b>Search Directory</b></span> </p>
        <input name="SEARCH" type="text" size="40" />
        <br>
        <br>
        <input type="submit" name="Submit" value="Search" />
        [ <a href="javascript:;" onmousedown="toggleSlide('mydiv');">Advanced Search</a> ]
        <input type="hidden" name="LOGIN" value="1" />
      </td>
    </tr>
    <tr>
      <td colspan="2" class="padder5">
        <?php include "adv_search.php"; ?>
      </td>
    </tr>
  </table>
</form>
Logged

techzonez

  • Newbie
  • *
  • Posts: 9
    • View Profile
Thanks for the quick reply,

For free listing i want only the Title, Address, google map & phone no.

For Paid listing everything else.

Hope I am clear.

Thanks heaps
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
I don't know... It's envolve a lot of php modification, but you can manually exclude Descripiton for free customer.
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
This look like you want.
http://directory.refre5h.com/
Logged

techzonez

  • Newbie
  • *
  • Posts: 9
    • View Profile
Hi, some of the features are:
like the google map, if i can put a link - like in the page.
still struggling with the other fields which i dont want to diplay in the free listing.
Thanks once again
Logged

excelgroup

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hi there

I know what you're after and I've managed to make the mod to the system which informs on details.php page that it is a free listing, else it shows description. Pretty easy mod, and takes minutes. Here's how I managed it:

Look for the following code:
$description = preg_replace("/\n/","\n<BR>",$row[DESCRIPTION]);

Add after:
$package = $row[PACKAGE];

Change following code:

<td class="colorclass1"><img src="images/ne.gif" width="10" height="10" /></td>
        </tr>
<tr>
          <td class="colorclass1">&nbsp;</td>
          <td class="colorclass1" width="100%">
            <php echo "$description"; ?>
          </td>
          <td class="colorclass1">&nbsp;</td>
        </tr>
        <tr>
          <td height="10"><img src="images/sw.gif" width="10" height="10" /></td>
          <td class="colorclass1" height="10"></td>
          <td height="10"><img src="images/se.gif" width="10" height="10" /></td>
        </tr>
      </table>

To:

<td class="colorclass1"><img src="images/ne.gif" width="10" height="10" /></td>
        </tr>
<?php if ($package == "1")
{ echo "<tr>
<td class=\"colorclass1\">&nbsp;</td>
<td class=\"colorclass1\" width=\"100%\">This is a free listing</td>
<td class=\"colorclass1\">&nbsp;</td></tr>
<tr>
<td height=\"10\"><img src=\"images/sw.gif\" width=\"10\" height=\"10\" /></td>
<td class=\"colorclass1\" height=\"10\"></td>
<td height=\"10\"><img src=\"images/se.gif\" width=\"10\" height=\"10\" /></td>
</tr>";
}
else {

       echo "<tr>
          <td class=\"colorclass1\">&nbsp;</td>
          <td class=\"colorclass1\" width=\"100%\">
            $description
          </td>
          <td class=\"colorclass1\">&nbsp;</td>
        </tr>
        <tr>
          <td height=\"10\"><img src=\"images/sw.gif\" width=\"10\" height=\"10\" /></td>
          <td class=\"colorclass1\" height=\"10\"></td>
          <td height=\"10\"><img src=\"images/se.gif\" width=\"10\" height=\"10\" /></td>
        </tr>";}
?>
      </table>

Change $package == 1 to package id for your free package.
« Last Edit: January 30, 2010, 08:50:27 AM by excelgroup »
Logged

techzonez

  • Newbie
  • *
  • Posts: 9
    • View Profile
Thanks mate, thats what i wanted for desc,

for website and email address do i have to do the same thing.  No link for website and email to be displayed for free listing.  thanks
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Help with display - Free listing and Paid, and one more ..... please help!!
« Reply #10 on: February 11, 2010, 05:20:12 PM »
Did you tried the code above?
Can you tell me what show and what don't show for free listing?
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: Help with display - Free listing and Paid, and one more ..... please help!!
« Reply #11 on: February 11, 2010, 05:23:55 PM »
That code looks like it should work, but I did this for someone recently and it was MUCH simpler.

But, to answer your question, you need to do a simple modification to the above code.  Instead of "description" change the term to whatever, ie "email", "website" and so on.

techzonez

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Help with display - Free listing and Paid, and one more ..... please help!!
« Reply #12 on: February 11, 2010, 05:52:50 PM »
Yes, I tried the code, it works well, it does not display desc for free listing and display "this is a free listing"
Logged

techzonez

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Help with display - Free listing and Paid, and one more ..... please help!!
« Reply #13 on: February 11, 2010, 05:56:50 PM »
do i have to replace description for

" $description = preg_replace("/\n/","\n<BR>",$row[DESCRIPTION]);"

for email and website? just before the package?

is this the only change or any other changes.  thanks
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: Help with display - Free listing and Paid, and one more ..... please help!!
« Reply #14 on: February 11, 2010, 06:56:22 PM »
No, you need to create an if statement in php.
It sounds like you don't know much about that, but it is relatively simple to do.

sorta like
<?php if (something thats true) {
   do this...
}
?>
Pages: [1] 2
« previous next »