Register Members List Search Today's Posts Mark Forums Read

Showing results 1 to 10 of 10
Search took 0.01 seconds.
Search: Posts Made By: shka
Forum: vB5 Programming Discussions 31 Jan 2019, 17:08
Replies: 6
Views: 68
Posted By shka
It is a question of your error handling style. ...

It is a question of your error handling style.
You can use "Select count(userId) as userCount from table where userId=$", check if >0 and then delete.
Or you can use directly "Delete form table...
Forum: vB5 Programming Discussions 31 Jan 2019, 16:50
Replies: 6
Views: 68
Posted By shka
Delete all from table? Or is generation the...

Delete all from table? Or is generation the condition "=$" your problem?
Forum: vB5 Programming Discussions 31 Jan 2019, 16:42
Replies: 6
Views: 68
Posted By shka
Sorry I read column, not row. What is the goal of...

Sorry I read column, not row. What is the goal of your sql-statement.
Forum: vBulletin 4.x Add-ons 27 Dec 2018, 08:00
Replies: 2,062
Views: 347,095
Posted By shka
@snakes1100: It is not a vB4.2.5 issue....

@snakes1100:

It is not a vB4.2.5 issue. "rows" is a reserved word since MariaDB 10.2.4 (https://mariadb.com/kb/en/library/mariadb-1024-release-notes/).

Quick and dirty you can change the sql...
Forum: vB5 Programming Discussions 07 Dec 2018, 09:00
Replies: 17
Views: 555
Posted By shka
I think the problem with his first try is - his...

I think the problem with his first try is - his strings are two chars (with \n ?)

He wrotes

array(4) {
[0]=>
string(2) "1
"
[1]=>
string(4) "2
Forum: vB5 Programming Discussions 07 Dec 2018, 07:06
Replies: 17
Views: 555
Posted By shka
Von hinten durch die Brust :D

Von hinten durch die Brust :D
Forum: vB5 Programming Discussions 06 Dec 2018, 14:00
Replies: 17
Views: 555
Posted By shka
Ok, my mistake. It seems that vB5 doesn't have a...

Ok, my mistake. It seems that vB5 doesn't have a plugin/hook system like vB4. The hooks you see are template hooks, you need php hooks.

For my addons I use only api extensions
Simple example:
-...
Forum: vB5 Programming Discussions 06 Dec 2018, 12:08
Replies: 17
Views: 555
Posted By shka
Try {vb:debugvardump $arrayofuserids}

Try {vb:debugvardump $arrayofuserids}
Forum: vB5 Programming Discussions 06 Dec 2018, 11:30
Replies: 17
Views: 555
Posted By shka
You have to register your variable for your...

You have to register your variable for your template (or register global)

In vB4 you can

ob_start();
include('path/arrayofuserids.php');
$arrayofuserids=ob_get_contents();
ob_end_clean();
...
Forum: vB4 Programming Discussions 05 Dec 2018, 22:19
Replies: 4
Views: 151
Posted By shka
One of the changes from php 7.1 => 7.2...

One of the changes from php 7.1 => 7.2 http://php.net/manual/en/migration72.incompatible.php
Warn when counting non-countable types
An E_WARNING will now be emitted when attempting to count()...
Showing results 1 to 10 of 10

 

New To Site? Need Help?

All times are GMT. The time now is 10:09.

Layout Options | Width: Wide Color: