Wordpress Plugin Customization: Can't find line that generates html output - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-13-2011, 06:08 PM   #1 (permalink)
Junior Member
 
Join Date: Feb 2011
Location: Central Mexico
Posts: 1
Send a message via AIM to Sotkra Send a message via MSN to Sotkra Send a message via Skype™ to Sotkra
Default Wordpress Plugin Customization: Can't find line that generates html output

Hey there everyone =)
Had to tweak the url's since it wasn't allowing me to post em normally (says I need to post 15 times before...good to stop spambots but bad for new members like myself)

I just recently downloaded and installed the WP-PostViews Plugin by Lester Chan - link further below

In any case, I have added the plugin's widget to my sidebar, below 'The Latest' and 'Most Popular', as seen in http : //test.scninja.com . I gave it the title/name 'test views'.

What I am trying to do is find where within the plugin's .php file is the set of instructions that determine the info output so that I can format said appropriately. Right now, it's just spitting out an <a> with the post title and link followed by '- # Views' in plain text after the closure of the <a> tag. I would like to remove the dash, add a class to '# views' and so forth in order to fully customize the look of my site.

For some reason the plugin's php code is breaking out of the code tags here so I uploaded it as a txt file to my server: http : //test.scninja.com/wp-postviews.txt

Of course the natural thing was to look for the dash in the code, which lead me to:

PHP Code:
$views_options['most_viewed_template'] = '<li><a href="%POST_URL%"  title="%POST_TITLE%">%POST_TITLE%</a> - %VIEW_COUNT% '.__('views''wp-postviews').'</li>'
I edited that line by removing the dash, saved the changes, refreshed/reloaded the page and surprisingly, the dash was still there!

What is going on here? I've gone as far as adding fake classes to every <li> found in the page to try and detect which one exactly is the one related to the html output but to no avail.

Thanks in advance
G.Campos
Sotkra is offline   Reply With Quote
Sponsored Links
Reply

Tags
php , wordpress

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 04:34 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting