11
ChadK
Re:digMod Search Engine
  • 2004/10/8 15:45

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


that is cool but no.. phpdig is a spider/search engine. You search for keywords. Try it here:http://search.aviary.info
Though I think his method would be cool as well and I think you could do that using the phpdig API and your own theme. Would be nice if someone did something like that. ;)



12
ChadK
Re:myAds/Classified ads/Modify Ad
  • 2004/10/8 14:45

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Check the module repository.. I'm going there next to put a copy of my hacked myAds in there for beta. I'll then be placing a module on xoopsforge for the module development.



13
ChadK
Re:MyAds Question, End of display period problems
  • 2004/10/8 14:39

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


I'm working on modifying this module so that the user simply selects from a list of possible day ranges for the ad. So the admin can set it to 5, 10, 20, 30, whatever.. then the user can select the length of the ad.
I'll also be modifying it so that it doesn't DELETE the ad but moves it to the archived ads table so the admin/user can easily reactivate the ad. I'm also going to change the DELETE Ad function on the user and admin side to move them to the archives as well instead of actually deleting them.

My version also shows the edit/delete links for all ads on the ad listing pages if you're an admin and if you're a member it shows them to you for your listings so it's easier for a user/admin to edit and delete ads.


for a very limited time you can download my hacked version of myAds athttp://www.aviary.info/phpcode/myAds.zip
You'll need to edit the files and remove the hard coded "aviary" information in the files because I haven't put the texts into the language file yet.

I'll release ChadsAds module eventually.. with all of these features and a few others, like definable input boxes on the ads etc to make them a bit more flexible.

If you click the link to download myAds from my site and it doesn't work, then it's gone. Come back here and ask for it...



14
ChadK
Re: digMod Search Engine
  • 2004/10/8 14:24

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Did he fix it so that we can spider sites now? The other version wouldn't spider any sites... I put in a link but it just came back to the same page.
I'll wait for a release version.



15
ChadK
Theme design tip for better google results
  • 2004/10/8 14:21

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Put the content blocks before the left and right blocks...
View the source at:http://www.aviary.info to see what I mean. The page parses the center and center-right/left blocks, then the right blocks then the left blocks.
I've done this because I use the left blocks for the menu and don't really care to have google try to grab it's keywords from my menu's links, rather I want it to focus on my CONTENT in the center blocks.

I haven't seen ANY themes for XOOPS that use this preferred method of displaying tables? They all parse the left blocks first..

I suppose I could put my menus in the right blocks but that's a bit awkward.



16
ChadK
Re:newbb2: some questions and reviews
  • 2004/10/8 14:16

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Also put the page navigation at the bottom or on both top and bottom but having to scroll back to the top of the page is a pain in the butt when I'm reading from top down in a forum... I get to the last one, I want to hit NEXT.



17
ChadK
Re: Gripes and Questions
  • 2004/10/8 14:13

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


I don't really like the download repository the way it is now either... it seems slow and there seem to be too many categories which allows for some pretty vague classifications.

Something else I've come to realize lately. There is a nice core for XOOPS but the modules are really hit and miss. It seems that not many modules are "Production/Stable" and they seem to live in alpha/beta forever with multiple bugs. There are only a few modules that I can download and place on a new XOOPS install that will work without modifications required on my part.



18
ChadK
Re: http:// is NOT http://www.
  • 2004/10/1 18:15

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Vagelis use this then:
Quote:
$whathost=$_SERVER["HTTP_HOST"];
if($whathost != "www.cna.gr")
{
header("HTTP/1.1 301 Moved Permanently");
header("Location:http://www.cna.gr".$_SERVER["REQUEST_URI"]);
exit();
}


It's also important to realize you can edit your .htaccess file to do this in your .htaccess:
Redirect permanent /http://www.cna.gr/

UN PARK your domain first and put it on it's on account if you can. This is better anyway as it's not going to cause Google to be pissed at you where-as if you just park a bunch of domains on your main domain google will get wise and omit stuff from your results.




19
ChadK
Re: myAds/Classified ads/Modify Ad
  • 2004/9/21 23:32

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


