Jump to content

Using PHP in fanlistings?


Recommended Posts

man never did I think I would find my self on a forum asking for help. =_=; but then again, years back when we created ‘fanlistings’ we didn’t use php =_=;; cursed thing.

Recap of my experience with php: 0%

Today is the first day I ever considered tackling it...not thinking it would be as hard as some of the things I have had to learn on my own. That was a stupid opinion. I’m making a fan listing for an online gaming simulation community. And while looking for codes that would automatically submit applicants, approve, etc. Update member numbers so I didn’t keep having to go (767 + 52 =...you get the point XP ) I came across [a href=\"http://scripts.indisguise.org/\" target=\"_blank\"]http://scripts.indisguise.org/[/a]

Steps taken so far:
1. Downloaded Enthusiast 2
2. Uploaded Enthusiast 2 to my domain (JF-studios.com <—hosted by yahoo). Enthusiast 2 instructed me to create a new sub category on the main index (or at least that was my understanding) So it looks like this: [a href=\"http://www.JF-studios.com/backend\" target=\"_blank\"]http://www.JF-studios.com/backend[/a]
3. I’m then instructed to open up [a href=\"http://jf-studios.com/backend/install.php\" target=\"_blank\"]http://jf-studios.com/backend/install.php[/a] where apparently I’m supposed to make changes in [a href=\"http://jf-studios.com/backend/config.inc.php\" target=\"_blank\"]http://jf-studios.com/backend/config.inc.php[/a] and for the most part it makes sense. But where it starts to throw me off is here in bold:

[i]Mostly it's just the stuff in bold. Tho I’m sure as soon as I get past that hurtle, I will be back here asking more questions on the rest of the stuff. Pretty much I got a month to sort this all out ><;[/i]

<?php
/******************************************************************************
Your backend directory; do not forget the trailing slash
******************************************************************************/
$backend_dir = 'backend/';



/******************************************************************************
Type of listing (i.e., 'fanlisting' or 'hatelisting', or 'clique', etc)
******************************************************************************/
$listing_type = 'fanlisting';



/******************************************************************************
Disable country field, enable affiliates, show sorting in drop-down
******************************************************************************/
$disable_country = false;
$enable_affiliates = true;
$sort_dropdown = true;




/******************************************************************************
Password you will use to log into the admin system
******************************************************************************/
$set_password = 'password';



/******************************************************************************
Fanlisting information
******************************************************************************/
$owner_name = 'My Name';
$fanlisting_title = 'Fanlisting Title';
$fanlisting_subject = 'Fanlisting Subject';
[b]$fanlisting_email = 'username@domain.tld'; [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<--my email here correct?[!--colorc--][/span][!--/colorc--]
$fanlisting_url = 'http://localhost/scripts/Enthusiast'; [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<--do i put my host..www.JF-studios.com or do i put the link of the fan listing*[!--colorc--][/span][!--/colorc--][/b]

[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]*the fan listing is still hosted on the JF-studio domain, but I purchased a domain name for it (thecelticrose.org) should I jsut put [a href=\"http://www.JF-studios.com\" target=\"_blank\"]http://www.JF-studios.com[/a] or shall i put the EXACT url for the fanlisting? [a href=\"http://jf-studios.com/CelticRose/VHRfanlisting.html\" target=\"_blank\"]http://jf-studios.com/CelticRose/VHRfanlisting.html[/a][!--colorc--][/span][!--/colorc--]


/******************************************************************************
[b]Database variables
$db_server - server your MySQL is installed in, usually "localhost" [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--](I'm not sure what they mean by this, I never downloaded anything called MySQL and not sure what that even is. what do they mean by 'local host')[!--colorc--][/span][!--/colorc--]
$db_user - username you use to connect to your MySQL installation/account
$db_password - password you use to connect to your MySQL installation/account
$db_database - database your fanlisting uses (MUST BE PRESENT DURING
INSTALLATION) [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--](huh? Database...you mean JF-studios? I tried some varriations to see if I got any results, and I keep getting "Cannot connect to the database")[!--colorc--][/span][!--/colorc--]
$db_table - the table within the database for your fanlisting [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--](another one of those...huh?)[!--colorc--][/span][!--/colorc--][/b]******************************************************************************/
[b]$db_server = 'localhost';
$db_user = 'username';
$db_password = 'password';
$db_database = 'databasename';
$db_table = 'fanlistingtable';[/b]

[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]*same as the above. NOt sure where to put here.[!--colorc--][/span][!--/colorc--]


/******************************************************************************
Sorting fanlisting members
$fl_sort - sorts members via the same database column name specified
$show_sort_field = allows display toggling of the sort field
******************************************************************************/
$fl_sort = 'country';
$show_sort_field = false;



/******************************************************************************
How many fans are shown per page in the list
******************************************************************************/
$fans_per_page = 5;



/******************************************************************************
Where links open (value of TARGET attribute in the A tag).
******************************************************************************/
$link_target = '_blank';



/******************************************************************************
Addtional field variables:
Set $additional_field to true if you would like to have additional fields;
Add as many $additional_field_names[] as you want/need, single-quoted
(should also be the column name of your field in the database, all
lowercase (automatically title-cased in the site));
******************************************************************************/
$additional_field = true;
$additional_field_names = array();
$additional_field_names[] = 'fieldone';
$additional_field_names[] = 'fieldtwo';



/******************************************************************************
URLs of various pages in your fanlisting.
******************************************************************************/
$list_url = 'list.php';
$update_url = 'update.php';
$join_url = 'join.php';
$lostpass_url = 'lostpass.php';



/******************************************************************************
Spacer for affiliates list, optional.
I.e., if you want them to be separated only by a space, leave it as it is;
if you want affiliate to be listed on each line, set it to '<br />'
******************************************************************************/
$spacer = ' ';



/******************************************************************************
Default width and height of affiliate images, optional.
This is commented by default (no value). If you use one image size for your
affiliates, uncomment (take away the '//' before each line) the lines below
and plug the correct values in the variable.
******************************************************************************/
//$default_width = '88';
//$default_height = '31';
?>
Link to comment
Share on other sites

Moved to our 3rd party scripts forum - The PHP Newbie Help forum is for requesting help with custom scripts that you are developing yourself - Not for requesting help with 3rd party scripts.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.