![]() |
Hey guys,
In case anyone else has the full sized images not showing up CHMOD 600 issue ... In functions_sr_classifieds_upload.php there is a line saying: Code:
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { Code:
if (copy($_FILES['userfile']['tmp_name'], $uploadfile)) { Apparently this is a result of the version of PHP and the variables set in your PHP.ini. Makes sense because none of the scripts similar to this i've run use the move_file command, all used the copy. Hence my WTF hair pulling yesterday. I didnt even want to begin messing with my server wide or site wide settings, but this worked, so Im good. Hopefully anyone else experiencing this down the road can use this. |
I hate to be a spaz but when doing the template edits, I use the search in template feature to find:
$vbphrase[posts]: $post[posts] <br> Unfortunately I get that it is not found in either the postbit or postbit_legacy template. As a result I don't know where to add: <if condition="$post['userid'] AND $vboptions[sr_classifieds_active] == '1'"> <div>$vbphrase[sr_classifieds_rating] $post[sr_classifieds_pcnt]% <a href="sr_classifieds.php?do=user&userid=$post[userid]">($post[sr_classifieds_score])</a></div> </if> Can anyone suggest a solution? ps- I have version 3.5.4 Thanks, Gehanna |
Quote:
Try looking for this: $vbphrase[posts]: $post[posts] I posted this earlier in the thread but I guess it wasn't updated... remember to add the <br> before the code you are adding or it will be on the same line. |
Hello Quarterbore :D
I just found this in postbit_legacy: <div> $vbphrase[posts]: $post[posts] </div> I assume that is what I am looking for but let me ask you this. Because the </div> is present, will I still need to add the <br> before the code? Thanks Much for your reply by the way. Sincerely, Gehanna EDIT TO ADD -- Nevermind. I discovered that it is not necessary to add the <br> provided the </div> is there. |
Id also like to see a selection box option for the additional fields, were users can select additonal terms, as opposed to the radio box list, and if a search function could be made to search the items that are selected in the selection box that would be grand
Loving this so far :D |
I just noticed that this does not seem to have any limits on file or image size yet and that the image display is just a reduced version of the image uploaded to the server... It is pretty important that the users can not upload huge images so I would suggest a maximum file (memory or height/width) size check be incorporated in the CP at some point...
|
Got to page 13 and didn't see anyone cover this error...
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635 Any ideas? |
Quote:
|
Quote:
Code:
if($permissions['sr_classifieds'] & $vbulletin->bf_ugp['sr_classifieds']['canedit'] OR $bbuserinfo[userid] == $user[userid]){ Code:
if($permissions['sr_classifieds'] & $vbulletin->bf_ugp['sr_classifieds']['canedit'] OR $vbulletin->userinfo[userid] == $user[userid]){ |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
I noticed there has been some confusion to the "rating" in the forum posts (under the post count) for some users... I think it's a good idea to rename it to "Commerce Rating" or something to that effect to avoid confusion between it and user ratings (which is enabled on some boards, but not mine)
|
Quote:
|
Quote:
|
Before I hack this... Is there going to be a new main page to this that shows the last X items listed in all categories for the main page of this (ideally where X is defined in the Admin CP)?
I am starting the process of trying to figure the code out to do it myself so I figured if you were going to have this I might not invest the time... |
Quote:
|
What I am trying to do is make a home page that will show the latest classifieds in all categories on the home page. I have created a sample (please don't laugh at my "paint skills" ;) ) image that is attached.
I retained the stats of the original but I would like navigation on right or left (I showed it on the left) that allows my members to quickly go to the area they are interested in. I only think we need one "Add Advertisement Button" as when you post the advertisement you tell the script which directory it goes into. You can also see that I added an "Advanced Search" on the left... That will allow members to pick values from my custom fields (state, country, new-used, etc) and would then be used in the search criteria to limit results returned. On the right, this is just a list of the last X classifieds... The Description text would link to the advertisement, category would link to the category the ad is from... It would be nice to be able to add more of the "custom" fields in this as well as perhaps location or ??? is important for some types of advertisements? I have already started working on this but I am not that good at figuring out the mysql parts of code and the search strings in your little script has me quite confused.. I'll pay $100 for a page that looks like this when done (assuming you could help with the advanced seach as well...) Oh yea, what gives with the negative times? I guess there is no "kill" for expired classifieds yet? |
Quote:
|
I think we need more people to verify as I get negative times even when logged out of my site.. It shows three active ads but there are five shown and two have negative time...
http://www.timeshareforums.com/sr_cl...y&categoryid=1 Now, I have hacked my code to all heck learning how this works... I got your PM and I'll buy the premium with the upgrade as soon as you are ready to release... I have asked my members what else we would want so that I can help you improve this OR I can evaluate what I need to do on my end to customize it... |
Quote:
|
Quote:
|
Quote:
|
Quote:
I use Photopost pro and I have debated changing the images so that members leave the image in their member directory so it counts towards their total image limit... that way they can take care of the space issue themselves... |
Quote:
Oh and by the way, you forgot to click install :p |
Quote:
|
Quote:
|
[high]Changelog:[/high]
4-13-06 * Security patch while editing ads (there was a little hole) All that needs to be done is reuploading sr_classifieds.php ZIP UPDATED!!! |
Oops. The zip didn't upload right. Fixed. Redownload if you downloaded it previous to this post.
|
great hack.
However, I just installed it, and all appeared to be working fine until I tried to post a new add. I recieved this error: "Could not find phrase 'sr_classifieds_upload_failed'." |
btw, this only occurs when I try to upload a pic with the ad
|
ok, I'm an idiot, got it working.
However, what is that phrase? I would like to add it in, just incase it needs to appear for someone else |
Quote:
Yea i need to add that one. Add the phrase: varname: sr_classifieds_upload_failed product: sr_classfieds test: The image failed to upload. |
Oh also please include the functionality in the pro version to post as another user, so that we can transfer existing ads :)
|
Quote:
|
I'm not sure but there is a 90% chance that I'll buy it :)
I have to know the features to ensure it meets my -quite different than most sites- needs to be 100% sure :) |
Quote:
|
Quote:
*clicked install* If you uninstall the hack AND remove your xml, it is fine. No probs at all. I'll send you my ftp. |
Quote:
|
All times are GMT. The time now is 10:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|