MyBB Hacks

Full Version: Trading Forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Did you force the postbit layout to horizontal for that forum?
I don't found "5. Force Postbit Layout: Force horizontal postbit layout"

I go in: ACP - Forum and messages - Market Forum - Edit setting forum - XThreads Options (note that these settings do not cascade down into child forums) and here I don't have Force Postbit Layout.

I have: Template Prefix, Language File Prefix, Thread Grouping, Show first post on every showthread page, Enable XThreads' Inline Forum Search, Offset forumdisplay {$colspan}, Settings Overrides, Override Posts Per Page, Hide Forum, Hide Forum in Breadcrumb Trail, Allow Blank Post Message, Don't include this forum's threads/posts in global forum statistics, Default Thread Filter, Custom WOL Text
Click the Settings Overrides setting:
  • Setting: Show Thread Options -> Post Layout
  • Value: horizontal

    Code:
    postlayout=horizontal

thank you, now it is perfect! Biggrin
I've updated the first post for using the Settings Overrides setting.
Thanks Smile
Hi, Can I put a default image for a section (ex. default image only for Hardware)?
Thank you
Do you mean when a user doesn't upload an image for their product?
You can try to edit the Blank Replacement Value setting for your trdfimg custom field. Use conditional there.
For example:

Code:
<if $GLOBALS['threadfields']['trdfcat'] == 'Hardware' then>
	<img src="path_to_default_hardware_image" alt="Hardware" />
<elseif $GLOBALS['threadfields']['trdfcat'] == 'Software' then>
	<img src="path_to_default_software_image" alt="Software" />
<else>
	<img src="path_to_default_other_image" alt="Other" />
</if>

I had a similar thing and I did this:

I put this code in my blank replacement value and the user gets a different image based on the trdftnt value, I just put the images on my server, so if the trdftnt field value is buy it gets img buy.jpg.

Code:
<img src="images/{$GLOBALS['threadfields']['trdftnt']}.jpg" alt="" title="" />


Not better (probably worse) just a different approach.

Thanks for sharing, Lee.
Thank you lee and rateuSmile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Reference URL's