PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member tybeers
~ New Today: 0
~ New Yesterday: 0
~ Overall: 3656

~ People Online:
~ Visitors: 11
~ Members: 0
~ Total: 11
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 21 November


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

Situl personal NICU RANCOV Forum Index


Reply to topic Page 1 of 2
Goto page 1, 2  Next
admin settings Leave on DB
Message Author
Reply with quote
Post Posted: Monday 04 December, 2006 14:05

I tried increasing the amount of headlines for 'Empty DB when reaches:' and 'Leave on DB:'

'Empty DB when reaches:' works ok with the new setting, but 'Leave on DB:' keeps reverting back to 5 headlines.

I there a combination needed for these settings?

View user's profile Send private message
Reply with quote
Post Posted: Monday 04 December, 2006 14:06

I made the changes in index.php delnewsmany and leavenews

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 06 December, 2006 11:56

Do you mean that you changed the amount on "General Settings [Leave on DB:]" and doesn't work?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 07 December, 2006 00:23

After changing it in admin/index.php I changed it in settings to the new higher amount but it does not save, it resets to 5

View user's profile Send private message
Reply with quote
Post Posted: Sunday 10 December, 2006 20:13

found why, its because you cannot set Leave on DB: to more than 99

View user's profile Send private message
Reply with quote
Post Posted: Sunday 10 December, 2006 22:48

Hmmm....why?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Wednesday 14 March, 2007 04:17

I still dont understand this
if I change this code to leave 1000 news 50,50. In admin settings when I set leave news to say 500 it saves it as the start amount 50 not 500
Code:
 ".make_select_opt("leavenews",30,$leavenews,5,5)."


View user's profile Send private message
Reply with quote
Post Posted: Thursday 15 March, 2007 00:40

Yes this is correct.

Code:
make_select_opt($selectname,$limit,$val,$first,$pas)


$selectname is the name of the selector
$limit is the limit [the list/select will go till this value]
$val the value that must be selected when listing the whole list/select
$first is the first value from that list
$pas is the step or increment of the list

There are some requirements when you are playing with this function: $limit must be divided exactly by $first and also you should choose the $pas so at one point, $first incremented by $pas [one or many times] should reach to $limit [exactly], otherwise the loop will just go forever.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 15 March, 2007 02:27

brain no good, still confused.
could you show me the math for
Code:
 ("leavenews",30,$leavenews,5,5)


View user's profile Send private message
Reply with quote
Post Posted: Thursday 15 March, 2007 09:01

Means the limit/the maximum is set to 30 feeds[last feeds on each category!!!], $leavenews is probably on 10[meaning leaving in each category the last 10 feeds, when emptying the DB occurs], 5 is the first value from de list/select and 5 is the increment.
You will have on the list: 5, 10, 15, 20, 25, 30<--limit

If you want toplay with the number of feeds when the empty operation will be triggereed you must to play with this one: make_select_opt("delnewsmany",2000,$delnewsmany,50,50)
here you have [50, 100, 150, 200, 250,...............1900, 1950, 2000]

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 15 March, 2007 18:35

I understand that bit but I wanted to change the amount of feeds to leave on DB.
Is it not possible? whenever I try 2500, 50,50 it fails but I think that should work.


this is why i dont understand

limit 30 first 5 inc 5
30/5=6

View user's profile Send private message
Reply with quote
Post Posted: Thursday 15 March, 2007 20:00

The number of feeds that remains in your DB depends on how many categories do you have.
If you have 7 categories and you have choosen to "Leave on DB" saying 10 "latest feeds (on each category)", when the DB will be emptyied will still remain 7 X 10 = 700 feeds[total]
If there is a[or more] category with less than 10 feeds inside than overall you'll have less then 700 feeds.

From the other selector [that one with the default 2000] you only can set the number of feeds that will trigger the deletion operation, that's all. You cannot set from there anything else. ["Empty DB when reaches: XXXX feeds"]

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 15 March, 2007 20:28

Found the problem,
It was because of the database field being set to tinyint so I changed it to smallint
Now 2500, 50,50 works
Very Happy

View user's profile Send private message
Reply with quote
Post Posted: Thursday 15 March, 2007 20:42

Which one?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 15 March, 2007 21:19

leavenews

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 2
Goto page 1, 2  Next
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Page Generation: 0.87 Seconds