PDA

View Full Version : Northern Ontario Art Association



verdon
02-04-2004, 12:24 PM
Here's a site that started from Jon's original OR code. Lots and lots of customizations and changes have been done. Too many to mention, but have a look around. Some changes include multiple types of users, tighter integration of users and listings, especially in regards to searching, searchable and browsable users, configurable max no. of listings allowed on a user-by-user basis, new listing views and so on. On the back end... new flags on users and listings only controllable by admin, more sophisticated tools for finding, sorting, and admining users and listings, tools for mass e-mailing users, etc.

The url:
http://noaa.ca/members/

rravenn
02-04-2004, 12:58 PM
Nice to see you on the boards again verdon.
Does this mean we will some great additions to this OR again???.....please
raven

sunfilly
02-04-2004, 03:40 PM
Wow this is beautiful design and function Verdon. I was thinking of adapting OR for my art site, it has functions in it I could not find in any of the other php scripts I have seen out there especially the multiple pictures you can upload of your art.

It would make a great Gallery. Most of my artist friends like to put details of thier work and OR is the only program I found that could do that, none of the php gallerys support uploading more than one picture on a page that I could find.

Thanks for the inspiration, it is a beautiful site. I have one question if it is easy to answer How where you able to change the default size of the picture in OR? I've been trying to do that with no luck.

thanks

marb
02-04-2004, 05:04 PM
I'm making a artsite with O-R,
not ready but you can see a try here;
www.kunst.nl/eng/bio/artistsearch.php
select the R

Marten :)

sunfilly
02-04-2004, 05:42 PM
Great Marten,
Now that is a nice start. With art I think you need to use either mostly white or mostly black, it makes the art work pop more. I think OR is a great program for an art site. Can't wait to see your progress. I'm using mostly black in mine, hopefully i will have some time soon to start on it. One thing I want to intergrate into it is instead of e-mail a friend I want to put and e-postcard function I think that would be cool. I need to intergrate Paypal into it too, I think the new OR version will have that. Can't wait until it is ready.

verdon
02-21-2004, 08:55 PM
...
Thanks for the inspiration, it is a beautiful site. I have one question if it is easy to answer How where you able to change the default size of the picture in OR? I've been trying to do that with no luck.

thanks

Thanks for the kind words sunfilly and raven :)

As to changing the default size, I can't give you line by line examples as my base code is well out of sync with the current, but...

Basically I added a new function to style.php that looks like this



