Quote:
Originally Posted by qpurser
Morning Chris,
The newest version rocks and almost everything is solved now.
I just found something with the "datagrid"
** I looked up the datagrid manual and it says in the manual to have the datagrid using the whole width of the screen you have to set this: $objGrid -> liquidTable = false;
I changed it in your phpmydatagrid.class.php from false to true but that didn't change anything.
|
Wrong. linguidTable must be true and below you need to setup the width. eg width = '100%'. But the problem is not there. You need to set the width of every column ($objGrid-> FormatColumn). It's the value before the aligment. The problem is that this version supports only fixed width. To be honest, I've a version which support related width (eg 20 means 20% and not 20px as this one), but as I've paid the author to make this custom work for me (also make column title clickables for changing ordering and removed the arrows on the left), I will include this updated version only with my PRO version.
Quote:
Originally Posted by qpurser
**For some reason the "condition" text (new/used) doesn't show up in the datagrid.
This is the code you have from the latest classifieds.php:
$objGrid-> FormatColumn("newused","".$vbphrase["microclassifieds_condition"]."", "5", "30", 1, "80", "center", "select:1_".$vbulletin->options["microclassifieds_new_item"].":2_".$vbulletin->options["microclassifieds_used_item"]."");
$arrConditions = array("['adtype']==3" => "['buynow']",
"['adtype']!=3" => "['price']"
** If you look in the screenshot below the datagrid. It shows my "body" background I am using in the site instead of just the plain white background.
|
Typo as usally. Its vbphrase an not vboptions at:
"select:1_".$vbphrase["microclassifieds_new_item"].":2_".$vbphrase["microclassifieds_used_item"]."");
Chris