Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Plugin Conversion, Simple Code Placement, not sure...
Avatar
Rolf Hassel
Member
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2013 - 12:55 pm

Hi,

I have this plugin on my website that is used to display featured ads. The theme is classipress. Simple:press seems for the most part to run fine on it. However, although the plugin works on every other area of my site it does not work on the forums side (simplepress).

 

Is it just a case of adding some code to get it to show up or would other things need to be done..?

 

Thanks in advance.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2013 - 1:31 pm

not really sure how that plugin works, so hard to say...

try going to forum - integration - page and permalink and enabling the WP strict API option...

Avatar
Rolf Hassel
Member
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2013 - 1:49 pm

Mr Papa said
not really sure how that plugin works, so hard to say...

try going to forum - integration - page and permalink and enabling the WP strict API option...

Did not seem to work.

 

I have no idea if this would help but here are the install instructions on the classipress side...

 

2012/01/16

XTREME CAROUSEL V1.2 SLIDER PLUGIN FOR CLASSIPRESS

 

INSTRUCTIONS:

1. Upload the "xtremecarousel" to your plugins folder
2. Activate the "xtremecarousel" plugin
3a. Look at your themes/classipress/index.php file, lines 9 to 14:

<?php
if ( file_exists(STYLESHEETPATH . '/featured.php') )
include_once(STYLESHEETPATH . '/featured.php');
else
include_once(TEMPLATEPATH . '/featured.php');
?>

3b. And change it for:

<?php if (function_exists('xtremecarousel')) xtremecarousel(); ?>

<?php // Comment the default CP Slider
// if ( file_exists(STYLESHEETPATH . '/featured.php') )
// include_once(STYLESHEETPATH . '/featured.php');
// else
// include_once(TEMPLATEPATH . '/featured.php');
?>

If you also like to show the slider on your category pages now we've already built this feature into the last 1.1 update. This means you'll have your featured ads on category pages filtered per the category being showed.
4. To achieve this you just need to look for your themes/classipress/taxonomy-ad_cat.php file and add:

<?php if (function_exists('xtremecarousel')) xtremecarousel(); ?>

… after line 14. So the code must look like:

<div id="breadcrumb">

<?php if ( function_exists('cp_breadcrumb') ) cp_breadcrumb(); ?>

</div>

<?php if (function_exists('xtremecarousel')) xtremecarousel(); ?>

<!-- left block -->
<div class="content_left">

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2013 - 5:29 pm

are you running the forum on the default page template or did  you create a custom one?  if so you might need to add it to the custom page template...  those directions seem to show how to put it on main page and a featured page...

Avatar
Rolf Hassel
Member
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2013 - 12:17 pm

Ermm not sure i understand to be honest. I am running the latest version of classipress. The simple press theme is one of the ones that come loaded with the plugin. When people connect to my site it should by default put you on the classipress home page but in the wordpress settings under reading i have it set to direct you to the forums so in effect the forums are the home page.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 20, 2013 - 3:52 pm

Steve was referring to the WP page template being used to display the forum. You can find what template this is by editing the forum page (WP Admion > Pages) and looking at the template being used. That leaves the question of whether this 'featured ads' code also needs adding to that template...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Rolf Hassel
Member
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2013 - 5:43 am

Well under Template it says Default Template..?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 21, 2013 - 2:16 pm

OK so what you need to do is find another page that also uses the 'default template' to determine whether that shows this added content or not...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625