function renderListingsMainImage($listingID)
{
// shows the main image

global $conn, $lang, $config, $style;
// grab the images
$listingID = make_db_extra_safe($listingID);
$sql = "SELECT ID, caption, file_name FROM listingsImages WHERE (listing_id = $listingID) ORDER BY rank LIMIT 0,1";
$recordSet = $conn->Execute($sql);
if ($recordSet === false) log_error($sql);

$num_images = $recordSet->RecordCount();
if ($num_images > 0)
{
while (!$recordSet->EOF)
{
$caption = make_db_unsafe ($recordSet->fields[caption]);
$file_name = make_db_unsafe ($recordSet->fields[file_name]);
// $imageID = make_db_unsafe ($recordSet->fields[ID]);

// gotta grab the image size
$imagedata = GetImageSize("$config[listings_upload_path]/$file_name");
$imagewidth = $imagedata[0];
$imageheight = $imagedata[1];
$shrinkage = $config[img_width]/$imagewidth;
// $displaywidth = $imagewidth * $shrinkage;
// $displayheight = $imageheight * $shrinkage;
$displaywidth = $imagewidth;
$displayheight = $imageheight;

echo "<center><img src=\"$config&#91;listings_view_images_path&#93;/$file_name\" height=\"$displayheight\" width=\"$displaywidth\"><p class=\"note\">All works are &amp;copy; their respective artists. No reproduction is allowed without express written permission.</p></center><br> ";
if &#40;$caption&#41; &#123;
echo "<b>$caption</b><br>";
&#125;
$recordSet->MoveNext&#40;&#41;;
&#125; // end while
&#125; // end if &#40;$num_images > 0&#41;
&#125; // end function renderListingsMainImage




...and then in my listingview.php it's sort of like this...


include&#40;"include/common.php"&#41;;
include&#40;"$config&#91;template_path&#93;/user_top.html"&#41;;

if &#40;$listingID == ""&#41;
&#123;
echo "<a href=\"index.php\">$lang&#91;perhaps_you_were_looking_something_else&#93;</a>";
&#125;
elseif &#40;$listingID != ""&#41;
&#123;
// first, check to see whether the listing is currently active
$show_listing = checkActive&#40;$listingID&#41;;
if &#40;$show_listing == "yes"&#41;
&#123;
?>

<table border="<? echo $style&#91;form_border&#93; ?>" cellspacing="<? echo $style&#91;form_cellspacing&#93; ?>" cellpadding="<? echo $style&#91;form_cellpadding&#93; ?>" width="<? echo $style&#91;admin_table_width&#93; ?>" class="form_main" align="center" >
<tr>
<td colspan="2" class="row_main">
<? getMainListingData&#40;$listingID&#41;; ?>
<p class="note">
<? renderTemplateAreaNoCaption&#40;headline,$listingID&#41;; ?>

</p>
</td>
</tr>
<tr>
<?
renderListingsImages&#40;$listingID&#41;
?>
<td class="row_main" valign="top" >
<?
renderListingsMainImage&#40;$listingID&#41;
?>
<table width="<? echo $style&#91;left_right_table_width&#93; ?>" cellpadding="<? echo $style&#91;left_right_table_cellpadding&#93; ?>" cellspacing="<? echo $style&#91;left_right_table_cellspacing&#93; ?>" border="<? echo $style&#91;left_right_table_border&#93; ?>">
<tr>
<td align="left" class="row_main" width="50%" valign="top">
<? renderTemplateArea&#40;top_left,$listingID&#41;; ?>
</td>
<td align="left" class="row_main" width="50%" valign="top">
<? renderTemplateArea&#40;top_right,$listingID&#41;; ?>
</td>
</tr>
</table>
<br>
<table width="98%" valign="top">
<tr>
<td>
<? renderTemplateArea&#40;center,$listingID&#41;; ?>
</td>
</tr>
</table>
<table width="<? echo $style&#91;left_right_table_width&#93; ?>" cellpadding="<? echo $style&#91;left_right_table_cellpadding&#93; ?>" cellspacing="<? echo $style&#91;left_right_table_cellspacing&#93; ?>" border="<? echo $style&#91;left_right_table_border&#93; ?>">
<tr>
<td align="left" class="row_main" width="50%" valign="top">
<? renderTemplateArea&#40;feature1,$listingID&#41;; ?>
</td>
<td align="left" class="row_main" width="50%" valign="top">
<? renderTemplateArea&#40;feature2,$listingID&#41;; ?>
</td>
</tr>
</table>
<br>
<table width="<? echo $style&#91;left_right_table_width&#93; ?>" cellpadding="<? echo $style&#91;left_right_table_cellpadding&#93; ?>" cellspacing="<? echo $style&#91;left_right_table_cellspacing&#93; ?>" border="<? echo $style&#91;left_right_table_border&#93; ?>">
<tr>
<td align="left" class="row_main" width="50%" valign="top">
<? renderTemplateArea&#40;bottum_left,$listingID&#41;; ?>
</td>
<td align="left" class="row_main" width="50%" valign="top">
<? renderTemplateArea&#40;bottum_right,$listingID&#41;; ?>
</td>
</tr>
</table>
<br>
<br><a href="email_listing.php?listingID=<? echo $listingID ?>">Email This Listing to a Friend</a>
<br><a href="contact.php?listingID=<? echo $listingID ?>">Contact the Artist</a>
<br>
<? userListingsOnListingPage&#40;$listingID&#41; ?>
<br><br>
<hr size="1" width="75%">
<? hitcount&#40;$listingID&#41; ?>

</td>
</tr>
</table>

<?
&#125; // end if &#40;$show_listing == "yes"&#41;
&#125; // end elseif &#40;$listingID != ""&#41;

include&#40;"$config&#91;template_path&#93;/user_bottom.html"&#41;;


Your mileage may vary with this info. Keep in mind that I started with some old Jon code and rolled in quite a few things of my own. It should give you a rough idea though.

best luck,
verdon

marb
02-22-2004, 05:01 AM
In my comment I forgot to say that I have admiration for the page you make.
I was no intent to offend you. :oops: :oops:
It was ferry naive and offer my sincere apology for that.
I know and see how much work it is to make that page.
It give me inspiration to make some changes on what I'm doing.



Marten :)

verdon
02-22-2004, 12:54 PM
In my comment I forgot to say that I have admiration for the page you make.
I was no intent to offend you. :oops: :oops:
It was ferry naive and offer my sincere apology for that.
I know and see how much work it is to make that page.
It give me inspiration to make some changes on what I'm doing.

Marten :)

Hi Marten,

I never understood or took any offense :)

salut,

RealEstate
05-26-2005, 03:28 PM
Verdon,

Are you making your mod avail?

Marten, your link http://www.kunst.nl/eng/bio/artistsearch.php
is 404.
Do you still have this website or part of it online?

marb
05-27-2005, 07:40 AM
RealEstate,

I have PM you.

Marten :)

RealEstate
05-27-2005, 04:37 PM
Marb, I pm you back. Thanks for the reply.