Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - preddy25

Pages: [1] 2
1
General SMFShop Discussion / Re: Credit for attachments?
« on: May 08, 2007, 10:58:53 pm »
how can i restrict this to only a certain board , for example a photo-category .. attachment bonuses...

2
Coding / Re: Members allowed to sell their own files
« on: May 08, 2007, 10:55:51 pm »
i tried it and it works great..just need some more work on  it

perhaps here are some suggestions

(1) item stocks sets to a default of 50  , should be 1 ?
(2) permissions on who can use the myshop options ( or just an item to buy their own shop)
(3) permission to control where the uploads goes to a certain category (musics/pics etc)
(4) the items should be uploaded to their own SMFshop categories and so users can click directly to their shop from profile?

(4) an shop admin side to control all the above , perhaps even a personal loan/bank option for users to lend our their monies.

3
Items / Re: 'Profile Image' item
« on: May 05, 2007, 10:06:12 am »
tyvm daniel ! ya da best! ;D

4
VB has it , but SMF shop items doesnt display mini-images on the post side..if thats wad i remember correctly ..only the profile image item can show 1 single unit but you have to customize it..

last i heard daniel used to work on that..but thats a long time ago and not going to be any in the near future..

so far u still have to click into "view inventory" to see what item this person has

5
Items / Item Request : Immunity
« on: May 04, 2007, 07:44:58 pm »
well , since technodragon has done a insurance/dragon shield  for some calamity events , can anyone modify the code so that it becomes a immunity against some selectable events?

:D immunity challenge!!

6
Items / Re: 'Profile Image' item
« on: May 04, 2007, 07:43:03 pm »
i got a question , after using the profile item , it shows ...but what should the user do if i wanna remove it from the profile post? i dont see any options other than admin going to database to remove it? its not in the inventory anymore?

7
General SMFShop Discussion / Item Suggestion : Random Restocks
« on: May 04, 2007, 01:27:05 am »
hi guys , since someone already done the variable restock rate , iziit easy to do a random re-stock rate too? i mean some rare items should randomly appear so that would have a lot of members camping for it :D :police:

8
yup  understood , but in security.php code , there isnt any mention of boards array?

9
Modifications / Re: SMFPets Version 0.2
« on: May 01, 2007, 01:14:56 am »
the uninstalls from the previous 0.0 n 0.1 were pretty sloppy..due to the hack i put in too much hacks from this forums myself..hheheh ;D...even though some mods and files were "successfully" removed , they were still there n traces of it in the files..

so anyone upgrading to 0.2 , its better to manually do a clean up of the files just to avoid alot of confusion i had earlier...but the pet breeds files and pets database should be backup before anything happens

10

is this code for specific boards like the ones u posted above ?1 ,3,4 ? do u we use the same?






ok, now before you alter this, i dont recommend unless daniel15 oks it, since he knows more about SMF coding guidelines.

annyways, open up Sources/Security.php
AGAIN I DONT RECOMMEND, UNLESS DANIEL15 OKS
find
Code: [Select]
// Administrators are supermen :P.
if ($user_info['is_admin'])
return true;

// Are we checking the _current_ board, or some other boards?
replace with
Code: [Select]
// Administrators are supermen :P.
if ($user_info['is_admin'])
return true;

