Unique CSS Class for each Fee Plan | Enhancement Suggestions | 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
Unique CSS Class for each Fee Plan
January 31, 2018
1:06 pm
hughdidit
Member
Members
Forum Posts: 3
Member Since:
January 31, 2018
sp_UserOfflineSmall Offline

It would be useful if you could provide a field (or auto-generate) to give each of your fee plans a unique CSS class name in all display outputs. This would be useful in providing things like different image sizes or heading styles.

Thanks!

January 31, 2018
3:25 pm
AWPCP Support
Moderator
Members

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

Hi hughdidit,

Thanks for your suggestion. I really appreciate the time you took to make it.

I can certainly see how separate CSS classes would be useful. I'll make sure to put this on the enhancement list! 

Please let me know if you have any other questions or issues!

January 31, 2018
4:02 pm
hughdidit
Member
Members
Forum Posts: 3
Member Since:
January 31, 2018
sp_UserOfflineSmall Offline

Thanks! Look forward to seeing it.

January 31, 2018
6:28 pm
hughdidit
Member
Members
Forum Posts: 3
Member Since:
January 31, 2018
sp_UserOfflineSmall Offline

Added a quick fix using listing template and little hack if your interested 

added 

   $rendered_listing = str_replace( "\$awpcpadtype", $ad_type_str.$listing->adterm_id, $rendered_listing );

after line 337 of awpcp_render_listings_items() function in frontend/ad_functions.php

where 

   $awpcpadtype is string to replaced in the listing template 

   $ad_type_str is some arbitrary string to prefix the class with

   $listing->adterm_id being the id of the fee type applied (numeric)

February 1, 2018
8:20 am
AWPCP Support
Moderator
Members

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

Thank you! I will let the developer know 🙂

Forum Timezone: America/Denver

Most Users Ever Online: 163

Currently Online:
13 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: 32

Members: 37963

Moderators: 2

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 6980

Posts: 31071

Newest Members:

pranav, realtoxic, Coen Deurloo, Ewa, nailsjul24, marnails89, Rahul Bose, Nick, natinail52, I love James Bond

Moderators: awpcp: 7530, AWPCP Support: 5262

Administrators: wpengine: 0, awpcp: 298

Skip to toolbar