51
m0nty
Re: create a directory
  • 2006/11/8 22:33

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


well in the php code itself, it's quite different.

roughly (it all depends on where you place the code as you may need to also grab the uid aswell if it's not already defined in the script where you place the code)

$username xoops_getLinkedUnameFromId($this->getVar('uid'));


and that all depends on if uid is defined from an object.

again tho, in registration, you might not even need that as if you place the code in the right place, you could get the uname straight from the $_POST['uname'] data that the user submitted.



52
m0nty
Re: create a directory
  • 2006/11/8 21:59

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


the only problem with that method is, even if it does work, it's gonna keep trying to create the directory everytime the page is refreshed.

what you should do is add the mkdir into the registration/activation script so that it only tries to create it once on registration or activation.

you should try to avoid at all costs using php in theme.html, try to seperate code from output for better practice and optimization.



53
m0nty
Re: Help, Error(s): xoops_myxoopschat_messages already exist
  • 2006/11/8 21:50

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


doesn't it already come with your hosting package? usually you can access phpmyadmin from your CPanel in the MySQL section.. providing u use CPanel of course.. but most hosts use it.

doesn't have to be phpmyadmin, MySQL admin will do the same.

i'd recommendhttp://www.phpmyadmin.net/home_page/index.php for help installing it if it's not already.

i def don't have time to go through installation of it & telling you how to set it up. but it's not hard though.



54
m0nty
Re: some code
  • 2006/11/8 17:20

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


looks like some of the files didn't get uploaded to the server correctly, and the language files aren't correct.. try re uploading the files again.

also i would recommend using CBB 3.0x instead of newbb 2.02 as newbb is discontinued.



55
m0nty
Re: Can an SQL query be made from a popup window?
  • 2006/11/8 15:58

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


sorry i missed a closing ) round the if statement.

should be:

if (is_object($xoopsUser))



56
m0nty
Re: Javascript banner not working
  • 2006/11/8 15:13

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


seems to show for me in both..

altho i have noticed the menu across the top shows the url ashttp://happeningsmag.com/kcms

and the articles and register, lost password etc show it ashttp://www.happeningsmag.com/kcms/

the www. is missing, this could be a potential problem with users.. (they may keep having to login twice depending on the pages they goto)



57
m0nty
Re: How do I get UID in a foreign block
  • 2006/11/8 15:05

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i'm not sure about in blocks.. but in files, if you want to use $xoopsUser then it has to be globally declared before you use it.

global $xoopsUser;



58
m0nty
Re: Help, Error(s): xoops_myxoopschat_messages already exist
  • 2006/11/8 14:06

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


drop the table from the db using phpmyadmin

DROP TABLE xoops_myxoopschat_messages



59
m0nty
Re: Slow site because of specific theme
  • 2006/11/8 13:52

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


have you fixed it? cos i just tried and it loaded the full page in 6 seconds



60
m0nty
Re: Dudes. Im Getting A New Phone.
  • 2006/11/8 3:28

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


ok i'm intrigued. are you pulling my leg? lol

cos a skype cellphone using their current pricing structure would sure as hell make me a whole lot richer each month.. lol

although i have no need for skype at home as i get free calls to national & international numbers anytime of day. & free calls to international cell phones in usa/canada. the rest of the worlds cells cost me about £0.35/min when using my landline.

my cellphone on the other hand is more expensive than a woman..




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 289 »



Login

Who's Online

183 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 183


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