The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
help me to make this query compatible with vb4.2.3
Hi
I have this code PHP Code:
for example in this line PHP Code:
Any help? |
#2
|
||||
|
||||
I dont really know what you mean by "make it compatible with vb4.2.3 syntax".
There isnt such a thing as 4.2.3 Syntax. That query is clearly designed for vB4 as its reading the cms tables, and aside from the fact there is no such column as "myfeaturetype" in the node table (I assume thats something you added) then the query is fine. Have you actually run the query ? What makes you think pagetext is empty/null ? (and where is $des_length set ?) |
#3
|
|||
|
|||
I mean compatible with mysqli
I run the query and it gives me output if the pagetext not mediumtext type. if I changed this line PHP Code:
PHP Code:
or PHP Code:
BTW this code was work perfectly with vb4.2.1 |
#4
|
|||
|
|||
here is the complete file
|
#5
|
||||
|
||||
I dont see what relevance pagetext being mediumtext is, php does not care (nor does vbulletin, and and its always been that type anyway).
Quote:
I dont believe you are running this query direct on the server, and changing the column type (and to what would you change it anyway). The code you posted above isnt in the file you attached, though some similar looking code is. Have you done any debugging to print $section directly after the start of the While loop ? I seriously doubt pagetext is actually empty, more likely all the functions you are running it through are doing something. |
#6
|
|||
|
|||
yes the code is not same, I modified it a little bit in debugging process.
I run the query by running the file Anyway pagetext not empty it is the pagetext of the the articles on my site. |
#7
|
||||
|
||||
Exactly, so one of the many functions you are running it through is doing something, so you need to figure out which.
|
#8
|
|||
|
|||
I tested all functions and it works fine and the whole file was work great with vb4.2.1 and PHP 5.3.28.
--------------- Added [DATE]1465774866[/DATE] at [TIME]1465774866[/TIME] --------------- now I'm using PHP 5.6.22 and vb4.2.3 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|