And you get the job of making sure everything is Portugese.. ;)



20
ChadK
Re: cookbook recipe maker
  • 2004/9/21 18:21

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


It seems to me that this could be made into a module quite easily by just modifying the custom_inc.php file and adding:
require_once("../../mainfile.php");
require_once("../../header.php");
at the top.. then substituting XOOPS variables for the following:
Quote:

global $g_rb_debug;
$g_rb_debug=FALSE; // prints out all the sql calls

// Pick the theme for the site
global $g_rb_theme,$g_rb_theme_hoverin, $g_rb_theme_hoverout;
$g_rb_theme="default";

##################################
## Directory Settings ##
##################################

global $g_sm_dir, $g_sm_url, $g_sm_adodb, $g_rb_basedir, $g_rb_baseurl,
$g_sm_adodb;
$g_rb_basedir = $_SERVER['PATH_TRANSLATED']; //"/var/www/html/dev/src/";
$g_rb_basedir = str_replace("index.php", "", $g_rb_basedir);
$g_rb_baseurl = $_SERVER['REQUEST_URI']; //"/dev/src/";
$g_rb_baseurl = str_replace("index.php", "", $g_rb_baseurl);
$g_sm_dir = $g_rb_basedir . "libs/phpsm/";
$g_sm_url = $g_rb_baseurl . "libs/phpsm/";
$g_sm_adodb = $g_rb_basedir . "libs/adodb/adodb.inc.php";

##################################
## Database Connection options ##
##################################
/*
Select one type: mysql,postgres,oracle..
see adodb readme files for more options
*/
global $g_rb_database_type, $g_rb_database_host, $g_rb_database_name, $g_rb_database_user, $g_rb_database_password;

$g_rb_database_type = "mysql";


//Set from Xoops
// Example PostgreSQL Settings
$g_rb_database_host = "localhost:5432";
$g_rb_database_name = "webdb2";
$g_rb_database_user = "postgres";
$g_rb_database_password = "";

##################################################
## Security Options: ##
## These options will effect the login system ##
##################################################

// Debuging, this is useful to turn on if you are getting a general error
global $g_sm_debug, $g_sm_session_id;
$g_sm_debug=$g_rb_debug;

$g_sm_session_id="SMSessionID";

global $g_sm_open_reg, $g_sm_enable_sec, $g_sm_default_access_level,
$g_sm_autologin_user, $g_sm_autologin_passwd, $g_sm_user_privilages,
$g_sm_admin_email, $g_sm_send_crlf, $g_sm_cleanup_files,
$g_sm_superuser_level, $g_sm_access_array, $g_sm_supported_languages,
$g_sm_supported_countries;


/* // Access Levels, do not change these unless you are familiar with the code
$g_sm_access_array = array(
//Anonymous "READER" => 0 ,
//Registered "AUTHOR" => 30 ,
//Moderator "EDITOR" => 60 ,
//Administrator "ADMINISTRATOR" => 90
);*/


$g_sm_open_reg=FALSE; // allow anyone to register as a new user
$g_sm_enable_sec=TRUE; // turn on/off the login system
$g_sm_newuser_access_level=30; // set the default security level of a user registering on their own
$g_sm_superuser_level="ADMINISTRATOR"; // The access level that denotes super users/admins
$g_sm_newuser_set_password=TRUE; // This determines if new users can set their passwords, or if it is emailed to them

//Set to admin email
$g_sm_admin_email = "manager@phprecipebook.com"; // set the system email address
$g_sm_admin_name = "PHPRecipeBook Manager"; // name of admin in emails
$g_sm_email_hosts = "mailserver.phprecipebook.com"; // set the smtp hosts to use for mailing (you could use sendmail if you wanted).

/*
If security is disabled, then make sure the following
two settings point to a valid user with at least Author access level (Admin would be best)
*/
$g_sm_autologin_user="admin"; // The username to automatically login as
$g_sm_autologin_passwd="passwd"; // The password to login with

global $g_rb_enable_ratings, $g_rb_show_ratings;
$g_rb_enable_ratings = TRUE; // Enable or disable the recipe ratings
$g_rb_show_ratings = FALSE; // Show the reviews/ratings on the recipe pages

#######################################
## Language: ##
## this will set a default language ##
## for guests. ##
#######################################
global $g_rb_language;
$g_rb_language = "en";
// this is a fall back settings, first the user's preferences and browser settings will be checked.

########################################
## Misc Options ##
########################################
global $g_rb_pagerLimit;
$g_rb_pagerLimit=25; // The number of recipes/ingredients to show per page

########################################
## Constants ##
########################################
global $g_rb_max_picture_size, $g_rb_project_name, $g_rb_project_version, $g_rb_project_website;
$g_rb_max_picture_size = "2000000"; // this sets the max upload size of a picture
$g_rb_project_name = "PHPRecipeBook";
$g_rb_project_version = "2.24"; // well not quite constant, but oh well.
$g_rb_project_website ="phprecipebook.sourceforge.net";


// ---------------------------------------//


?? right?
Then of course, create a xoops_version.php and toss in the appropriate SQL script location so it creates the tables and add the table bit to the xoops_version.php as both the XOOPS compatible variables and the phprecipe module variables?
Quote:
########################################
## The table names ##
## You can change the table names ##
## and prefixes, if you do though ##
## make sure you change the names ##
## in the database as well ##
########################################
global $db_prefix;
$db_prefix = "recipe_"; // change this to change just the prefix, useful for databases with more than one app in them
global $db_table_ethnicity,$db_table_units,$db_table_locations,$db_table_bases,$db_table_prep_time,
$db_table_courses,$db_table_difficulty,$db_table_ingredients,$db_table_users,
$db_table_recipes,$db_table_list_names,$db_table_list_recipes,$db_table_list_ingredients,
$db_table_related_recipes,$db_table_favorites, $db_table_ratings, $db_table_reviews;
$db_table_settings = $db_prefix . "settings";
$db_table_users = "security_users";
$db_table_ethnicity = $db_prefix . "ethnicity";
$db_table_units = $db_prefix . "units";
$db_table_locations = $db_prefix . "locations";
$db_table_bases = $db_prefix . "bases";
$db_table_prep_time = $db_prefix . "prep_time";
$db_table_courses = $db_prefix . "courses";
$db_table_difficulty = $db_prefix . "difficulty";
$db_table_ingredients = $db_prefix . "ingredients";
$db_table_ingredientmaps = $db_prefix . "ingredient_mapping";
$db_table_recipes = $db_prefix . "recipes";
$db_table_list_names = $db_prefix . "list_names";
$db_table_list_recipes = $db_prefix . "list_recipes";
$db_table_list_ingredients = $db_prefix . "list_ingredients";
$db_table_related_recipes = $db_prefix . "related_recipes";
$db_table_favorites = $db_prefix . "favorites";
$db_table_stores = $db_prefix . "stores";
$db_table_reviews = $db_prefix . "reviews";
$db_table_ratings = $db_prefix . "ratings";
$db_table_meals = $db_prefix . "meals";
$db_table_mealplans = $db_prefix . "mealplans";
$db_table_mealplan_items = $db_prefix . "mealplan_items";
$db_table_restaurants = $db_prefix . "restaurants";
$db_table_prices = $db_prefix . "prices";

global $db_fields;

/*
Used to refer to field names without knowing their names
*/
$db_fields = array(
$db_table_ethnicity => array( "ethnic_id", "ethnic_desc" ),
$db_table_units => array( "unit_id", "unit_desc" ),
$db_table_bases => array( "base_id", "base_desc" ),
$db_table_prep_time => array( "time_id", "time_desc" ),
$db_table_courses => array( "course_id", "course_desc" ),
$db_table_difficulty => array( "difficult_id", "difficult_desc" ),
$db_table_locations => array( "location_id", "location_desc"),
$db_table_prices => array( "price_id", "price_desc"),
$db_table_meals => array("meal_id", "meal_name")


Shouldn't be a lot more to do after that.. maybe some tweaks here and there but most of the "modularization" could actually be done in the xoops_version.php and the custom_inc.php




TopTop
« 1 (2) 3 4 5 ... 22 »



Login

Who's Online

204 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits