Author Topic: site url in admin options  (Read 782 times)

0 Members and 1 Guest are viewing this topic.

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
site url in admin options
« on: March 05, 2010, 02:45:50 PM »
I think this would make it better for easyer codeing later.

Site url
update add this to the en-gb.inc.php

Code: [Select]
$smarty->assign('LAN_209', 'Site URL');
go into mysql and run this
Code: [Select]
alter table pp_config add column siteurl varchar (255) NOT NULL default 'http://yoursite.com';
edit the admin.options.php


add
Code: [Select]
mysql_query("UPDATE pp_config SET siteurl= '$_POST[siteurl]'");
add this to option.tbl about the <!--Footer-->


Code: [Select]
<tr>
<td class="first"><strong>{$LAN_209}</strong></td>
<td class="last"><input name="siteurl" type="text" value="{$options[options].siteurl}" size="70" maxlength="200" /></td>

</tr>
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: site url in admin options
« Reply #1 on: March 05, 2010, 07:56:42 PM »
Interesting idea.

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: site url in admin options
« Reply #2 on: March 05, 2010, 08:16:11 PM »
this would make it beeter when codeing.

echo "$_POST[siteurl]';

and not

echo " http://mysite.com";

code will not have to be changed by each user..

all done from admin

just my thoughts.
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: site url in admin options
« Reply #3 on: March 06, 2010, 05:05:09 AM »
I still thank this should be in next version
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: site url in admin options
« Reply #4 on: March 06, 2010, 03:54:23 PM »
Lets put it in the header.php as a global setting.

Since it's not really a language.

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: site url in admin options
« Reply #5 on: March 06, 2010, 06:47:03 PM »
Lets put it in the header.php as a global setting.

Since it's not really a language.

good thought!

2nd thought it would be better in the admin pannel that way  you could do http://www.myfunnypets.com/30/

and not http://www.myfunnypets.com


again my thought.
« Last Edit: March 06, 2010, 11:31:19 PM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com