Quantcast
Channel: SMFHacks.com
Browsing all 6557 articles
Browse latest View live

Using "cache_put_data" on SSI functions

Is it possible to use this caching function on SSI functions?For example, here is my SSI function being called somewhere on the website:[code]$what = ssi_recentTopics('10', $exclude_boards = array(29,...

View Article



Re: Using "cache_put_data" on SSI functions

Yes it is you can do caching on itHere is an example that does 60 secondsReplaceCode: [Select]$what = ssi_recentTopics('10', $exclude_boards = array(29, 44, 17, 38, 53, 61), 'array'); With[code]   if...

View Article

Re: Using "cache_put_data" on SSI functions

It is good to do for any data that isn't changing in a short period of time.

View Article

Pro 4

HiToday I installed the V4 and there is an error on the site when someone goes to add a download. The error is[code]You have an error in your SQL syntax; check the manual that corresponds to your MySQL...

View Article

Re: Pro 4

Posted update to fix issue4.0a!Fixed bug in SMF 2.0 on add download

View Article


Re: Pro 4

Many thanks. All tested and working OK on both sitesRegardsDave

View Article

Show to certain membergroups only

I find that this doesn't work... If a member is not part of group 2 or 3 or 4, etc., then echo 'Whatever';Code: [Select]if(!in_array($user_info['groups'],...

View Article

Sharing Account Protection

Is there a way we can prevent users from sharing accounts. I have a subscription site where a problem I have is group buys where 5 or 6 users are using one account.I think by using sessions against...

View Article


Re: Show to certain membergroups only

Well because $user_info['groups'] is an array as well and doesn't work like that since users can have more than one group.

View Article


Re: Show to certain membergroups only

So how do I combine the 2nd one instead of having the huge query?

View Article

Re: Pro 4

I was a bit to quick there.Sorry VB but the same error happens when you edit a download too.[code]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version...

View Article

Re: Pro 4

4.0b!Fixed bug in SMF 2.0 on edit download

View Article

Re: Using "cache_put_data" on SSI functions

Very similiar[code]   if (($topPostercache = cache_get_data('ssi_toppostercache', 90)) == null)   {      $topPostercache = ssi_topPoster(7,'week');      // Check if cache is enabled      global...

View Article


Re: Pro 4

Many thanks, any further issues and I'll let you knowDave

View Article

Re: Menu Editor Pro vulnerable to hacks/infections?

thanks

View Article


Image may be NSFW.
Clik here to view.

Re: Using "cache_put_data" on SSI functions

Wonderful

View Article

Re: Using "cache_put_data" on SSI functions

Keep on caching you can run a lot of sites on one server that way. I run like 50,000 forums off one server for very low cost.

View Article


Image may be NSFW.
Clik here to view.

Re: Using "cache_put_data" on SSI functions

Insane, surely their are drawbacks AND I bet a lot of those forums are bone stock. How many queries do you get loaded per second, simultaneously?

View Article

Re: Using "cache_put_data" on SSI functions

All sites hosted on createaforum.com my forum hosting service plus smfforfree.com and smfnew.com They also have gallery pro installed if they want it and alot of my other mods as well.Not too bad one...

View Article

Re: Users cannot post in there User Gallery

Do they have the "Personal Gallery" checked in their membergroup under Admin -> Permissions. modify each membergroup

View Article
Browsing all 6557 articles
Browse latest View live




Latest Images