<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Editing Sites in Control Panel (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Editing Sites in Control Panel
#399
fredg61 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Editing Sites in Control Panel 3 Years, 6 Months ago Karma: 0  
In the Admin Comtrol panel, when I click on "Edit Sites", the page is blank except for the "Select Categories" drop down menu. How do you see the sites for editing? Please don't tell me you have to go through every category to find the site!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#400
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Editing Sites in Control Panel 3 Years, 6 Months ago Karma: 9  
Admittedly this is one of the things that really needs some work. I've recently added a search box to the menu, so a client could just enter terms, or a full URL and press enter

When entering a URL, if the site was listed, it would come up for editing. If it was NOT found, it would come up for adding, fetching the description from the site's meta tags.

I think I can strip out a couple things and make your life easier by simply uploading two files. ... Check back in a few hours.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#401
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Editing Sites in Control Panel 3 Years, 6 Months ago Karma: 9  
Ok, taking just a bit from version 2.1 you can now add one of its features to 2.0 .. without upgrading. A search function from the admin panel.

Adding this feature involves adding a block of HTML to your existing /admin/menu.php and uploading one new file to your admin directory. More specific instructions are in the download, which is here ...

dnpladminsearch1.0.zip.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#402
fredg61 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Editing Sites in Control Panel 3 Years, 6 Months ago Karma: 0  
OK....uploaded the file and inserted the code and I know have a search box. When I enter a word and hit enter I get:

Fatal error: Call to undefined function: stripos() in /home/besto18/public_html/bestlinks/admin/site_search.php on line 61
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/24 11:17 By fredg61.
  The administrator has disabled public write access.
#403
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Editing Sites in Control Panel 3 Years, 6 Months ago Karma: 9  
DOH! I keep forgetting stripos came about with PHP5 ..

So, edit your new search_site.php file
locate around line 37
<?php echo $adm_body;

.. and add this.. so it looks like this ...

Code:

<?php echo $adm_body; if (!function_exists('stripos')){ function stripos($string,$word) { $retval = false; for($i=0;$i<=strlen($string);$i++) { if (strtolower(substr($string,$i,strlen($word))) == strtolower($word)) { $retval = true; } } return $retval; } }
I'll update the download as well
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#404
fredg61 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Editing Sites in Control Panel 3 Years, 6 Months ago Karma: 0  
OK...I think I did it right, but now I get this:

Invalid query: Unknown column 'phplinks_links.track' in 'field list'
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008