Wide Header Widget? | General Discussion | Support Forum

A A A

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Wide Header Widget?
November 11, 2018
4:23 pm
scooterschalk
Member
Members
Forum Posts: 44
Member Since:
August 26, 2013
sp_UserOfflineSmall Offline

I have created a widget plugin from the latest ad widget and would like to format it to display ad images in one row accross. (6 or more across.) I can't seem to figure out how. I have used tables using echo function before directly from sql, but it doesn't work with my latest php/sql version.

Anyone know how to make the images side by side instead of straight down? (By adding formatting to the widget php code.)

November 12, 2018
2:18 pm
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 5231
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi scooterschalk,

Thanks for your post. Can you post what you have so far? or send that to me directly? You can contact us with a link to this forum thread and that information here: https://awpcp.com/contact/

November 12, 2018
4:53 pm
scooterschalk
Member
Members
Forum Posts: 44
Member Since:
August 26, 2013
sp_UserOfflineSmall Offline

Sent message by contact form. This is actually the section where I was trying to use table. I simply echoed the image, which works fine, just can't figure out how to format it horizantally. Can't seem to place the <table><tr> codes where it works. (most of the time it creates multiple tables.)

$html_image = $this->render_item_image( $item, $instance );

if ( ! empty( $html_image ) ) {
echo "<td>$html_image</td>";
} else {
$template = '<li class="awpcp-listings-widget-item %1$s"><div class="awpcplatestbox awpcp-clearfix">%3$s %4$s</div></li>';

}

return sprintf( $template, $html_class, $html_image, $html_title, $html_excerpt );

}

November 13, 2018
8:20 am
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 5231
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Thanks, scooterschalk. 

I'm having someone review this, and I'll respond via email. 

November 15, 2018
8:38 am
scooterschalk
Member
Members
Forum Posts: 44
Member Since:
August 26, 2013
sp_UserOfflineSmall Offline

Support has been great! I will post the solution here when finished.

Forum Timezone: America/Denver

Most Users Ever Online: 163

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Johnny B: 140

godie: 120

kerdezo: 99

laburke: 94

NAIN KHAN: 93

salvig67: 84

rude: 72

purplepaula: 72

WAYTOBAYWTB52: 71

gery: 71

Member Stats:

Guest Posters: 31

Members: 37913

Moderators: 2

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 6961

Posts: 30997

Newest Members:

Cesler Kita, Alexander Liebrecht, Shahidul Islam, NNPA Newswire, mzmsalman, Doucoure oumae, Bruno Tritsch, justnail899, akituci, oqatiza

Moderators: awpcp: 7530, AWPCP Support: 5231

Administrators: wpengine: 0, awpcp: 298

Skip to toolbar