• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > Social & Community Factory Suite for Joomla CMS. > HOT or NOT Factory > I miss Simple things here ?!
Pages: [1]
« previous next »
  Print  
Author Topic: I miss Simple things here ?!  (Read 1197 times)
nylo
Newbie
*
Posts: 4


View Profile
I miss Simple things here ?!
« on: March 10, 2010, 12:48:14 am »

Hi,

is there any way to display the user name of the image uploader??
and what about a delete option for uploaded images by the user?....

im disapointed  Cry

PLZ Help im using v 1.0.7
« Last Edit: March 10, 2010, 10:10:45 am by Erik » Logged
alex.d
The Factory Staff
Hero Member
*
Posts: 1469


Senior Developer


View Profile WWW
Re: I miss Simple things here ?!
« Reply #1 on: March 10, 2010, 09:42:25 am »

Hello!

The user name is displayed in the Hot or Not Deluxe version.

Right now, only admins can delete uploaded images. But we'll take your request under consideration for the next releases.
Logged

The Factory's Development Team member.
nylo
Newbie
*
Posts: 4


View Profile
Re: I miss Simple things here ?!
« Reply #2 on: March 11, 2010, 01:02:08 am »

No way to explain that here ? shouldn't be much code...

I've checked the code and my idea was to add a new field in mysql database
in the hotornot_image table for example username..

then i've changed the update.php in the folder models:
Code:

$query = ' INSERT INTO #__hotornot_image'
           . ' VALUES("", "' . $user->id . '", ' . $counter->current_folder . ', "' . $extension . '", 0, 0, NOW(), "' . $this->user . '" )';

i tryed to save the current user name when uploading then display somewhere...
by typing <?php echo $this->image['username']?>

but hmm still dont work.... i've just started to learn php and mysql bcuz of this script...
   
Logged
Erik
Administrator
Hero Member
*****
Posts: 3121



View Profile
Re: I miss Simple things here ?!
« Reply #3 on: March 11, 2010, 10:11:29 am »

Learning PHP and MySQL on a professional level, it's not so simple as people may think.
If you are not managing take a look at the deluxe version or contact a developer which can adjust the application according to your needs, since this is thew reason why we provide un-encrypted code.
Logged
nylo
Newbie
*
Posts: 4


View Profile
Re: I miss Simple things here ?!
« Reply #4 on: March 12, 2010, 12:53:56 am »

Got it! LOL it was not so hard^^

How to:

for version 1.0.7:

Edit /components/com_hotornot/models/upload.php

search:

$query = ' INSERT INTO #__hotornot_image'
           . ' VALUES("", "' . $user->id . '", ' . $counter->current_folder . ', "' . $extension . '", 0, 0, NOW() )';



replace with

$usr = $my->name;
$query = ' INSERT INTO #__hotornot_image'
           . ' VALUES("", "' . $user->id . '", ' . $counter->current_folder . ', "' . $extension . '", 0, 0, NOW(), "' . $usr . '" )';



open /components/com_hotornot/models/show.php

search

$query = ' SELECT i.id, i.hits, i.rank, i.extension, i.folder, d.description, g.gender, "hotornot" AS source'
           . ' FROM #__hotornot_image i'
           . ' LEFT JOIN #__hotornot_description d ON i.id = d.image_id'
           . ' LEFT JOIN #__hotornot_gender g ON i.id = g.image_id'
           . ' WHERE i.id';



replace with

$query = ' SELECT i.id, i.hits, i.rank, i.extension, i.folder, d.description, g.gender, i.usr_name, "hotornot" AS source'
           . ' FROM #__hotornot_image i'
           . ' LEFT JOIN #__hotornot_description d ON i.id = d.image_id'
           . ' LEFT JOIN #__hotornot_gender g ON i.id = g.image_id'
           . ' WHERE i.id';



open /components/com_hotornot/views/show/tmpl/default.php

search

<div style="text-align: center; margin-bottom: 20px;">


add after

Uploader: <b><?php echo " ".$this->image['usr_name']; ?></b><p>
« Last Edit: March 12, 2010, 12:55:43 am by nylo » Logged
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script