View Full Version : Input fields being filled when integrated
burntire
05-18-2007, 05:47 PM
Note as well that v3.0 has been released today, which includes a setting titled "Process PHP File Modules Within A Function". Turning that option on in the new version should prevent integration problems like this.
Process PHP fixed the calender issue, but the advanced search is still auto filling info.
Any suggestions?
Brian
05-18-2007, 06:06 PM
Which fields exactly, and what are they being filled with?
burntire
05-18-2007, 06:11 PM
Which fields exactly, and what are they being filled with?
Image attached. It appears to be taking the query from the random image block and adding it to the search by keyword field.
SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.height,p.width,c.catname,c.photo s,c.posts FROM pp_photos p LEFT JOIN pp_categories c ON c.id = p.cat WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0 ORDER BY RAND()
burntire
05-18-2007, 06:17 PM
Turned off the module and the problem went away. Is there any way to exclude a module from a specific PHP file?
Brian
05-18-2007, 06:21 PM
Can you link me to the module you're using for that?
Is there any way to exclude a module from a specific PHP file?
You could add a new CMPS page that doesn't have that module active and then integrate your search.php file with that page instead.
burntire
05-18-2007, 06:34 PM
Sent PM
Brian
05-18-2007, 06:47 PM
Apparently I wasn't thinking about modules that had the "Clean File Output" option enabled when I added the setting to print them within a function, so that module was not being processed properly. I've just updated the download package here with the fix, so if you'll download the files again and replace your /forum/includes/vba_cmps_include_top.php and vba_cmps_include_bottom.php files with the new ones, that should take care of the problem.
burntire
05-18-2007, 06:51 PM
Apparently I wasn't thinking about modules that had the "Clean File Output" option enabled when I added the setting to print them within a function, so that module was not being processed properly. I've just updated the download package here with the fix, so if you'll download the files again and replace your /forum/includes/vba_cmps_include_top.php and vba_cmps_include_bottom.php files with the new ones, that should take care of the problem.
Fixed the problem.:D
Thanks for the great support.
Jeff
burntire
05-18-2007, 06:56 PM
Fixed the problem.:D
Thanks for the great support.
Jeff
I spoke too soon. Now the photo module is not appearing when I use the Process PHP File Modules Within A Function?
Brian
05-18-2007, 07:00 PM
One of these days I'll get something right on the first try. :/
Try looking in your includes/vba_cmps_include_top.php file for this code:
$home[$modid]['content'] = ob_get_contents();
Replace with this:
$home[$mods['modid']]['content'] = ob_get_contents();
I've also updated the download package again if you'd rather download and replace the file.
burntire
05-18-2007, 07:05 PM
Hey it takes me 10 times to get anything right. LOL
It works great now.
Thanks
Jeff
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.