Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
How to remove the word "topic" in newest topics tag PHP raw code?
Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Mar 2, 2013 - 10:45 pm

From what I can tell that code looks correct. It makes me wonder if there is a caching plugin on your site that is showing old info and not new changes. If you are running a caching plugin then I would suggest turning it off while making these changes. I ran a quick check test and beforeTopic= nothing did remove the default 'Topic' text.

Avatar
Robert Lawrence
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 12:37 am

The caching is all turned off and I cleared cache in the browsers and also at the webhost and still the same issue. 

The "topic" word is still showing up and the number of entries is still 5 and won't increase to 10 even though I set it at 10 and have plenty of new topics posted to fill up that. So something with the code is not working properly or what I am using isn't formatted right because it's not pulling in 10 items and not getting rid of the word "topic".

Not sure what's going on.  Maybe if you give me some sample code, I can try that?  Any other possibilities what it could be?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 3, 2013 - 5:27 am

This - which is basically the same as you posted - works fine for me:

<?php sp_NewestTopicsTag('itemOrder=T&limit=10&beforeTopic=&afterDate='); ?>

Your problem - at least as far as that code you posted - is that the ampersands - the delimiters between each argument - had been converted to their HTML entity. If you didn't do that then it is probably a problem with the editor you are using.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Robert Lawrence
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 11:23 am

Yeah I noticed that as well after I cut and pasted the code.  I tried your code and I am still getting the same thing.  The word "topic" is still showing up and only 5 items are showing.  I cleared cache and tried a few different browsers and the issue still is there.  So it makes me think something isn't configured right in the plugin?  Or maybe a theme issue?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 1:34 pm

do you have link to site??

and you dont still have an older template tag somewhere else do you?

this wont have anything to do with theme since its outside the sp theme...  you put in sidebar or other page, right?

Avatar
Robert Lawrence
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 4:15 pm

I found out it had something to do with my wordpress theme, called Weaver Theme.  They have a shortcode you use to enclose php code and somehow that was the issue or it wasn't functioning properly.  I switched over to using a plugin called "allow php in posts and pages" and pasted the exact same code in and now it works fine now.    Looks like the issue is solved. 

Avatar
Robert Lawrence
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 4:17 pm

One other question I had, is there a way to remove the bullets before each topic line?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 6:41 pm

what bullets?  what topic line?  link please... it will come down to css from your theme...

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 7:15 pm

Robert Lawrence said
One other question I had, is there a way to remove the bullets before each topic line?

Did you try &listTags=0? Add that to the line and it will use a Div. That may take care of it.

 

Avatar
Robert Lawrence
Member
Free Members
sp_UserOfflineSmall Offline
Mar 5, 2013 - 11:25 pm

How do I make the output appear in two columns?  Is there an easy way to wrap the code in a CSS class so I can style it? 

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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625