$temp = is_array($permission) ? $permission : array($permission);
if(in_array('post_new', $temp))
{
$row= mysql_fetch_assoc(db_query("
SELECT money
FROM {$db_prefix}members
WHERE ID_MEMBER = {$ID_MEMBER} LIMIT 1", __FILE__, __LINE__));
if($row['money'] < 10)
return false;
}

// Are we checking the _current_ board, or some other boards?

11
Modifications / Re: SMFPets Version 0.2
« on: April 30, 2007, 01:21:47 pm »
oh that would be cool..item ...Pet Poison...20k...lol

0.2 changes
Icon links to pets by posts. *Images have been fixed. *Pet leader board now exists. *Pet food has been given an update. *Other minor stuff, I think.

basil , wad do u mean by links pets by post?

and i m a little lost on this when u creating pet food item
"phrase to output upon use: (use xNAMEx for pet name, xHUNGERx for hunger level and xHAPPYx for happiness level"
what should i enter in the blank?


12
Modifications / Re: SMFPets Version 0.2
« on: April 30, 2007, 12:15:15 pm »
hmmm looks like my booboo...your code is correct, think i mixed up with the old .1 files into the new ones...
its just a problem where $boardurl is not declare in the function..i check your packages files and its correct!

hehee..thanks !

oh ya one more thing , you dont intend to include the kill pets function into later releases? i gotta put them back again now..

13
Modifications / Re: SMFPets Version 0.2
« on: April 30, 2007, 11:40:08 am »
woopee!
installation is a smooth , i backup all the pets images n pet files b4 the migration . and replace them back into the relevant folders , everything seems to be okay  except the old issue of pets pics not appearing in pets central , i previously solved that with some hacks on this board on 0.1.

which file should i look at ?

14
Coding / Re: Combinding with the invite mod
« on: April 29, 2007, 02:40:28 pm »
This is the original modification done by the invite mod on register.php....i think my original hack was wrong coz even i used the original hack , only administrator sending out invites geta accrediated but the rest of the others do not , even after they are upgraded to admin permissions. weird! i check the forum logs there isnt any associated error logs with regards to this . And it works on administrator accounts only without the use of invite_keys , where the returning address for referals would like like
http://192.168.1.200/forums/index.php?action=register;inviter=1 ( inviter=1 would be administrator)
but if using keys it would use the key to find out whats the member_id ..
http://192.168.1.200/forums/index.php?action=register;invite_key=5ae9080878e45ce40807209601c975a343308cc8
i think thats where it gets confusing for me...the entries are all right in sql database..the invite mod works find it just that updating points n karma doesnt work properly..



Original 
// Invite MOD; looks like registration went ok, let's mark the invite key as used and who it was used by.
   if ($context['invite_key'] !== false)
   {
      db_query("
         UPDATE {$db_prefix}invites
         SET ID_REGISTRATION = '$memberID'
         WHERE inviteKey = '{$context['invite_key']}'
         LIMIT 1", __FILE__, __LINE__);
   }
   elseif (!empty($_REQUEST['inviter']) && (int)$_REQUEST['inviter'] !== 0)
   {
      db_query("
         INSERT INTO {$db_prefix}invites (ID_MEMBER, ID_REGISTRATION, inviteTime)
         VALUES ('" . (int)$_REQUEST['inviter'] . "', '$memberID', " . time() . ")
         ", __FILE__, __LINE__);
   }

15
Coding / Re: Combinding with the invite mod
« on: April 29, 2007, 12:25:24 pm »
i think made some error in the above posts :D ... feeble can u help me see if the code below is correct? i cant get it to work anymore...took the whole day to troubleshoot but cant seem to find out why this code is not updating anymore....



// Invite MOD; looks like registration went ok, let's mark the invite key as used and who it was used by.
   if ($context['invite_key'] !== false)
   {
      db_query("
         UPDATE {$db_prefix}invites
         SET ID_REGISTRATION = '$memberID'
         WHERE inviteKey = '{$context['invite_key']}'
         LIMIT 1", __FILE__, __LINE__);

     }
   elseif (!empty($_REQUEST['inviter']) && (int)$_REQUEST['inviter'] !== 0)
   {
      db_query("
         INSERT INTO {$db_prefix}invites (ID_MEMBER, ID_REGISTRATION, inviteTime)
         VALUES ('" . (int)$_REQUEST['inviter'] . "', '$memberID', " . time() . ")
         ", __FILE__, __LINE__);

       if ($getID)
      {
         $ID = $getID['ID_MEMBER'];
         $addMoney = 100;
         db_query("
         UPDATE {$db_prefix}members
         SET money = money + '$addMoney'
         WHERE ID_MEMBER = '$ID'
         LIMIT 1", __FILE__, __LINE__);
      } 
       
   }

Pages: [1] 2